1 2014-12-29 Thomas Preud'homme <thomas.preudhomme@arm.com>
3 * arm-tdep.c (arm_gdbarch_init): Remove casts in Tag_ABI_VFP_args switch
6 2014-12-29 Anthony Green <green@moxielogic.com>
8 * configure.tgt: Add support for moxiebox target.
10 2014-12-27 Anthony Green <green@moxielogic.com>
12 * moxie-tdep.c (moxie_software_single_step): ldo/sto instructions
13 are 32 bits, not 48. Update comments for various instructions.
14 (moxie_process_record): Update for new shorter ldo/sto
15 instructions. Add support for sex, zex, umul.x and mul.x
16 instructions. Update comments for various instructions.
18 2014-12-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
20 * arm-tdep.c (arm_gdbarch_init): Explicitly handle value 3 of
21 Tag_ABI_VFP_args. Also replace hardcoded values by enum values in the
22 switch handling the different values of Tag_ABI_VFP_args.
24 2014-12-23 Doug Evans <xdje42@gmail.com>
26 * ada-lang.c (user_select_syms): Only fetch symtab if symbol is
28 (cache_symbol): Ignore symbols that are not objfile-owned.
29 * block.c (block_objfile): New function.
30 (block_gdbarch): New function.
31 * block.h (block_objfile): Declare.
32 (block_gdbarch): Declare.
33 * c-exp.y (classify_name): Remove call to
34 language_lookup_primitive_type. No longer necessary.
35 * gdbtypes.c (lookup_typename): Call lookup_symbol_in_language.
36 Remove call to language_lookup_primitive_type. No longer necessary.
37 * guile/scm-symbol.c (syscm_gdbarch_data_key): New static global.
38 (syscm_gdbarch_data): New struct.
39 (syscm_init_arch_symbols): New function.
40 (syscm_get_symbol_map): Renamed from syscm_objfile_symbol_map.
41 All callers updated. Handle symbols owned by arches.
42 (gdbscm_symbol_symtab): Handle symbols owned by arches.
43 (gdbscm_initialize_symbols): Initialize syscm_gdbarch_data_key.
44 * language.c (language_lookup_primitive_type_1): New function.
45 (language_lookup_primitive_type): Call it.
46 (language_alloc_type_symbol): New function.
47 (language_init_primitive_type_symbols): New function.
48 (language_lookup_primitive_type_as_symbol): New function.
49 * language.h (struct language_arch_info) <primitive_type_symbols>:
51 (language_lookup_primitive_type): Add function comment.
52 (language_lookup_primitive_type_as_symbol): Declare.
53 * printcmd.c (address_info): Handle arch-owned symbols.
54 * python/py-symbol.c (sympy_get_symtab): Ditto.
56 (sympy_dealloc): Ditto.
57 * symmisc.c (print_symbol): Ditto.
58 * symtab.c (fixup_symbol_section): Ditto.
59 (lookup_symbol_aux): Initialize block_found.
60 (basic_lookup_symbol_nonlocal): Try looking up the symbol as a
62 (initialize_objfile_symbol_1): New function.
63 (initialize_objfile_symbol): Call it.
64 (allocate_symbol): Call it.
65 (allocate_template_symbol): Call it.
66 (symbol_objfile): Assert symbol is objfile-owned.
67 (symbol_arch, symbol_symtab, symbol_set_symtab): Ditto.
68 * symtab.h (struct symbol) <owner>: Replaces member "symtab".
69 (struct symbol) <is_objfile_owned>: New member.
70 (SYMBOL_OBJFILE_OWNED): New macro.
71 * cp-namespace.c (cp_lookup_bare_symbol): New arg langdef.
72 All callers updated. Try to find the symbol as a primitive type.
73 (lookup_namespace_scope): New arg langdef. All callers updated.
74 Call cp_lookup_bare_symbol directly for simple bare symbols.
76 2014-12-23 Doug Evans <xdje42@gmail.com>
78 * symtab.h (SYMBOL_DOMAIN_BITS): New macro.
79 (struct symbol) <domain>: Use it.
81 2014-12-23 Doug Evans <xdje42@gmail.com>
83 * symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
86 2014-12-23 Doug Evans <xdje42@gmail.com>
88 * language.h (struct language_defn) <la_lookup_symbol_nonlocal>:
89 New arg language_defn. All uses updated.
91 2014-12-23 Doug Evans <xdje42@gmail.com>
93 * symtab.h (SYMBOL_SYMTAB): Delete
94 (SYMBOL_OBJFILE): Delete.
95 (symbol_symtab, symbol_set_symtab): Declare.
96 (symbol_objfile, symbol_arch): Declare.
97 * symtab.c (symbol_symtab): Replaces SYMBOL_SYMTAB. All uses updated.
98 All references to symbol->symtab redirected through here.
99 (symbol_set_symtab): New function. All assignments to SYMBOL_SYMTAB
100 redirected through here.
101 (symbol_arch): New function.
102 (symbol_objfile): New function. Replaces SYMBOL_OBJFILE.
104 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
106 * findvar.c (default_read_var_value): Call symbol_arch.
107 * guile/scm-frame.c (gdbscm_frame_block): Call symbol_objfile.
108 * jv-lang.c (add_class_symtab_symbol): Call symbol_arch.
109 * printcmd.c (address_info): Call symbol_arch.
110 * tracepoint.c (scope_info): Call symbol_arch.
112 2014-12-22 Doug Evans <xdje42@gmail.com>
114 * cp-namespace.c (cp_lookup_symbol_via_all_imports): New function.
115 (cp_lookup_symbol_namespace): Call it.
116 (cp_lookup_symbol_nonlocal): Ditto.
118 2014-12-22 Doug Evans <xdje42@gmail.com>
120 * cp-namespace.c (cp_lookup_symbol_via_imports): New arg
121 "search_scope_first". All callers updated.
123 2014-12-22 Doug Evans <xdje42@gmail.com>
125 * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
126 (cp_basic_lookup_symbol): Renamed from lookup_symbol_file. Delete
127 arg "search". All callers updated.
128 (cp_lookup_bare_symbol): New function.
129 (cp_search_static_and_baseclasses): New function.
130 (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
131 (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
132 (cp_lookup_nested_symbol): Ditto.
134 2014-12-22 Doug Evans <xdje42@gmail.com>
136 * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
138 2014-12-22 Doug Evans <xdje42@gmail.com>
140 * cp-namespace.c: Whitespace cleanup.
142 2014-12-20 Keith Seitz <keiths@redhat.com>
143 Mihail-Marian Nistor <mihail.nistor@freescale.com>
146 * linespec.c (struct collect_minsyms): Add new member `symtab'.
147 (add_minsym): Handle cases where info.symtab is non-NULL.
148 (search_minsyms_for_name): Add new parameter `symtab'.
149 Handle limiting searches to a specific symtab.
150 (add_matching_symtabs_to_info): Search through minimal symbols
151 for language_asm files for which no new symbols are found.
153 2014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
154 Nigel Stephens <nigel@mips.com>
155 Chris Dearman <chris@mips.com>
156 Luis Machado <lgustavo@codesourcery.com>
158 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
159 (ALLDEPFILES): Add mips-sde-tdep.c.
160 * mips-sde-tdep.c: New file containg SDE specific code.
161 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
163 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
164 * osabi.c (gdb_osabi_names): Add SDE.
165 * NEWS: Mention the change.
167 2014-12-18 Simon Marchi <simon.marchi@ericsson.com>
169 * elfread.c (elf_symfile_init): Remove stale comment.
170 (elf_symfile_read): Same.
171 * symfile.h (struct sym_fns): Same.
173 2014-12-18 Nigel Stephens <nigel@mips.com>
174 Maciej W. Rozycki <macro@codesourcery.com>
176 * mips-tdep.c (print_fpu_flags): New function.
177 (mips_print_float_info): Likewise.
178 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
179 print_float_info routine.
181 2014-12-18 Yao Qi <yao@codesourcery.com>
183 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
184 * gdbarch.c: Re-generated.
185 * gdbarch.h: Likewise.
186 * infcmd.c (default_print_float_info): New function.
187 (print_float_info): Removed. Move code to
188 default_print_float_info.
189 (float_info): Adjust to call gdbarch_print_float_info.
190 * inferior.h (default_print_float_info): Declare it.
192 2014-12-18 Yao Qi <yao@codesourcery.com>
194 * h8300-tdep.c (h8300_print_float_info): Remove.
195 (h8300_gdbarch_init): Remove the call to
196 set_gdbarch_print_float_info.
198 2014-12-18 Doug Evans <xdje42@gmail.com>
200 * infcmd.c (jump_command): Minor simplification.
202 2014-12-18 Doug Evans <xdje42@gmail.com>
204 * language.c (language_lookup_primitive_type): Renamed from
205 language_lookup_primitive_type_by_name. All callers updated.
207 2014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
209 Fix MinGW compilation.
210 * compile/compile.c (get_compile_file_tempdir): Call error if
212 * config.in: Regenerate.
213 * configure: Regenerate.
214 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
216 2014-12-17 Doug Evans <xdje42@gmail.com>
218 * valops.c (value_maybe_namespace_elt): Remove redundant call to
219 lookup_static_symbol.
221 2014-12-17 Doug Evans <xdje42@gmail.com>
223 New parameter "debug symbol-lookup".
225 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
227 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
228 (cp_lookup_nested_symbol): Ditto.
229 * language.c (language_lookup_primitive_type_by_name): Add debug
231 * minsyms.c (lookup_minimal_symbol): Add debug output.
232 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
233 * symfile-debug.c (debug_objfile_name): ... from here. All callers
235 * objfiles.h (objfile_debug_name): Declare.
236 * symtab.h (symbol_lookup_debug): Declare.
237 * symtab.c (symbol_lookup_debug): New global.
238 (lookup_language_this): Add debug output.
239 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
240 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
241 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
242 (_initialize_symtab): Add new parameter "debug symbol-lookup".
244 2014-12-16 Doug Evans <xdje42@gmail.com>
246 * buildsym.c: Add comments describing how the buildsym machinery
247 is used by the various file formats.
248 (really_free_pendings): Enhance function comment.
249 See pending_macros to NULL. Simplify resetting pending_addrmap.
250 Call free_buildsym_compunit.
251 (free_buildsym_compunit): Set current_subfile to NULL.
252 (prepare_for_building): New function.
253 (start_symtab): Call it. Remove call to set_last_source_file.
254 (restart_symtab): New arg "cust". All callers updated.
255 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
256 (reset_symtab_globals): Enhance function comment.
257 Set local_symbols, file_symbols, global_symbols to NULL.
258 Set pending_macros to NULL. Simplify resetting pending_addrmap.
259 Call free_buildysym_compunit.
260 (end_symtab_without_blockvector): Delete. All callers updated.
261 (end_symtab_with_blockvector): Remove redundant call to
262 free_buildsym_compunit.
263 (augment_type_symtab): Remove arg "cust". All callers updated.
264 (buildsym_init): Remove resetting of free_pendings, file_symbols,
265 global_symbols, pending_blocks, pending_macros. Instead make
266 handling consistent with pending_addrmap: Assert value was reset
267 at end of previous symtab building. Initialize context_stack here.
269 2014-12-16 Doug Evans <xdje42@gmail.com>
271 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
272 cp_lookup_symbol_imports. All callers updated.
274 2014-12-16 Doug Evans <xdje42@gmail.com>
276 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
277 find_type_baseclass_by_name. All callers updated.
279 2014-12-16 Doug Evans <xdje42@gmail.com>
281 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
282 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
283 (print_symbol_info): Delete arg symtab. All callers updated.
284 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
286 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
288 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
289 "Name" columns. Assure that the output is always indented.
291 2014-12-16 Joel Brobecker <brobecker@adacore.com>
293 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
295 (linux_enable_event_reporting): Add parameter "attached".
296 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
297 declaration. New function.
298 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
299 (linux_enable_event_reporting): Add new parameter "attached".
300 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
302 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
303 Use it. Update function description.
304 (linux_child_post_attach, linux_child_post_startup_inferior):
305 Update call to linux_enable_event_reporting.
307 2014-12-16 Yao Qi <yao@codesourcery.com>
309 * NEWS: Move some entries to "Changes since GDB 7.8" section.
311 2014-12-16 Yao Qi <yao@codesourcery.com>
313 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
316 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
318 * inferior.c (find_inferior_ptid): New function.
319 * inferior.h (find_inferior_ptid): New declaration.
320 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
321 * corelow.c (core_pid_to_str): Same.
322 * darwin-nat.c (darwin_resume): Same.
323 * infrun.c (fetch_inferior_event): Same.
324 (get_inferior_stop_soon): Same.
325 (handle_inferior_event): Same.
326 (handle_signal_stop): Same.
327 * linux-nat.c (resume_lwp): Same.
328 (stop_wait_callback): Same.
329 * mi/mi-interp.c (mi_new_thread): Same.
330 (mi_thread_exit): Same.
331 * proc-service.c (ps_pglobal_lookup): Same.
332 * record-btrace.c (record_btrace_step_thread): Same.
333 * remote-sim.c (gdbsim_close_inferior): Same.
334 (gdbsim_resume): Same.
336 * sol2-tdep.c (sol2_core_pid_to_str): Same.
337 * target.c (memory_xfer_partial_1): Same.
338 (default_thread_address_space): Same.
339 * thread.c (thread_change_ptid): Same.
340 (switch_to_thread): Same.
341 (do_restore_current_thread_cleanup): Same.
343 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
345 * defs.h (gdb_readline): Constify argument.
346 (gdb_readline_wrapper): Same.
347 (command_line_input): Same.
348 (deprecated_readline_hook): Same.
349 * top.c (deprecated_readline_hook): Same.
350 (gdb_readline): Same.
351 (gdb_readline_wrapper): Same.
352 (command_line_input): Constify argument. Pass prompt_arg to called
353 functions instead of local_prompt, overwriting prompt_arg if necessary.
354 * event-top.h (display_gdb_prompt): Constify argument.
355 * event-top.c (display_gdb_prompt): Same.
356 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
357 if building with Python 3.4 and up.
359 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
361 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
364 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
367 * memattr.c (mem_info_command): Remove "unsigned long" casts.
369 2014-12-13 Doug Evans <xdje42@gmail.com>
371 * utils.c (make_hex_string): Fix off-by-one error.
373 2014-12-13 Joel Brobecker <brobecker@adacore.com>
375 * ada-lang.h (ada_ensure_varsize_limit): Declare.
376 * ada-lang.c (check_size): Remove advance declaration.
377 (ada_ensure_varsize_limit): Renames check_size.
378 Replace calls to check_size by calls to ada_ensure_varsize_limit
380 * ada-valprint.c (ada_val_print_ref): Add call to
381 ada_ensure_varsize_limit. Add comment explaining why.
383 2014-12-13 Joel Brobecker <brobecker@adacore.com>
385 * utils.c (make_hex_string): Replace use of sprintf by use of
388 2014-12-13 Joel Brobecker <brobecker@adacore.com>
390 * compile/compile-object-load.c (link_callbacks_multiple_definition)
391 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
392 newline at end of warning message.
394 2014-12-13 Joel Brobecker <brobecker@adacore.com>
396 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
397 new "EXTRA-ARGS" parameter.
398 * configure.ac: If large-file support is disabled in GDB,
399 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
400 * configure: Regenerate.
402 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
405 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
406 TYPE if not TYPE_CODE_TYPEDEF.
408 2014-12-13 Joel Brobecker <brobecker@adacore.com>
411 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
412 the frame unwinder must either be the dwarf2_frame_unwind
413 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
414 stack_addr is valid before calling get_frame_base. Throw
415 an error if not valid.
417 2014-12-12 Doug Evans <xdje42@gmail.com>
419 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
422 2014-12-12 Doug Evans <xdje42@gmail.com>
424 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
425 All callers updated. Rename arg "namespace" to "symbol_name".
427 2014-12-12 Doug Evans <xdje42@gmail.com>
429 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
430 partial_map_symtabs_matching_filename. All uses updated.
431 (psym_find_pc_sect_compunit_symtab): Renamed from
432 find_pc_sect_compunit_symtab_from_partial. All uses updated.
433 Add function comment.
434 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
435 All uses updated. Add function comment.
436 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
437 Add function comment.
438 (psym_find_last_source_symtab): Renamed from
439 find_last_source_symtab_from_partial. All uses updated.
440 Add function comment.
441 (psym_forget_cached_source_info): Renamed from
442 forget_cached_source_info_partial. All uses updated.
443 Add function comment.
444 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
445 All uses updated. Add function comment.
446 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
447 updated. Add function comment.
448 (psym_expand_symtabs_for_function): Renamed from
449 read_symtabs_for_function. All uses updated. Update function comment.
450 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
451 All uses updated. Add function comment.
452 (psym_expand_symtabs_with_fullname): Renamed from
453 read_psymtabs_with_fullname. All uses updated. Add function comment.
454 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
455 All uses updated. Add function comment.
456 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
458 (psym_expand_symtabs_matching): Renamed from
459 expand_symtabs_matching_via_partial. All uses updated.
460 Add function comment.
461 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
462 Add function comment.
464 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
465 Jan Kratochvil <jan.kratochvil@redhat.com>
466 Tom Tromey <tromey@redhat.com>
469 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
471 * p-lang.c (pascal_language_defn): Update.
472 * opencl-lang.c (opencl_language_defn): Update.
473 * objc-lang.c (objc_language_defn): Update.
474 * m2-lang.c (m2_language_defn): Update.
475 * language.h (struct language_defn) <la_get_compile_instance,
476 la_compute_program>: New fields.
477 * language.c (unknown_language_defn, auto_language_defn)
478 (local_language_defn): Update.
479 * jv-lang.c (java_language_defn): Update.
480 * go-lang.c (go_language_defn): Update.
481 * f-lang.c (f_language_defn): Update.
482 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
483 * dwarf2loc.c (dwarf2_compile_property_to_c)
484 (locexpr_generate_c_location, loclist_generate_c_location): New
486 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
487 * defs.h (enum compile_i_scope_types): New.
488 (enum command_control_type) <compile_control>: New constant.
489 (struct command_line) <control_u>: New field.
490 * d-lang.c (d_language_defn): Update.
491 * compile/compile.c: New file.
492 * compile/compile-c-support.c: New file.
493 * compile/compile-c-symbols.c: New file.
494 * compile/compile-c-types.c: New file.
495 * compile/compile.h: New file.
496 * compile/compile-internal.h: New file.
497 * compile/compile-loc2c.c: New file.
498 * compile/compile-object-load.c: New file.
499 * compile/compile-object-load.h: New file.
500 * compile/compile-object-run.c: New file.
501 * compile/compile-object-run.h: New file.
502 * cli/cli-script.c (multi_line_command_p, print_command_lines)
503 (execute_control_command, process_next_line)
504 (recurse_read_control_structure): Handle compile_control.
505 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
506 * c-lang.c (c_language_defn, cplus_language_defn)
507 (asm_language_defn, minimal_language_defn): Update.
508 * ada-lang.c (ada_language_defn): Update.
509 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
511 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
512 (HFILES_NO_SRCDIR): Add compile.h.
513 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
514 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
515 (compile.o, compile-c-types.o, compile-c-symbols.o)
516 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
517 (compile-c-support.o): New targets.
519 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
521 * s390-linux-tdep.c (s390_gcc_target_options): New function.
522 (s390_gdbarch_init): Add it to gdbarch.
524 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
526 * linux-tdep.c: Include objfiles.h and infcall.h.
527 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
529 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
531 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
533 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
534 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
535 translate_register. Now public.
536 (dwarf2_compile_expr_to_ax): Update.
538 2014-12-12 Tom Tromey <tromey@redhat.com>
539 Jan Kratochvil <jan.kratochvil@redhat.com>
541 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
542 (dwarf_expr_frame_base): Update caller.
543 (dwarf_expr_frame_base_1): Rename to ...
544 (func_get_frame_base_dwarf_block): ... this and make it public.
545 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
547 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
549 2014-12-12 Tom Tromey <tromey@redhat.com>
551 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
553 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
554 dwarf2_compile_cfa_to_ax.
555 (dwarf2_compile_cfa_to_ax): Remove.
556 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
557 (dwarf2_compile_cfa_to_ax): Remove.
559 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
561 * infcall.h (call_function_by_hand_dummy): Declare.
562 * infcall.c (call_function_by_hand): Use
563 call_function_by_hand_dummy.
564 (call_function_by_hand_dummy): Rename from call_function_by_hand.
565 Add arguments. Register a destructor.
567 2014-12-12 Tom Tromey <tromey@redhat.com>
568 Jan Kratochvil <jan.kratochvil@redhat.com>
570 * osabi.h (osabi_triplet_regexp): Declare.
571 * osabi.c (struct osabi_names): New.
572 (gdb_osabi_names): Change type to struct osabi_names. Update
574 (gdbarch_osabi_name): Update.
575 (osabi_triplet_regexp): New function.
576 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
577 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
578 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
579 set_gdbarch_gnu_triplet_regexp.
580 * gdbarch.sh (gnu_triplet_regexp): New method.
581 * gdbarch.c, gdbarch.h: Rebuild.
582 * arch-utils.h (default_gnu_triplet_regexp): Declare.
583 * arch-utils.c (default_gnu_triplet_regexp): New function.
585 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
587 * arch-utils.c (default_infcall_mmap)
588 (default_gcc_target_options): New functions.
589 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
590 (GDB_MMAP_PROT_EXEC): Define.
591 (default_infcall_mmap, default_gcc_target_options): Declare.
592 * gdbarch.h: Rebuild.
593 * gdbarch.c: Rebuild.
594 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
596 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
598 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
600 (pop_dummy_frame): Call the destructor if it exists.
601 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
603 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
604 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
606 2014-12-12 Tom Tromey <tromey@redhat.com>
608 * gdbtypes.h (make_unqualified_type): Declare.
609 * gdbtypes.c (make_unqualified_type): New function.
611 2014-12-12 Tom Tromey <tromey@redhat.com>
613 * ui-file.h (ui_file_write_for_put): Declare.
614 * ui-file.c (ui_file_write_for_put): New function.
615 * mi/mi-out.c (do_write): Remove.
616 (mi_out_put): Use ui_file_write_for_put.
618 2014-12-12 Doug Evans <dje@google.com>
620 * NEWS: Mention gdb.lookup_objfile.
621 * python/python.c (GdbMethods): Add lookup_objfile.
622 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
623 * python/py-objfile.c: #include "symtab.h".
624 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
625 (objfpy_lookup_objfile_by_name): New function.
626 (objfpy_lookup_objfile_by_build_id): New function.
627 (gdbpy_lookup_objfile): New function.
629 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
631 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
632 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
633 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
635 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
638 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
640 * completer.c: Include "target.h", "reggroups.h", and
642 (reg_or_group_completer): New.
643 * completer.h (reg_or_group_completer): Declare.
644 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
645 the "info registers" and "info all-registers" commands and the
646 dbx-mode "lr" command.
648 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
650 * user-regs.c: Include "arch-utils.h", "command.h", and
652 (maintenance_print_user_registers): New.
653 (_initialize_user_regs): Register new "maint print user-registers"
655 * NEWS: Mention new GDB command "maint print user-registers".
657 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
658 Maciej W. Rozycki <macro@mips.com>
659 Pedro Alves <pedro@codesourcery.com>
661 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
662 remove `predefault' and `invalid_p' initializers.
663 (make_symbol_special): New architecture method.
664 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
665 (objfile, symbol): New declarations.
666 * arch-utils.h (default_elf_make_msymbol_special): Remove
668 (default_make_symbol_special): New prototype.
669 (default_adjust_dwarf2_addr): Likewise.
670 (default_adjust_dwarf2_line): Likewise.
671 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
672 * arch-utils.c (default_elf_make_msymbol_special): Remove
674 (default_make_symbol_special): New function.
675 (default_adjust_dwarf2_addr): Likewise.
676 (default_adjust_dwarf2_line): Likewise.
677 * dwarf2-frame.c (decode_frame_entry_1): Call
678 `gdbarch_adjust_dwarf2_addr'.
679 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
680 * dwarf2read.c (create_addrmap_from_index): Likewise.
681 (process_psymtab_comp_unit_reader): Likewise.
682 (add_partial_symbol): Likewise.
683 (add_partial_subprogram): Likewise.
684 (process_full_comp_unit): Likewise.
685 (read_file_scope): Likewise.
686 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
687 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
688 (read_call_site_scope): Likewise.
689 (dwarf2_ranges_read): Likewise.
690 (dwarf2_record_block_ranges): Likewise.
691 (read_attribute_value): Likewise.
692 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
693 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
694 * elfread.c (elf_symtab_read): Don't call
695 `gdbarch_elf_make_msymbol_special' if unset.
696 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
697 the ISA bit from the PC.
698 * mips-tdep.c (mips_unmake_compact_addr): New function.
699 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
700 address appropriately.
701 (mips_make_symbol_special): New function.
702 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
703 (mips_pc_is_mips16): Likewise.
704 (mips_pc_is_micromips): Likewise.
705 (mips_pc_isa): Likewise.
706 (mips_adjust_dwarf2_addr): New function.
707 (mips_adjust_dwarf2_line): Likewise.
708 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
709 (mips_addr_bits_remove): Likewise.
710 (mips_skip_trampoline_code): Likewise.
711 (mips_write_pc): Don't set the ISA bit.
712 (mips_eabi_push_dummy_call): Likewise.
713 (mips_o64_push_dummy_call): Likewise.
714 (mips_gdbarch_init): Install `mips_make_symbol_special',
715 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
717 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
718 target-specific symbol address adjustments.
719 * gdbarch.h: Regenerate.
720 * gdbarch.c: Regenerate.
722 2014-12-12 Yao Qi <yao@codesourcery.com>
725 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
726 'skip_pc'. Remove code skipping prologue instructions, use
727 arm_analyze_prologue instead.
728 (arm_analyze_prologue): Stop the scanning for unrecognized
729 instruction when skipping prologue.
731 2014-12-12 Yao Qi <yao@codesourcery.com>
733 * arm-tdep.c (arm_instruction_restores_sp): New function.
734 (arm_analyze_prologue): Call arm_instruction_restores_sp.
735 (arm_in_function_epilogue_p): Move code to
736 arm_instruction_restores_sp.
738 2014-12-11 Doug Evans <xdje42@gmail.com>
740 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
742 2014-12-11 Doug Evans <xdje42@gmail.com>
744 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
745 (symbol *lookup_symbol_via_quick_fns): Ditto.
746 (lookup_symbol_in_objfile): Add forward decl.
747 (lookup_global_symbol_from_objfile): Simplify, call
748 lookup_symbol_in_objfile.
750 2014-12-11 Doug Evans <xdje42@gmail.com>
752 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
754 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
757 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
758 it is marked as persistent.
760 2014-12-10 Doug Evans <xdje42@gmail.com>
762 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
763 closer to its subroutines.
765 2014-12-10 Doug Evans <xdje42@gmail.com>
767 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
769 2014-12-10 Doug Evans <xdje42@gmail.com>
771 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
772 * cp-support.h (cp_lookup_symbol_imports): Delete.
774 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
777 * target.c (cleanup_restore_target_terminal): New function.
778 (make_cleanup_restore_target_terminal): New function.
779 * target.h (make_cleanup_restore_target_terminal): New declaration.
780 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
782 2014-12-08 Doug Evans <dje@google.com>
784 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
786 2014-12-08 Doug Evans <dje@google.com>
788 * NEWS: Mention gdb.Objfile.owner.
789 * python/py-objfile.c (objfpy_get_owner): New function.
790 (objfile_getset): Add "owner".
792 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
794 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
795 (lookup_global_symbol_from_objfile): Call it.
797 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
799 Remove const from struct objfile *.
800 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
801 symtab.c, symtab.h: In these files.
803 2014-12-05 Andreas From <andreas.from@ericsson.com>
805 * MAINTAINERS (Write After Approval): Add "Andreas From"
807 2014-12-05 Doug Evans <xdje42@gmail.com>
811 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
813 2014-12-04 Doug Evans <dje@google.com>
815 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
816 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
817 (objfile_getset): Add "add_separate_debug_file".
819 2014-12-04 Doug Evans <dje@google.com>
821 * NEWS: Mention gdb.Objfile.build_id.
822 * build-id.c (build_id_bfd_get): Make non-static.
823 * build-id.h (build_id_bfd_get): Add declaration.
824 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
825 (OBJFPY_REQUIRE_VALID): New macro.
826 (objfpy_get_build_id): New function.
827 (objfile_getset): Add "build_id".
828 * utils.c (make_hex_string): New function.
829 * utils.h (make_hex_string): Add declaration.
831 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
833 * block.c (block_lookup_symbol_primary): New function.
834 * block.h (block_lookup_symbol_primary): New declaration.
835 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
836 Call block_lookup_symbol_primary.
838 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
840 * tramp-frame.h (tramp_frame): Add `validate' member.
841 * tramp-frame.c (tramp_frame_start): Validate trampoline before
843 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
844 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
845 (mips_linux_o32_sigframe): Initialize `validate' member.
846 (mips_linux_o32_rt_sigframe): Likewise.
847 (mips_linux_n32_rt_sigframe): Likewise.
848 (mips_linux_n64_rt_sigframe): Likewise.
849 (micromips_linux_o32_sigframe): New variable.
850 (micromips_linux_o32_rt_sigframe): Likewise.
851 (micromips_linux_n32_rt_sigframe): Likewise.
852 (micromips_linux_n64_rt_sigframe): Likewise.
853 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
854 (mips_linux_n32n64_sigframe_init): Likewise.
855 (mips_linux_sigframe_validate): New function.
856 (micromips_linux_sigframe_validate): Likewise.
857 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
859 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
861 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
862 * sparc-sol2-tdep.c: Include "regset.h".
863 (sparc32_sol2_supply_core_gregset): New function.
864 (sparc32_sol2_collect_core_gregset): Likewise.
865 (sparc32_sol2_supply_core_fpregset): Likewise.
866 (sparc32_sol2_collect_core_fpregset): Likewise.
867 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
868 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
869 tdep->fpregset/sizeof_fpregset.
870 * sparc64-sol2-tdep.c: Include "regset.h".
871 (sparc64_sol2_supply_core_gregset): New function.
872 (sparc64_sol2_collect_core_gregset): Likewise.
873 (sparc64_sol2_supply_core_fpregset): Likewise.
874 (sparc64_sol2_collect_core_fpregset): Likewise.
875 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
876 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
877 tdep->fpregset/sizeof_fpregset.
879 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
881 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
884 2014-12-02 Doug Evans <dje@google.com>
886 * symtab.c (symbol_init_cplus_specific): Delete.
887 (symbol_set_demangled_name): Remove special c++ support.
888 (symbol_get_demangled_name, symbol_set_language): Ditto.
889 * symtab.h (struct cplus_specific): Delete.
890 (struct general_symbol_info) <language_specific>: Remove
893 2014-12-02 Doug Evans <dje@google.com>
896 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
898 2014-12-02 Doug Evans <dje@google.com>
901 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
904 2014-12-02 Doug Evans <dje@google.com>
906 * dwarf2read.c (peek_die_abbrev): Improve error message text.
908 2014-12-02 Doug Evans <dje@google.com>
910 * valops.c (do_search_struct_field): Remove remnant of Chill support.
911 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
913 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
915 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
917 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
919 * NEWS: Mention new Python events.
920 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
921 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
922 (py-infevents.o): New rule.
923 * doc/observer.texi (inferior_call_pre, inferior_call_post)
924 (memory_changed, register_changed): New observers.
925 * infcall.c (call_function_by_hand): Notify observer before and
927 * python/py-event.h (inferior_call_kind): New enum.
928 (emit_inferior_call_event): New prototype.
929 (emit_register_changed_event): New prototype.
930 (emit_memory_changed_event): New prototype.
931 * python/py-events.h (events_object): New registries
932 inferior_call, memory_changed and register_changed.
933 * python/py-evts.c (gdbpy_initialize_py_events): Add the
934 inferior_call, memory_changed and register_changed registries.
935 * python/py-infevents.c: New.
936 * python/py-inferior.c (python_on_inferior_call_pre)
937 (python_on_inferior_call_post, python_on_register_change)
938 (python_on_memory_change): New functions.
939 (gdbpy_initialize_inferior): Attach python handler to new
941 * python/py-infthread.c(gdbpy_create_ptid_object): New.
942 (thpy_get_ptid) Use gdbpy_create_ptid_object.
943 * python/python-internal.h:
944 (gdbpy_create_ptid_object)
945 (gdbpy_initialize_inferior_call_pre_event)
946 (gdbpy_initialize_inferior_call_post_event)
947 (gdbpy_initialize_register_changed_event)
948 (gdbpy_initialize_memory_changed_event): New prototypes.
949 * python/python.c (_initialize_python): Initialize new events.
950 * valops.c (value_assign): Notify register_changed observer.
952 2014-12-02 Doug Evans <dje@google.com>
954 * python/py-infthread.c: Whitespace fixes.
956 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
958 * features/Makefile (s390-te-linux64-expedite): Replace
959 non-existant r14 and r15 by r14l and r15l, respectively.
960 * regformats/s390-te-linux64.dat: Regenerate.
962 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
964 * objfiles.c (allocate_objfile): Remove duplicate comment.
966 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
968 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
969 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
970 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
971 (supply_gregset, supply_fpregset): Remove.
972 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
973 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
976 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
978 Add add-auto-load-scripts-directory.
979 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
980 * auto-load.c (add_auto_load_dir): New function.
981 (_initialize_auto_load): Install it.
983 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
985 Pushed by Joel Brobecker <brobecker@adacore.com>.
986 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
988 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
990 * eval.c (evaluate_subexp): Check that the thread stack temporaries
991 are not already enabled before enabling them.
993 2014-11-29 Yao Qi <yao@codesourcery.com>
995 * arm-tdep.c (arm_analyze_prologue): Move local variables
996 'framereg' and 'framesize' to inner block. Move code to
999 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
1001 * eval.c: Include gdbthread.h.
1002 (evaluate_subexp): Enable thread stack temporaries before
1003 evaluating a complete expression and clean them up after the
1004 evaluation is complete.
1005 * gdbthread.h: Include common/vec.h.
1006 (value_ptr): New typedef.
1007 (VEC (value_ptr)): New vector type.
1008 (value_vec): New typedef.
1009 (struct thread_info): Add new fields stack_temporaries_enabled
1010 and stack_temporaries.
1011 (enable_thread_stack_temporaries)
1012 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1013 (get_last_thread_stack_temporary)
1014 (value_in_thread_stack_temporaries): Declare.
1015 * gdbtypes.c (class_or_union_p): New function.
1016 * gdbtypes.h (class_or_union_p): Declare.
1017 * infcall.c (call_function_by_hand): Store return values of class
1018 type as temporaries on stack.
1019 * thread.c (enable_thread_stack_temporaries): New function.
1020 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1021 (get_last_thread_stack_temporary): Likewise.
1022 (value_in_thread_stack_temporaries): Likewise.
1023 * value.c (value_force_lval): New function.
1024 * value.h (value_force_lval): Declare.
1026 2014-11-28 Pierre Muller <muller@sourceware.org>
1028 Pushed by Joel Brobecker <brobecker@adacore.com>.
1029 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
1032 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
1034 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
1035 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1036 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1037 * m68klinux-nat.c (fetch_core_registers): Remove.
1038 (linux_elf_core_fns): Remove.
1039 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
1041 2014-11-28 Joel Brobecker <brobecker@adacore.com>
1043 * utils.c (gdb_realpath): Rework comment about handling on
1046 2014-11-28 Yao Qi <yao@codesourcery.com>
1048 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1050 * gnulib/aclocal.m4: Re-generated.
1051 * gnulib/config.in: Re-generated.
1052 * gnulib/configure: Re-generated.
1053 * gnulib/import/Makefile.am: Re-generated.
1054 * gnulib/import/Makefile.in: Re-generated.
1055 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1056 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1057 * import/basename-lgpl.c: New file.
1058 * import/dirname-lgpl.c: New file.
1059 * import/dirname.h: New file.
1060 * import/m4/dirname.m4: New file.
1061 * import/m4/malloc.m4: New file.
1062 * import/m4/rename.m4: New file.
1063 * import/m4/rmdir.m4: New file.
1064 * import/m4/stdio_h.m4: New file.
1065 * import/malloc.c: New file.
1066 * import/rename.c: New file.
1067 * import/rmdir.c: New file.
1068 * import/same-inode.h: New file.
1069 * import/stdio.c: New file.
1070 * import/stdio.in.h: New file.
1071 * import/stripslash.c: New file.
1073 2014-11-28 Yao Qi <yao@codesourcery.com>
1075 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
1077 * config.in: Re-generated.
1078 * configure: Re-generated.
1079 * utils.c (gdb_realpath): Remove code calling realpath,
1080 canonicalize_file_name and pathconf.
1081 [!_WIN32]: Call canonicalize_file_name.
1083 2014-11-28 Yao Qi <yao@codesourcery.com>
1085 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1087 * aclocal.m4: Re-generated.
1088 * config.in: Re-generated.
1089 * configure: Re-generated.
1090 * import/Makefile.am: Re-generated.
1091 * import/Makefile.in: Re-generated.
1092 * import/m4/gnulib-cache.m4: Re-generated.
1093 * import/m4/gnulib-comp.m4: Re-generated.
1094 * import/canonicalize-lgpl.c: New file.
1095 * import/extra/snippet/_Noreturn.h: New file.
1096 * import/m4/canonicalize.m4: New file.
1097 * import/m4/double-slash-root.m4: New file.
1098 * import/m4/eealloc.m4: New file.
1099 * import/m4/malloca.m4: New file.
1100 * import/m4/nocrash.m4: New file.
1101 * import/m4/stdlib_h.m4: New file.
1102 * import/malloca.c: New file.
1103 * import/malloca.h: New file.
1104 * import/malloca.valgrind: New file.
1106 2014-11-28 Yao Qi <yao@codesourcery.com>
1108 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
1109 * config.in, configure: Regenerate.
1110 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1111 code checking HAVE_LSTAT is defined.
1113 2014-11-28 Yao Qi <yao@codesourcery.com>
1115 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1117 * gnulib/aclocal.m4: Re-generated.
1118 * gnulib/config.in: Re-generated.
1119 * gnulib/configure: Re-generated.
1120 * gnulib/import/Makefile.am: Re-generated.
1121 * gnulib/import/Makefile.in: Re-generated.
1122 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1123 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1124 * gnulib/import/lstat.c: New file.
1125 * gnulib/import/m4/lstat.m4: New file.
1127 2014-11-28 Yao Qi <yao@codesourcery.com>
1129 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
1130 * config.in, configure: Re-generate.
1131 * inf-child.c (inf_child_fileio_readlink): Don't check
1132 HAVE_READLINK is defined.
1134 2014-11-28 Yao Qi <yao@codesourcery.com>
1136 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1137 * gnulib/aclocal.m4: Re-generated.
1138 * gnulib/config.in: Likewise.
1139 * gnulib/configure: Likewise.
1140 * gnulib/import/Makefile.am: Likewise.
1141 * gnulib/import/Makefile.in: Likewise.
1142 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1143 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1144 * gnulib/import/dosname.h: New file
1145 * gnulib/import/m4/largefile.m4: New file.
1146 * gnulib/import/m4/readlink.m4: New file.
1147 * gnulib/import/m4/stat.m4: New file.
1148 * gnulib/import/readlink.c: New file.
1149 * gnulib/import/stat.c: New file.
1151 2014-11-26 Mark Wielaard <mjw@redhat.com>
1153 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1154 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1156 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1158 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1159 that there can be only one stack adjustment in the prologue
1160 with tests to detect specific disallowed stack adjustments.
1162 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1164 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1167 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1169 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1170 the instruction as well as reading it from memory.
1171 (nios2_match_add): New.
1172 (nios2_match_sub): New.
1173 (nios2_match_addi): New.
1174 (nios2_match_orhi): New.
1175 (nios2_match_stw): New.
1176 (nios2_match_ldw): New.
1177 (nios2_match_rdctl): New.
1178 (enum branch_condition): New.
1179 (nios2_match_branch): New.
1180 (nios2_match_jmpi): New.
1181 (nios2_match_calli): New.
1182 (nios2_match_jmpr): New.
1183 (nios2_match_callr): New.
1184 (nios2_match_break): New.
1185 (nios2_match_trap): New.
1186 (nios2_in_epilogue_p): Rewrite to use new functions.
1187 (nios2_analyze_prologue): Likewise.
1188 (nios2_skip_prologue): Delete unused local limit_pc.
1189 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1190 (nios2_get_next_pc): Rewrite to use new functions.
1192 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1194 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1196 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1198 Pushed by Joel Brobecker <brobecker@adacore.com>
1199 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1200 elements pi_len by the size of the elements before calling
1202 (inf_validate_task_sc): Likewise, and properly deallocate the
1205 2014-11-23 Doug Evans <xdje42@gmail.com>
1207 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1208 number and name if present. All callers updated.
1209 (dump_fn_fieldlists): Fix indentation of args.
1211 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1213 * MAINTAINERS (Write After Approval): Add myself.
1215 2014-11-23 Joel Brobecker <brobecker@adacore.com>
1217 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1218 to a bp_call_dummy breakpoint type.
1220 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1222 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1223 registering the signal handler.
1225 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1227 * event-top.h (call_stdin_event_handler_again_p): Declare.
1228 * event-top.c (call_stdin_event_handler_again_p): Define.
1229 (stdin_event_handler): Use it.
1230 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1231 handler again if there is pending input following a
1234 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1236 Pushed by Joel Brobecker <brobecker@adacore.com>
1237 * linux-fork.c (checkpoint_command): Print index of new
1238 checkpoint in response message.
1240 2014-11-23 Yao Qi <yao@codesourcery.com>
1242 * valprint.c (read_string): Move local variables 'found_nul',
1243 'chunksize' and 'limit' to inner scope. Update comments.
1245 2014-11-22 Doug Evans <xdje42@gmail.com>
1247 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1249 (search_symbols): Fix comments and whitespace.
1251 2014-11-22 Doug Evans <xdje42@gmail.com>
1253 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1255 2014-11-21 Doug Evans <dje@google.com>
1257 * psymtab.c (psymtab_search_name): Fix whitespace.
1259 2014-11-21 Yao Qi <yao@codesourcery.com>
1261 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1263 * gnulib/import/Makefile.am: Re-generated.
1264 * gnulib/import/Makefile.in: Likewise.
1265 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1267 2014-11-21 Yao Qi <yao@codesourcery.com>
1269 * gdb_wchar.h: Include wchar.h and wctype.h.
1270 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1271 include wchar.h and wctype.h.
1272 Don't check HAVE_WCHAR_H.
1274 2014-11-21 Yao Qi <yao@codesourcery.com>
1276 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1278 * gnulib/import/Makefile.am: Re-generated.
1279 * gnulib/import/Makefile.in: Likewise.
1280 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1282 2014-11-21 Yao Qi <yao@codesourcery.com>
1284 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1286 * gnulib/import/Makefile.am: Re-generated.
1287 * gnulib/import/Makefile.in: Likewise.
1288 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1290 2014-11-21 Yao Qi <yao@codesourcery.com>
1292 * common/common-defs.h: Include alloca.h
1293 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1294 * configure: Re-generated.
1295 * defs.h: Remove code handling alloca.
1296 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1299 2014-11-21 Yao Qi <yao@codesourcery.com>
1301 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1303 * gnulib/import/Makefile.am: Re-generated.
1304 * gnulib/import/Makefile.in: Likewise..
1305 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1307 2014-11-21 Yao Qi <yao@codesourcery.com>
1309 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1312 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1314 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1315 flag_unsigned if HIGH_BOUND is constant and negative.
1317 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1319 PR breakpoints/10737
1320 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1321 modifier from "struct gdbarch" when compiling without Expat (XML)
1323 (get_syscall_by_number): Likewise.
1324 (get_syscall_by_name): Likewise.
1325 (get_syscall_names): Likewise.
1327 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1329 PR breakpoints/10737
1330 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1331 set_xml_syscall_file_name to provide gdbarch.
1332 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1333 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1334 * breakpoint.c (print_it_catch_syscall): Adjust call to
1335 get_syscall_by_number to provide gdbarch.
1336 (print_one_catch_syscall): Likewise.
1337 (print_mention_catch_syscall): Likewise.
1338 (print_recreate_catch_syscall): Likewise.
1339 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1340 and get_syscall_by_name to provide gdbarch.
1341 (catch_syscall_completer): Adjust call to get_syscall_names to
1343 * gdbarch.c: Regenerate.
1344 * gdbarch.h: Likewise.
1345 * gdbarch.sh: Forward declare "struct syscalls_info".
1346 (xml_syscall_file): New variable.
1347 (syscalls_info): Likewise.
1348 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1349 set_xml_syscall_file_name to provide gdbarch.
1350 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1351 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1352 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1353 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1354 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1355 * xml-syscall.c: Include gdbarch.h.
1356 (set_xml_syscall_file_name): Accept gdbarch parameter.
1357 (get_syscall_by_number): Likewise.
1358 (get_syscall_by_name): Likewise.
1359 (get_syscall_names): Likewise.
1360 (my_gdb_datadir): Delete global variable.
1361 (struct syscalls_info) <my_gdb_datadir>: New variable.
1362 (struct syscalls_info) <sysinfo>: Rename variable to
1364 (sysinfo): Delete global variable.
1365 (have_initialized_sysinfo): Likewise.
1366 (xml_syscall_file): Likewise.
1367 (sysinfo_free_syscalls_desc): Rename to...
1368 (syscalls_info_free_syscalls_desc): ... this.
1369 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1370 code to the new layout of "struct syscalls_info".
1371 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1373 (syscall_create_syscall_desc): Likewise.
1374 (syscall_start_syscall): Likewise.
1375 (syscall_parse_xml): Likewise.
1376 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1377 (init_sysinfo): Rename to...
1378 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1379 Adjust function to deal with gdbarch.
1380 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1381 gdbarch as a parameter. Adjust code.
1382 (xml_get_syscall_name): Likewise.
1383 (xml_list_of_syscalls): Likewise.
1384 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1385 (get_syscall_by_number): Likewise.
1386 (get_syscall_by_name): Likewise.
1387 (get_syscall_names): Likewise.
1388 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1389 (get_syscall_by_number): Likewise.
1390 (get_syscall_by_name): Likewise.
1391 (get_syscall_names): Likewise.
1393 2014-11-20 Doug Evans <xdje42@gmail.com>
1395 Split struct symtab into two: struct symtab and compunit_symtab.
1396 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1397 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1398 to "struct compunit_symtab *". All callers updated.
1399 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1400 "struct symtab *" argument to "struct compunit_symtab *".
1401 All callers updated.
1402 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1403 result to "struct compunit_symtab *". All callers updated.
1404 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1405 Change result to "struct compunit_symtab *". All callers updated.
1406 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1407 hange type to "struct compunit_symtab *". All uses updated.
1408 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1409 Change type to "struct compunit_symtab *". All uses updated.
1410 * buildsym.c (struct buildsym_compunit): New struct.
1411 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1412 (buildsym_compunit): New static global.
1413 (finish_block_internal): Update to fetch objfile from
1415 (make_blockvector): Delete objfile argument.
1416 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1417 debugformat, producer.
1418 (start_buildsym_compunit): New function.
1419 (free_buildsym_compunit): Renamed from free_subfiles_list.
1420 All callers updated.
1421 (patch_subfile_names): Rewrite to use buildsym_compunit.
1422 (get_compunit_symtab): New function.
1423 (get_macro_table): Delete argument comp_dir. All callers updated.
1424 (start_symtab): Change result to "struct compunit_symtab *".
1425 All callers updated. Create the subfile of the main source file.
1426 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1427 (reset_symtab_globals): Update.
1428 (end_symtab_get_static_block): Update to use buildsym_compunit.
1429 (end_symtab_without_blockvector): Rewrite.
1430 (end_symtab_with_blockvector): Change result to
1431 "struct compunit_symtab *". All callers updated.
1432 Update to use buildsym_compunit. Don't set symtab->dirname,
1433 instead set it in the compunit.
1434 Explicitly make sure main symtab is first in its list.
1435 Set debugformat, producer, blockvector, block_line_section, and
1436 macrotable in the compunit.
1437 (end_symtab_from_static_block): Change result to
1438 "struct compunit_symtab *". All callers updated.
1439 (end_symtab, end_expandable_symtab): Ditto.
1440 (set_missing_symtab): Change symtab argument to
1441 "struct compunit_symtab *". All callers updated.
1442 (augment_type_symtab): Ditto.
1443 (record_debugformat): Update to use buildsym_compunit.
1444 (record_producer): Update to use buildsym_compunit.
1445 * buildsym.h (struct subfile) <dirname>: Delete.
1446 <producer, debugformat>: Delete.
1447 <buildsym_compunit>: New member.
1448 (get_compunit_symtab): Declare.
1449 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1450 from primary_symtab. Change type to "struct compunit_symtab *".
1452 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1453 All callers updated.
1454 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1455 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1456 symtab. Change type to "struct compunit_symtab *". All uses updated.
1457 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1458 All callers updated.
1459 (dw2_find_last_source_symtab): Ditto.
1460 (dw2_lookup_symbol): Ditto.
1461 (recursively_find_pc_sect_compunit_symtab): Renamed from
1462 recursively_find_pc_sect_symtab. Change result to
1463 "struct compunit_symtab *". All callers updated.
1464 (dw2_find_pc_sect_compunit_symtab): Renamed from
1465 dw2_find_pc_sect_symtab. Change result to
1466 "struct compunit_symtab *". All callers updated.
1467 (get_compunit_symtab): Renamed from get_symtab. Change result to
1468 "struct compunit_symtab *". All callers updated.
1469 (recursively_compute_inclusions): Change type of immediate_parent
1470 argument to "struct compunit_symtab *". All callers updated.
1471 (compute_compunit_symtab_includes): Renamed from
1472 compute_symtab_includes. All callers updated. Rewrite to compute
1473 includes of compunit_symtabs and not symtabs.
1474 (process_full_comp_unit): Update to work with struct compunit_symtab.
1475 (process_full_type_unit): Ditto.
1476 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1477 (dwarf_decode_lines): Remove special case handling of main subfile.
1478 (macro_start_file): Delete argument comp_dir. All callers updated.
1479 (dwarf_decode_macro_bytes): Ditto.
1480 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1481 use struct compunit_symtab.
1482 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1483 * jit.c (finalize_symtab): Build compunit_symtab.
1484 * jv-lang.c (get_java_class_symtab): Change result to
1485 "struct compunit_symtab *". All callers updated.
1486 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1487 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1488 comp_dir. Change type to "struct compunit_symtab *".
1490 (new_macro_table): Change comp_dir argument to cust,
1491 "struct compunit_symtab *". All callers updated.
1492 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1493 nr_primary_symtabs. All uses updated.
1494 (count_symtabs_and_blocks): Update to handle compunits.
1495 (report_command_stats): Update output, "primary symtabs" renamed to
1497 * mdebugread.c (new_symtab): Change result to
1498 "struct compunit_symtab *". All callers updated.
1499 (parse_procedure): Change type of search_symtab argument to
1500 "struct compunit_symtab *". All callers updated.
1501 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1503 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1504 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1505 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1507 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1509 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1510 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1511 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1512 symtab. Change type to "struct compunit_symtab *". All uses updated.
1513 * psymtab.c (psymtab_to_symtab): Change result type to
1514 "struct compunit_symtab *". All callers updated.
1515 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1516 find_pc_sect_symtab_from_partial. Change result type to
1517 "struct compunit_symtab *". All callers updated.
1518 (lookup_symbol_aux_psymtabs): Change result type to
1519 "struct compunit_symtab *". All callers updated.
1520 (find_last_source_symtab_from_partial): Ditto.
1521 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1522 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1523 and macro_table from compunit.
1524 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1525 type to "struct compunit_symtab *". All callers updated.
1526 (debug_qf_lookup_symbol): Ditto.
1527 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1528 debug_qf_find_pc_sect_symtab, change result type to
1529 "struct compunit_symtab *". All callers updated.
1530 * symfile.c (allocate_symtab): Delete objfile argument.
1532 (allocate_compunit_symtab): New function.
1533 (add_compunit_symtab_to_objfile): New function.
1534 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1535 Change result type to "struct compunit_symtab *". All uses updated.
1536 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1537 Change result type to "struct compunit_symtab *". All uses updated.
1538 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1540 (dump_symtab_1): Update test for primary source symtab.
1541 (maintenance_info_symtabs): Update to handle compunit symtabs.
1542 (maintenance_check_symtabs): Ditto.
1543 * symtab.c (set_primary_symtab): Delete.
1544 (compunit_primary_filetab): New function.
1545 (compunit_language): New function.
1546 (iterate_over_some_symtabs): Change type of arguments "first",
1547 "after_last" to "struct compunit_symtab *". All callers updated.
1548 Update to loop over symtabs in each compunit.
1549 (error_in_psymtab_expansion): Rename symtab argument to cust,
1550 and change type to "struct compunit_symtab *". All callers updated.
1551 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1552 Change result type to "struct compunit_symtab *". All callers updated.
1553 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1554 Change result type to "struct compunit_symtab *". All callers updated.
1555 (find_pc_sect_line): Only loop over symtabs within selected compunit
1556 instead of all symtabs in the objfile.
1557 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1558 <compunit_symtab> New member.
1559 <block_line_section>: Moved to compunit_symtab.
1560 <locations_valid>: Ditto.
1561 <epilogue_unwind_valid>: Ditto.
1562 <macro_table>: Ditto.
1564 <debugformat>: Ditto.
1567 <call_site_htab>: Ditto.
1571 (SYMTAB_COMPUNIT): New macro.
1572 (SYMTAB_BLOCKVECTOR): Update definition.
1573 (SYMTAB_OBJFILE): Update definition.
1574 (SYMTAB_DIRNAME): Update definition.
1575 (struct compunit_symtab): New type. Common members among all source
1576 symtabs within a compilation unit moved here. All uses updated.
1577 (COMPUNIT_OBJFILE): New macro.
1578 (COMPUNIT_FILETABS): New macro.
1579 (COMPUNIT_DEBUGFORMAT): New macro.
1580 (COMPUNIT_PRODUCER): New macro.
1581 (COMPUNIT_DIRNAME): New macro.
1582 (COMPUNIT_BLOCKVECTOR): New macro.
1583 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1584 (COMPUNIT_LOCATIONS_VALID): New macro.
1585 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1586 (COMPUNIT_CALL_SITE_HTAB): New macro.
1587 (COMPUNIT_MACRO_TABLE): New macro.
1588 (ALL_COMPUNIT_FILETABS): New macro.
1589 (compunit_symtab_ptr): New typedef.
1590 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1592 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1594 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1595 if the TYPE_CODE of range_type's base type does not match
1596 the TYPE_CODE of encoding_type's base type.
1598 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1600 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1603 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1605 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1606 (ada_is_redundant_index_type_desc): New function.
1607 (to_fixed_array_type): Ignore parallel XA type if redundant.
1609 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1611 * ada-lang.c (constrained_packed_array_type): Set the length
1612 of the return array as if both bounds where zero if that
1613 returned array's index type is dynamic.
1615 2014-11-19 Yao Qi <yao@codesourcery.com>
1617 * config/i386/go32.mh (CC): Remove.
1619 2014-11-18 Doug Evans <xdje42@gmail.com>
1621 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1624 2014-11-18 Doug Evans <xdje42@gmail.com>
1626 * buildsym.c (buildsym_objfile): New static global.
1627 (buildsym_comp_dir): New static global.
1628 (finish_block_internal): Delete arg objfile. All callers updated.
1629 (finish_block): Delete arg objfile. All callers updated.
1630 (start_subfile): Delete arg dirname. All callers updated.
1631 (patch_subfile_names): Update buildsym_comp_dir.
1632 (get_macro_table): Delete arg objfile. All callers updated.
1633 (start_symtab): New arg objfile. All callers updated.
1634 Rename arg dirname to comp_dir.
1635 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1636 (end_symtab_get_static_block): Delete arg objfile. All callers
1638 (end_symtab_without_blockvector): Ditto.
1639 (end_symtab_with_blockvector): Ditto.
1640 (end_symtab_from_static_block): Ditto.
1641 (end_symtab): Ditto.
1642 (end_expandable_symtab): Ditto.
1643 (augment_type_symtab): Ditto.
1644 * coffread.c (coff_start_symtab): New arg objfile. All callers
1647 2014-11-18 Doug Evans <xdje42@gmail.com>
1649 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1652 2014-11-18 Doug Evans <xdje42@gmail.com>
1654 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1655 symtab.dirname updated to use it.
1657 2014-11-18 Doug Evans <xdje42@gmail.com>
1659 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1660 symtab.objfile updated to use it.
1662 2014-11-18 Doug Evans <xdje42@gmail.com>
1664 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1666 2014-11-18 Doug Evans <xdje42@gmail.com>
1668 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1670 * findvar.c (default_read_var_value): Ditto.
1671 * jv-lang.c (add_class_symtab_symbol): Ditto.
1672 * parse.c (operator_check_standard): Ditto.
1673 * printcmd.c (address_info): Ditto.
1674 * symtab.c (fixup_symbol_section): Ditto.
1675 (skip_prologue_sal): Ditto.
1676 * tracepoint.c (scope_info): Ditto.
1677 * valops.c (find_function_in_inferior): Ditto.
1678 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1679 * python/py-symbol.c (set_symbol): Ditto.
1681 2014-11-18 Doug Evans <xdje42@gmail.com>
1683 * buildsym.c (main_subfile): New static global.
1684 (free_subfiles_list): New function.
1685 (start_symtab): Set main_subfile.
1686 (restart_symtab): Replace init of subfiles, current_subfile with
1687 call to free_subfiles_list.
1688 (watch_main_source_file_lossage): Use main_subfile.
1689 (reset_symtab_globals): Replace init of current_subfile with call
1690 to free_subfiles_list.
1691 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1692 functions, split out from ...
1693 (end_symtab_from_static_block): ... here. Rewrite to call them.
1695 2014-11-18 Doug Evans <xdje42@gmail.com>
1697 The result of symtab expansion is always a primary symtab.
1698 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1699 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1700 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1701 (psymtab_to_symtab): Add comment and assert.
1702 (map_matching_symbols_psymtab): Remove unnecessary test for
1705 2014-11-15 Doug Evans <xdje42@gmail.com>
1708 * symtab.c (find_pc_line_symtab): New function.
1709 * symtab.h (find_pc_line_symtab): Declare.
1710 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1712 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1713 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1714 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1715 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1716 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1717 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1719 2014-11-15 Doug Evans <xdje42@gmail.com>
1721 * symtab.c (expand_symtab_containing_pc): Renamed from
1722 find_pc_sect_symtab_via_partial. All callers updated.
1724 2014-11-15 Yao Qi <yao@codesourcery.com>
1726 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1728 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1730 * common/common-defs.h: Move <stdarg.h> #include ahead of
1733 2014-11-14 Pedro Alves <palves@redhat.com>
1735 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1736 [!PHONY_ICONV] (gdb_iconv): New function.
1737 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1739 2014-11-13 Doug Evans <dje@google.com>
1742 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1743 "(anonymous namespace)".
1745 2014-11-13 Doug Evans <dje@google.com>
1747 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1750 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1752 * NEWS (maint set target-async): Fix typo.
1754 2014-11-12 Pedro Alves <palves@redhat.com>
1756 * infrun.c (enum infwait_states, infwait_state): Delete.
1758 2014-11-12 Pedro Alves <palves@redhat.com>
1760 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1761 Rewrite stepping over a permanent breakpoint.
1762 (thread_still_needs_step_over, proceed): Don't set
1763 stepping_over_breakpoint for permanent breakpoints.
1764 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1765 single-step breakpoints out of the target on hardware step
1767 (process_event_stop_test): If stepping a permanent breakpoint
1768 doesn't hit the step-resume breakpoint, delete the step-resume
1770 (switch_back_to_stepped_thread): Also check if the stepped thread
1771 has advanced already on hardware step targets.
1772 (currently_stepping): Return true if the thread stepped a
1775 2014-11-12 Pedro Alves <palves@redhat.com>
1777 Mark locations as permanent, not the whole breakpoint.
1778 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1779 (mark_breakpoints_out): Don't mark permanent breakpoints as
1781 (breakpoint_init_inferior): Use mark_breakpoints_out.
1782 (breakpoint_here_p): Adjust.
1783 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1784 of permanent breakpoints.
1785 (make_breakpoint_permanent): Mark each location as permanent,
1786 instead of marking the breakpoint.
1787 (add_location_to_breakpoint): If the location is permanent, mark
1788 it as such, and as inserted.
1789 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1790 (bp_location_compare, update_global_location_list): Adjust.
1791 (update_breakpoint_locations): Don't make the breakpoint permanent
1793 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1795 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1796 (struct bp_location) <permanent>: New field.
1797 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1798 reference to bp_permanent.
1800 2014-11-12 Pedro Alves <palves@redhat.com>
1802 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1803 * arch-utils.h (default_skip_permanent_breakpoint): New
1805 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1806 Install default_skip_permanent_breakpoint as default method.
1807 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1808 (i386_gdbarch_init): Don't install it.
1809 * infrun.c (resume): Assume there's always a
1810 gdbarch_skip_permanent_breakpoint implementation.
1811 * gdbarch.h, gdbarch.c: Regenerate.
1813 2014-11-11 Daniel Colascione <dancol@dancol.org>
1815 Warn about cross-PID-namespace debugging.
1816 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1817 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1818 * linux-thread-db.c (check_pid_namespace_match): New function.
1819 (thread_db_inferior_created): Call it.
1821 2014-11-10 Doug Evans <xdje42@gmail.com>
1823 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1824 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1826 2014-11-10 Doug Evans <xdje42@gmail.com>
1828 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1830 2014-11-10 Doug Evans <xdje42@gmail.com>
1833 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1834 (lookup_static_symbol): Move definition to new location and rewrite.
1835 (lookup_symbol_in_objfile): New function.
1836 (lookup_symbol_global_iterator_cb): Call it.
1838 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1840 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1842 2014-11-07 Pedro Alves <palves@redhat.com>
1844 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1845 check if we did a "nexti" inside a prologue.
1846 * symtab.c (in_prologue): Delete function.
1847 * symtab.h (in_prologue): Delete declaration.
1849 2014-11-06 Doug Evans <xdje42@gmail.com>
1851 * symtab.h (lookup_global_symbol): Improve function comment.
1853 2014-11-06 Doug Evans <xdje42@gmail.com>
1855 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1856 All callers updated.
1857 * symtab.h (lookup_global_symbol): Update decl.
1858 (lookup_static_symbol): Move decl to better location.
1860 2014-11-06 Doug Evans <xdje42@gmail.com>
1862 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1864 2014-11-06 Doug Evans <xdje42@gmail.com>
1866 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1867 All callers updated.
1868 (lookup_symbol_in_all_objfiles): Renamed from
1869 lookup_symbol_aux_symtabs. All callers updated.
1870 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1871 All callers updated.
1872 (lookup_symbol_in_objfile_symtabs): Renamed from
1873 lookup_symbol_aux_objfile. All callers updated.
1875 2014-11-06 Doug Evans <xdje42@gmail.com>
1877 * symtab.c (lookup_symbol_in_block): Renamed from
1878 lookup_symbol_aux_block. All callers updated.
1880 2014-11-06 Doug Evans <xdje42@gmail.com>
1882 * symtab.c (lookup_static_symbol): Renamed from
1883 lookup_static_symbol_aux. All callers updated.
1884 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1885 All callers updated.
1887 2014-11-06 Doug Evans <xdje42@gmail.com>
1889 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1890 * block.c (block_lookup_symbol): Use it.
1891 * cp-support.c (make_symbol_overload_list_block): Use it.
1892 * symtab.c (iterate_over_symbols): Use it.
1894 2014-11-06 Doug Evans <xdje42@gmail.com>
1896 * symtab.c (lookup_block_symbol): Moved to ...
1897 * block.c (block_lookup_symbol): ... here and renamed.
1898 All callers updated.
1899 * block.h (block_lookup_symbol): Declare.
1900 * symtab.h (lookup_block_symbol): Delete.
1902 2014-11-06 Doug Evans <xdje42@gmail.com>
1904 * ada-lang.c (ada_make_symbol_completion_list): Use
1905 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1906 * symtab.c (lookup_objfile_from_block): Ditto.
1908 2014-11-06 Doug Evans <xdje42@gmail.com>
1910 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1913 2014-11-06 Doug Evans <xdje42@gmail.com>
1915 * objfiles.c (get_objfile_arch): Constify.
1916 * objfiles.h (get_objfile_arch): Update prototype.
1917 * solib.c (solib_global_lookup): Fetch arch from objfile,
1920 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1922 * nios2-tdep.c (wild_insn): Delete.
1923 (profiler_insn, irqentry_insn): Delete.
1924 (nios2_match_sequence): Delete.
1925 (nios2_analyze_prologue): Update comments. Remove matching
1926 of obsolete profiler_insn and irqentry_insn sequences.
1928 2014-11-05 Alan Modra <amodra@gmail.com>
1930 * charset.c (convert_between_encodings): Shrink obstack using
1932 * minsyms.c (install_minimal_symbols): Likewise.
1933 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1934 to char* before doing pointer arithmetic.
1936 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1938 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1940 2014-11-04 Pedro Alves <palves@redhat.com>
1942 * breakpoint.c (breakpoint_thread_match): Delete function.
1943 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1945 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1948 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1949 the method args also under EVAL_SKIP when evaluating method
1950 calls under EVAL_SKIP.
1952 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1954 * dwarf2loc.c (read_pieced_value): Do big endian
1955 processing only if gdb_regnum is not -1.
1956 (write_pieced_value): Ditto.
1958 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1960 * arm-linux-tdep.c (arm_linux_init_abi): Use
1961 info.byte_order_for_code to choose endianity of breakpoint
1962 instructions snippets.
1964 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1966 * arm-tdep.c (extract_arm_insn): Use
1967 gdbarch_byte_order_for_code to read arm instruction.
1969 2014-11-02 Doug Evans <xdje42@gmail.com>
1971 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1973 2014-11-02 Doug Evans <xdje42@gmail.com>
1975 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1976 main_subfile before returning.
1978 2014-10-31 Doug Evans <xdje42@gmail.com>
1980 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1981 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1983 2014-10-31 Doug Evans <xdje42@gmail.com>
1985 * valops.c (value_cast_pointers): Fix whitespace.
1986 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1989 2014-10-30 Doug Evans <dje@google.com>
1991 * NEWS: Mention ability add attributes to gdb.Objfile and
1992 gdb.Progspace objects.
1993 * python/py-objfile.c (objfile_object): New member dict.
1994 (objfpy_dealloc): Py_XDECREF dict.
1995 (objfpy_initialize): Initialize dict.
1996 (objfile_getset): Add __dict__.
1997 (objfile_object_type): Set tp_dictoffset member.
1998 * python/py-progspace.c (progspace_object): New member dict.
1999 (pspy_dealloc): Py_XDECREF dict.
2000 (pspy_initialize): Initialize dict.
2001 (pspace_getset): Add __dict__.
2002 (pspace_object_type): Set tp_dictoffset member.
2004 2014-10-30 Yao Qi <yao@codesourcery.com>
2006 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
2007 replace '\\' with '\\\\'.
2009 2014-10-29 Joel Brobecker <brobecker@adacore.com>
2013 2014-10-29 Pedro Alves <palves@redhat.com>
2016 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
2017 instead of assuming a thread with a stepping range is always
2020 2014-10-29 Pedro Alves <palves@redhat.com>
2023 * event-top.c (change_line_handler): Call
2024 gdb_rl_callback_handler_remove instead of
2025 rl_callback_handler_remove.
2026 (callback_handler_installed): New global.
2027 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2028 (gdb_rl_callback_handler_reinstall): New functions.
2029 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
2030 gdb_rl_callback_handler_install instead of
2031 rl_callback_handler_remove and rl_callback_handler_install.
2032 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
2033 instead of rl_callback_handler_remove.
2034 * event-top.h (gdb_rl_callback_handler_remove)
2035 (gdb_rl_callback_handler_install)
2036 (gdb_rl_callback_handler_reinstall): New declarations.
2037 * infrun.c (reinstall_readline_callback_handler_cleanup): New
2039 (fetch_inferior_event): Install it.
2040 * top.c (gdb_readline_wrapper_line) Call
2041 gdb_rl_callback_handler_remove instead of
2042 rl_callback_handler_remove.
2043 (gdb_readline_wrapper_cleanup): Don't call
2044 rl_callback_handler_install.
2046 2014-10-29 Pedro Alves <palves@redhat.com>
2048 * event-top.c (command_line_handler): Clear the first byte of
2049 linebuffer, when it is first allocated.
2051 2014-10-29 Pedro Alves <palves@redhat.com>
2053 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
2056 2014-10-29 Pedro Alves <palves@redhat.com>
2060 * tui/tui-interp.c (tui_is_toplevel): Delete global.
2061 (tui_allowed_p): Delete function.
2062 * tui/tui.c: Include "interps.h".
2063 (tui_enable): Don't use tui_allowed_p. Error out here with
2064 detailed error messages if the TUI is the top level interpreter,
2065 or if output is not a terminal. Use newterm instead of initscr,
2066 and error out if initializing the terminal fails. Also error out if
2067 the terminal doesn't support cursor addressing.
2068 * tui/tui.h (tui_allowed_p): Delete declaration.
2070 2014-10-29 Joel Brobecker <brobecker@adacore.com>
2072 * arm-tdep.c (arm_skip_stack_protector): Return early if
2073 address loaded by first "ldr" instruction does not have
2074 a corresponding minimal symbol. Update comment.
2076 2014-10-29 Yao Qi <yao@codesourcery.com>
2078 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
2079 loaded address correctly of ldr instruction.
2081 2014-10-28 Pedro Alves <palves@redhat.com>
2084 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
2086 * infrun.c (resume) <stepping breakpoint instruction>: Set the
2087 thread's stepped_breakpoint field. Skip if reverse debugging.
2089 (init_thread_stepping_state, handle_signal_stop): Clear the
2090 thread's stepped_breakpoint field.
2092 2014-10-27 Pedro Alves <palves@redhat.com>
2094 * remote.c (remote_thread_alive): New, factored out from ...
2095 (remote_thread_alive): ... this.
2096 (remote_update_thread_list): Bail out before deleting threads if
2097 the target returned an empty list, and, the current thread has a
2100 2014-10-27 Pedro Alves <palves@redhat.com>
2102 * infrun.c (handle_signal_stop): Also skip handlers when a random
2103 signal arrives while handling a "stepi" or a "nexti". Set the
2104 thread's 'step_after_step_resume_breakpoint' flag.
2106 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
2108 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
2109 (arm_record_ld_st_imm_offset): Reimplement to cover all
2110 load/store cases for ARM opcode 010.
2111 (arm_record_ld_st_multiple): Reimplement to cover all
2112 load/store cases for ARM opcode 100.
2114 2014-10-26 Doug Evans <xdje42@gmail.com>
2116 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
2118 2014-10-26 Doug Evans <xdje42@gmail.com>
2120 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
2121 parameter "kind" to "block_index".
2122 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
2124 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
2126 2014-10-26 Doug Evans <xdje42@gmail.com>
2128 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
2130 2014-10-26 Doug Evans <xdje42@gmail.com>
2132 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
2135 2014-10-26 Doug Evans <xdje42@gmail.com>
2137 * parser-defs.h (block_found): Move decl from here ...
2138 * symtab.h (block_found): ... to here.
2140 2014-10-26 Doug Evans <xdje42@gmail.com>
2142 * symtab.h (struct field_of_this_result): Fix typo in comment.
2143 (lookup_symbol_in_language): Move function comment here.
2144 (lookup_symbol): Improve function comment.
2145 (basic_lookup_symbol_nonlocal): Ditto.
2146 (lookup_symbol_static, lookup_symbol_global): Ditto.
2147 (lookup_symbol_aux_block): Ditto.
2148 (lookup_language_this): Add function comment.
2149 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2151 (lookup_block_symbol): Improve function comment.
2152 (lookup_struct): Fix capitalization in function comment.
2153 (lookup_transparent_type): Add function comment.
2154 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2155 Improve function comment.
2156 (lookup_objfile_from_block): Add function comment.
2157 * symtab.c (lookup_symbol_in_language): Update function comment.
2158 (lookup_symbol, lookup_language_this): Ditto.
2159 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2160 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2161 (basic_lookup_symbol_nonlocal): Ditto.
2162 (lookup_symbol_static, lookup_symbol_global): Ditto.
2163 (lookup_transparent_type, lookup_block_symbol): Ditto.
2165 2014-10-25 Doug Evans <xdje42@gmail.com>
2167 * symtab.c (types_info): Delete forward decl.
2168 (functions_info, variables_info, sources_info): Ditto.
2169 (_initialize_symtab): Rewrite forward decl to use
2170 initialize_file_ftype.
2172 2014-10-25 Doug Evans <xdje42@gmail.com>
2174 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2176 2014-10-25 Doug Evans <xdje42@gmail.com>
2178 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2179 of local var child_die.
2181 2014-10-24 Don Breazeal <donb@codesourcery.com>
2183 * infrun.c (follow_fork_inferior): Update fork message printing
2184 to use target_terminal_ours_for_output instead of
2185 target_terminal_ours, to use _() for all format strings, to print
2186 "vfork" instead of "fork" for vforks, and to add a detach message.
2187 (handle_vfork_child_exec_or_exit): Update message printing to use
2188 target_terminal_ours_for_output instead of target_terminal_ours, to
2189 use _() for all format strings, and to fix some formatting.
2191 2014-10-24 Pedro Alves <palves@redhat.com>
2193 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2194 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2195 * config/vax/vax.mh: Delete.
2196 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2197 obsolete configurations section.
2198 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2199 * vax-nat.c: Delete file.
2201 2014-10-24 Pedro Alves <palves@redhat.com>
2203 * NEWS (Removed targets): Add OS/arch column.
2205 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2207 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2208 on the arg type of a constructor only if it is of reference type.
2210 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2212 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2213 accessors and constants from nios2 opcodes update.
2214 (nios2_get_next_pc): Likewise.
2216 2014-10-19 Doug Evans <xdje42@gmail.com>
2218 * gdbthread.h (set_running): Fix comment.
2219 (set_executing, finish_thread_state): Fix comment.
2221 2014-10-18 Doug Evans <xdje42@gmail.com>
2223 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2225 2014-10-17 Doug Evans <dje@google.com>
2227 * NEWS: Mention new event gdb.clear_objfiles.
2228 * python/py-event.h (emit_clear_objfiles_event): Clear
2229 * python/py-events.h (events_object): New member clear_objfiles.
2230 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2232 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2233 emit clear_objfiles event.
2234 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2236 (emit_clear_objfiles_event): New function.
2237 (clear_objfiles): New event.
2238 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2240 * python/python.c (_initialize_python): Call
2241 gdbpy_initialize_clear_objfiles_event.
2243 2014-10-17 Doug Evans <dje@google.com>
2245 * NEWS: Mention new gdb.Objfile.progspace attribute.
2246 * python/py-objfile.c (objfpy_get_progspace): New function.
2247 (objfile_getset): New entry for "progspace".
2249 2014-10-17 Pedro Alves <palves@redhat.com>
2252 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2253 returns a copy of the input.
2254 (run_command_1, continue_command, step_1, jump_command)
2255 (signal_command, until_command, advance_command, finish_command)
2256 (attach_command): Adjust and install a cleanup to free the
2259 2014-10-17 Pedro Alves <palves@redhat.com>
2262 * infcmd.c (continue_1): If continuing all threads in the
2263 foreground, make sure the inferior's terminal settings are put in
2266 2014-10-17 Pedro Alves <palves@redhat.com>
2269 * annotate.c (annotate_breakpoints_invalid): Use
2270 target_terminal_our_for_output instead of target_terminal_ours.
2271 Give back the terminal to the target.
2272 (annotate_frames_invalid): Likewise.
2274 2014-10-17 Pedro Alves <palves@redhat.com>
2276 * target.c (enum terminal_state): New enum.
2277 (terminal_state): New global.
2278 (target_terminal_init): New function.
2279 (target_terminal_inferior): Skip if inferior already owns the
2281 (target_terminal_ours, target_terminal_ours_for_output): New
2283 * target.h (target_terminal_init): Convert to function prototype.
2284 (target_terminal_ours_for_output): Convert to function prototype
2286 (target_terminal_ours): Convert to function prototype and tweak
2288 * windows-nat.c (do_initial_windows_stuff): Call
2289 target_terminal_init instead of child_terminal_init_with_pgrp.
2291 2014-10-17 Pedro Alves <palves@redhat.com>
2293 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2294 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2295 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2297 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2298 * ada-lang.h [__alpha__ && __osf__]
2299 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2300 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2301 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2303 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2305 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2306 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2307 * configure: Regenerate.
2308 * configure.ac: Remove references to osf.
2309 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2310 section. Remove all other references to osf.
2311 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2312 Remove all other references to osf.
2313 * dec-thread.c: Delete file.
2314 * defs.h (GDB_OSABI_OSF1): Delete.
2315 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2317 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2318 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2320 (unconditionally_kill_inferior)
2321 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2322 * solib-osf.c: Delete file.
2324 2014-10-17 Pedro Alves <palves@redhat.com>
2326 * remote.c (clear_threads_listing_context): Move higher up, out of
2327 the HAVE_LIBEXPAT guard.
2329 2014-10-16 Tristan Gingold <gingold@adacore.com>
2331 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2332 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2335 2014-10-15 Pedro Alves <palves@redhat.com>
2337 * dec-thread.c (dec_thread_count_gdb_threads)
2338 (dec_thread_add_gdb_thread): Delete.
2339 (dec_thread_update_thread_list): Delete.
2340 (dec_thread_find_new_threads): Rename to ...
2341 (dec_thread_update_thread_list): ... this. Delete GDB-size
2342 threads that are no longer found in dec_thread_list.
2343 (resync_thread_list): Delete.
2344 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2347 2014-10-15 Pedro Alves <palves@redhat.com>
2349 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2350 * remote.c (remote_update_thread_list): Skip calling prune_threads
2351 if any thread listing method is supported, and instead walk over
2352 the set of remote threads listed, deleting those that are not
2353 found in GDB's thread list.
2355 2014-10-15 Pedro Alves <palves@redhat.com>
2357 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2358 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2359 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2360 (bsd_uthread_target): Adjust.
2361 * corelow.c (core_open): Adjust.
2362 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2363 (dec_thread_update_thread_list): New function.
2364 (init_dec_thread_ops): Adjust.
2365 * gdbthread.h (prune_threads): New declaration.
2366 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2367 (thread_db_update_thread_list): ... this. Call prune_threads.
2368 (init_thread_db_ops): Adjust.
2369 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2370 (procfs_update_thread_list): ... this. Call prune_threads.
2371 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2373 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2374 (obsd_update_thread_list): ... this. Call prune_threads.
2375 (obsd_add_target): Adjust.
2376 * procfs.c (procfs_target): Adjust.
2377 (procfs_notice_thread): Update comment.
2378 (procfs_find_new_threads): Rename to ...
2379 (procfs_update_thread_list): ... this. Call prune_threads.
2380 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2382 (ravenscar_wait): Adjust.
2383 (ravenscar_find_new_threads): Rename to ...
2384 (ravenscar_update_thread_list): ... this. Call prune_threads.
2385 (init_ravenscar_thread_ops): Adjust.
2386 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2387 (record_btrace_update_thread_list): ... this. Adjust comment.
2388 (init_record_btrace_ops): Adjust.
2389 * remote.c (remote_threads_info): Rename to ...
2390 (remote_update_thread_list): ... this. Call prune_threads.
2391 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2393 * sol-thread.c (check_for_thread_db): Adjust.
2394 (sol_find_new_threads_callback): Rename to ...
2395 (sol_update_thread_list_callback): ... this.
2396 (sol_find_new_threads): Rename to ...
2397 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2398 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2399 * target-delegates.c: Regenerate.
2400 * target.c (target_find_new_threads): Rename to ...
2401 (target_update_thread_list): ... this.
2402 * target.h (struct target_ops): Rename to_find_new_threads field
2403 to to_update_thread_list.
2404 (target_find_new_threads): Rename to ...
2405 (target_update_thread_list): ... this.
2406 * thread.c (prune_threads): Make extern.
2407 (update_thread_list): Adjust.
2409 2014-10-15 Pedro Alves <palves@redhat.com>
2411 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2412 Add describing comment. Return -1 if the qL packet is not
2414 (struct thread_item, thread_item_t): Move higher up in
2415 the file. Add comments.
2416 (struct threads_parsing_context): Move higher up in
2417 the file, add comments, and remote to ...
2418 (struct threads_listing_context): ... this.
2419 (remote_newthread_step): Don't add the thread to GDB's thread
2420 database here. Instead push it to the thread_listing_context
2422 (remote_find_new_threads): Rename to ...
2423 (remote_get_threads_with_ql): ... this. Add target_ops and
2424 targets_listing_context parameters. Pass down context.
2425 (start_thread): Adjust.
2426 (clear_threads_parsing_context): Rename to ...
2427 (clear_threads_listing_context): ... this.
2428 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2429 remote_threads_info.
2430 (remote_get_threads_with_qthreadinfo): Ditto.
2431 (remote_threads_info): Reimplement.
2433 2014-10-15 Pedro Alves <palves@redhat.com>
2435 * infrun.c (resume): Don't force displaced-stepping for all
2436 single-steps on software single-stepping archs.
2438 2014-10-15 Pedro Alves <palves@redhat.com>
2440 * breakpoint.c (single_step_breakpoints): Delete global.
2441 (insert_single_step_breakpoint): Adjust to store the breakpoint
2442 pointer in the current thread.
2443 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2444 (cancel_single_step_breakpoints): Delete functions.
2445 (breakpoint_has_location_inserted_here): Make extern.
2446 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2448 * breakpoint.h (breakpoint_has_location_inserted_here): New
2450 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2451 (cancel_single_step_breakpoints): Remove declarations.
2452 * gdbthread.h (struct thread_control_state)
2453 <single_step_breakpoints>: New field.
2454 (delete_single_step_breakpoints)
2455 (thread_has_single_step_breakpoints_set)
2456 (thread_has_single_step_breakpoint_here): New declarations.
2457 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2458 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2459 (singlestep_pc): Delete globals.
2460 (infrun_thread_ptid_changed): Remove references to removed
2462 (resume_cleanups): Delete the current thread's single-step
2464 (maybe_software_singlestep): Remove references to removed globals.
2465 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2466 delete_single_step_breakpoints.
2467 (init_wait_for_inferior): Remove references to removed globals.
2468 (delete_thread_infrun_breakpoints): Delete the thread's
2469 single-step breakpoints too.
2470 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2471 single-step breakpoints here.
2472 (delete_stopped_threads_single_step_breakpoints): New function.
2473 (adjust_pc_after_break): Adjust to use
2474 thread_has_single_step_breakpoints_set.
2475 (handle_inferior_event): Remove references to removed globals.
2476 Use delete_stopped_threads_single_step_breakpoints.
2477 (handle_signal_stop): Adjust to per-thread single-step
2478 breakpoints. Swap test order to do cheaper tests first.
2479 (switch_back_to_stepped_thread): Extend debug output. Remove
2480 references to removed globals.
2481 * record-full.c (record_full_wait_1): Adjust to per-thread
2482 single-step breakpoints.
2483 * thread.c (delete_single_step_breakpoints)
2484 (thread_has_single_step_breakpoints_set)
2485 (thread_has_single_step_breakpoint_here): New functions.
2486 (clear_thread_inferior_resources): Also delete the thread's
2487 single-step breakpoints.
2489 2014-10-15 Pedro Alves <palves@redhat.com>
2491 * thread.c (delete_thread_breakpoint): New function.
2492 (delete_step_resume_breakpoint)
2493 (delete_exception_resume_breakpoint): Use it.
2494 (delete_at_next_stop): New function.
2495 (clear_thread_inferior_resources): Use delete_at_next_stop.
2497 2014-10-15 Pedro Alves <palves@redhat.com>
2499 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2500 (breakpoint_inserted_here_p): ... here. Remove special case for
2501 software single-step breakpoints.
2502 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2503 (software_breakpoint_inserted_here_p): ... here. Remove special
2504 case for software single-step breakpoints.
2505 (bp_target_info_copy_insertion_state)
2506 (deprecated_insert_raw_breakpoint)
2507 (deprecated_remove_raw_breakpoint): Delete functions.
2508 * breakpoint.h (deprecated_insert_raw_breakpoint)
2509 (deprecated_remove_raw_breakpoint): Remove declarations.
2511 2014-10-15 Pedro Alves <palves@redhat.com>
2514 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2515 Delete array globals.
2516 (single_step_breakpoints): New global.
2517 (breakpoint_xfer_memory): Remove special handling for single-step
2519 (update_breakpoints_after_exec): Delete bp_single_step
2521 (detach_breakpoints): Remove special handling for single-step
2523 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2524 (bpstat_stop_status): Add comment.
2525 (bpstat_what, bptype_string, print_one_breakpoint_location)
2526 (adjust_breakpoint_address, init_bp_location): Handle
2528 (new_single_step_breakpoint): New function.
2529 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2530 handling for single-step breakpoints.
2531 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2532 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2534 (detach_single_step_breakpoints, find_single_step_breakpoint):
2536 (breakpoint_has_location_inserted_here): New function.
2537 (single_step_breakpoint_inserted_here_p): Rewrite.
2538 * breakpoint.h: Remove FIXME.
2539 (enum bptype) <bp_single_step>: New enum value.
2540 (insert_single_step_breakpoint): Update comment.
2541 * infrun.c (resume_cleanups)
2542 (delete_step_thread_step_resume_breakpoint): Remove single-step
2544 (fetch_inferior_event): Install a cleanup that removes infrun
2546 (switch_back_to_stepped_thread) <expect thread advanced also>:
2547 Clear step-over info.
2549 2014-10-15 Pedro Alves <palves@redhat.com>
2551 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2552 (delete_thread_infrun_breakpoints): New function, with parts
2553 salvaged from delete_step_resume_breakpoint_callback.
2554 (delete_step_thread_step_resume_breakpoint): Delete.
2555 (for_each_just_stopped_thread_callback_func): New typedef.
2556 (for_each_just_stopped_thread): New function.
2557 (delete_just_stopped_threads_infrun_breakpoints): New function.
2558 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2559 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2561 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2563 2014-10-15 Pedro Alves <palves@redhat.com>
2565 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2566 trying to step past a non-steppable watchpoint.
2567 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2569 * infrun.c (struct step_over_info): Add new field
2570 'nonsteppable_watchpoint_p' and adjust comments.
2571 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2573 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2574 (stepping_past_nonsteppable_watchpoint): New function.
2575 (step_over_info_valid_p): Also return true if stepping past a
2576 nonsteppable watchpoint.
2577 (proceed): Adjust call to set_step_over_info. Remove reference to
2579 (init_wait_for_inferior): Remove reference to init_infwait_state.
2580 (waiton_ptid): Delete global.
2581 (struct execution_control_state)
2582 <stepped_after_stopped_by_watchpoint>: Delete field.
2583 (wait_for_inferior, fetch_inferior_event): Always pass
2584 minus_one_ptid to target_wait.
2585 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2587 (init_infwait_state): Delete function.
2588 (handle_inferior_event): Remove infwait_state handling.
2589 (handle_signal_stop) <watchpoints handling>: Adjust after
2590 stepped_after_stopped_by_watchpoint removal. Don't remove
2591 breakpoints here nor set infwait_state. Set the thread's
2592 stepping_over_watchpoint flag, and call keep_going instead.
2593 (keep_going): Handle stepping_over_watchpoint. Adjust
2594 set_step_over_info calls.
2595 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2598 2014-10-15 Pedro Alves <palves@redhat.com>
2600 * infrun.c (step_over_info_valid_p): New function.
2601 (resume): Use step_over_info_valid_p instead of checking the
2602 threads's trap_expected flag.
2604 2014-10-15 Doug Evans <dje@google.com>
2605 Walfred Tedeschi <walfred.tedeschi@intel.com>
2608 * python/lib/gdb/__init__.py (packages): Add "printer".
2609 * python/lib/gdb/command/bound_registers.py: Moved to ...
2610 * python/lib/gdb/printer/bound_registers.py: ... here.
2611 Add printer to global set of builtin printers. Rename printer from
2612 "bound" to "mpx_bound128".
2613 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2614 registered as global "builtin" printer.
2615 (add_builtin_pretty_printer): New function.
2616 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2617 gdb/printer/__init__.py.
2619 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2621 * Makefile.in (SFILES): Remove d-support.c.
2622 (COMMON_OBS): Remove d-support.o.
2623 * d-lang.h (d_parse_symbol): Remove declaration.
2624 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2625 * d-support.c: Remove file.
2627 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2629 * gdb/infrun.c (process_event_stop_test): Apply
2630 gdbarch_addr_bits_remove to longjmp resume address.
2632 2014-10-15 Pedro Alves <palves@redhat.com>
2634 * regformats/microblaze.dat: Delete file.
2636 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2638 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2639 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2641 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2643 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2646 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2650 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2651 with qualified args.
2653 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2655 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2656 of the case where the second operand is a pointer.
2657 <BINOP_SUB>: Likewise.
2659 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2661 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2662 only if it is not NULL.
2663 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2664 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2665 (struct probe_ops) <clear_semaphore>: Likewise.
2666 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2668 (stop_tracing): Likewise, for clear_semaphore.
2670 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2672 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2673 using language_c, instead of current_language.
2675 2014-10-13 Doug Evans <dje@google.com>
2677 * python/py-objfile.c (objfpy_initialize): New function.
2678 (objfpy_new, objfile_to_objfile_object): Call it.
2679 * python/py-progspace.c (pspy_initialize): New function.
2680 (pspy_new, pspace_to_pspace_object): Call it.
2682 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2683 Jan Kratochvil <jan.kratochvil@redhat.com>
2685 Fix "save breakpoints" for "catch" command.
2686 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2689 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2691 Fix "save breakpoints" for "disable $bpnum" command.
2692 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2694 2014-10-10 Pedro Alves <palves@redhat.com>
2696 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2697 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2698 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2699 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2701 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2702 * configure.ac: Remove references to IRIX.
2703 * configure.host: Add *-*-irix* to the obsolete hosts section.
2704 Remove all other references to irix.
2705 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2708 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2710 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2711 isn't valid, release the tdesc arch data and return NULL.
2713 2014-10-10 Pedro Alves <palves@redhat.com>
2715 * linux-tdep.c: Include observer.h.
2716 (linux_inferior_data): New global.
2717 (struct linux_info): New structure.
2718 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2719 (get_linux_inferior_data): New functions.
2720 (linux_vsyscall_range): Rename to ...
2721 (linux_vsyscall_range_raw): ... this.
2722 (linux_vsyscall_range): New function; handles caching.
2723 (_initialize_linux_tdep): Register linux_inferior_data. Install
2724 inferior_exit and inferior_appeared observers.
2726 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2727 Pedro Alves <palves@redhat.com>
2730 * solib-svr4.c (svr4_read_so_list): Rename to ...
2731 (svr4_current_sos_1): ... this and change the function comment.
2732 (svr4_current_sos): New function.
2734 2014-10-10 Pedro Alves <palves@redhat.com>
2736 * arch-utils.c (default_vsyscall_range): New function.
2737 * arch-utils.h (default_vsyscall_range): New declaration.
2738 * gdbarch.sh (vsyscall_range): New hook.
2739 * gdbarch.h, gdbarch.c: Regenerate.
2740 * linux-tdep.c (linux_vsyscall_range): New function.
2741 (linux_init_abi): Install linux_vsyscall_range as
2742 vsyscall_range gdbarch hook.
2743 * memrange.c (address_in_mem_range): New function.
2744 * memrange.h (address_in_mem_range): New declaration.
2745 * symfile-mem.c (find_vdso_size): Delete function.
2746 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2748 2014-10-10 Pedro Alves <palves@redhat.com>
2750 * infrun.c (normal_stop): Fix typo in comment.
2752 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2755 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2756 typo when using logical AND to determine instruction type.
2758 2014-10-09 Yao Qi <yao@codesourcery.com>
2760 * infrun.c (handle_signal_stop): Remove local variable
2763 2014-10-08 Stan Shebs <stan@codesourcery.com>
2765 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2767 2014-10-08 Gary Benson <gbenson@redhat.com>
2769 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2771 2014-10-08 Gary Benson <gbenson@redhat.com>
2773 * common/common-defs.h: Include common-exceptions.h.
2774 * exceptions.h: Do not include common-exceptions.h.
2776 2014-10-08 Gary Benson <gbenson@redhat.com>
2778 * common/common-defs.h: Include cleanups.h.
2779 * common/common-exceptions.c: Do not include cleanups.h.
2780 * utils.h: Likewise.
2782 2014-10-08 Gary Benson <gbenson@redhat.com>
2784 * ada-lang.c: Do not include exceptions.h.
2785 * ada-valprint.c: Likewise.
2786 * amd64-tdep.c: Likewise.
2787 * auto-load.c: Likewise.
2788 * block.c: Likewise.
2789 * break-catch-throw.c: Likewise.
2790 * breakpoint.c: Likewise.
2791 * btrace.c: Likewise.
2792 * c-lang.c: Likewise.
2793 * cli/cli-cmds.c: Likewise.
2794 * cli/cli-interp.c: Likewise.
2795 * cli/cli-script.c: Likewise.
2796 * completer.c: Likewise.
2797 * corefile.c: Likewise.
2798 * corelow.c: Likewise.
2799 * cp-abi.c: Likewise.
2800 * cp-support.c: Likewise.
2801 * cp-valprint.c: Likewise.
2802 * darwin-nat.c: Likewise.
2803 * dwarf2-frame-tailcall.c: Likewise.
2804 * dwarf2-frame.c: Likewise.
2805 * dwarf2loc.c: Likewise.
2806 * dwarf2read.c: Likewise.
2808 * event-loop.c: Likewise.
2809 * event-top.c: Likewise.
2810 * f-valprint.c: Likewise.
2811 * frame-unwind.c: Likewise.
2812 * frame.c: Likewise.
2813 * gdbtypes.c: Likewise.
2814 * gnu-v2-abi.c: Likewise.
2815 * gnu-v3-abi.c: Likewise.
2816 * guile/scm-auto-load.c: Likewise.
2817 * guile/scm-breakpoint.c: Likewise.
2818 * guile/scm-cmd.c: Likewise.
2819 * guile/scm-frame.c: Likewise.
2820 * guile/scm-lazy-string.c: Likewise.
2821 * guile/scm-param.c: Likewise.
2822 * guile/scm-symbol.c: Likewise.
2823 * guile/scm-type.c: Likewise.
2824 * hppa-hpux-tdep.c: Likewise.
2825 * i386-tdep.c: Likewise.
2826 * inf-loop.c: Likewise.
2827 * infcall.c: Likewise.
2828 * infcmd.c: Likewise.
2829 * infrun.c: Likewise.
2830 * interps.c: Likewise.
2831 * interps.h: Likewise.
2833 * linespec.c: Likewise.
2834 * linux-nat.c: Likewise.
2835 * linux-thread-db.c: Likewise.
2836 * m32r-rom.c: Likewise.
2838 * memory-map.c: Likewise.
2839 * mi/mi-cmd-break.c: Likewise.
2840 * mi/mi-cmd-stack.c: Likewise.
2841 * mi/mi-interp.c: Likewise.
2842 * mi/mi-main.c: Likewise.
2843 * monitor.c: Likewise.
2844 * nto-procfs.c: Likewise.
2845 * objc-lang.c: Likewise.
2846 * p-valprint.c: Likewise.
2847 * parse.c: Likewise.
2848 * ppc-linux-tdep.c: Likewise.
2849 * printcmd.c: Likewise.
2850 * probe.c: Likewise.
2851 * python/py-auto-load.c: Likewise.
2852 * python/py-breakpoint.c: Likewise.
2853 * python/py-cmd.c: Likewise.
2854 * python/py-finishbreakpoint.c: Likewise.
2855 * python/py-frame.c: Likewise.
2856 * python/py-framefilter.c: Likewise.
2857 * python/py-function.c: Likewise.
2858 * python/py-gdb-readline.c: Likewise.
2859 * python/py-inferior.c: Likewise.
2860 * python/py-infthread.c: Likewise.
2861 * python/py-lazy-string.c: Likewise.
2862 * python/py-linetable.c: Likewise.
2863 * python/py-param.c: Likewise.
2864 * python/py-prettyprint.c: Likewise.
2865 * python/py-symbol.c: Likewise.
2866 * python/py-type.c: Likewise.
2867 * python/py-value.c: Likewise.
2868 * python/python-internal.h: Likewise.
2869 * python/python.c: Likewise.
2870 * record-btrace.c: Likewise.
2871 * record-full.c: Likewise.
2872 * regcache.c: Likewise.
2873 * remote-fileio.c: Likewise.
2874 * remote-mips.c: Likewise.
2875 * remote.c: Likewise.
2876 * rs6000-aix-tdep.c: Likewise.
2877 * rs6000-nat.c: Likewise.
2879 * solib-darwin.c: Likewise.
2880 * solib-dsbt.c: Likewise.
2881 * solib-frv.c: Likewise.
2882 * solib-ia64-hpux.c: Likewise.
2883 * solib-spu.c: Likewise.
2884 * solib-svr4.c: Likewise.
2885 * solib.c: Likewise.
2886 * spu-tdep.c: Likewise.
2887 * stack.c: Likewise.
2888 * stap-probe.c: Likewise.
2889 * symfile-mem.c: Likewise.
2890 * symmisc.c: Likewise.
2891 * target.c: Likewise.
2892 * thread.c: Likewise.
2894 * tracepoint.c: Likewise.
2895 * tui/tui-interp.c: Likewise.
2896 * typeprint.c: Likewise.
2897 * utils.c: Likewise.
2898 * valarith.c: Likewise.
2899 * valops.c: Likewise.
2900 * valprint.c: Likewise.
2901 * value.c: Likewise.
2902 * varobj.c: Likewise.
2903 * windows-nat.c: Likewise.
2904 * xml-support.c: Likewise.
2906 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2908 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2910 (extended_mips16_next_pc): Update accordingly.
2912 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2914 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2916 (micromips_instruction_is_compact_branch): Likewise.
2917 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2918 or a compact jump, reaching a jump delay slot, or seeing a
2919 second non-prologue instruction.
2920 (micromips_scan_prologue): Also terminate scanning upon seeing a
2921 compact branch or jump, or reaching a branch or jump delay slot.
2922 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2923 or jump delay slot, or seeing a second non-prologue instruction.
2924 (mips32_instruction_has_delay_slot): Retain instruction
2925 examination code only, update arguments accordingly and move
2926 instruction fetch pieces to...
2927 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2928 (micromips_instruction_has_delay_slot): Likewise and to...
2929 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2930 (mips16_instruction_has_delay_slot): Likewise and to...
2931 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2932 (mips_single_step_through_delay): Update accordingly.
2933 (mips_adjust_breakpoint_address): Likewise.
2935 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2937 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2938 !mustbe32 also return 1 for 32-bit instructions.
2939 (mips16_instruction_has_delay_slot): Likewise. Add an
2940 explanatory comment.
2942 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2944 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2947 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2949 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2951 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2952 for the breakpoint's address. Don't preinitialize `placed_size'.
2953 (insert_bp_location): Set `reqstd_address' rather than
2955 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2956 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2958 (bkpt_remove_location): Likewise.
2959 (deprecated_insert_raw_breakpoint): Likewise.
2960 (deprecated_remove_raw_breakpoint): Likewise.
2961 (find_single_step_breakpoint): Likewise.
2962 * mem-break.c (default_memory_insert_breakpoint): Use
2963 `reqstd_address' for the breakpoint's address. Don't set
2964 `placed_address' or `placed_size' if breakpoint contents couldn't
2965 have been determined.
2966 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2967 the breakpoint's address.
2968 (remote_insert_hw_breakpoint): Likewise. Don't set
2969 `placed_address' or `placed_size' if breakpoint couldn't have been
2971 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2972 `reqstd_address' for the breakpoint's address.
2973 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2974 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2975 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2976 * microblaze-linux-tdep.c
2977 (microblaze_linux_memory_remove_breakpoint): Likewise.
2978 * monitor.c (monitor_insert_breakpoint): Likewise.
2979 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2980 (procfs_insert_hw_breakpoint): Likewise.
2981 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2982 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2983 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2984 * remote-mips.c (mips_insert_breakpoint): Likewise.
2985 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2987 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2989 * valops.c (value_assign): Check for bit field assignments
2990 before calling architecture-specific register value
2991 conversion functions.
2993 2014-10-03 Pierre Muller <muller@sourceware.org>
2995 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2997 2014-10-02 Pedro Alves <palves@redhat.com>
2999 * breakpoint.c (breakpoints_should_be_inserted_now): Use
3000 threads_are_executing.
3001 * breakpoint.h (breakpoints_should_be_inserted_now): Add
3003 * gdbthread.h (threads_are_executing): Declare.
3004 (handle_signal_stop) <random signals>: Don't print about the
3005 signal here if stopping.
3006 (end_stepping_range): Don't notify observers here.
3007 (normal_stop): Update the thread list. If stopped by a random
3008 signal or a stepping range ended, notify observers.
3009 * thread.c (threads_executing): New global.
3010 (init_thread_list): Clear 'threads_executing'.
3011 (set_executing): Set or clear 'threads_executing'.
3012 (threads_are_executing): New function.
3013 (update_threads_executing): New function.
3014 (update_thread_list): Use it.
3016 2014-10-02 Pedro Alves <palves@redhat.com>
3018 PR breakpoints/17431
3019 * breakpoint.c (update_breakpoints_after_exec): Don't create
3020 overlay, longjmp, std terminate nor exception breakpoints here.
3022 2014-10-02 Pedro Alves <palves@redhat.com>
3024 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
3026 * inferior.c (find_inferior_for_program_space): Give preference to
3027 the current inferior.
3028 * inferior.h (find_inferior_for_program_space): Update comment.
3029 * progspace.c (switch_to_program_space_and_thread): Prefer the
3030 current inferior if it's bound to the program space requested. If
3031 the inferior found doesn't have a PID yet, don't bother looking up
3033 * progspace.h (switch_to_program_space_and_thread): Adjust
3035 * thread.c (any_thread_of_process, any_live_thread_of_process):
3036 Give preference to the current thread.
3038 2014-10-01 Pedro Alves <palves@redhat.com>
3040 * breakpoint.c (insert_bp_location): Error out if inserting a
3041 software breakpoint at a read-only address.
3042 * target.c (memory_xfer_check_region): New function, factored out
3044 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
3046 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
3047 against the memory region attributes.
3049 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
3051 * NEWS: Announce new exit-code field in -list-thread-groups
3053 * inferior.c (exit_inferior_1): Don't clear exit code.
3054 (inferior_appeared): Clear exit code.
3055 * mi/mi-main.c (print_one_inferior): Add printing of the exit
3058 2014-10-01 Pedro Alves <palves@redhat.com>
3060 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
3061 GENERATED" along with emacs/vi read-only markers.
3062 * regformats/aarch64.dat: Regenerate.
3063 * regformats/arm-with-iwmmxt.dat: Regenerate.
3064 * regformats/arm-with-neon.dat: Regenerate.
3065 * regformats/arm-with-vfpv2.dat: Regenerate.
3066 * regformats/arm-with-vfpv3.dat: Regenerate.
3067 * regformats/i386/amd64-avx-linux.dat: Regenerate.
3068 * regformats/i386/amd64-avx.dat: Regenerate.
3069 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
3070 * regformats/i386/amd64-avx512.dat: Regenerate.
3071 * regformats/i386/amd64-linux.dat: Regenerate.
3072 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
3073 * regformats/i386/amd64-mpx.dat: Regenerate.
3074 * regformats/i386/amd64.dat: Regenerate.
3075 * regformats/i386/i386-avx-linux.dat: Regenerate.
3076 * regformats/i386/i386-avx.dat: Regenerate.
3077 * regformats/i386/i386-avx512-linux.dat: Regenerate.
3078 * regformats/i386/i386-avx512.dat: Regenerate.
3079 * regformats/i386/i386-linux.dat: Regenerate.
3080 * regformats/i386/i386-mmx-linux.dat: Regenerate.
3081 * regformats/i386/i386-mmx.dat: Regenerate.
3082 * regformats/i386/i386-mpx-linux.dat: Regenerate.
3083 * regformats/i386/i386-mpx.dat: Regenerate.
3084 * regformats/i386/i386.dat: Regenerate.
3085 * regformats/i386/x32-avx-linux.dat: Regenerate.
3086 * regformats/i386/x32-avx.dat: Regenerate.
3087 * regformats/i386/x32-avx512-linux.dat: Regenerate.
3088 * regformats/i386/x32-avx512.dat: Regenerate.
3089 * regformats/i386/x32-linux.dat: Regenerate.
3090 * regformats/i386/x32.dat: Regenerate.
3091 * regformats/microblaze-with-stack-protect.dat: Regenerate.
3092 * regformats/mips-dsp-linux.dat: Regenerate.
3093 * regformats/mips-linux.dat: Regenerate.
3094 * regformats/mips64-dsp-linux.dat: Regenerate.
3095 * regformats/mips64-linux.dat: Regenerate.
3096 * regformats/nios2-linux.dat: Regenerate.
3097 * regformats/rs6000/powerpc-32.dat: Regenerate.
3098 * regformats/rs6000/powerpc-32l.dat: Regenerate.
3099 * regformats/rs6000/powerpc-64l.dat: Regenerate.
3100 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
3101 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
3102 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
3103 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
3104 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
3105 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
3106 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
3107 * regformats/s390-linux32.dat: Regenerate.
3108 * regformats/s390-linux32v1.dat: Regenerate.
3109 * regformats/s390-linux32v2.dat: Regenerate.
3110 * regformats/s390-linux64.dat: Regenerate.
3111 * regformats/s390-linux64v1.dat: Regenerate.
3112 * regformats/s390-linux64v2.dat: Regenerate.
3113 * regformats/s390-te-linux64.dat: Regenerate.
3114 * regformats/s390x-linux64.dat: Regenerate.
3115 * regformats/s390x-linux64v1.dat: Regenerate.
3116 * regformats/s390x-linux64v2.dat: Regenerate.
3117 * regformats/s390x-te-linux64.dat: Regenerate.
3118 * regformats/tic6x-c62x-linux.dat: Regenerate.
3119 * regformats/tic6x-c62x.dat: Regenerate.
3120 * regformats/tic6x-c64x-linux.dat: Regenerate.
3121 * regformats/tic6x-c64x.dat: Regenerate.
3122 * regformats/tic6x-c64xp-linux.dat: Regenerate.
3123 * regformats/tic6x-c64xp.dat: Regenerate.
3125 2014-10-01 Pedro Alves <palves@redhat.com>
3127 * features/Makefile: Update comments.
3128 (XMLTOC): List all xml files we build C files from.
3129 (clean-cfiles): New rule.
3131 2014-10-01 Pedro Alves <palves@redhat.com>
3133 * features/i386/amd64-avx512-linux.c: Regenerate.
3134 * features/i386/amd64-avx512.c: Regenerate.
3135 * features/i386/x32-avx512-linux.c: Regenerate.
3136 * features/i386/x32-avx512.c: Regenerate.
3138 2014-10-01 Pedro Alves <palves@redhat.com>
3140 * features/Makefile (WHICH): Remove arm-with-m,
3141 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3143 2014-10-01 Pedro Alves <palves@redhat.com>
3145 * features/Makefile (clean): New rule.
3147 2014-10-01 Pedro Alves <palves@redhat.com>
3149 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3150 (zmm14h): Add missing end quotes.
3152 2014-10-01 Pedro Alves <palves@redhat.com>
3154 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3155 * features/aarch64.c: Regenerate.
3157 2014-09-30 Don Breazeal <donb@codesourcery.com>
3159 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3160 code so as to work with follow_fork_inferior.
3161 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3162 (inf_ttrace_create_inferior): Remove reference to
3163 inf_ttrace_vfork_ppid.
3164 (inf_ttrace_attach): Ditto.
3165 (inf_ttrace_detach): Ditto.
3166 (inf_ttrace_kill): Use current_inferior instead of
3167 inf_ttrace_vfork_ppid.
3168 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3169 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3170 inferior away from the parent.
3171 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3173 (follow_fork_inferior): New function.
3174 (follow_inferior_reset_breakpoints): Make function static.
3175 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3176 * linux-nat.c (linux_child_follow_fork): Move target-independent
3177 code to infrun.c:follow_fork_inferior.
3179 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3181 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3182 * gdbarch.c: Regenerate.
3183 * gdbarch.h: Likewise.
3184 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3185 gdbarch method 'regset_from_core_section'.
3186 (get_core_register_section): Remove handling for the case that
3187 regset == NULL and regset_from_core_section is defined.
3188 (get_core_registers): Drop check for deleted method.
3189 * procfs.c (procfs_do_thread_registers): Adjust comment.
3191 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3193 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3194 (linux_nat_make_corefile_notes): Remove.
3195 (linux_target_install_ops): Do not set target method
3196 'make_corefile_notes'.
3197 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3199 (linux_corefile_thread_callback): Instead of args->collect, call
3200 linux_collect_thread_registers.
3201 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3202 NULL unless there is a regset iterator.
3203 (linux_make_corefile_notes_1): Remove.
3204 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3205 by linux_make_corefile_notes.
3206 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3208 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3210 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3211 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3213 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3215 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3217 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3218 (xtensa_iterate_over_regset_sections): New.
3219 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3221 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3223 * vax-tdep.c (vax_regset_from_core_section): Remove.
3224 (vax_iterate_over_regset_sections): New.
3225 (vax_gdbarch_init): Adjust gdbarch initialization.
3227 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3229 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3230 (tilegx_regset_from_core_section): Remove.
3231 (tilegx_iterate_over_regset_sections): New.
3232 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3234 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3236 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3237 (sparc_iterate_over_regset_sections): New.
3238 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3239 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3241 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3242 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3243 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3244 target method 'make_corefile_notes'.
3246 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3248 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3249 'sizeof_gregset' and 'sizeof_fpregset'.
3250 * sh-tdep.c (sh_regset_from_core_section): Remove.
3251 (sh_iterate_over_regset_sections): New.
3252 (sh_gdbarch_init): Adjust gdbarch initialization.
3253 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3255 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3258 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3260 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3261 (score7_linux_iterate_over_regset_sections): New.
3262 (score_gdbarch_init): Adjust gdbarch initialization.
3264 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3266 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3268 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3269 method 'make_corefile_notes'.
3270 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3271 (ppcfbsd_regset_from_core_section): Remove.
3272 (ppcfbsd_iterate_over_regset_sections): New.
3273 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3275 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3276 (ppcnbsd_iterate_over_regset_sections): New.
3277 (ppcnbsd_init_abi): Adjust.
3278 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3279 (ppcobsd_iterate_over_regset_sections): New.
3280 (ppcobsd_init_abi): Adjust.
3281 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3282 (rs6000_aix_iterate_over_regset_sections): New.
3283 (rs6000_aix_init_osabi): Adjust.
3285 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3287 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3288 (nios2_regset_from_core_section): Remove.
3289 (nios2_iterate_over_regset_sections): New.
3290 (nios2_linux_init_abi): Adjust gdbarch initialization.
3292 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3294 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3295 (am33_iterate_over_regset_sections): New.
3296 (am33_linux_init_osabi): Adjust gdbarch initialization.
3298 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3300 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3301 (mips_linux_iterate_over_regset_sections): New.
3302 (mips_linux_init_abi): Adjust gdbarch initialization.
3303 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3304 (mips64obsd_iterate_over_regset_sections): New.
3305 (mips64obsd_init_abi): Adjust.
3306 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3307 (mipsnbsd_iterate_over_regset_sections): New.
3308 (mipsnbsd_init_abi): Adjust.
3310 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3312 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3313 (m88k_iterate_over_regset_sections): New.
3314 (m88k_gdbarch_init): Adjust gdbarch initialization.
3316 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3318 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3319 (ia64_linux_iterate_over_regset_sections): New.
3320 (ia64_linux_init_abi): Adjust gdbarch initialization.
3322 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3324 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3325 (m68kbsd_iterate_over_regset_sections): New.
3326 (m68kbsd_init_abi): Adjust gdbarch initialization.
3327 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3328 (m68k_linux_iterate_over_regset_sections): New.
3329 (m68k_linux_init_abi): Adjust gdbarch initialization.
3331 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3333 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3334 (m32r_linux_regset_from_core_section): Remove.
3335 (m32r_linux_iterate_over_regset_sections): New.
3336 (m32r_linux_init_abi): Adjust gdbarch initialization.
3338 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3340 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3341 (amd64obsd_iterate_over_regset_sections): New.
3342 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3343 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3345 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3346 regset_from_core_section initialization.
3347 * i386-tdep.c (i386_regset_from_core_section): Remove.
3348 (i386_iterate_over_regset_sections): New.
3349 (i386_gdbarch_init): Adjust gdbarch initialization.
3350 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3351 (i386_iterate_over_regset_sections): New prototype.
3352 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3354 (i386obsd_aout_iterate_over_regset_sections): New.
3355 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3356 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3358 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3359 (amd64fbsd_init_abi): Call fbsd_init_abi.
3360 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3361 (i386fbsd4_init_abi): Call fbsd_init_abi.
3362 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3363 target method 'make_corefile_notes'.
3364 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3366 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3368 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3369 (hppa_hpux_iterate_over_regset_sections): New.
3370 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3371 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3372 (hppa_linux_iterate_over_regset_sections): New.
3373 (hppa_linux_init_abi): Adjust.
3374 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3375 (hppanbsd_iterate_over_regset_sections): New.
3376 (hppanbsd_init_abi): Adjust.
3377 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3378 (hppaobsd_iterate_over_regset_sections): New.
3379 (hppaobsd_init_abi): Adjust.
3381 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3383 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3384 (frv_linux_iterate_over_regset_sections): New.
3385 (frv_linux_init_abi): Adjust gdbarch initialization.
3387 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3389 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3390 (armbsd_iterate_over_regset_sections): New prototype.
3391 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3392 (armbsd_iterate_over_regset_sections): New.
3393 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3396 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3398 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3399 (alpha_linux_iterate_over_regset_sections): New.
3400 (alpha_linux_init_abi): Adjust gdbarch initialization.
3401 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3403 (alphanbsd_iterate_over_regset_sections): New prototype.
3405 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3407 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3409 (aarch64_linux_iterate_over_regset_sections): New.
3410 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3412 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3414 * fbsd-tdep.c: New file.
3415 * fbsd-tdep.h: New file.
3416 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3417 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3418 (ALLDEPFILES): Add fbsd-tdep.c.
3420 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3422 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3424 * gdbarch.h: Regenerate.
3425 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3427 (get_core_register_section): Add parameter 'regset' and use it, if
3428 set. Add parameter 'min_size' and verify the bfd section size
3430 (get_core_registers_cb): Add parameter 'regset' and pass it to
3431 get_core_register section. For the "standard" register sections
3432 ".reg" and ".reg2", set an appropriate default for human_name.
3433 (get_core_registers): Don't abort when the gdbarch has an iterator
3434 but no regset_from_core_section. Add NULL/0 for parameters
3435 'regset'/'min_size' in calls to get_core_register_section.
3436 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3437 'regset' and use it instead of calling the
3438 regset_from_core_section gdbarch method.
3439 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3440 * i386-tdep.c (i386_supply_xstateregset)
3441 (i386_collect_xstateregset, i386_xstateregset): Moved to
3443 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3445 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3446 core file support only if the regset iterator hasn't been set.
3447 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3448 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3449 Moved from i386-tdep.c and renamed to *_linux*.
3450 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3451 each callback invocation. Allow any .reg-xstate size when reading
3453 * amd64-tdep.c (amd64_supply_xstateregset)
3454 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3456 (amd64_regset_from_core_section): Remove.
3457 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3458 install an amd64-specific regset_from_core_section gdbarch method.
3459 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3460 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3461 Moved from amd64-tdep.c and renamed to *_linux*.
3462 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3463 to each callback invocation. Allow any .reg-xstate size when
3464 reading from a core file.
3465 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3466 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3467 each callback invocation.
3468 (arm_linux_init_abi): No longer set the regset_from_core_section
3470 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3471 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3472 each callback invocation.
3473 (ppc_linux_init_abi): No longer set the regset_from_core_section
3475 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3476 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3477 (s390_regset_from_core_section): Remove.
3478 (s390_iterate_over_regset_sections): Add regset parameter to each
3479 callback invocation.
3480 (s390_gdbarch_init): No longer set the regset_from_core_section
3481 gdbarch method. Drop initialization of deleted tdep fields.
3483 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3485 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3486 (amd64_linux_iterate_over_regset_sections): New.
3487 (amd64_linux_init_abi_common): Don't install the regset section
3488 list, but the new iterator in gdbarch.
3489 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3490 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3491 (arm_linux_iterate_over_regset_sections): ...here. New function.
3492 (arm_linux_init_abi): Set iterator instead of section list.
3493 * corelow.c (get_core_registers_cb): New function, logic moved
3495 (get_core_registers): ...loop body here. Use new iterator method
3496 instead of walking through the regset section list.
3497 * gdbarch.sh: Remove 'core_regset_sections'. New method
3498 'iterate_over_regset_sections'. New typedef
3499 'iterate_over_regset_sections_cb'.
3500 * gdbarch.c: Regenerate.
3501 * gdbarch.h: Likewise.
3502 * i386-linux-tdep.c (i386_linux_regset_sections)
3503 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3505 (i386_linux_iterate_over_regset_sections): New.
3506 (i386_linux_init_abi): Don't choose a regset section list, but
3507 install new iterator in gdbarch.
3508 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3509 (linux_collect_regset_section_cb): New function, logic moved
3511 (linux_collect_thread_registers): ...loop body here. Use iterator
3512 method instead of walking through list.
3513 (linux_make_corefile_notes_1): Check for presence of iterator
3514 method instead of regset section list.
3515 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3516 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3517 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3518 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3519 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3520 (ppc_linux_init_abi): Don't choose from above regset section
3521 lists, but install new iterator in gdbarch.
3522 * regset.h (struct core_regset_section): Remove.
3523 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3524 have_linux_v1, have_linux_v2, and have_tdb.
3525 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3526 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3527 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3528 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3529 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3530 (s390_iterate_over_regset_sections): ...here. New function. Use
3532 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3533 regset section lists, but install new iterator.
3535 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3537 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3539 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3541 * progspace.c (print_program_space): Don't prune program spaces
3542 before printing them.
3544 2014-09-25 Pedro Alves <palves@redhat.com>
3546 * infrun.c (user_visible_resume_ptid): Don't check
3547 singlestep_breakpoints_inserted_p.
3549 2014-09-25 Pedro Alves <palves@redhat.com>
3551 * breakpoint.c (should_be_inserted): Add debug output.
3553 2014-09-25 Pedro Alves <palves@redhat.com>
3555 * infrun.c (stepping_past_instruction_at)
3556 (clear_exit_convenience_vars): Point at infrun.h instead of
3558 (handle_signal_stop): Fix typo.
3560 2014-09-24 Yao Qi <yao@codesourcery.com>
3562 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3565 2014-09-22 Gary Benson <gbenson@redhat.com>
3567 * target.c (target_stop): Updated comment.
3569 2014-09-22 Gary Benson <gbenson@redhat.com>
3571 * target/target.h (target_stop_ptid): Renamed as...
3572 (target_stop_and_wait): New function. Updated comment.
3574 (target_continue_ptid): Renamed as...
3575 (target_continue_no_signal): New function. Updated comment.
3578 2014-09-22 Pedro Alves <palves@redhat.com>
3580 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3582 * breakpoint.c (enum ugll_insert_mode): New enum.
3583 (always_inserted_mode): Now a plain boolean.
3584 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3585 (breakpoints_always_inserted_mode): Delete.
3586 (breakpoints_should_be_inserted_now): New function.
3587 (insert_breakpoints): Pass UGLL_INSERT to
3588 update_global_location_list instead of calling
3589 insert_breakpoint_locations manually.
3590 (create_solib_event_breakpoint_1): New, factored out from ...
3591 (create_solib_event_breakpoint): ... this.
3592 (create_and_insert_solib_event_breakpoint): Use
3593 create_solib_event_breakpoint_1 instead of calling
3594 insert_breakpoint_locations manually.
3595 (update_global_location_list): Change parameter type from boolean
3596 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3597 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3598 (update_global_location_list_nothrow): Change parameter type from
3599 boolean to enum ugll_insert_mode.
3600 (_initialize_breakpoint): "breakpoint always-inserted" option is
3601 now a boolean command. Update help text.
3602 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3603 (breakpoints_should_be_inserted_now): New declaration.
3604 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3605 Remove breakpoints_always_inserted_mode check.
3606 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3607 * remote.c (remote_start_remote): Likewise.
3609 2014-09-22 Pedro Alves <palves@redhat.com>
3611 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3612 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3613 Instead, pass UGLL_INSERT to update_global_location_list.
3614 (update_global_location_list): Change parameter type from boolean
3615 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3616 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3617 (create_solib_event_breakpoint_1): New, factored out from ...
3618 (create_solib_event_breakpoint): ... this.
3619 (create_and_insert_solib_event_breakpoint): Use
3620 create_solib_event_breakpoint_1 instead of calling
3621 insert_breakpoint_locations manually.
3622 (update_global_location_list): Handle UGLL_INSERT.
3624 2014-09-22 Pedro Alves <palves@redhat.com>
3626 * breakpoint.c (enum ugll_insert_mode): New enum.
3627 (update_global_location_list)
3628 (update_global_location_list_nothrow): Change parameter type from
3629 boolean to enum ugll_insert_mode. All callers adjusted.
3631 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3633 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3634 SystemTap support in GDB.
3636 2014-09-19 Don Breazeal <donb@codesourcery.com>
3638 * linux-nat.c (linux_handle_extended_wait): Call
3639 linux_ptrace_get_extended_event.
3640 (wait_lwp): Call linux_is_extended_waitstatus.
3641 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3642 and linux_is_extended_waitstatus.
3643 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3644 linux_ptrace_get_extended_event.
3645 (linux_ptrace_get_extended_event): New function.
3646 (linux_is_extended_waitstatus): New function.
3647 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3648 (linux_is_extended_waitstatus): New declarations.
3650 2014-09-19 Yao Qi <yao@codesourcery.com>
3652 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3653 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3654 comments. Callers update.
3655 (dwarf_decode_lines): Likewise.
3656 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3657 comments. Skip the line table if 'lowpc' is greater than
3658 'address'. Don't check
3659 dwarf2_per_objfile->has_section_at_zero.
3661 2014-09-18 Doug Evans <dje@google.com>
3663 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3664 * python/py-symtab.c (stpy_get_producer): New function.
3665 (symtab_object_getset): Add "producer" attribute.
3667 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3670 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3671 (do_captured_read_memory_integer): Remove.
3672 (safe_read_memory_integer): Use target_read_memory directly instead
3673 of catching errors in do_captured_read_memory_integer.
3675 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3677 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3680 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3682 * objc-lang.c (find_implementation_from_class): Remove dead code.
3684 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3687 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3688 "fprintf_unfiltered (gdb_stdlog...)".
3690 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3692 PR breakpoints/12526
3693 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3695 * breakpoint.c (watch_command_1): Use these fields to retain
3696 bitfield information.
3697 (extract_bitfield_from_watchpoint_value): New function.
3698 (watchpoint_check): Use it.
3699 (update_watchpoint): Use it. Optimize the address and length of a
3700 HW watchpoint pointing to a bitfield.
3701 * value.h (unpack_value_bitfield): New prototype.
3702 * value.c (unpack_value_bitfield): Make extern.
3704 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3706 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3708 * gnu-nat.c (inf_threads): New function.
3709 * gnu-nat.h (inf_threads_ftype): New typedef.
3710 (inf_threads): New declaration.
3711 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3712 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3713 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3714 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3715 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3716 (i386_gnu_dr_get_control): New functions.
3717 (reg_addr): New structure.
3718 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3719 i386 debugging register hooks.
3720 * NEWS: Mention this.
3722 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3724 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3725 vector data transfer instructions.
3726 (arm_record_coproc_data_proc): Updated.
3728 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3730 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3731 arm_record_exreg_ld_st_insn.
3732 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3735 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3737 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3738 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3739 processing instructions.
3741 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3743 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3744 for advance SIMD struct ld/st insn.
3745 (thumb2_record_decode_insn_handler): Replace stub handler with
3746 thumb2_record_asimd_struct_ld_st.
3748 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3750 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3751 for asimd, vfp and coprocessor insns.
3752 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3753 and coprocessor insns.
3754 (thumb2_record_coproc_insn): New function.
3755 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3757 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3760 2014-09-13 Doug Evans <xdje42@gmail.com>
3762 * NEWS: Mention new "queue-signal" command.
3763 * infcmd.c (queue_signal_command): New function.
3764 (_initialize_infcmd): Add new queue-signal command.
3766 2014-09-13 Doug Evans <xdje42@gmail.com>
3768 * linux-nat.c (wait_lwp): Add debugging printf.
3769 (linux_nat_wait_1): Ditto.
3771 2014-09-12 Pedro Alves <palves@redhat.com>
3773 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3774 (create_and_insert_solib_event_breakpoint): New functions.
3775 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3776 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3777 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3778 (remove_dbx_link_breakpoint): Delete function.
3779 (insert_dbx_link_bpt_in_file): Use
3780 create_and_insert_solib_event_breakpoint instead of
3781 deprecated_insert_raw_breakpoint.
3782 (procfs_wait): Don't check whether we hit __dbx_link here.
3783 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3785 * solib-irix.c (base_breakpoint): Delete global.
3786 (disable_break): Delete function.
3787 (enable_break): Use create_solib_event_breakpoint
3788 instead of deprecated_insert_raw_breakpoint.
3789 (irix_solib_handle_event): New function.
3790 (irix_solib_create_inferior_hook): Don't run the target or disable
3791 the mapping-complete breakpoint here.
3792 (_initialize_irix_solib): Install irix_solib_handle_event as
3793 so_ops->handle_event hook.
3795 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3796 Ulrich Weigand <uweigand@de.ibm.com>
3799 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3800 instead of read_memory_unsigned_integer.
3802 2014-09-12 Gary Benson <gbenson@redhat.com>
3804 * nat/linux-waitpid.c: Include common-defs.h.
3805 [GDBSERVER]: Add FIXME comment.
3806 [!GDBSERVER]: Don't include defs.h or signal.h.
3807 (linux_debug) [!GDBSERVER]: Remove empty block.
3809 2014-09-12 Gary Benson <gbenson@redhat.com>
3811 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3812 Don't include defs.h or server.h.
3814 2014-09-12 Gary Benson <gbenson@redhat.com>
3816 * nat/linux-btrace.c: Include common-defs.h.
3817 Don't include defs.h, server.h or gdbthread.h.
3818 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3820 2014-09-12 Gary Benson <gbenson@redhat.com>
3822 * common/agent.c: Include common-defs.h.
3823 Don't include defs.h or server.h.
3824 * common/buffer.c: Likewise.
3825 * common/common-debug.c: Likewise.
3826 * common/common-utils.c: Likewise.
3827 * common/errors.c: Likewise.
3828 * common/filestuff.c: Likewise.
3829 * common/format.c: Likewise.
3830 * common/gdb_vecs.c: Likewise.
3831 * common/print-utils.c: Likewise.
3832 * common/ptid.c: Likewise.
3833 * common/rsp-low.c: Likewise.
3834 * common/signals.c: Likewise.
3835 * common/vec.c: Likewise.
3836 * common/xml-utils.c: Likewise.
3837 * nat/linux-osdata.c: Likewise.
3838 * nat/linux-procfs.c: Likewise.
3839 * nat/linux-ptrace.c: Likewise.
3840 * nat/mips-linux-watch.c: Likewise.
3841 * target/waitstatus.c: Likewise.
3843 2014-09-12 Tom Tromey <tromey@redhat.com>
3844 Gary Benson <gbenson@redhat.com>
3846 * common/common-regcache.h: New file.
3847 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3848 * regcache.h: Include common-regcache.h.
3849 (regcache_read_pc): Don't declare.
3850 * regcache.c (get_thread_regcache_for_ptid): New function.
3851 * nat/linux-btrace.c: Don't include regcache.h.
3852 Include common-regcache.h.
3853 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3855 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3857 * regcache.h (struct regset): Declare.
3859 2014-09-11 Pedro Alves <palves@redhat.com>
3862 * main.c: Include "infrun.h".
3863 (catch_command_errors, catch_command_errors_const): Wait for the
3864 foreground command to complete.
3865 * top.c (maybe_wait_sync_command_done): New function, factored out
3867 (maybe_wait_sync_command_done): ... here.
3868 * top.h (maybe_wait_sync_command_done): New declaration.
3870 2014-09-11 Tom Tromey <tromey@redhat.com>
3871 Gary Benson <gbenson@redhat.com>
3873 * common/symbol.h: New file.
3874 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3875 * minsyms.c (find_minimal_symbol_address): New function.
3876 * common/agent.c: Include common/symbol.h.
3877 [!GDBSERVER]: Don't include objfiles.h.
3878 (agent_look_up_symbols): Use find_minimal_symbol_address.
3880 2014-09-11 Gary Benson <gbenson@redhat.com>
3882 * target/target.h (target_stop_ptid, target_continue_ptid):
3884 * target.c (target_stop_ptid, target_continue_ptid): New
3886 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3887 (agent_run_command): Always use target_stop_ptid and
3888 target_continue_ptid.
3890 2014-09-11 Tom Tromey <tromey@redhat.com>
3891 Gary Benson <gbenson@redhat.com>
3893 * target/target.h: New file.
3894 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3895 * target.h: Include target/target.h.
3896 (target_read_memory, target_write_memory): Don't declare.
3897 * target.c (target_read_uint32): New function.
3898 * common/agent.c: Include target/target.h.
3899 [!GDBSERVER]: Don't include target.h.
3900 (helper_thread_id): Type changed to uint32_t.
3901 (agent_get_helper_thread_id): Use target_read_uint32.
3902 (agent_run_command): Always use target_read_memory and
3903 target_write_memory.
3904 (agent_capability): Type changed to uint32_t.
3905 (agent_capability_check): Use target_read_uint32.
3907 2014-09-11 Gary Benson <gbenson@redhat.com>
3909 * common/common-debug.h (show_debug_regs): Declare.
3910 * common/common-debug.c (show_debug_regs): Define.
3911 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3912 all uses with show_debug_regs. Replace all uses that considered
3913 debug_hw_points as a multi-value integer with straight boolean
3915 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3916 with show_debug_regs.
3917 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3918 all uses with show_debug_regs.
3919 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3920 uses with show_debug_regs.
3922 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3924 * findvar.c (address_from_register): Handle targets requiring
3925 a special conversion routine even for plain pointer types.
3927 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3929 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3930 (store_register): Do not call exec_one_dummy_insn.
3932 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3934 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3935 dereference it first. Use value_enclosing_type instead of
3937 (ada_array_length): Likewise.
3939 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3941 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3942 Adjust function implementation and documentation accordingly.
3943 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3944 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3945 Update call to ada_value_ptr_subscript.
3947 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3949 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3950 instead of VAL's type.
3952 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3954 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3956 2014-09-09 Doug Evans <xdje42@gmail.com>
3959 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3960 last parameter to pkg-config, not first.
3961 * configure.ac: Pass --with-guile provided pkg-config path to
3962 GDB_GUILE_PROGRAM_NAMES.
3963 * configure: Regenerate.
3965 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3967 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3970 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3972 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3973 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3974 the list of sections determining GDB_OSABI_IRIX.
3976 2014-09-09 James Hogan <james.hogan@imgtec.com>
3978 * MAINTAINERS (Write After Approval): Add "James Hogan".
3980 2014-09-09 James Hogan <james.hogan@imgtec.com>
3982 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3984 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3986 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3988 2014-09-08 Doug Evans <xdje42@gmail.com>
3991 * guile.c: #include <signal.h>.
3992 (_initialize_guile): Block SIGCHLD while initializing Guile.
3994 Replaces the following, which is reverted.
3996 2014-07-26 Doug Evans <xdje42@gmail.com>
3999 * configure.ac: Add check for header gc/gc.h.
4000 Add check for function setenv.
4001 * configure: Regenerate.
4002 * config.in: Regenerate.
4003 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4005 2014-09-08 Doug Evans <xdje42@gmail.com>
4007 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
4008 with named constant. Fix style of pointer comparison.
4009 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
4011 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
4014 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
4015 decide whether we display the command on "show user".
4016 * cli/cli-script.c (show_user_1): Only verify cmdlines after
4017 printing command name.
4018 * cli/cli-decode.h (cli_user_command_p): Declare new function.
4019 * cli/cli-decode.c (cli_user_command_p): Create helper function
4020 to verify whether cmd_list_element is a user-defined command.
4022 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4025 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
4026 Fix goto out of TRY_CATCH.
4028 2014-09-06 Doug Evans <xdje42@gmail.com>
4029 Tom Tromey <tromey@redhat.com>
4032 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
4033 $_any_caller_matches.
4034 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
4035 * python/lib/gdb/function/caller_is.py: New file.
4037 2014-09-06 Doug Evans <xdje42@gmail.com>
4039 * infcmd.c (program_info): Fix typo.
4041 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
4044 * stap-probe.c (stap_parse_single_operand): Delete unused variable
4045 'number'. New variable 'has_digit'. Rewrite code to deal with
4046 subexpressions on SDT probes.
4048 2014-09-04 Pedro Alves <palves@redhat.com>
4050 * c-exp.y (parse_number): Skip handling base-switching prefixes if
4051 the input is only one character long.
4053 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
4056 * f-valprint.c (f_val_print): Specify the correct print option to
4057 use when printing integer values.
4059 2014-09-04 Gary Benson <gbenson@redhat.com>
4061 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
4062 Remove code to cope with LWPs wrapped as PIDs.
4063 Add assertions to ensure no wrapped LWPs are passed.
4065 2014-09-04 Pedro Alves <palves@redhat.com>
4067 * value.c (value_ranges_copy_adjusted): New function, factored out
4069 (value_contents_copy_raw): ... here.
4070 (unpack_value_bits_as_long_1): Rename back to ...
4071 (unpack_bits_as_long): ... this. Remove 'original_value' and
4072 'result' parameters. Change return type to LONGEST.
4073 (unpack_value_bits_as_long): Delete.
4074 (unpack_value_field_as_long_1): Delete.
4075 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
4076 (unpack_value_bitfield): New function.
4077 (value_field_bitfield): Reimplement using unpack_value_bitfield.
4078 (value_fetch_lazy): Use unpack_value_bitfield.
4079 * value.h (unpack_value_bits_as_long): Delete declaration.
4081 2014-09-03 Sasha Smundak <asmundak@google.com>
4083 * python/py-frame.c (frapy_read_register): New function.
4085 2014-09-03 James Hogan <james.hogan@imgtec.com>
4087 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
4088 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
4090 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
4093 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
4095 (add_cmd): Set "completer_handle_brkchars" to NULL.
4096 * cli/cli-decode.h (struct cmd_list_element)
4097 <completer_handle_brkchars>: New field.
4098 * command.h (completer_ftype_void): New typedef.
4099 (set_cmd_completer_handle_brkchars): New prototype.
4100 * completer.c (set_gdb_completion_word_break_characters): New
4102 (complete_line_internal): Call "completer_handle_brkchars"
4103 callback from command.
4104 * completer.h: Include "command.h".
4105 (set_gdb_completion_word_break_characters): New prototype.
4106 * python/py-cmd.c (cmdpy_completer_helper): New function.
4107 (cmdpy_completer_handle_brkchars): New function.
4108 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
4109 (cmdpy_init): Set completer_handle_brkchars to
4110 cmdpy_completer_handle_brkchars.
4112 2014-09-03 Gary Benson <gbenson@redhat.com>
4114 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
4115 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
4116 Loop conditions changed to equivalent form.
4117 (struct x86_debug_reg_state): Updated dr_ref_count comment.
4118 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
4119 ALL_DEBUG_ADDRESS_REGISTERS.
4121 2014-09-03 Joel Brobecker <brobecker@adacore.com>
4123 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4126 2014-09-02 Doug Evans <dje@google.com>
4128 * typeprint.c (find_global_typedef): Fix comment.
4130 2014-09-02 Gary Benson <gbenson@redhat.com>
4132 * i386-nat.h: Renamed as...
4133 * x86-nat.h: New file. All type, function and variable name
4134 prefixes changed from "i386_" to "x86_". All references updated.
4135 * i386-nat.c: Renamed as...
4136 * x86-nat.c: New file. All type, function and variable name
4137 prefixes changed from "i386_" to "x86_". All references updated.
4138 * common/i386-xstate.h: Renamed as...
4139 * common/x86-xstate.h: New file. All type, function and variable
4140 name prefixes changed from "i386_" to "x86_". All references
4142 * nat/i386-cpuid.h: Renamed as...
4143 * nat/x86-cpuid.h: New file. All type, function and variable name
4144 prefixes changed from "i386_" to "x86_". All references updated.
4145 * nat/i386-gcc-cpuid.h: Renamed as...
4146 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4147 name prefixes changed from "i386_" to "x86_". All references
4149 * nat/i386-dregs.h: Renamed as...
4150 * nat/x86-dregs.h: New file. All type, function and variable name
4151 prefixes changed from "i386_" to "x86_". All references updated.
4152 * nat/i386-dregs.c: Renamed as...
4153 * nat/x86-dregs.c: New file. All type, function and variable name
4154 prefixes changed from "i386_" to "x86_". All references updated.
4156 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4158 * varobj.c (_initialize_varobj): Move to the end of file.
4160 2014-08-29 Gary Benson <gbenson@redhat.com>
4162 * common/common-exceptions.h: New file.
4163 * common/common-exceptions.c: Likewise.
4164 * Makefile.in (SFILES): Add common/common-exceptions.c.
4165 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4166 (COMMON_OBS): Add common-exceptions.o.
4167 (common-exceptions.o): New rule.
4168 * exceptions.h (common-exceptions.h): Include.
4169 (gdb_setjmp.h): Do not include.
4170 (return_reason): Moved to common-exceptions.h.
4171 (enum return_reason): Likewise.
4172 (RETURN_MASK): Likewise.
4173 (typedef return_mask): Likewise.
4174 (enum errors): Likewise.
4175 (struct gdb_exception): Likewise.
4176 (exceptions_state_mc_init): Likewise.
4177 (exceptions_state_mc_action_iter): Likewise.
4178 (exceptions_state_mc_action_iter_1): Likewise.
4179 (TRY_CATCH): Likewise.
4180 (throw_exception): Likewise.
4181 (throw_verror): Likewise.
4182 (throw_vquit): Likewise.
4183 (throw_error): Likewise.
4184 (throw_quit): Likewise.
4185 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4186 (enum catcher_action): Likewise.
4187 (struct catcher): Likewise.
4188 (current_catcher): Likewise.
4189 (catcher_list_size): Likewise.
4190 (exceptions_state_mc_init): Likewise.
4191 (catcher_pop): Likewise.
4192 (exceptions_state_mc): Likewise.
4193 (exceptions_state_mc_action_iter): Likewise.
4194 (exceptions_state_mc_action_iter_1): Likewise.
4195 (throw_exception): Likewise.
4196 (exception_messages): Likewise.
4197 (exception_messages_size): Likewise.
4198 (throw_it): Likewise.
4199 (throw_verror): Likewise.
4200 (throw_vquit): Likewise.
4201 (throw_error): Likewise.
4202 (throw_quit): Likewise.
4203 (prepare_to_throw_exception): New function.
4205 2014-08-29 Gary Benson <gbenson@redhat.com>
4207 * common/gdb_setjmp.h: New file.
4208 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4209 * configure.ac: Move sigsetjmp check...
4210 * common/common.m4: ...here.
4211 * configure: Regenerate.
4212 * cp-support.c (SIGJMP_BUF): Delete.
4213 (SIGSETJMP): Likewise.
4214 (SIGLONGJMP): Likewise.
4215 * exceptions.h (gdb_setjmp.h): Include.
4216 (setjmp.h): Do not include.
4217 (EXCEPTIONS_SIGJMP_BUF): Delete.
4218 (EXCEPTIONS_SIGSETJMP): Likewise.
4219 (EXCEPTIONS_SIGLONGJMP): Likewise.
4220 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4222 * exceptions.c: Likewise.
4224 2014-08-29 Gary Benson <gbenson@redhat.com>
4226 * cleanups.h: Moved to...
4227 * common/cleanups.h: New file.
4228 * cleanups.c: Moved to...
4229 * common/cleanups.c: New file. Include common-defs.h and
4230 cleanups.h. Do not include defs.h.
4231 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4232 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4233 (cleanups.o): New rule.
4235 2014-08-29 Gary Benson <gbenson@redhat.com>
4237 * common/errors.h (internal_warning): New declaration.
4238 (internal_vwarning): Likewise.
4239 * common/errors.c (internal_warning): New function.
4240 * utils.h (internal_warning): Don't declare.
4241 (internal_vwarning): Likewise.
4242 * utils.c (internal_warning): Removed.
4244 2014-08-29 Gary Benson <gbenson@redhat.com>
4246 * main.c (captured_main): Use warning during startup.
4247 Prefix startup warning messages with command name.
4249 2014-08-29 Gary Benson <gbenson@redhat.com>
4251 * main.c (captured_main): Handle usage errors with error.
4253 2014-08-29 Gary Benson <gbenson@redhat.com>
4255 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4256 exit pair with a call to error. Wrap the message with _().
4258 2014-08-29 Gary Benson <gbenson@redhat.com>
4260 * main.c (captured_main): Replace a fprintf/exit
4261 pair with a call to error. Wrap the message with _().
4263 2014-08-29 Gary Benson <gbenson@redhat.com>
4265 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4266 pairs with calls to error. Wrap the message with _().
4268 2014-08-29 Gary Benson <gbenson@redhat.com>
4270 * utils.c (vwarning): Protect calls to target_terminal_ours
4273 2014-08-29 Gary Benson <gbenson@redhat.com>
4275 * exceptions.c (print_flush): Protect calls to
4276 target_terminal_ours and wrap_here.
4278 2014-08-29 Gary Benson <gbenson@redhat.com>
4280 * utils.h (filtered_printing_initialized): New declaration.
4281 * utils.c (abort_with_message): New function.
4282 (internal_vproblem): Use abort_with_message for first level
4283 recursive internal problems, and if gdb_stderr is not set up.
4284 Protect calls to target_terminal_ours, begin_line and query.
4286 2014-08-28 Doug Evans <dje@google.com>
4288 * symtab.c (in_prologue): Move definition to better spot.
4289 (skip_prologue_using_sal): Ditto.
4291 2014-08-28 Doug Evans <dje@google.com>
4293 * symtab.c (find_function_start_sal): Move definition to better spot.
4295 2014-08-28 Yao Qi <yao@codesourcery.com>
4297 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4298 found_stack_adjust in forward scan. Remove condition check
4299 on found_stack_adjust which is always true. Indent the code.
4301 2014-08-28 Yao Qi <yao@codesourcery.com>
4303 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4304 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4305 (dwarf_decode_lines): Remove argument
4306 want_line_info. Remove condition check on want_line_info.
4309 2014-08-27 Doug Evans <dje@google.com>
4311 * dwarf2read.c (dwarf_record_line): Fix typo.
4313 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4315 * target.h (struct target_ops::to_terminal_save_ours): Remove
4317 (target_terminal_save_ours): Remove macro.
4318 * target-delegates.c: Regenerate.
4319 * inf-child.c (inf_child_target): Don't set the nonexistent
4320 field to_terminal_save_ours.
4321 * inferior.h (child_terminal_save_ours): Remove declaration.
4322 * terminal.h (gdb_save_tty_state): New declaration.
4323 * inflow.c (child_terminal_save_ours): Rename to ...
4324 (gdb_save_tty_state): ... this.
4325 * tui/tui.c: Include terminal.h.
4326 (tui_enable): Use gdb_save_tty_state instead of
4327 target_terminal_save_ours.
4328 (tui_disable): Likewise.
4330 2014-08-25 Doug Evans <dje@google.com>
4332 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4333 Pass NULL instead of 0 for context pointer.
4335 2014-08-25 Yao Qi <yao@codesourcery.com>
4337 * dwarf2read.c: Fix grammatical error.
4339 2014-08-24 Yao Qi <yao@codesourcery.com>
4341 * dwarf2read.c (scan_partial_symbols): Update comments.
4342 Rename argument 'need_pc' with 'set_addrmap'.
4343 (add_partial_namespace): Rename argument 'need_pc' with
4345 (add_partial_module): Likewise.
4346 (add_partial_subprogram): Likewise. Update comments.
4347 (dwarf2_name): Fix typo.
4349 2014-08-22 Doug Evans <dje@google.com>
4352 * dwarf2read.c (dwarf_record_line_p): New function.
4353 (dwarf_decode_lines_1): Ignore subsequent line number entries
4354 for the same line if any entry had a non-zero discriminator.
4356 2014-08-22 Doug Evans <dje@google.com>
4358 * buildsym.h (record_line_ftype): New typedef.
4359 (record_line): Use it.
4360 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4361 (dwarf_decode_lines_1): Call them.
4363 2014-08-22 Yao Qi <yao@codesourcery.com>
4365 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4366 (ctf_end): Remove code.
4368 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4370 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4371 (linux_make_corefile_notes): call update_thread_list, protected against
4374 2014-08-21 Pedro Alves <palves@redhat.com>
4376 * infcmd.c (attach_command): Remove comment.
4378 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4380 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4381 unsigned LONGEST to ULONGEST.
4383 2014-08-20 Pedro Alves <palves@redhat.com>
4385 * Makefile.in (check-read1): New rule.
4387 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4389 * value.c (value_from_contents_and_address): Strip resolved_type's
4390 typedef layers before checking its TYPE_DATA_LOCATION.
4392 2014-08-20 Pedro Alves <palves@redhat.com>
4394 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4396 2014-08-20 Yao Qi <yao@codesourcery.com>
4398 * amd64-tdep.c (amd64_classify): Add a blank line after the
4399 example. Move "*/" to a new line.
4400 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4401 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4402 * dwarf2read.c (psymtab_include_file_name): Likewise.
4404 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4405 Pedro Alves <palves@redhat.com>
4409 * ada-lang.c (coerce_unspec_val_to_type): Use
4410 value_contents_copy_raw.
4411 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4412 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4413 * cp-valprint.c (cp_print_value_fields): Let the common printing
4414 code handle optimized out values.
4415 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4416 * d-valprint.c (dynamic_array_type): Use
4417 value_bits_any_optimized_out.
4418 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4419 check_any_valid fields.
4420 (check_pieced_value_bits): Delete and inline ...
4421 (check_pieced_synthetic_pointer): ... here.
4422 (check_pieced_value_validity): Delete.
4423 (check_pieced_value_invalid): Delete.
4424 (pieced_value_funcs): Remove check_validity and check_any_valid
4426 (read_pieced_value): Use mark_value_bits_optimized_out.
4427 (write_pieced_value): Switch to use
4428 mark_value_bytes_optimized_out.
4429 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4430 of assuming the whole value is optimized out.
4431 * findvar.c (read_frame_register_value): Remove special handling
4432 of optimized out registers.
4433 (value_from_register): Use mark_value_bytes_optimized_out.
4434 * frame-unwind.c (frame_unwind_got_optimized): Use
4435 mark_value_bytes_optimized_out.
4436 * jv-valprint.c (java_value_print): Adjust.
4437 (java_print_value_fields): Let the common printing code handle
4438 optimized out values.
4439 * mips-tdep.c (mips_print_register): Remove special handling of
4440 optimized out registers.
4441 * opencl-lang.c (lval_func_check_validity): Delete.
4442 (lval_func_check_any_valid): Delete.
4443 (opencl_value_funcs): Remove check_validity and check_any_valid
4445 * p-valprint.c (pascal_object_print_value_fields): Let the common
4446 printing code handle optimized out values.
4447 * stack.c (read_frame_arg): Remove special handling of optimized
4448 out values. Fetch both VAL and ENTRYVAL before comparing
4449 contents. Adjust to value_available_contents_eq rename.
4450 * valprint.c (valprint_check_validity)
4451 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4452 (val_print_array_elements): Adjust.
4453 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4454 (value_bits_any_optimized_out): New function.
4455 (value_entirely_covered_by_range_vector): New function, factored
4456 out from value_entirely_unavailable.
4457 (value_entirely_unavailable): Reimplement.
4458 (value_entirely_optimized_out): New function.
4459 (insert_into_bit_range_vector): New function, factored out from
4460 mark_value_bits_unavailable.
4461 (mark_value_bits_unavailable): Reimplement.
4462 (struct ranges_and_idx): New struct.
4463 (find_first_range_overlap_and_match): New function, factored out
4464 from value_available_contents_bits_eq.
4465 (value_available_contents_bits_eq): Rename to ...
4466 (value_contents_bits_eq): ... this. Check both unavailable
4467 contents and optimized out contents.
4468 (value_available_contents_eq): Rename to ...
4469 (value_contents_eq): ... this.
4470 (allocate_value_lazy): Remove reference to the old optimized_out
4472 (allocate_optimized_out_value): Use
4473 mark_value_bytes_optimized_out.
4474 (require_not_optimized_out): Adjust to check whether the
4475 optimized_out vec is empty.
4476 (ranges_copy_adjusted): New function, factored out from
4477 value_contents_copy_raw.
4478 (value_contents_copy_raw): Also copy the optimized out ranges.
4479 Assert the destination ranges aren't optimized out.
4480 (value_contents_copy): Update comment, remove call to
4481 require_not_optimized_out.
4482 (value_contents_equal): Adjust to check whether the optimized_out
4484 (set_value_optimized_out, value_optimized_out_const): Delete.
4485 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4487 (value_entirely_optimized_out, value_bits_valid): Delete.
4488 (value_copy): Take a VEC copy of the 'optimized_out' field.
4489 (value_primitive_field): Remove special handling of optimized out.
4490 (value_fetch_lazy): Assert that lazy values have no unavailable
4491 regions. Use value_bits_any_optimized_out. Remove some special
4492 handling for optimized out values.
4493 * value.h: Add intro comment about <optimized out> and
4495 (struct lval_funcs): Remove check_validity and check_any_valid
4497 (set_value_optimized_out, value_optimized_out_const): Remove.
4498 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4500 (value_bits_any_optimized_out): New declaration.
4501 (value_bits_valid): Delete declaration.
4502 (value_available_contents_eq): Rename to ...
4503 (value_contents_eq): ... this, and extend comments.
4505 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4507 Fix -fsanitize=address on unreadable inferior strings.
4508 * valprint.c (val_print_string): Fix access before BUFFER.
4510 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4512 * target.c (target_struct_size): Remove.
4513 (target_struct_allocsize): Remove.
4514 (DEFAULT_ALLOCSIZE): Remove.
4515 (target_ops_p): New typedef.
4516 (DEF_VEC_P (target_ops_p)): New vector type.
4517 (target_structs): Change type to VEC (target_ops_p).
4518 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4519 (find_default_run_target): Rewrite for loop following changes to
4522 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4524 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4525 Adjust code accordingly. Adjust function description comment.
4527 2014-08-19 Yao Qi <yao@codesourcery.com>
4529 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4532 2014-08-19 Alan Modra <amodra@gmail.com>
4534 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4535 * config.in: Regenerate.
4536 * configure: Regenerate.
4538 2014-08-19 Tom Tromey <tromey@redhat.com>
4539 Gary Benson <gbenson@redhat.com>
4541 * common/common-debug.h: New file.
4542 * common/common-debug.c: Likewise.
4543 * debug.c: Likewise.
4544 * Makefile.in (SFILES): Add common/common-debug.c.
4545 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4546 (COMMON_OBS): Add common-debug.o and debug.o.
4547 (common-debug.o): New rule.
4548 * common/common-defs.h: Include common-debug.h.
4549 * common/agent.c (debug_agent_printf): New function.
4550 (DEBUG_AGENT): Redefine.
4551 * nat/i386-dregs.c (debug_printf): Undefine.
4553 2014-08-19 Gary Benson <gbenson@redhat.com>
4555 * common/common-defs.h: Include print-utils.h.
4556 * utils.h: Do not include print-utils.h.
4558 2014-08-19 Tom Tromey <tromey@redhat.com>
4559 Gary Benson <gbenson@redhat.com>
4561 * common/common-types.h: New file.
4562 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4563 * common/common-defs.h: Include common-types.h.
4564 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4567 2014-08-19 Tom Tromey <tromey@redhat.com>
4568 Gary Benson <gbenson@redhat.com>
4570 * common/errors.h: New file.
4571 * common/errors.c: Likewise.
4572 * Makefile.in (SFILES): Add common/errors.c.
4573 (HFILES_NO_SRCDIR): Add common/errors.h.
4574 (COMMON_OBS): Add errors.o.
4575 (errors.o): New rule.
4576 * common/common-defs.h: Include errors.h.
4577 * utils.h (perror_with_name, error, verror, warning, vwarning):
4579 * common/common-utils.h: (malloc_failure, internal_error):
4582 2014-08-19 Gary Benson <gbenson@redhat.com>
4584 * utils.c (internal_vproblem): Always print the message.
4586 2014-08-18 Doug Evans <dje@google.com>
4588 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4590 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4592 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4593 Return 0 if TYPE is dynamic.
4594 (print_range): Add handling of dynamic ranges.
4596 2014-08-18 Keven Boell <keven.boell@intel.com>
4597 Joel Brobecker <brobecker@adacore.com>
4599 * gdbtypes.h (struct main_type): Add field "data_location".
4600 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4601 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4602 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4603 a dynamic data location.
4604 (resolve_dynamic_type): Add DW_AT_data_location handling.
4605 (copy_recursive, copy_type): Copy the data_location information
4607 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4608 * value.c (value_from_contents_and_address): Add
4609 DW_AT_data_location handling.
4611 2014-08-18 Keven Boell <keven.boell@intel.com>
4612 Joel Brobecker <brobecker@adacore.com>
4614 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4615 field "get_object_address".
4616 * dwarf2expr.c (execute_stack_op): Add handling for
4617 DW_OP_push_object_address.
4618 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4619 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4620 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4621 (dwarf_expr_get_obj_addr): New function.
4622 (dwarf_expr_ctx_funcs): Add get_object_address field.
4623 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4624 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4625 (dwarf2_evaluate_property): Add parameter "address". Use it.
4626 (needs_get_obj_addr): New function.
4627 (needs_frame_ctx_funcs): Add get_object_address field.
4628 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4629 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4630 (resolve_dynamic_array): Likewise.
4632 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4634 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4635 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4636 fixed value for records and unions for which some GNAT encodings
4639 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4641 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4642 rewrite to avoid "else if" and "else" constructs. Should be
4643 a no-op in practice.
4645 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4647 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4650 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4653 * eval.c: Update all calls to find_overload_match.
4654 * valarith.c: Likewise.
4655 (value_user_defined_cpp_op, value_user_defined_op): New
4656 argument NOSIDE. Update all callers.
4657 * valops.c (find_overload_match): New argument NOSIDE.
4658 * value.h (find_overload_match): Update signature.
4660 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4662 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4663 'items' methods instead of 'iteritems' method on dictionaries.
4665 2014-08-15 Doug Evans <dje@google.com>
4667 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4670 2014-08-15 Doug Evans <dje@google.com>
4672 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4674 2014-08-15 Doug Evans <dje@google.com>
4676 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4678 2014-08-15 Doug Evans <dje@google.com>
4680 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4683 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4685 * dcache.h: Include target.h, to avoid compile time warnings.
4687 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4689 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4690 frame_info" partial declaration.
4691 * gdbarch.h: Regenerate.
4693 2014-08-15 Yao Qi <yao@codesourcery.com>
4695 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4696 Add parameter 'decode_for_pst_p'. Callers update.
4698 2014-08-13 Yao Qi <yao@codesourcery.com>
4701 * configure.ac: Use local variable 'pos'.
4702 * configure: Regenerated.
4704 2014-08-11 Doug Evans <dje@google.com>
4706 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4707 message, it is redundant with "Reading symbols from ..." message.
4709 2014-08-10 Doug Evans <xdje42@gmail.com>
4711 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4713 2014-08-09 Yao Qi <yao@codesourcery.com>
4716 * remote.c (remote_xfer_partial): Remove dead code.
4718 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4720 * ia64-linux-tdep.c: Include "regset.h".
4721 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4722 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4723 (ia64_linux_supply_fpregset): New function.
4724 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4725 (ia64_linux_regset_from_core_section): New function.
4726 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4729 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4731 * m68klinux-tdep.c: Include "regset.h".
4732 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4733 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4734 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4735 (m68k_linux_regset_from_core_section): New function.
4736 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4739 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4741 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4742 function. Move logic to...
4743 (tilegx_linux_regmap): ... this new register map.
4744 (tilegx_linux_regset): Refer to register map, replace supply
4745 method by regcache_supply_regset, and add collect method.
4746 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4747 TILEGX_FIRST_EASY_REGNUM.
4749 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4751 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4752 that calls regcache_supply_regset and handles the EPC register
4753 separately. Move main logic to...
4754 (score7_linux_gregmap): ... this new register map.
4755 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4756 (score7_linux_gregset): Refer to register map. Add collect method.
4757 (score7_linux_regset_from_core_section): Replace
4758 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4759 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4760 (struct regset): Delete unused forward declaraction.
4761 (struct pt_regs): Delete structure definition.
4762 (elf_gregset_t): Delete typedef.
4764 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4766 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4767 (nios2_core_regset): Add collect method.
4769 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4771 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4772 platform-independent and don't write to read-only input buffer.
4773 (m32r_linux_collect_gregset): New function.
4774 (m32r_linux_gregset): Add collect method.
4776 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4778 * hppa-linux-tdep.c (greg_map): Rename to...
4779 (hppa_linux_gregmap): ... this. Also convert to
4780 regcache_map_entry format.
4781 (hppa_linux_supply_regset): Delete function.
4782 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4783 (hppa_linux_fpregmap): ... this new register map.
4784 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4785 register map, replace supply method by regcache_supply_regset, and
4786 add collect method regcache_collect_regset.
4788 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4790 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4791 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4792 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4793 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4794 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4795 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4796 (frv_linux_supply_gregset): Replace main logic by call to
4797 regcache_supply_regset, but keep clearing gr32-gr63.
4798 (frv_linux_supply_fpregset): Delete function.
4799 (frv_linux_gregset): Refer to appropriate register map and add
4800 regcache_collect_regset as the collect method.
4801 (frv_linux_fpregset): Likewise. Also exchange the supply method
4802 by regcache_supply_regset.
4804 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4806 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4807 by call to alpha_supply_int_regs.
4808 (alpha_linux_collect_gregset): New function.
4809 (alpha_linux_supply_fpregset): Replace logic by call to
4810 alpha_supply_fp_regs.
4811 (alpha_linux_collect_fpregset): New function.
4812 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4814 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4816 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4817 by call to regcache_collect_regset.
4818 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4819 instead of aarch64_linux_supply_gregset/_fpregset.
4820 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4821 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4822 header file instead.
4823 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4824 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4825 functions. Move logic to ...
4826 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4828 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4829 refer to new register maps, replace *_regset_from_core by
4830 regcache_supply_regset, and also use regcache_collect_regset.
4831 * aarch64-linux-tdep.h: Include "regset.h".
4832 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4834 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4835 macros, moved from C source file.
4836 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4837 variable declarations.
4839 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4841 * s390-linux-nat.c: Include "regset.h".
4842 (regmap_gregset): Delete macro.
4843 (s390_64_regmap_gregset): New register map for
4844 regcache_supply/_collect_regset.
4845 (s390_64_gregset): New regset.
4846 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4847 (regmap_fpregset): Delete macro.
4848 (s390_native_supply, s390_native_collect): Delete functions.
4849 (supply_gregset, fill_gregset): Replace s390-specific regmap
4850 handling by a call to regcache_supply/_collect_regset.
4851 (supply_fpregset, fill_fpregset): Call regcache_supply/
4852 _collect_regset instead of s390_native_supply/_collect.
4853 (fetch_regset, store_regset): Likewise. Also change the last
4854 parameter to a regset instead of a regmap.
4855 (s390_linux_fetch_inferior_registers)
4856 (390_linux_store_inferior_registers): Adjust last parameter in
4857 calls to fetch_regset and store_regset.
4858 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4859 (s390_gregmap): ... this. Also make static const and convert to
4860 regcache_map_entry format.
4861 (s390x_regmap_gregset): Delete.
4862 (s390_regmap_fpregset): Rename to...
4863 (s390_fpregmap): ... this. Make static const and convert to
4864 regcache_map_entry format.
4865 (s390_regmap_upper, s390_regmap_last_break)
4866 (s390x_regmap_last_break, s390_regmap_system_call)
4867 (s390_regmap_tdb): Likewise.
4868 (s390_supply_regset, s390_collect_regset): Remove functions.
4869 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4871 (s390_gregset, s390_fpregset, s390_upper_regset)
4872 (s390_last_break_regset, s390x_last_break_regset)
4873 (s390_system_call_regset, s390_tdb_regset): Make global and
4874 replace s390_supply/_collect_regset by regcache_supply/
4876 (s390x_gregset): Delete.
4877 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4878 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4879 (s390_regmap_fpregset, s390_regmap_last_break)
4880 (s390x_regmap_last_break, s390_regmap_system_call)
4881 (s390_regmap_tdb): Delete global variable declarations.
4882 (s390_gregset, s390_fpregset, s390_last_break_regset)
4883 (s390x_last_break_regset, s390_system_call_regset)
4884 (s390_tdb_regset): New global variable declarations.
4886 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4888 * regcache.c: Include "regset.h".
4889 (regcache_transfer_regset): New local function.
4890 (regcache_supply_regset, regcache_collect_regset): New functions.
4891 * regcache.h (struct regcache_map_entry): New structure.
4892 (REGCACHE_MAP_SKIP): New enum value.
4893 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4895 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4897 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4898 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4899 (ppc_linux_collect_gregset ): Likewise.
4900 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4901 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4902 (ppc_collect_vrregset): Likewise.
4903 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4906 2014-08-07 Yao Qi <yao@codesourcery.com>
4908 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4909 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4910 * remote.c (remote_read_bytes): Likewise.
4912 2014-08-07 Yao Qi <yao@codesourcery.com>
4914 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4916 2014-08-07 Yao Qi <yao@codesourcery.com>
4919 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4920 TARGET_XFER_OK instead of 0.
4922 2014-08-07 Gary Benson <gbenson@redhat.com>
4924 * common/common-defs.h: Include errno.h.
4925 * defs.h: Do not include errno.h.
4926 * ada-typeprint.c: Likewise.
4927 * c-typeprint.c: Likewise.
4928 * core-regset.c: Likewise.
4929 * corefile.c: Likewise.
4930 * corelow.c: Likewise.
4931 * event-loop.c: Likewise.
4932 * f-typeprint.c: Likewise.
4933 * gnu-nat.c: Likewise.
4934 * go32-nat.c: Likewise.
4935 * i386gnu-nat.c: Likewise.
4936 * m2-typeprint.c: Likewise.
4937 * nat/linux-btrace.c: Likewise.
4938 * p-typeprint.c: Likewise.
4939 * procfs.c: Likewise.
4940 * remote-sim.c: Likewise.
4941 * rs6000-nat.c: Likewise.
4942 * target.c: Likewise.
4943 * typeprint.c: Likewise.
4944 * ui-file.c: Likewise.
4945 * valops.c: Likewise.
4946 * valprint.c: Likewise.
4948 2014-08-07 Gary Benson <gbenson@redhat.com>
4950 * common/common-defs.h: Include string.h.
4951 * aarch64-tdep.c: Do not include string.h.
4952 * ada-exp.y: Likewise.
4953 * ada-lang.c: Likewise.
4954 * ada-lex.l: Likewise.
4955 * ada-typeprint.c: Likewise.
4956 * ada-valprint.c: Likewise.
4957 * aix-thread.c: Likewise.
4958 * alpha-linux-tdep.c: Likewise.
4959 * alpha-mdebug-tdep.c: Likewise.
4960 * alpha-nat.c: Likewise.
4961 * alpha-osf1-tdep.c: Likewise.
4962 * alpha-tdep.c: Likewise.
4963 * alphanbsd-tdep.c: Likewise.
4964 * amd64-dicos-tdep.c: Likewise.
4965 * amd64-linux-tdep.c: Likewise.
4966 * amd64-nat.c: Likewise.
4967 * amd64-sol2-tdep.c: Likewise.
4968 * amd64fbsd-tdep.c: Likewise.
4969 * amd64obsd-tdep.c: Likewise.
4970 * arch-utils.c: Likewise.
4971 * arm-linux-nat.c: Likewise.
4972 * arm-linux-tdep.c: Likewise.
4973 * arm-tdep.c: Likewise.
4974 * arm-wince-tdep.c: Likewise.
4975 * armbsd-tdep.c: Likewise.
4976 * armnbsd-nat.c: Likewise.
4977 * armnbsd-tdep.c: Likewise.
4978 * armobsd-tdep.c: Likewise.
4979 * avr-tdep.c: Likewise.
4980 * ax-gdb.c: Likewise.
4981 * ax-general.c: Likewise.
4982 * bcache.c: Likewise.
4983 * bfin-tdep.c: Likewise.
4984 * breakpoint.c: Likewise.
4985 * build-id.c: Likewise.
4986 * buildsym.c: Likewise.
4987 * c-exp.y: Likewise.
4988 * c-lang.c: Likewise.
4989 * c-typeprint.c: Likewise.
4990 * c-valprint.c: Likewise.
4991 * charset.c: Likewise.
4992 * cli-out.c: Likewise.
4993 * cli/cli-cmds.c: Likewise.
4994 * cli/cli-decode.c: Likewise.
4995 * cli/cli-dump.c: Likewise.
4996 * cli/cli-interp.c: Likewise.
4997 * cli/cli-logging.c: Likewise.
4998 * cli/cli-script.c: Likewise.
4999 * cli/cli-setshow.c: Likewise.
5000 * cli/cli-utils.c: Likewise.
5001 * coffread.c: Likewise.
5002 * common/agent.c: Likewise.
5003 * common/buffer.c: Likewise.
5004 * common/buffer.h: Likewise.
5005 * common/common-utils.c: Likewise.
5006 * common/filestuff.c: Likewise.
5007 * common/filestuff.c: Likewise.
5008 * common/format.c: Likewise.
5009 * common/print-utils.c: Likewise.
5010 * common/rsp-low.c: Likewise.
5011 * common/signals.c: Likewise.
5012 * common/vec.h: Likewise.
5013 * common/xml-utils.c: Likewise.
5014 * core-regset.c: Likewise.
5015 * corefile.c: Likewise.
5016 * corelow.c: Likewise.
5017 * cp-abi.c: Likewise.
5018 * cp-name-parser.y: Likewise.
5019 * cp-support.c: Likewise.
5020 * cp-valprint.c: Likewise.
5021 * cris-tdep.c: Likewise.
5022 * d-exp.y: Likewise.
5023 * darwin-nat.c: Likewise.
5024 * dbxread.c: Likewise.
5025 * dcache.c: Likewise.
5026 * demangle.c: Likewise.
5027 * dicos-tdep.c: Likewise.
5028 * disasm.c: Likewise.
5029 * doublest.c: Likewise.
5030 * dsrec.c: Likewise.
5031 * dummy-frame.c: Likewise.
5032 * dwarf2-frame.c: Likewise.
5033 * dwarf2loc.c: Likewise.
5034 * dwarf2read.c: Likewise.
5035 * elfread.c: Likewise.
5036 * environ.c: Likewise.
5038 * event-loop.c: Likewise.
5039 * exceptions.c: Likewise.
5041 * expprint.c: Likewise.
5042 * f-exp.y: Likewise.
5043 * f-lang.c: Likewise.
5044 * f-typeprint.c: Likewise.
5045 * f-valprint.c: Likewise.
5046 * fbsd-nat.c: Likewise.
5047 * findcmd.c: Likewise.
5048 * findvar.c: Likewise.
5049 * fork-child.c: Likewise.
5050 * frame.c: Likewise.
5051 * frv-linux-tdep.c: Likewise.
5052 * frv-tdep.c: Likewise.
5054 * gdb_bfd.c: Likewise.
5055 * gdbarch.c: Likewise.
5056 * gdbarch.sh: Likewise.
5057 * gdbtypes.c: Likewise.
5058 * gnu-nat.c: Likewise.
5059 * gnu-v2-abi.c: Likewise.
5060 * gnu-v3-abi.c: Likewise.
5061 * go-exp.y: Likewise.
5062 * go-lang.c: Likewise.
5063 * go32-nat.c: Likewise.
5064 * guile/guile.c: Likewise.
5065 * guile/scm-auto-load.c: Likewise.
5066 * hppa-hpux-tdep.c: Likewise.
5067 * hppa-linux-nat.c: Likewise.
5068 * hppanbsd-tdep.c: Likewise.
5069 * hppaobsd-tdep.c: Likewise.
5070 * i386-cygwin-tdep.c: Likewise.
5071 * i386-dicos-tdep.c: Likewise.
5072 * i386-linux-tdep.c: Likewise.
5073 * i386-nto-tdep.c: Likewise.
5074 * i386-sol2-tdep.c: Likewise.
5075 * i386-tdep.c: Likewise.
5076 * i386bsd-tdep.c: Likewise.
5077 * i386gnu-nat.c: Likewise.
5078 * i386nbsd-tdep.c: Likewise.
5079 * i386obsd-tdep.c: Likewise.
5080 * i387-tdep.c: Likewise.
5081 * ia64-libunwind-tdep.c: Likewise.
5082 * ia64-linux-nat.c: Likewise.
5083 * inf-child.c: Likewise.
5084 * inf-ptrace.c: Likewise.
5085 * inf-ttrace.c: Likewise.
5086 * infcall.c: Likewise.
5087 * infcmd.c: Likewise.
5088 * inflow.c: Likewise.
5089 * infrun.c: Likewise.
5090 * interps.c: Likewise.
5091 * iq2000-tdep.c: Likewise.
5092 * irix5-nat.c: Likewise.
5093 * jv-exp.y: Likewise.
5094 * jv-lang.c: Likewise.
5095 * jv-typeprint.c: Likewise.
5096 * jv-valprint.c: Likewise.
5097 * language.c: Likewise.
5098 * linux-fork.c: Likewise.
5099 * linux-nat.c: Likewise.
5100 * lm32-tdep.c: Likewise.
5101 * m2-exp.y: Likewise.
5102 * m2-typeprint.c: Likewise.
5103 * m32c-tdep.c: Likewise.
5104 * m32r-linux-nat.c: Likewise.
5105 * m32r-linux-tdep.c: Likewise.
5106 * m32r-rom.c: Likewise.
5107 * m32r-tdep.c: Likewise.
5108 * m68hc11-tdep.c: Likewise.
5109 * m68k-tdep.c: Likewise.
5110 * m68kbsd-tdep.c: Likewise.
5111 * m68klinux-nat.c: Likewise.
5112 * m68klinux-tdep.c: Likewise.
5113 * m88k-tdep.c: Likewise.
5114 * machoread.c: Likewise.
5115 * macrocmd.c: Likewise.
5117 * mdebugread.c: Likewise.
5118 * mem-break.c: Likewise.
5119 * memattr.c: Likewise.
5120 * memory-map.c: Likewise.
5121 * mep-tdep.c: Likewise.
5122 * mi/mi-cmd-break.c: Likewise.
5123 * mi/mi-cmd-disas.c: Likewise.
5124 * mi/mi-cmd-env.c: Likewise.
5125 * mi/mi-cmd-stack.c: Likewise.
5126 * mi/mi-cmd-var.c: Likewise.
5127 * mi/mi-cmds.c: Likewise.
5128 * mi/mi-console.c: Likewise.
5129 * mi/mi-getopt.c: Likewise.
5130 * mi/mi-interp.c: Likewise.
5131 * mi/mi-main.c: Likewise.
5132 * mi/mi-parse.c: Likewise.
5133 * microblaze-rom.c: Likewise.
5134 * microblaze-tdep.c: Likewise.
5135 * mingw-hdep.c: Likewise.
5136 * minidebug.c: Likewise.
5137 * minsyms.c: Likewise.
5138 * mips-irix-tdep.c: Likewise.
5139 * mips-linux-tdep.c: Likewise.
5140 * mips-tdep.c: Likewise.
5141 * mips64obsd-tdep.c: Likewise.
5142 * mipsnbsd-tdep.c: Likewise.
5143 * mipsread.c: Likewise.
5144 * mn10300-linux-tdep.c: Likewise.
5145 * mn10300-tdep.c: Likewise.
5146 * monitor.c: Likewise.
5147 * moxie-tdep.c: Likewise.
5148 * mt-tdep.c: Likewise.
5149 * nat/linux-btrace.c: Likewise.
5150 * nat/linux-osdata.c: Likewise.
5151 * nat/linux-procfs.c: Likewise.
5152 * nat/linux-ptrace.c: Likewise.
5153 * nat/linux-waitpid.c: Likewise.
5154 * nbsd-tdep.c: Likewise.
5155 * nios2-linux-tdep.c: Likewise.
5156 * nto-procfs.c: Likewise.
5157 * nto-tdep.c: Likewise.
5158 * objc-lang.c: Likewise.
5159 * objfiles.c: Likewise.
5160 * opencl-lang.c: Likewise.
5161 * osabi.c: Likewise.
5162 * osdata.c: Likewise.
5163 * p-exp.y: Likewise.
5164 * p-lang.c: Likewise.
5165 * p-typeprint.c: Likewise.
5166 * parse.c: Likewise.
5167 * posix-hdep.c: Likewise.
5168 * ppc-linux-nat.c: Likewise.
5169 * ppc-sysv-tdep.c: Likewise.
5170 * ppcfbsd-tdep.c: Likewise.
5171 * ppcnbsd-tdep.c: Likewise.
5172 * ppcobsd-tdep.c: Likewise.
5173 * printcmd.c: Likewise.
5174 * procfs.c: Likewise.
5175 * prologue-value.c: Likewise.
5176 * python/py-auto-load.c: Likewise.
5177 * python/py-gdb-readline.c: Likewise.
5178 * ravenscar-thread.c: Likewise.
5179 * regcache.c: Likewise.
5180 * registry.c: Likewise.
5181 * remote-fileio.c: Likewise.
5182 * remote-m32r-sdi.c: Likewise.
5183 * remote-mips.c: Likewise.
5184 * remote-notif.c: Likewise.
5185 * remote-sim.c: Likewise.
5186 * remote.c: Likewise.
5187 * reverse.c: Likewise.
5188 * rs6000-aix-tdep.c: Likewise.
5189 * ser-base.c: Likewise.
5190 * ser-go32.c: Likewise.
5191 * ser-mingw.c: Likewise.
5192 * ser-pipe.c: Likewise.
5193 * ser-tcp.c: Likewise.
5194 * ser-unix.c: Likewise.
5195 * serial.c: Likewise.
5196 * sh-tdep.c: Likewise.
5197 * sh64-tdep.c: Likewise.
5198 * shnbsd-tdep.c: Likewise.
5200 * sol-thread.c: Likewise.
5201 * solib-dsbt.c: Likewise.
5202 * solib-frv.c: Likewise.
5203 * solib-osf.c: Likewise.
5204 * solib-som.c: Likewise.
5205 * solib-spu.c: Likewise.
5206 * solib-target.c: Likewise.
5207 * solib.c: Likewise.
5208 * somread.c: Likewise.
5209 * source.c: Likewise.
5210 * sparc-nat.c: Likewise.
5211 * sparc-sol2-tdep.c: Likewise.
5212 * sparc-tdep.c: Likewise.
5213 * sparc64-tdep.c: Likewise.
5214 * sparc64fbsd-tdep.c: Likewise.
5215 * sparc64nbsd-tdep.c: Likewise.
5216 * sparcnbsd-tdep.c: Likewise.
5217 * spu-linux-nat.c: Likewise.
5218 * spu-multiarch.c: Likewise.
5219 * spu-tdep.c: Likewise.
5220 * stabsread.c: Likewise.
5221 * stack.c: Likewise.
5222 * std-regs.c: Likewise.
5223 * symfile.c: Likewise.
5224 * symmisc.c: Likewise.
5225 * symtab.c: Likewise.
5226 * target.c: Likewise.
5227 * thread.c: Likewise.
5228 * tilegx-linux-nat.c: Likewise.
5229 * tilegx-tdep.c: Likewise.
5231 * tracepoint.c: Likewise.
5232 * tui/tui-command.c: Likewise.
5233 * tui/tui-data.c: Likewise.
5234 * tui/tui-disasm.c: Likewise.
5235 * tui/tui-file.c: Likewise.
5236 * tui/tui-layout.c: Likewise.
5237 * tui/tui-out.c: Likewise.
5238 * tui/tui-regs.c: Likewise.
5239 * tui/tui-source.c: Likewise.
5240 * tui/tui-stack.c: Likewise.
5241 * tui/tui-win.c: Likewise.
5242 * tui/tui-windata.c: Likewise.
5243 * tui/tui-winsource.c: Likewise.
5244 * typeprint.c: Likewise.
5245 * ui-file.c: Likewise.
5246 * ui-out.c: Likewise.
5247 * user-regs.c: Likewise.
5248 * utils.c: Likewise.
5249 * v850-tdep.c: Likewise.
5250 * valarith.c: Likewise.
5251 * valops.c: Likewise.
5252 * valprint.c: Likewise.
5253 * value.c: Likewise.
5254 * varobj.c: Likewise.
5255 * vax-tdep.c: Likewise.
5256 * vaxnbsd-tdep.c: Likewise.
5257 * vaxobsd-tdep.c: Likewise.
5258 * windows-nat.c: Likewise.
5259 * xcoffread.c: Likewise.
5260 * xml-support.c: Likewise.
5261 * xstormy16-tdep.c: Likewise.
5262 * xtensa-linux-nat.c: Likewise.
5264 2014-08-07 Gary Benson <gbenson@redhat.com>
5266 * common/common-defs.h: Include gdb_assert.h.
5267 * aarch64-tdep.c: Do not include gdb_assert.h.
5268 * addrmap.c: Likewise.
5269 * aix-thread.c: Likewise.
5270 * alpha-linux-tdep.c: Likewise.
5271 * alpha-mdebug-tdep.c: Likewise.
5272 * alphanbsd-tdep.c: Likewise.
5273 * amd64-nat.c: Likewise.
5274 * amd64-tdep.c: Likewise.
5275 * amd64bsd-nat.c: Likewise.
5276 * amd64fbsd-nat.c: Likewise.
5277 * amd64fbsd-tdep.c: Likewise.
5278 * amd64nbsd-nat.c: Likewise.
5279 * amd64nbsd-tdep.c: Likewise.
5280 * amd64obsd-nat.c: Likewise.
5281 * amd64obsd-tdep.c: Likewise.
5282 * arch-utils.c: Likewise.
5283 * arm-tdep.c: Likewise.
5284 * armbsd-tdep.c: Likewise.
5286 * bcache.c: Likewise.
5287 * bfin-tdep.c: Likewise.
5288 * blockframe.c: Likewise.
5289 * breakpoint.c: Likewise.
5290 * bsd-kvm.c: Likewise.
5291 * bsd-uthread.c: Likewise.
5292 * buildsym.c: Likewise.
5293 * c-exp.y: Likewise.
5294 * c-lang.c: Likewise.
5295 * charset.c: Likewise.
5296 * cleanups.c: Likewise.
5297 * cli-out.c: Likewise.
5298 * cli/cli-decode.c: Likewise.
5299 * cli/cli-dump.c: Likewise.
5300 * cli/cli-logging.c: Likewise.
5301 * cli/cli-script.c: Likewise.
5302 * cli/cli-utils.c: Likewise.
5303 * coffread.c: Likewise.
5304 * common/common-utils.c: Likewise.
5305 * common/queue.h: Likewise.
5306 * common/signals.c: Likewise.
5307 * common/vec.h: Likewise.
5308 * complaints.c: Likewise.
5309 * completer.c: Likewise.
5310 * corelow.c: Likewise.
5311 * cp-abi.c: Likewise.
5312 * cp-name-parser.y: Likewise.
5313 * cp-namespace.c: Likewise.
5314 * cp-support.c: Likewise.
5315 * cris-tdep.c: Likewise.
5316 * dbxread.c: Likewise.
5317 * dictionary.c: Likewise.
5318 * doublest.c: Likewise.
5319 * dsrec.c: Likewise.
5320 * dummy-frame.c: Likewise.
5321 * dwarf2-frame-tailcall.c: Likewise.
5322 * dwarf2-frame.c: Likewise.
5323 * dwarf2expr.c: Likewise.
5324 * dwarf2loc.c: Likewise.
5325 * dwarf2read.c: Likewise.
5327 * event-loop.c: Likewise.
5328 * exceptions.c: Likewise.
5329 * expprint.c: Likewise.
5330 * f-valprint.c: Likewise.
5331 * fbsd-nat.c: Likewise.
5332 * findvar.c: Likewise.
5333 * frame-unwind.c: Likewise.
5334 * frame.c: Likewise.
5335 * frv-tdep.c: Likewise.
5336 * gcore.c: Likewise.
5337 * gdb-dlfcn.c: Likewise.
5338 * gdb_bfd.c: Likewise.
5339 * gdbarch.c: Likewise.
5340 * gdbarch.sh: Likewise.
5341 * gdbtypes.c: Likewise.
5342 * gnu-nat.c: Likewise.
5343 * gnu-v3-abi.c: Likewise.
5344 * go-lang.c: Likewise.
5345 * guile/scm-exception.c: Likewise.
5346 * guile/scm-gsmob.c: Likewise.
5347 * guile/scm-lazy-string.c: Likewise.
5348 * guile/scm-math.c: Likewise.
5349 * guile/scm-pretty-print.c: Likewise.
5350 * guile/scm-safe-call.c: Likewise.
5351 * guile/scm-utils.c: Likewise.
5352 * guile/scm-value.c: Likewise.
5353 * h8300-tdep.c: Likewise.
5354 * hppa-hpux-nat.c: Likewise.
5355 * hppa-tdep.c: Likewise.
5356 * hppanbsd-tdep.c: Likewise.
5357 * hppaobsd-tdep.c: Likewise.
5358 * i386-darwin-nat.c: Likewise.
5359 * i386-darwin-tdep.c: Likewise.
5360 * i386-nto-tdep.c: Likewise.
5361 * i386-tdep.c: Likewise.
5362 * i386bsd-nat.c: Likewise.
5363 * i386fbsd-tdep.c: Likewise.
5364 * i386gnu-nat.c: Likewise.
5365 * i386nbsd-tdep.c: Likewise.
5366 * i386obsd-tdep.c: Likewise.
5367 * i387-tdep.c: Likewise.
5368 * ia64-libunwind-tdep.c: Likewise.
5369 * ia64-tdep.c: Likewise.
5370 * inf-ptrace.c: Likewise.
5371 * inf-ttrace.c: Likewise.
5372 * infcall.c: Likewise.
5373 * infcmd.c: Likewise.
5374 * infrun.c: Likewise.
5375 * inline-frame.c: Likewise.
5376 * interps.c: Likewise.
5377 * jv-lang.c: Likewise.
5378 * jv-typeprint.c: Likewise.
5379 * linux-fork.c: Likewise.
5380 * linux-nat.c: Likewise.
5381 * linux-thread-db.c: Likewise.
5382 * m32c-tdep.c: Likewise.
5383 * m32r-linux-nat.c: Likewise.
5384 * m32r-tdep.c: Likewise.
5385 * m68k-tdep.c: Likewise.
5386 * m68kbsd-nat.c: Likewise.
5387 * m68kbsd-tdep.c: Likewise.
5388 * m88k-tdep.c: Likewise.
5389 * machoread.c: Likewise.
5390 * macroexp.c: Likewise.
5391 * macrotab.c: Likewise.
5392 * maint.c: Likewise.
5393 * mdebugread.c: Likewise.
5394 * memory-map.c: Likewise.
5395 * mep-tdep.c: Likewise.
5396 * mi/mi-common.c: Likewise.
5397 * microblaze-tdep.c: Likewise.
5398 * mingw-hdep.c: Likewise.
5399 * mips-linux-nat.c: Likewise.
5400 * mips-linux-tdep.c: Likewise.
5401 * mips-tdep.c: Likewise.
5402 * mips64obsd-tdep.c: Likewise.
5403 * mipsnbsd-tdep.c: Likewise.
5404 * mn10300-linux-tdep.c: Likewise.
5405 * mn10300-tdep.c: Likewise.
5406 * moxie-tdep.c: Likewise.
5407 * mt-tdep.c: Likewise.
5408 * nat/linux-btrace.c: Likewise.
5409 * nat/linux-osdata.c: Likewise.
5410 * nat/linux-ptrace.c: Likewise.
5411 * nat/mips-linux-watch.c: Likewise.
5412 * nios2-linux-tdep.c: Likewise.
5413 * nios2-tdep.c: Likewise.
5414 * objc-lang.c: Likewise.
5415 * objfiles.c: Likewise.
5416 * obsd-nat.c: Likewise.
5417 * opencl-lang.c: Likewise.
5418 * osabi.c: Likewise.
5419 * parse.c: Likewise.
5420 * ppc-linux-nat.c: Likewise.
5421 * ppc-sysv-tdep.c: Likewise.
5422 * ppcfbsd-nat.c: Likewise.
5423 * ppcfbsd-tdep.c: Likewise.
5424 * ppcnbsd-nat.c: Likewise.
5425 * ppcnbsd-tdep.c: Likewise.
5426 * ppcobsd-nat.c: Likewise.
5427 * ppcobsd-tdep.c: Likewise.
5428 * printcmd.c: Likewise.
5429 * procfs.c: Likewise.
5430 * prologue-value.c: Likewise.
5431 * psymtab.c: Likewise.
5432 * python/py-lazy-string.c: Likewise.
5433 * python/py-value.c: Likewise.
5434 * regcache.c: Likewise.
5435 * reggroups.c: Likewise.
5436 * registry.c: Likewise.
5437 * remote-sim.c: Likewise.
5438 * remote.c: Likewise.
5439 * rs6000-aix-tdep.c: Likewise.
5440 * rs6000-tdep.c: Likewise.
5441 * s390-linux-tdep.c: Likewise.
5442 * score-tdep.c: Likewise.
5443 * ser-base.c: Likewise.
5444 * ser-mingw.c: Likewise.
5445 * sh-tdep.c: Likewise.
5446 * sh64-tdep.c: Likewise.
5447 * solib-darwin.c: Likewise.
5448 * solib-spu.c: Likewise.
5449 * solib-svr4.c: Likewise.
5450 * source.c: Likewise.
5451 * sparc-nat.c: Likewise.
5452 * sparc-sol2-tdep.c: Likewise.
5453 * sparc-tdep.c: Likewise.
5454 * sparc64-sol2-tdep.c: Likewise.
5455 * sparc64-tdep.c: Likewise.
5456 * sparc64fbsd-tdep.c: Likewise.
5457 * sparc64nbsd-tdep.c: Likewise.
5458 * sparc64obsd-tdep.c: Likewise.
5459 * sparcnbsd-tdep.c: Likewise.
5460 * sparcobsd-tdep.c: Likewise.
5461 * spu-multiarch.c: Likewise.
5462 * spu-tdep.c: Likewise.
5463 * stabsread.c: Likewise.
5464 * stack.c: Likewise.
5465 * symfile.c: Likewise.
5466 * symtab.c: Likewise.
5467 * target-descriptions.c: Likewise.
5468 * target-memory.c: Likewise.
5469 * target.c: Likewise.
5470 * tic6x-linux-tdep.c: Likewise.
5471 * tic6x-tdep.c: Likewise.
5472 * tilegx-linux-nat.c: Likewise.
5473 * tilegx-tdep.c: Likewise.
5475 * tramp-frame.c: Likewise.
5476 * tui/tui-out.c: Likewise.
5477 * tui/tui-winsource.c: Likewise.
5478 * ui-out.c: Likewise.
5479 * user-regs.c: Likewise.
5480 * utils.c: Likewise.
5481 * v850-tdep.c: Likewise.
5482 * valops.c: Likewise.
5483 * value.c: Likewise.
5484 * varobj.c: Likewise.
5485 * vax-nat.c: Likewise.
5486 * xml-syscall.c: Likewise.
5487 * xml-tdesc.c: Likewise.
5488 * xstormy16-tdep.c: Likewise.
5489 * xtensa-linux-nat.c: Likewise.
5490 * xtensa-tdep.c: Likewise.
5492 2014-08-07 Gary Benson <gbenson@redhat.com>
5494 * common/common-defs.h: Include common-utils.h.
5495 * defs.h: Do not include common-utils.h.
5496 * common/gdb_assert.h: Likewise.
5497 * darwin-nat.h: Likewise.
5498 * nat/linux-btrace.c: Likewise.
5499 * target/waitstatus.h: Likewise.
5501 2014-08-07 Gary Benson <gbenson@redhat.com>
5503 * common/common-defs.h: Include ptid.h.
5504 * defs.h: Do not include ptid.h.
5505 * inferior.h: Likewise.
5506 * infrun.h: Likewise.
5507 * nat/linux-btrace.h: Likewise.
5508 * nat/linux-osdata.h: Likewise.
5509 * target/waitstatus.h: Likewise.
5511 2014-08-07 Gary Benson <gbenson@redhat.com>
5513 * common/common-defs.h: Include gdb_locale.h.
5514 * defs.h: Do not include gdb_locale.h.
5516 2014-08-07 Gary Benson <gbenson@redhat.com>
5518 * common/common-defs.h: Include gdb/signals.h.
5519 * defs.h: Do not include gdb/signals.h.
5521 2014-08-07 Gary Benson <gbenson@redhat.com>
5523 * common/common-defs.h: Include pathmax.h.
5524 * defs.h: Do not include pathmax.h.
5526 2014-08-07 Gary Benson <gbenson@redhat.com>
5528 * common/common-defs.h: Include libiberty.h.
5529 * defs.h: Do not include libiberty.h.
5530 * common/queue.h: Likewise.
5531 * cp-name-parser.y: Likewise.
5532 * mi/mi-cmd-catch.c: Likewise.
5533 * python/python.c: Likewise.
5535 2014-08-07 Gary Benson <gbenson@redhat.com>
5537 * common/common-defs.h: Include ansidecl.h.
5538 * defs.h: Do not include ansidecl.h.
5539 * common/buffer.h: Likewise.
5540 * common/common-utils.h: Likewise.
5542 2014-08-07 Gary Benson <gbenson@redhat.com>
5544 * common/common-defs.h: Include stddef.h.
5545 * defs.h: Do not include stddef.h.
5546 * common/common-utils.h: Likewise.
5547 * amd64fbsd-nat.c: Likewise.
5548 * bcache.c: Likewise.
5549 * charset.c: Likewise.
5550 * common/buffer.h: Likewise.
5551 * common/vec.h: Likewise.
5552 * i386bsd-nat.c: Likewise.
5553 * nat/linux-btrace.h: Likewise.
5554 * ppcfbsd-nat.c: Likewise.
5555 * ppcnbsd-tdep.h: Likewise.
5556 * ppcobsd-nat.c: Likewise.
5557 * ppcobsd-tdep.h: Likewise.
5558 * python/py-gdb-readline.c: Likewise.
5560 2014-08-07 Gary Benson <gbenson@redhat.com>
5562 * common/common-defs.h: Include stdarg.h.
5563 * defs.h: Do not include stdarg.h.
5564 * ada-lang.c: Likewise.
5565 * common/common-utils.h: Likewise.
5566 * guile/scm-string.c: Likewise.
5567 * guile/scm-utils.c: Likewise.
5568 * m32c-tdep.c: Likewise.
5570 2014-08-07 Gary Benson <gbenson@redhat.com>
5572 * common/common-defs.h: Include stdlib.h.
5573 * defs.h: Do not include stdlib.h.
5574 * addrmap.c: Likewise.
5575 * bcache.c: Likewise.
5576 * common/buffer.c: Likewise.
5577 * common/common-utils.c: Likewise.
5578 * cp-name-parser.y: Likewise.
5579 * go32-nat.c: Likewise.
5580 * mn10300-linux-tdep.c: Likewise.
5581 * nat/linux-osdata.c: Likewise.
5582 * tui/tui.c: Likewise.
5583 * windows-nat.c: Likewise.
5585 2014-08-07 Gary Benson <gbenson@redhat.com>
5587 * common/common-defs.h: Include stdio.h.
5588 * defs.h: Do not include stdio.h.
5589 * ada-lang.c: Likewise.
5590 * common/buffer.c: Likewise.
5591 * common/common-utils.c: Likewise.
5592 * cp-name-parser.y: Likewise.
5593 * gnu-nat.c: Likewise.
5594 * go32-nat.c: Likewise.
5595 * i386gnu-nat.c: Likewise.
5596 * proc-api.c: Likewise.
5597 * proc-events.c: Likewise.
5598 * proc-flags.c: Likewise.
5599 * proc-why.c: Likewise.
5600 * python/python-internal.h: Likewise.
5601 * target-memory.c: Likewise.
5602 * tui/tui-io.c: Likewise.
5603 * tui/tui.c: Likewise.
5605 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5607 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5608 (scan_dyntag_auxv): Same.
5610 2014-08-06 Yao Qi <yao@codesourcery.com>
5612 * amd64-linux-nat.c: Remove duplicated include
5614 * i386-linux-nat.c: Likewise.
5616 2014-08-06 Yao Qi <yao@codesourcery.com>
5618 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5619 operand" with "Special opcode" in comments.
5621 2014-08-05 Gary Benson <gbenson@redhat.com>
5623 * interps.c (initialize_interps): Remove prototype.
5624 (interpreter_initialized): Remove static global.
5625 (interp_add): Do not call initialize_interps.
5626 (initialize_interps): Remove function.
5628 2014-08-05 Gary Benson <gbenson@redhat.com>
5630 * utils.c (vwarning): Remove spurious va_end.
5632 2014-08-05 Alan Modra <amodra@gmail.com>
5634 * charset.c (convert_between_encodings): Cast result of obstack_base.
5635 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5636 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5637 (read_unwind_info): Use size_t for some locals.
5638 * jit.c (finalize_symtab): Likewise.
5639 * utils.c (hashtab_obstack_allocate): Likewise.
5640 * symmisc.c (print_objfile_statistics): Update format strings.
5642 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5644 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5645 (Changes in GDB 7.8): ... here.
5647 2014-08-04 Tom Tromey <tromey@redhat.com>
5649 * target.c (set_targetdebug): New function.
5650 (initialize_targets): Pass set_targetdebug when creating "set
5653 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5655 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5656 if detecting a variable-sized field that is not the last field.
5657 Fix struct type length computation.
5659 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5661 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5664 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5666 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5667 Remove "+ 8" offset in computation of CHAIN_VMA.
5669 2014-07-31 Doug Evans <dje@google.com>
5671 * inflow.c (child_terminal_inferior): Add comment.
5672 (child_terminal_ours_for_output): Add comment.
5673 (child_terminal_ours): Add comment.
5674 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5675 (linux_nat_terminal_ours): Add comment.
5677 2014-07-31 Gary Benson <gbenson@redhat.com>
5679 * common/btrace-common.h: Do not include defs.h or server.h.
5680 * nat/mips-linux-watch.h: Likewise.
5681 * gdb-dlfcn.h: Do not include defs.h.
5682 * tracefile.h: Likewise.
5684 2014-07-30 Roland McGrath <mcgrathr@google.com>
5686 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5688 2014-07-30 Tom Tromey <tromey@redhat.com>
5690 * bsd-kvm.c (bsd_kvm_open): Constify.
5691 * corelow.c (core_open): Constify.
5692 * ctf.c (ctf_open): Constify.
5693 * dbug-rom.c (dbug_open): Constify.
5694 * exec.c (exec_open): Constify.
5695 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5696 * microblaze-rom.c (picobug_open): Constify.
5697 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5699 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5700 * record-btrace.c (record_btrace_open): Constify.
5701 * record-full.c (record_full_core_open_1, record_full_open_1)
5702 (record_full_open): Constify.
5703 * remote-m32r-sdi.c (m32r_open): Constify.
5704 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5705 (rockhopper_open, lsi_open): Constify.
5706 * remote-sim.c (gdbsim_open): Constify.
5707 * remote.c (remote_open, extended_remote_open, remote_open_1):
5709 * target.h (struct target_ops) <to_open>: Make "arg" const.
5710 * tracefile-tfile.c (tfile_open): Constify.
5712 2014-07-30 Tom Tromey <tromey@redhat.com>
5714 * breakpoint.c (map_breakpoint_numbers): Update.
5715 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5716 (get_number_const): New function.
5717 (get_number): Rewrite using get_number_const.
5718 (init_number_or_range): Make "string" const.
5719 (number_is_in_list): Make "list" const.
5720 * cli/cli-utils.h (get_number_const): Declare.
5721 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5722 (init_number_or_range, number_is_in_list): Update.
5723 * printcmd.c (map_display_numbers): Update.
5724 * value.c (value_from_history_ref): Constify.
5725 * value.h (value_from_history_ref): Update.
5727 2014-07-30 Tom Tromey <tromey@redhat.com>
5729 * corefile.c (hook_type, call_extra_exec_file_hooks)
5730 (specify_exec_file_hook): Constify.
5731 * exec.c (exec_file_attach): Make "filename" const.
5732 * gdbcore.h (deprecated_exec_file_display_hook)
5733 (specify_exec_file_hook, exec_file_attach): Constify.
5734 * main.c (captured_main): Use catch_command_errors_const.
5736 2014-07-30 Tom Tromey <tromey@redhat.com>
5738 * target.c (open_target): New function.
5739 (add_target_with_completer, add_deprecated_target_alias): Use
5740 set_cmd_sfunc, set_cmd_context.
5741 (debug_to_open): Remove.
5742 (setup_target_debug): Update.
5744 2014-07-30 Yao Qi <yao@codesourcery.com>
5746 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5748 * parse.c (exp_iterate): Update comments.
5750 2014-07-30 Gary Benson <gbenson@redhat.com>
5752 * common/common-defs.h: New file.
5753 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5754 * defs.h: Include common-defs.h.
5755 Do not include config.h or build-gnulib/config.h.
5757 2014-07-30 Gary Benson <gbenson@redhat.com>
5759 * common/common-utils.h: Do not include config.h.
5760 * nat/linux-btrace.h: Likewise.
5762 2014-07-30 Gary Benson <gbenson@redhat.com>
5764 * btrace.c: Include defs.h.
5765 * common/ptid.c: Include defs.h or server.h as appropriate.
5766 * nat/mips-linux-watch.c: Likewise.
5768 2014-07-29 Tom Tromey <tromey@redhat.com>
5770 * target.c (target_is_pushed): Simplify.
5772 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5776 2014-07-29 Yao Qi <yao@codesourcery.com>
5779 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5781 2014-07-28 Doug Evans <xdje42@gmail.com>
5784 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5785 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5788 2014-07-28 Will Newton <will.newton@linaro.org>
5790 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5791 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5792 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5793 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5794 (THUMB2_EABI_SYSCALL): Likewise.
5795 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5797 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5798 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5800 2014-07-27 Doug Evans <xdje42@gmail.com>
5802 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5804 2014-07-27 Doug Evans <xdje42@gmail.com>
5806 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5808 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5809 Doug Evans <xdje42@gmail.com>
5812 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5813 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5814 * configure.ac: Try to use guild to compile an scm file, if it fails
5815 then disable guile support.
5816 * configure: Regenerate.
5817 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5819 (GUILE_COMPILED_FILES): New variable.
5820 (GUILE_FILES) Update.
5821 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5822 (stamp-guile): Compile scm files.
5823 * guile/guile.c (boot_guile_support): New function.
5824 (standard_throw_args_p): New function.
5825 (print_standard_throw_error, print_throw_error): New functions.
5826 (handle_boot_error): New function.
5827 (initialize_scheme_side): Rewrite to call boot_guile_support.
5828 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5829 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5831 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5832 Doug Evans <xdje42@gmail.com>
5835 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5836 * guile/lib/gdb/support.scm: New file.
5837 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5838 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5840 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5842 (%assert-type): Ditto, and renamed to assert-type.
5843 (%exception-print-style): Delete.
5845 2014-07-26 Doug Evans <xdje42@gmail.com>
5848 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5849 * configure: Regenerate.
5850 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5852 (PYTHON_FILES): New variable.
5853 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5854 (GUILE_FILES): New variable.
5855 (stamp-python, install-python, uninstall-python): Handle empty
5857 (stamp-guile, install-guile, uninstall-guile): Ditto.
5859 2014-07-26 Doug Evans <xdje42@gmail.com>
5862 * guile/lib/gdb.scm (pretty-printers): Export.
5863 (set-pretty-printers!): Export.
5864 * guile/lib/gdb/printing.scm (gdb module): Update.
5865 (prepend-pretty-printer!, append-pretty-printer!): Update.
5866 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5867 (pretty_printer_list_var): Delete.
5868 (pretty_printer_list): New static global.
5869 (gdbscm_pretty_printers): New function.
5870 (gdbscm_set_pretty_printers_x): New function.
5871 (ppscm_find_pretty_printer_from_gdb): Update.
5872 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5873 (gdbscm_initialize_pretty_printers): Update.
5875 2014-07-26 Doug Evans <xdje42@gmail.com>
5878 * configure.ac: Add check for header gc/gc.h.
5879 Add check for function setenv.
5880 * configure: Regenerate.
5881 * config.in: Regenerate.
5882 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5884 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5886 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5887 variation in gdbarch matching.
5889 2014-07-25 Tom Tromey <tromey@redhat.com>
5891 * exec.c (using_exec_ops): Remove.
5892 (exec_close_1): Update. Remove extraneous block, reindent.
5893 (add_target_sections): Use target_is_pushed.
5895 2014-07-25 Pedro Alves <palves@redhat.com>
5897 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5898 * monitor.c (monitor_create_inferior): Likewise.
5899 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5900 * remote-sim.c (gdbsim_create_inferior): Likewise.
5901 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5902 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5903 * windows-nat.c (do_initial_windows_stuff): Likewise.
5905 2014-07-25 Pedro Alves <palves@redhat.com>
5907 * NEWS: Mention signal passing and "signal" command changes.
5908 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5910 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5912 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5913 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5914 (jump_command): Adjust clear_proceed_status call.
5915 (signal_command): Warn if other thread that are resumed have
5916 signals that will be delivered. Adjust clear_proceed_status call.
5917 (until_next_command, finish_command)
5918 (proceed_after_attach_callback, attach_command_post_wait)
5919 (attach_command): Adjust clear_proceed_status call.
5920 * infrun.c (proceed_after_vfork_done): Likewise.
5921 (proceed_after_attach_callback): Adjust comment.
5922 (clear_proceed_status_thread): Clear stop_signal if not in pass
5924 (clear_proceed_status_callback): Delete.
5925 (clear_proceed_status): New 'step' parameter. Only clear the
5926 proceed status of threads the command being prepared is about to
5928 (proceed): If passed in an explicit signal, override stop_signal
5929 with it. Don't pass the last stop signal to the thread we're
5931 (init_wait_for_inferior): Adjust clear_proceed_status call.
5932 (switch_back_to_stepped_thread): Clear the signal if it should not
5934 * infrun.h (clear_proceed_status): New 'step' parameter.
5935 (user_visible_resume_ptid): Add comment.
5936 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5937 signal is in pass state.
5938 * remote.c (append_pending_thread_resumptions): Likewise.
5939 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5941 2014-07-25 Tom Tromey <tromey@redhat.com>
5943 * target.h (target_stopped_data_address)
5944 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5947 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5949 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5951 (avr_pointer_to_address): Likewise.
5953 2014-07-24 Tom Tromey <tromey@redhat.com>
5955 * monitor.c (compile_pattern): Update.
5956 * target.h (struct target_ops) <to_shortname, to_longname,
5959 2014-07-24 Tom Tromey <tromey@redhat.com>
5961 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5962 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5963 (add_info_alias, add_com): Make "doc" const.
5964 (print_doc_line): Make "str" const.
5965 (delete_cmd): Update.
5966 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5967 (print_doc_line): Update.
5968 * cli/cli-script.c (document_command): Update.
5969 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5970 (add_com, add_info, add_info_alias): Update.
5971 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5972 * python/py-cmd.c (cmdpy_destroyer): Update.
5974 2014-07-24 Tom Tromey <tromey@redhat.com>
5976 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5977 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5978 (help_cmd_list): Constify.
5979 (lookup_cmd): Update.
5980 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5982 (help_cmd_list, apropos_cmd): Update.
5983 * cli/cli-script.c (show_user): Update.
5984 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5985 * cli/cli-setshow.h (cmd_show_list): Update.
5986 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5987 (cmd_show_list): Update.
5988 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5989 * python/py-cmd.c (cmdpy_destroyer): Update.
5991 2014-07-24 Tom Tromey <tromey@redhat.com>
5993 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5994 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5996 * command.h (deprecate_cmd): Update.
5997 * maint.c (maintenance_do_deprecate): Add casts.
5999 2014-07-24 Tom Tromey <tromey@redhat.com>
6001 * cli/cli-decode.c (help_cmd): Make parameter "const".
6002 * cli/cli-decode.h (help_cmd): Update.
6004 2014-07-24 Tom Tromey <tromey@redhat.com>
6006 * stack.c (up_silently_base, down_silently_base): Make argument
6009 2014-07-24 Tom Tromey <tromey@redhat.com>
6011 * solib.c (solib_add): Make "pattern" const.
6012 * solib.h (solib_add): Update.
6014 2014-07-24 Tom Tromey <tromey@redhat.com>
6016 * remote.c (remote_serial_open, print_packet, putpkt)
6017 (putpkt_binary): Constify.
6018 * remote.h (putpkt): Update.
6020 2014-07-24 Tom Tromey <tromey@redhat.com>
6022 * monitor.c (monitor_open): Make "args" const.
6023 * monitor.h (monitor_open): Update.
6025 2014-07-24 Tom Tromey <tromey@redhat.com>
6027 * maint.c (match_bfd_flags): Make "string" const.
6028 (print_bfd_section_info): Remove casts.
6029 (print_objfile_section_info): Make "string" const.
6031 2014-07-24 Tom Tromey <tromey@redhat.com>
6033 * inf-child.c (inf_child_open_target): Make "arg" const.
6034 * inf-child.h (inf_child_open_target): Update.
6036 2014-07-24 Tom Tromey <tromey@redhat.com>
6038 * environ.c (unset_in_environ): Make "var" const.
6039 * environ.h (unset_in_environ): Update.
6041 2014-07-24 Tom Tromey <tromey@redhat.com>
6043 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
6045 (scan_filename_with_cleanup): Likewise.
6046 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
6047 Make arguments const.
6048 (restore_command): Update.
6050 2014-07-24 Pedro Alves <palves@redhat.com>
6052 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
6054 2014-07-24 Tom Tromey <tromey@redhat.com>
6055 Gary Benson <gbenson@redhat.com>
6057 * nat/linux-ptrace.c (additional_flags): New global.
6058 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
6059 additional_flags; don't check GDBSERVER.
6060 (linux_ptrace_set_additional_flags): New function.
6061 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6063 * linux-nat.c (_initialize_linux_nat): Call
6064 linux_ptrace_set_additional_flags.
6066 2014-07-24 Tom Tromey <tromey@redhat.com>
6068 * make-target-delegates (munge_type, write_debugmethod): New
6070 (debug_names): New global.
6071 ($TARGET_DEBUG_PRINTER): New global.
6072 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
6074 Write debug methods. Generate init_debug_target.
6075 * target-debug.h: New file.
6076 * target-delegates.c: Rebuild.
6077 * target.c: Include target-debug.h.
6078 (debug_target): Hoist definition.
6079 (target_kill, target_get_section_table, target_memory_map)
6080 (target_flash_erase, target_flash_done, target_detach)
6081 (target_disconnect, target_wait, target_resume)
6082 (target_pass_signals, target_program_signals, target_follow_fork)
6083 (target_mourn_inferior, target_search_memory)
6084 (target_thread_address_space, target_close)
6085 (target_find_new_threads, target_core_of_thread)
6086 (target_verify_memory, target_insert_mask_watchpoint)
6087 (target_remove_mask_watchpoint): Remove targetdebug code.
6088 (debug_to_post_attach, debug_to_prepare_to_store)
6089 (debug_to_files_info, debug_to_insert_breakpoint)
6090 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
6091 (debug_to_region_ok_for_hw_watchpoint)
6092 (debug_to_can_accel_watchpoint_condition)
6093 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
6094 (debug_to_watchpoint_addr_within_range)
6095 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
6096 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
6097 (debug_to_terminal_init, debug_to_terminal_inferior)
6098 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
6099 (debug_to_terminal_save_ours, debug_to_terminal_info)
6100 (debug_to_load, debug_to_post_startup_inferior)
6101 (debug_to_insert_fork_catchpoint)
6102 (debug_to_remove_fork_catchpoint)
6103 (debug_to_insert_vfork_catchpoint)
6104 (debug_to_remove_vfork_catchpoint)
6105 (debug_to_insert_exec_catchpoint)
6106 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
6107 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
6108 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
6109 (setup_target_debug): Call init_debug_target.
6110 * target.h (TARGET_DEBUG_PRINTER): New macro.
6111 (struct target_ops) <to_resume, to_wait, to_pass_signals,
6112 to_program_signals>: Use TARGET_DEBUG_PRINTER.
6114 2014-07-24 Gary Benson <gbenson@redhat.com>
6116 * exceptions.h (throw_vfatal): Renamed to...
6117 (throw_vquit): New declaration.
6118 (throw_quit): Likewise.
6119 * exceptions.c (throw_vfatal): Renamed to...
6120 (throw_vquit): New function.
6121 (throw_quit): Likewise.
6122 (throw_error): Call throw_verror rather than throw_it.
6123 * utils.h (vfatal): Removed.
6125 * utils.c (vfatal): Removed.
6127 (internal_verror): Replaced call to fatal with call to throw_quit.
6128 (quit): Replaced calls to fatal with calls to throw_quit.
6130 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
6132 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6135 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
6137 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6138 less than zero in conditional expression.
6140 2014-07-23 Tom Tromey <tromey@redhat.com>
6142 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6143 ($INTRO_PART): Don't match whitespace.
6144 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6146 ($METHOD): Add $METHOD_TRAILER.
6148 (scan_target_h): New sub.
6149 Change main loop not to collect state.
6150 * target-delegates.c: Rebuild.
6152 2014-07-23 Gary Benson <gbenson@redhat.com>
6154 * cp-support.c (gdb_demangle): Fix build on systems without
6157 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6159 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6160 for reference entry value target data value.
6162 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6164 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6165 value_available_contents_eq.
6167 2014-07-22 Pedro Alves <palves@redhat.com>
6169 * value.c (allocate_optimized_out_value): Don't mark value as
6172 2014-07-22 Jiong Wang <jiong.wang@arm.com>
6174 * MAINTAINERS (Write After Approval): Update my email address.
6176 2014-07-20 Doug Evans <dje@google.com>
6179 * remote.c (putpkt_binary): Add text to error message.
6181 2014-07-20 Yao Qi <yao@codesourcery.com>
6183 * eval.c: Remove "Chill" from comments.
6184 * gdbtypes.h: Likewise.
6185 * symtab.h: Likewise.
6187 2014-07-20 Yao Qi <yao@codesourcery.com>
6189 * std-operator.def: Update comments to TERNOP_SLICE.
6191 2014-07-20 Yao Qi <yao@codesourcery.com>
6193 * std-operator.def: Remove BINOP_RANGE.
6194 * breakpoint.c (watchpoint_exp_is_const): Update.
6195 * expprint.c (dump_subexp_body_standard): Likewise.
6196 * eval.c (init_array_element): Remove dead code.
6197 (evaluate_subexp_standard): Likewise.
6199 2014-07-20 Yao Qi <yao@codesourcery.com>
6201 * std-operator.def: Remove BINOP_IN.
6202 * breakpoint.c (watchpoint_exp_is_const): Update.
6203 * eval.c (evaluate_subexp_standard): Likewise.
6204 * expprint.c (dump_subexp_body_standard): Likewise.
6206 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6208 * microblaze-tdep.c (microblaze_register_names): Add
6209 the rshr and rslr register names.
6210 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6211 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6212 Use of tdesc_numbered_register. Use of
6213 microblaze_register_g_packet_guesses. Use of
6214 tdesc_use_registers. Use of set_gdbarch_register_type.
6215 (microblaze_register_g_packet_guesses): New.
6216 * microblaze-tdep.h (microblaze_reg_num): Add
6217 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6218 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6219 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6220 * features/microblaze-core.xml: New file.
6221 * features/microblaze-stack-protect.xml: New file.
6222 * features/microblaze-with-stack-protect.c: New file.
6223 * features/microblaze-with-stack-protect.xml: New file.
6224 * features/microblaze.xml: New file.
6225 * features/microblaze.c: New file.
6226 * features/Makefile (microblaze-with-stack-protect): Add
6227 microblaze-with-stack-protect microblaze and microblaze-expedite.
6228 * regformats/microblaze-with-stack-protect.dat: New file.
6229 * regformats/microblaze.dat: New file.
6230 * doc/gdb.texinfo (MicroBlaze Features): Added.
6232 2014-07-18 Tom Tromey <tromey@redhat.com>
6234 * exec.c (exec_ops): Now static.
6235 * exec.h (exec_ops): Don't declare.
6237 2014-07-18 Tom Tromey <tromey@redhat.com>
6239 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6240 to find_target_beneath.
6241 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6242 find_target_beneath.
6243 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6245 2014-07-18 Tom Tromey <tromey@redhat.com>
6248 * utils.c (quit): Use target_supports_terminal_ours.
6249 * target.h (target_supports_terminal_ours): Declare.
6250 * target.c (target_supports_delete_record): Don't check
6251 to_delete_record against NULL.
6252 (target_supports_terminal_ours): New function.
6254 2014-07-18 Tom Tromey <tromey@redhat.com>
6257 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6258 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6259 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6260 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6261 * windows-nat.c (windows_xfer_partial): Always delegate.
6262 * record-btrace.c (record_btrace_xfer_partial): Simplify
6264 (record_btrace_fetch_registers, record_btrace_store_registers)
6265 (record_btrace_prepare_to_store, record_btrace_resume)
6266 (record_btrace_wait, record_btrace_find_new_threads)
6267 (record_btrace_thread_alive): Likewise.
6268 * procfs.c (procfs_xfer_partial): Always delegate.
6269 * corelow.c (core_xfer_partial): Always delegate.
6270 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6272 2014-07-18 Tom Tromey <tromey@redhat.com>
6274 * exec.c (exec_make_note_section): Move earlier.
6276 2014-07-17 Doug Evans <dje@google.com>
6279 * maint.c (count_symtabs_and_blocks): Handle NULL
6280 current_program_space.
6281 (report_command_stats): Check global enabled flag in addition to
6282 recorded enabled flag.
6283 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6285 2014-07-16 Pedro Alves <palves@redhat.com>
6287 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6289 2014-07-16 Tom Tromey <tromey@redhat.com>
6291 * target.h (struct target_ops) <to_delete_record>: Reformat
6294 2014-07-16 Tom Tromey <tromey@redhat.com>
6296 * target-delegates.c: Rebuild.
6298 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6300 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6301 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6302 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6303 (avr_pointer_to_address): Likewise.
6304 (avr_address_class_type_flags): New function.
6305 (avr_address_class_type_flags_to_name): Likewise.
6306 (avr_address_class_name_to_type_flags): Likewise.
6307 (avr_gdbarch_init): Set address_class_type_flags,
6308 address_class_type_flags_to_name and
6309 address_class_name_to_type_flags.
6311 2014-07-15 Pedro Alves <palves@redhat.com>
6313 * linux-nat.c (kill_callback): Save errno and work with saved
6316 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6318 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6320 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6322 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6323 breakpoint support correctly.
6325 2014-07-14 Pedro Alves <palves@redhat.com>
6327 * utils.c (prompt_for_continue): Call target_terminal_ours.
6329 2014-07-14 Pedro Alves <palves@redhat.com>
6331 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6332 catch_errors. Don't re-enable stdin or notify observers where,
6334 (fetch_inferior_event_wrapper): Delete.
6336 2014-07-14 Pedro Alves <palves@redhat.com>
6339 * top.c: Include "inf-loop.h".
6340 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6342 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6344 (gdb_readline_wrapper): Store whether the target is async, and
6347 2014-07-14 Pedro Alves <palves@redhat.com>
6350 * top.c (gdb_readline_wrapper_line): Tweak comment.
6351 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6352 the input handler callback.
6354 2014-07-14 Pedro Alves <palves@redhat.com>
6357 * main.c: Include event-top.h.
6358 (handle_command_errors): New function.
6359 (catch_command_errors, catch_command_errors_const): Use it.
6361 2014-07-14 Pedro Alves <palves@redhat.com>
6363 * exceptions.c (catch_command_errors, catch_command_errors_const):
6365 * exceptions.h (catch_command_errors_ftype)
6366 (catch_command_errors_const_ftype): Moved to main.c.
6367 (catch_command_errors, catch_command_errors_const): Delete
6369 * main.c (catch_command_errors_ftype)
6370 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6371 (catch_command_errors, catch_command_errors_const)): Moved here
6372 from exceptions.c and make static.
6374 2014-07-14 Pedro Alves <palves@redhat.com>
6376 * exceptions.c (print_any_exception): Delete.
6377 (catch_exceptions_with_msg): Use exception_print instead of
6378 print_any_exception.
6379 (catch_errors): Use exception_fprintf instead of
6380 print_any_exception.
6381 (catch_command_errors, catch_command_errors_const): Use
6382 exception_print instead of print_any_exception.
6384 2014-07-14 Pedro Alves <palves@redhat.com>
6386 * infcall.c (run_inferior_call): Set 'sync_execution' while
6387 running the inferior call.
6389 2014-07-14 Pedro Alves <palves@redhat.com>
6391 * value.c (value_contents_equal): Delete function.
6392 * value.h (value_contents_equal): Delete declaration.
6394 2014-07-14 Tom Tromey <tromey@redhat.com>
6397 * gdbtypes.c (is_dynamic_type_internal): New function, from
6399 (is_dynamic_type): Rewrite.
6400 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6401 (resolve_dynamic_struct): Likewise.
6402 (resolve_dynamic_type_internal): New function, from
6403 resolve_dynamic_type.
6404 (resolve_dynamic_type): Rewrite.
6406 2014-07-14 Tom Tromey <tromey@redhat.com>
6408 * target.c (target_require_runnable): Also check record_stratum.
6411 2014-07-11 Yao Qi <yao@codesourcery.com>
6413 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6414 thumb_instruction_restores_sp return true.
6416 2014-07-11 Yao Qi <yao@codesourcery.com>
6418 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6419 (thumb_in_function_epilogue_p): Call
6420 thumb_instruction_restores_sp.
6422 2014-07-11 Yao Qi <yao@codesourcery.com>
6424 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6426 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6428 2014-07-11 Gary Benson <gbenson@redhat.com>
6430 * amd64-linux-nat.c (gdbcore.h): Remove include.
6431 (regset.h): Likewise.
6432 (nat/linux-btrace.h): Likewise.
6433 (btrace.h): Likewise.
6434 (gdb_assert.h): Likewise.
6435 (string.h): Likewise.
6436 (sys/uio.h): Likewise.
6437 (sys/debugreg.h): Likewise.
6438 (sys/syscall.h): Likewise.
6439 (sys/procfs.h): Likewise.
6440 (sys/user.h): Likewise.
6441 (asm/ptrace.h): Likewise.
6442 (i386-nat.h): Likewise.
6443 * i386-linux-nat.c (i386-nat.h): Likewise.
6444 (regset.h): Likewise.
6445 (target.h): Likewise.
6446 (linux-nat.h): Likewise.
6447 (nat/linux-btrace.h): Likewise.
6448 (btrace.h): Likewise.
6449 (gdb_assert.h): Likewise.
6450 (string.h): Likewise.
6451 (sys/uio.h): Likewise.
6452 (sys/user.h): Likewise.
6453 (sys/procfs.h): Likewise.
6454 (sys/reg.h): Likewise.
6455 (sys/debugreg.h): Likewise.
6456 (ORIG_EAX): Remove definition.
6458 2014-07-11 Gary Benson <gbenson@redhat.com>
6460 * i386-linux-nat.h: New file.
6461 * x86-linux-nat.h: Likewise.
6462 * x86-linux-nat.c: Likewise.
6463 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6464 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6465 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6466 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6467 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6468 (PTRACE_SETREGSET): Likewise.
6469 (arch_lwp_info): Now in x86-linux-nat.c.
6470 (have_ptrace_getregset): Now in x86-linux-nat.h.
6471 (x86_linux_dr_get): Now in x86-linux-nat.c.
6472 (x86_linux_dr_set): Likewise.
6473 (x86_linux_dr_get_addr): Likewise.
6474 (x86_linux_dr_get_control): Likewise.
6475 (x86_linux_dr_get_status): Likewise.
6476 (update_debug_registers_callback): Likewise.
6477 (x86_linux_dr_set_control): Likewise.
6478 (x86_linux_dr_set_addr): Likewise.
6479 (x86_linux_prepare_to_resume): Likewise.
6480 (x86_linux_new_thread): Likewise.
6481 (x86_linux_new_fork): Likewise.
6482 (x86_linux_get_thread_area): Likewise.
6483 (super_post_startup_inferior): Likewise.
6484 (x86_linux_child_post_startup_inferior): Likewise.
6485 (AMD64_LINUX_USER64_CS): Likewise.
6486 (AMD64_LINUX_X32_DS): Likewise.
6487 (x86_linux_read_description): Likewise.
6488 (x86_linux_enable_btrace): Likewise.
6489 (x86_linux_disable_btrace): Likewise.
6490 (x86_linux_teardown_btrace): Likewise.
6491 (x86_linux_read_btrace): Likewise.
6492 (x86_linux_create_target): Likewise.
6493 (x86_linux_add_target): Likewise.
6494 * i386-linux-nat.c (x86-linux-nat.h): New include.
6495 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6496 (PTRACE_SETREGSET): Likewise.
6497 (arch_lwp_info): Now in x86-linux-nat.c.
6498 (have_ptrace_getregset): Now in x86-linux-nat.h.
6499 (x86_linux_dr_get): Now in x86-linux-nat.c.
6500 (x86_linux_dr_set): Likewise.
6501 (x86_linux_dr_get_addr): Likewise.
6502 (x86_linux_dr_get_control): Likewise.
6503 (x86_linux_dr_get_status): Likewise.
6504 (update_debug_registers_callback): Likewise.
6505 (x86_linux_dr_set_control): Likewise.
6506 (x86_linux_dr_set_addr): Likewise.
6507 (x86_linux_prepare_to_resume): Likewise.
6508 (x86_linux_new_thread): Likewise.
6509 (x86_linux_new_fork): Likewise.
6510 (x86_linux_get_thread_area): Likewise.
6511 (super_post_startup_inferior): Likewise.
6512 (x86_linux_child_post_startup_inferior): Likewise.
6513 (AMD64_LINUX_USER64_CS): Likewise.
6514 (AMD64_LINUX_X32_DS): Likewise.
6515 (x86_linux_read_description): Likewise.
6516 (x86_linux_enable_btrace): Likewise.
6517 (x86_linux_disable_btrace): Likewise.
6518 (x86_linux_teardown_btrace): Likewise.
6519 (x86_linux_read_btrace): Likewise.
6520 (x86_linux_create_target): Likewise.
6521 (x86_linux_add_target): Likewise.
6523 2014-07-11 Gary Benson <gbenson@redhat.com>
6525 * amd64-linux-nat.c: Comment and whitespace changes.
6526 * i386-linux-nat.c: Comment and whitespace changes.
6528 2014-07-11 Gary Benson <gbenson@redhat.com>
6530 * amd64-linux-nat.c (x86_linux_create_target): New function.
6531 (x86_linux_add_target): Likewise.
6532 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6533 * i386-linux-nat.c (x86_linux_create_target): New function.
6534 (x86_linux_add_target): Likewise.
6535 (_initialize_i386_linux_nat): Delegate to the above new functions.
6537 2014-07-11 Gary Benson <gbenson@redhat.com>
6539 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6540 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6541 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6542 (ps_get_thread_area): Delegate to the above.
6544 2014-07-11 Gary Benson <gbenson@redhat.com>
6546 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6547 x86_linux_read_description. All uses updated. amd64-specific
6548 code conditionalized. Conditionalized i386-specific code added.
6549 Redundant cast removed.
6550 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6551 x86_linux_read_description. All uses updated. i386-specific
6552 code conditionalized. Conditionalized amd64-specific code added.
6553 One sizeof replaced with the actual type it is describing.
6555 2014-07-11 Gary Benson <gbenson@redhat.com>
6557 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6558 x86_linux_dr_get. All uses updated.
6559 (amd64_linux_dr_set): Renamed to
6560 x86_linux_dr_set. All uses updated.
6561 (amd64_linux_dr_get_addr): Renamed to
6562 x86_linux_dr_get_addr. All uses updated.
6563 (amd64_linux_dr_get_control): Renamed to
6564 x86_linux_dr_get_control. All uses updated.
6565 (amd64_linux_dr_get_status): Renamed to
6566 x86_linux_dr_get_status. All uses updated.
6567 (amd64_linux_dr_set_control): Renamed to
6568 x86_linux_dr_set_control. All uses updated.
6569 (amd64_linux_dr_set_addr): Renamed to
6570 x86_linux_dr_set_addr. All uses updated.
6571 (amd64_linux_prepare_to_resume): Renamed to
6572 x86_linux_prepare_to_resume. All uses updated.
6573 (amd64_linux_new_thread): Renamed to
6574 x86_linux_new_thread. All uses updated.
6575 (amd64_linux_new_fork): Renamed to
6576 x86_linux_new_fork. All uses updated.
6577 (amd64_linux_child_post_startup_inferior): Renamed to
6578 x86_linux_child_post_startup_inferior. All uses updated.
6579 (amd64_linux_enable_btrace): Renamed to
6580 x86_linux_enable_btrace. All uses updated.
6581 (amd64_linux_disable_btrace): Renamed to
6582 x86_linux_disable_btrace. All uses updated.
6583 (amd64_linux_teardown_btrace): Renamed to
6584 x86_linux_teardown_btrace. All uses updated.
6585 (amd64_linux_read_btrace): Renamed to
6586 x86_linux_read_btrace. All uses updated.
6587 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6588 x86_linux_dr_get. All uses updated.
6589 (i386_linux_dr_set): Renamed to
6590 x86_linux_dr_set. All uses updated.
6591 (i386_linux_dr_get_addr): Renamed to
6592 x86_linux_dr_get_addr. All uses updated.
6593 (i386_linux_dr_get_control): Renamed to
6594 x86_linux_dr_get_control. All uses updated.
6595 (i386_linux_dr_get_status): Renamed to
6596 x86_linux_dr_get_status. All uses updated.
6597 (i386_linux_dr_set_control): Renamed to
6598 x86_linux_dr_set_control. All uses updated.
6599 (i386_linux_dr_set_addr): Renamed to
6600 x86_linux_dr_set_addr. All uses updated.
6601 (i386_linux_prepare_to_resume): Renamed to
6602 x86_linux_prepare_to_resume. All uses updated.
6603 (i386_linux_new_thread): Renamed to
6604 x86_linux_new_thread. All uses updated.
6605 (i386_linux_new_fork): Renamed to
6606 x86_linux_new_fork. All uses updated.
6607 (i386_linux_child_post_startup_inferior): Renamed to
6608 x86_linux_child_post_startup_inferior. All uses updated.
6609 (i386_linux_enable_btrace): Renamed to
6610 x86_linux_enable_btrace. All uses updated.
6611 (i386_linux_disable_btrace): Renamed to
6612 x86_linux_disable_btrace. All uses updated.
6613 (i386_linux_teardown_btrace): Renamed to
6614 x86_linux_teardown_btrace. All uses updated.
6615 (i386_linux_read_btrace): Renamed to
6616 x86_linux_read_btrace. All uses updated.
6618 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6620 * remote.c (extended_remote_post_attach): New function.
6621 (init_extended_remote_ops): Install it as to_post_attach method.
6623 2014-07-09 Pedro Alves <palves@redhat.com>
6625 * infcmd.c (attach_command_post_wait): Don't call
6626 target_terminal_inferior here.
6627 (attach_command): Call it here instead.
6629 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6631 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6633 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6634 from varobj.c, with additional checks.
6635 (c_varobj_ops): Fill in is_path_expr_parent field.
6636 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6637 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6639 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6641 (varobj_default_is_path_expr_parent): New function.
6642 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6643 (varobj_default_is_path_expr_parent): Declare new function.
6645 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6647 * infcmd.c (finish_backward): Turn internal error into normal error.
6649 2014-07-07 Pedro Alves <palves@redhat.com>
6652 * remote.c (async_handle_remote_sigint)
6653 (async_handle_remote_sigint_twice): Call
6654 gdb_call_async_signal_handler instead of
6655 mark_async_signal_handler.
6657 2014-07-07 Tom Tromey <tromey@redhat.com>
6659 * target-delegates.c: Rebuild.
6660 * target.c (target_info_record): Remove.
6661 * record.c (info_record_command): Unconditionally call
6663 * target.h (struct target_ops) <to_info_record>: Use
6664 TARGET_DEFAULT_IGNORE.
6665 (target_info_record): Remove.
6667 2014-07-07 Tom Tromey <tromey@redhat.com>
6669 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6670 TARGET_DEFAULT_NORETURN.
6671 * target.c (generic_tls_error): New function.
6672 (target_translate_tls_address): Don't search target stack.
6673 * target-delegates.c: Rebuild.
6674 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6676 * linux-thread-db.c (thread_db_get_thread_local_address):
6677 Unconditionally call beneath target.
6679 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6681 * cli/cli-logging.c (pop_output_files): Assign targerr to
6684 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6686 * MAINTAINERS (Write After Approval): Update my email address.
6688 2014-07-02 Gary Benson <gbenson@redhat.com>
6690 * proc-service.c (ps_xfer_memory): Update comment.
6691 (ps_pstop): Remove unused function.
6692 (ps_pcontinue): Likewise.
6693 (ps_lstop): Likewise.
6694 (ps_lcontinue): Likewise.
6695 (ps_lgetxregsize): Likewise.
6696 (ps_lgetxregs): Likewise.
6697 (ps_lsetxregs): Likewise.
6698 (ps_plog): Likewise.
6699 (ps_ptread): Likewise.
6700 (ps_ptwrite): Likewise.
6702 2014-07-01 Mark Wielaard <mjw@redhat.com>
6704 * dwarf2read.c (add_array_cv_type): New function.
6705 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6706 (read_tag_volatile_type): Likewise.
6708 2014-07-01 Tom Tromey <tromey@redhat.com>
6710 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6711 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6712 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6713 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6714 * command.h (cmd_cfunc_ftype): Move earlier.
6715 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6716 (add_com, add_info): Use cmd_cfunc_ftype.
6718 2014-06-30 Tom Tromey <tromey@redhat.com>
6720 * symtab.c (operator_chars): Make parameters and return type
6722 (file_matches): Make "files" const.
6723 (struct search_symbols_data) <files>: Now const.
6724 (search_symbols): Make "regexp" and "files" parameters const.
6726 (symtab_symbol_info): Remove cast.
6727 (rbreak_command): Update.
6728 * symtab.h (search_symbols): Update.
6730 2014-06-27 Yao Qi <yao@codesourcery.com>
6732 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6733 Change parameter type to 'struct thread_info *'. Caller
6735 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6737 * dummy-frame.c (struct dummy_frame_id): New.
6738 (dummy_frame_id_eq): New function.
6739 (struct dummy_frame) <id>: Change its type to 'struct
6741 (dummy_frame_push): Add parameter ptid and save it in
6743 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6745 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6747 (lookup_dummy_frame): Change parameter type to 'struct
6748 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6749 instead of frame_id_eq.
6750 (dummy_frame_pop): Add parameter ptid. Callers updated.
6751 Update comments. Compose dummy_frame_id and pass it to
6753 (dummy_frame_discard): Add parameter ptid.
6754 (dummy_frame_sniffer): Compose dummy_frame_id and call
6755 dummy_frame_id_eq instead of frame_id_eq.
6756 (fprint_dummy_frames): Print ptid.
6757 * dummy-frame.h: Remove comments.
6758 (dummy_frame_push): Add ptid in declaration.
6759 (dummy_frame_pop, dummy_frame_discard): Likewise.
6761 2014-06-26 Tom Tromey <tromey@redhat.com>
6763 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6764 * command.h (error_no_arg): Update.
6766 2014-06-26 Tom Tromey <tromey@redhat.com>
6768 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6769 (do_show_command): Make "arg" const.
6770 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6772 2014-06-26 Tom Tromey <tromey@redhat.com>
6774 * record-full.c (record_full_get_bookmark): Make "args" const.
6775 (record_full_goto_bookmark): Make "raw_bookmark" const.
6776 * record.c (record_goto): New function.
6777 (cmd_record_goto): Use it. Now static.
6778 * record.h (record_goto): Declare.
6779 (cmd_record_goto): Remove declaration.
6780 * target-delegates.c: Rebuild.
6781 * target.h (struct target_ops) <to_get_bookmark,
6782 to_goto_bookmark>: Make parameter const.
6784 2014-06-26 Tom Tromey <tromey@redhat.com>
6786 * defs.h (generic_load): Update.
6787 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6788 * monitor.c (monitor_load): Make "args" const.
6789 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6790 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6792 (mips_load): Make "file" const.
6793 * remote-sim.c (gdbsim_load): Make "args" const.
6794 * remote.c (remote_load): Make "name" const.
6795 * symfile.c (generic_load): Make "args" const.
6796 * target-delegates.c: Rebuild.
6797 * target.c (target_load): Make "arg" const.
6798 (debug_to_load): Make "args" const.
6799 * target.h (struct target_ops) <to_load>: Make parameter const.
6800 (target_load): Update.
6802 2014-06-26 Tom Tromey <tromey@redhat.com>
6805 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6806 (dwarf2_physname, read_partial_die)
6807 (guess_partial_die_structure_name, fixup_partial_die)
6808 (guess_full_die_structure_name, anonymous_struct_prefix)
6809 (dwarf2_name): Use per-BFD obstack.
6811 2014-06-26 Yao Qi <yao@codesourcery.com>
6813 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6814 dummyframe and this_id into inner block below.
6816 2014-06-26 Yao Qi <yao@codesourcery.com>
6818 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6819 with "signal_pass[0]" in the initialization of signal_pass.
6821 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6823 * record-btrace.c (record_btrace_generating_corefile)
6824 (record_btrace_prepare_to_generate_core)
6825 (record_btrace_done_generating_core): New.
6826 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6827 (record_btrace_store_registers, record_btrace_prepare_to_store):
6828 Forward request when generating a core file.
6829 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6830 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6831 to_done_generating_core.
6833 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6835 * target.h (target_ops) <to_prepare_to_generate_core>
6836 <to_done_generating_core>: New.
6837 (target_prepare_to_generate_core, target_done_generating_core): New.
6838 * target.c (target_prepare_to_generate_core)
6839 (target_done_generating_core): New.
6840 * target-delegates.c: Regenerate.
6841 * gcore.c: (write_gcore_file): Rename to ...
6842 (write_gcore_file_1): ...this.
6843 (write_gcore_file): Call target_prepare_to_generate_core
6844 and target_done_generating_core.
6846 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6848 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6849 * gcore.c (write_gcore_file): Free memory returned from
6850 make_corefile_notes.
6851 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6852 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6854 2014-06-24 Yao Qi <yao@codesourcery.com>
6856 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6857 (arm_linux_init_abi): Set skip_trampoline_code with
6858 gdbarch_skip_trampoline_code instead of
6859 find_solib_trampoline_target.
6861 2014-06-24 Yao Qi <yao@codesourcery.com>
6863 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6864 arm_skip_bx_reg returns non-zero.
6866 2014-06-24 Yao Qi <yao@codesourcery.com>
6868 * arm-tdep.c (arm_skip_bx_reg): New function.
6869 (arm_skip_stub): Call arm_skip_bx_reg.
6871 2014-06-23 Don Breazeal <donb@codesourcery.com>
6873 * MAINTAINERS: Add myself as write-after-approval maintainer.
6875 2014-06-23 Pedro Alves <palves@redhat.com>
6877 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6878 DR_CONTROL before setting DR0..DR3.
6879 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6880 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6881 bits of DR_CONTROL related to the debug register slot being
6882 disabled. If all slots are vacant, clear local slowdown as well,
6883 and assert DR_CONTROL is 0.
6885 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6887 * python/lib/gdb/command/xmethods.py
6888 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6889 current progspace only if the string "progspace" matches LOCUS_RE.
6891 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6893 Fix --with-system-readline with readline-6.3 patch 5.
6894 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6895 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6898 2014-06-20 Tom Tromey <tromey@redhat.com>
6900 * dwarf2read.c (dw2_get_real_path): Use correct type in
6902 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6904 2014-06-20 Gary Benson <gbenson@redhat.com>
6906 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6907 * common/glibc_thread_db.h: Likewise.
6908 * common/i386-cpuid.h: Likewise.
6909 * common/i386-gcc-cpuid.h: Likewise.
6910 * common/linux-btrace.h: Likewise.
6911 * common/linux-osdata.h: Likewise.
6912 * common/linux-procfs.h: Likewise.
6913 * common/linux-ptrace.h: Likewise.
6914 * common/mips-linux-watch.h: Likewise.
6915 * common/linux-btrace.c: Moved to nat.
6916 * common/linux-osdata.c: Likewise.
6917 * common/linux-procfs.c: Likewise.
6918 * common/linux-ptrace.c: Likewise.
6919 * common/mips-linux-watch.c: Likewise.
6920 * nat/gdb_thread_db.h: Moved from common.
6921 * nat/glibc_thread_db.h: Likewise.
6922 * nat/i386-cpuid.h: Likewise.
6923 * nat/i386-gcc-cpuid.h: Likewise.
6924 * nat/linux-btrace.c: Likewise.
6925 * nat/linux-btrace.h: Likewise.
6926 * nat/linux-osdata.c: Likewise.
6927 * nat/linux-osdata.h: Likewise.
6928 * nat/linux-procfs.c: Likewise.
6929 * nat/linux-procfs.h: Likewise.
6930 * nat/linux-ptrace.c: Likewise.
6931 * nat/linux-ptrace.h: Likewise.
6932 * nat/mips-linux-watch.c: Likewise.
6933 * nat/mips-linux-watch.h: Likewise.
6934 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6935 (object file files): Reordered.
6936 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6937 of glibc_thread_db.h.
6939 2014-06-20 Gary Benson <gbenson@redhat.com>
6941 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6942 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6943 (i386_dr_low): Likewise.
6944 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6945 (i386_dr_low_set_addr): Likewise.
6946 (i386_dr_low_get_addr): Likewise.
6947 (i386_dr_low_can_set_control): Likewise.
6948 (i386_dr_low_set_control): Likewise.
6949 (i386_dr_low_get_control): Likewise.
6950 (i386_dr_low_get_status): Likewise.
6951 (i386_get_debug_register_length): Likewise.
6952 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6953 (i386_dr_low): Likewise.
6954 * nat/i386-dregs.c (i386-low.h): Remove include.
6955 (i386-nat.h): Likewise.
6956 (nat/i386-dregs.h): New include.
6957 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6958 (i386_dr_low_set_addr): Likewise.
6959 (i386_dr_low_get_addr): Likewise.
6960 (i386_dr_low_can_set_control): Likewise.
6961 (i386_dr_low_set_control): Likewise.
6962 (i386_dr_low_get_control): Likewise.
6963 (i386_dr_low_get_status): Likewise.
6964 (i386_get_debug_register_length): Likewise.
6965 (debug_hw_points): Likewise.
6967 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6969 * Makefile.in (SFILES): Add d-exp.y.
6970 (YYFILES): Add d-exp.c.
6971 (YYOBJ): Add d-exp.o.
6972 (local-maintainer-clean): Delete d-exp.c.
6973 * d-exp.y: New file.
6974 * d-lang.h (d_parse): New declaration.
6975 (d_error): New declaration.
6976 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6977 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6978 PREC_ORDER operators.
6979 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6981 2014-06-19 Yao Qi <yao@codesourcery.com>
6983 * gdbthread.h (any_running): Remove the declaration.
6984 * thread.c (any_running): Remove.
6986 2014-06-19 Yao Qi <yao@codesourcery.com>
6988 * gdbthread.h (struct thread_info) <state>: Change its type to
6989 'enum thread_state'. Update comments.
6991 2014-06-19 Pedro Alves <palves@redhat.com>
6993 * gdbthread.h (ALL_THREADS): Delete.
6994 (ALL_NON_EXITED_THREADS): New macro.
6995 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6996 instead of ALL_THREADS.
6997 * infrun.c (find_thread_needs_step_over)
6998 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6999 instead of ALL_THREADS.
7000 * record-btrace.c (record_btrace_open)
7001 (record_btrace_stop_recording, record_btrace_close)
7002 (record_btrace_is_replaying, record_btrace_resume)
7003 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
7004 * remote.c (append_pending_thread_resumptions): Likewise.
7005 * thread.c (thread_apply_all_command): Likewise.
7007 2014-06-19 Gary Benson <gbenson@redhat.com>
7009 * i386-nat.c (i386_stopped_by_watchpoint):
7010 Use i386_dr_stopped_by_watchpoint.
7011 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
7012 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
7014 2014-06-19 Gary Benson <gbenson@redhat.com>
7016 * nat/i386-dregs.c: New file.
7017 * Makefile.in (i386-dregs.o): New rule.
7018 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
7019 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
7020 * config/i386/darwin.mh (NATDEPFILES): Likewise.
7021 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7022 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
7023 * config/i386/go32.mh (NATDEPFILES): Likewise.
7024 * config/i386/linux.mh (NATDEPFILES): Likewise.
7025 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7026 * config/i386/mingw.mh (NATDEPFILES): Likewise.
7027 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
7028 * i386-nat.h (debug_hw_points): New declaration.
7029 * i386-nat.c (breakpoint.h): Remove include.
7030 (command.h): Likewise.
7031 (target.h): Likewise.
7032 (gdb_assert.h): Likewise.
7033 (debug_hw_points): Made nonstatic.
7034 (debug_printf): Now in i386-dregs.c.
7035 (TARGET_HAS_DR_LEN_8): Likewise.
7036 (DR_CONTROL_SHIFT): Likewise.
7037 (DR_CONTROL_SIZE): Likewise.
7038 (DR_RW_EXECUTE): Likewise.
7039 (DR_RW_WRITE): Likewise.
7040 (DR_RW_READ): Likewise.
7041 (DR_RW_IORW): Likewise.
7042 (DR_LEN_1): Likewise.
7043 (DR_LEN_2): Likewise.
7044 (DR_LEN_4): Likewise.
7045 (DR_LEN_8): Likewise.
7046 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7047 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7048 (DR_ENABLE_SIZE): Likewise.
7049 (DR_LOCAL_SLOWDOWN): Likewise.
7050 (DR_GLOBAL_SLOWDOWN): Likewise.
7051 (DR_CONTROL_RESERVED): Likewise.
7052 (I386_DR_CONTROL_MASK): Likewise.
7053 (I386_DR_VACANT): Likewise.
7054 (I386_DR_LOCAL_ENABLE): Likewise.
7055 (I386_DR_GLOBAL_ENABLE): Likewise.
7056 (I386_DR_DISABLE): Likewise.
7057 (I386_DR_SET_RW_LEN): Likewise.
7058 (I386_DR_GET_RW_LEN): Likewise.
7059 (I386_DR_WATCH_HIT): Likewise.
7060 (i386_wp_op_t): Likewise.
7061 (i386_show_dr): Likewise.
7062 (i386_length_and_rw_bits): Likewise.
7063 (i386_insert_aligned_watchpoint): Likewise.
7064 (i386_remove_aligned_watchpoint): Likewise.
7065 (i386_handle_nonaligned_watchpoint): Likewise.
7066 (i386_update_inferior_debug_regs): Likewise.
7067 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
7068 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
7069 (i386_region_ok_for_watchpoint):
7070 Use i386_dr_region_ok_for_watchpoint.
7071 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
7073 2014-06-19 Gary Benson <gbenson@redhat.com>
7075 * i386-nat.c (i386_insert_hw_breakpoint): Use
7076 i386_insert_watchpoint.
7077 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
7079 2014-06-19 Gary Benson <gbenson@redhat.com>
7081 * i386-nat.c (i386_dr_show): Renamed to
7082 i386_show_dr and made static. All uses updated.
7083 (i386_dr_length_and_rw_bits): Renamed to
7084 i386_length_and_rw_bits and made static.
7086 (i386_dr_insert_aligned_watchpoint): Renamed to
7087 i386_insert_aligned_watchpoint and made static.
7089 (i386_dr_remove_aligned_watchpoint): Renamed to
7090 i386_remove_aligned_watchpoint and made static.
7092 (i386_dr_update_inferior_debug_regs): Renamed to
7093 i386_update_inferior_debug_regs and made static.
7095 * nat/i386-dregs.h (i386_dr_show): Removed.
7096 (i386_dr_length_and_rw_bits): Likewise.
7097 (i386_dr_insert_aligned_watchpoint): Likewise.
7098 (i386_dr_remove_aligned_watchpoint): Likewise.
7099 (i386_dr_update_inferior_debug_regs): Likewise.
7101 2014-06-19 Gary Benson <gbenson@redhat.com>
7103 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
7104 * configure: Regenerate.
7105 * config.in: Likewise.
7106 * main.c (signal.h): New include.
7107 (setup_alternate_signal_stack): New function.
7108 (captured_main): Call the above.
7109 * cp-support.c (signal.h): New include.
7110 (catch_demangler_crashes): New flag.
7111 (SIGJMP_BUF): New define.
7112 (SIGSETJMP): Likewise.
7113 (SIGLONGJMP): Likewise.
7114 (gdb_demangle_jmp_buf): New static global.
7115 (gdb_demangle_attempt_core_dump): Likewise.
7116 (gdb_demangle_signal_handler): New function.
7117 (gdb_demangle): If catch_demangler_crashes is set, install the
7118 above signal handler before calling bfd_demangle, and restore
7119 the original signal handler afterwards. Display the offending
7120 symbol and call demangler_warning the first time a segmentation
7122 (_initialize_cp_support): New maint set/show command.
7124 2014-06-19 Gary Benson <gbenson@redhat.com>
7126 * utils.h (resource_limit_kind): New enum.
7127 (can_dump_core): New declaration.
7128 (warn_cant_dump_core): Likewise.
7129 (dump_core): Likewise.
7130 * utils.c (dump_core): Made nonstatic. Added new
7131 parameter "limit_kind".
7132 (can_dump_core): Made nonstatic. Moved printing code to...
7133 (warn_cant_dump_core): New function.
7134 (can_dump_core_warn): Likewise.
7135 (internal_vproblem): Replace calls to can_dump_core with
7136 calls to can_dump_core_warn. Supply new argument to each.
7138 2014-06-19 Gary Benson <gbenson@redhat.com>
7140 * utils.h (demangler_vwarning): New declaration.
7141 (demangler_warning): Likewise.
7142 * utils.c (struct internal_problem)
7143 <user_settable_should_quit>: New field.
7144 <user_settable_should_dump_core>: Likewise
7145 (internal_error_problem): Add values for above new fields.
7146 (internal_warning_problem): Likewise.
7147 (demangler_warning_problem): New static global.
7148 (demangler_vwarning): New function.
7149 (demangler_warning): Likewise.
7150 (add_internal_problem_command): Selectively add commands.
7151 (_initialize_utils): New internal problem command.
7152 * maint.c (maintenance_demangler_warning): New function.
7153 (_initialize_maint_cmds): New command.
7155 2014-06-18 Tom Tromey <tromey@redhat.com>
7157 * f-valprint.c (info_common_command_for_block): Update.
7158 * symtab.h (struct general_symbol_info) <common_block>: Now
7161 2014-06-18 Tom Tromey <tromey@redhat.com>
7163 * symtab.h (struct symtab) <blockvector>: Now const.
7164 * ada-lang.c (ada_add_global_exceptions): Update.
7165 * buildsym.c (augment_type_symtab): Update.
7166 * dwarf2read.c (dw2_lookup_symbol): Update.
7167 * jit.c (finalize_symtab): Update.
7168 * jv-lang.c (add_class_symtab_symbol): Update.
7169 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7171 * objfiles.c (objfile_relocate1): Update.
7172 * psymtab.c (lookup_symbol_aux_psymtabs)
7173 (maintenance_check_psymtabs): Update.
7174 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7176 * spu-tdep.c (spu_catch_start): Update.
7177 * symmisc.c (dump_symtab_1): Update.
7178 * symtab.c (lookup_global_symbol_from_objfile)
7179 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7180 (basic_lookup_transparent_type_quick)
7181 (basic_lookup_transparent_type, find_pc_sect_symtab)
7182 (find_pc_sect_line, search_symbols): Update.
7183 * block.c (find_block_in_blockvector): Make "bl" const.
7184 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7186 (blockvector_contains_pc): Make "bv" const.
7187 (block_for_pc_sect): Update.
7188 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7189 (blockvector_contains_pc): Update.
7190 * breakpoint.c (resolve_sal_pc): Update.
7191 * inline-frame.c (block_starting_point_at): Update.
7193 2014-06-18 Tom Tromey <tromey@redhat.com>
7195 * completer.c (complete_line): Make "line_buffer" const.
7196 * completer.h (complete_line): Update.
7198 2014-06-18 Tom Tromey <tromey@redhat.com>
7200 * symtab.c (add_macro_name): Remove unneeded cast.
7202 2014-06-18 Tom Tromey <tromey@redhat.com>
7204 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7205 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7207 2014-06-18 Tom Tromey <tromey@redhat.com>
7209 * probe.c (info_probes_for_ops): Make "arg" const.
7210 * probe.h (info_probes_for_ops): Update.
7212 2014-06-18 Tom Tromey <tromey@redhat.com>
7214 * varobj.c (varobj_create): Update.
7215 * valops.c (value_of_this): Update.
7216 * tracepoint.c (add_local_symbols, scope_info): Update.
7217 * symtab.h (struct general_symbol_info) <block>: Now const.
7218 * symtab.c (skip_prologue_sal)
7219 (default_make_symbol_completion_list_break_on)
7220 (skip_prologue_using_sal): Update.
7221 * stack.h (iterate_over_block_locals)
7222 (iterate_over_block_local_vars): Update.
7223 * stack.c (print_frame_args): Update.
7224 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7226 (get_selected_block): Make return type const.
7227 * python/py-frame.c (frapy_block): Update.
7228 * python/py-block.c (gdbpy_block_for_pc): Update.
7229 * p-exp.y (%union) <bval>: Now const.
7230 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7231 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7232 * m2-exp.y (%union) <bval>: Now const.
7233 * linespec.c (get_current_search_block): Make return type const.
7234 (create_sals_line_offset, find_label_symbols): Update.
7235 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7237 (block_starting_point_at): Make "block" const.
7238 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7239 (check_exception_resume): Update.
7240 * guile/scm-frame.c (gdbscm_frame_block): Update.
7241 * guile/scm-block.c (gdbscm_lookup_block): Update.
7242 * frame.h (get_frame_block): Update.
7243 (get_selected_block): Make return type const.
7244 * frame.c (frame_id_inner): Update.
7245 * f-valprint.c (info_common_command_for_block)
7246 (info_common_command): Update.
7247 * dwarf2loc.c (dwarf2_find_location_expression)
7248 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7249 (locexpr_describe_location_piece): Update.
7250 * c-exp.y (%union) <bval>: Now const.
7251 * breakpoint.c (resolve_sal_pc): Update.
7252 * blockframe.c (get_frame_block):Make return type const.
7253 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7254 (block_innermost_frame): Update.
7255 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7256 (block_for_pc, block_for_pc_sect): Update.
7257 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7259 (block_for_pc_sect, block_for_pc): Make return type const.
7260 * ax-gdb.c (gen_expr): Update.
7261 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7262 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7263 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7264 (ada_read_var_value): Update.
7265 * ada-exp.y (struct name_info) <block>: Now const.
7267 (block_lookup): Constify.
7269 2014-06-18 Gary Benson <gbenson@redhat.com>
7271 * nat/i386-dregs.h: New file.
7272 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7273 * i386-nat.h (i386-dregs.h): New include.
7274 (DR_FIRSTADDR): Now in i386-dregs.h.
7275 (DR_LASTADDR): Likewise.
7276 (DR_NADDR): Likewise.
7277 (DR_STATUS): Likewise.
7278 (DR_CONTROL): Likewise.
7279 (i386_debug_reg_state): Likewise.
7280 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7282 2014-06-18 Don Breazeal <donb@codesourcery.com>
7284 * breakpoint.c (set_longjmp_breakpoint): Call
7285 momentary_breakpoint_from_master with additional argument.
7286 (set_longjmp_breakpoint_for_call_dummy): Call
7287 momentary_breakpoint_from_master with additional argument.
7288 (set_std_terminate_breakpoint): Call
7289 momentary_breakpoint_from_master with additional argument.
7290 (momentary_breakpoint_from_master): Add argument to function
7291 definition and use it to initialize structure member flag.
7292 (clone_momentary_breakpoint): Call
7293 momentary_breakpoint_from_master with additional argument.
7294 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7295 member flags set in momentary_breakpoint_from_master.
7297 2014-06-18 Gary Benson <gbenson@redhat.com>
7299 * i386-nat.c (i386_show_dr): Renamed to
7300 i386_dr_show and made nonstatic. All uses updated.
7301 (i386_length_and_rw_bits): Renamed to
7302 i386_dr_length_and_rw_bits and made nonstatic.
7304 (i386_insert_aligned_watchpoint): Renamed to
7305 i386_dr_insert_aligned_watchpoint and made nonstatic.
7307 (i386_remove_aligned_watchpoint): Renamed to
7308 i386_dr_remove_aligned_watchpoint and made nonstatic.
7310 (i386_update_inferior_debug_regs): Renamed to
7311 i386_dr_update_inferior_debug_regs and made nonstatic.
7314 2014-06-18 Gary Benson <gbenson@redhat.com>
7316 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7317 (i386_dr_low_can_set_control): Likewise.
7318 (i386_dr_low_set_addr): Likewise.
7319 (i386_dr_low_set_control): Likewise.
7320 (i386_dr_low_get_addr): Likewise.
7321 (i386_dr_low_get_status): Likewise.
7322 (i386_dr_low_get_control): Likewise.
7323 (i386_insert_aligned_watchpoint): Use new macros.
7324 (i386_update_inferior_debug_regs): Likewise.
7325 (i386_stopped_data_address): Likewise.
7327 2014-06-18 Gary Benson <gbenson@redhat.com>
7329 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7330 New parameter. All uses updated.
7332 2014-06-18 Gary Benson <gbenson@redhat.com>
7334 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7337 2014-06-18 Gary Benson <gbenson@redhat.com>
7339 * i386-nat.c (debug_printf): New macro.
7340 (i386_get_debug_register_length): Likewise.
7341 (TARGET_HAS_DR_LEN_8): Use above macro.
7342 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7343 and printf_unfiltered. Use phex to format values.
7345 2014-06-18 Gary Benson <gbenson@redhat.com>
7347 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7350 2014-06-18 Gary Benson <gbenson@redhat.com>
7352 * i386-nat.c: Comment changes.
7354 2014-06-18 Gary Benson <gbenson@redhat.com>
7356 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7358 2014-06-18 Gary Benson <gbenson@redhat.com>
7360 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7361 (i386_insert_aligned_watchpoint): Likewise.
7362 (i386_remove_aligned_watchpoint): Likewise.
7363 (i386_handle_nonaligned_watchpoint): Likewise.
7365 2014-06-18 Gary Benson <gbenson@redhat.com>
7367 * i386-nat.c: Whitespace changes.
7369 2014-06-17 Samuel Bronson <naesten@gmail.com>
7371 * MAINTAINERS: Update Roland McGrath's email address.
7372 Thanks to Sergio Durigan Junior for pointing out that he left
7373 Red Hat a while ago, and giving me a current address.
7375 2014-06-17 Tom Tromey <tromey@redhat.com>
7377 * utils.h (savestring): Remove declaration.
7379 2014-06-17 Tom Tromey <tromey@redhat.com>
7381 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7383 2014-06-16 Keith Seitz <keiths@redhat.com>
7386 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7387 to update the varobj if inferior_ptid is null_ptid.
7389 2014-06-16 Tom Tromey <tromey@redhat.com>
7391 * target.h (struct target_ops) <to_info_proc>: Make parameter
7393 (target_info_proc): Update.
7394 * target.c (target_info_proc): Make "args" const.
7395 * procfs.c (procfs_info_proc): Update.
7396 * linux-tdep.c (linux_info_proc): Update.
7397 (linux_core_info_proc_mappings): Make "args" const.
7398 (linux_core_info_proc): Update.
7399 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7400 * gdbarch.c: Rebuild.
7401 * gdbarch.h: Rebuild.
7402 * corelow.c (core_info_proc): Update.
7404 2014-06-16 Tom Tromey <tromey@redhat.com>
7406 * target.h (struct target_ops) <to_disconnect>: Make parameter
7408 (target_disconnect): Update.
7409 * target.c (target_disconnect): Make "args" const.
7410 * target-delegates.c: Rebuild.
7411 * remote.c (remote_disconnect): Update.
7412 * record.h (record_disconnect): Update.
7413 * record.c (record_disconnect): Update.
7414 * inf-child.c (inf_child_disconnect): Update.
7416 2014-06-16 Tom Tromey <tromey@redhat.com>
7418 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7419 * target.c (debug_to_rcmd, default_rcmd): Update.
7420 * target-delegates.c: Rebuild.
7421 * remote.c (remote_rcmd): Update.
7422 * monitor.c (monitor_rcmd): Update.
7424 2014-06-16 Pedro Alves <palves@redhat.com>
7426 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7427 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7428 have OBJF_SHARED set.
7429 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7430 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7431 instead of OBJF_USERLOADED.
7432 * objfiles.h (OBJF_SHARED): Update comment.
7433 (userloaded_objfile_contains_address_p): Rename to ...
7434 (shared_objfile_contains_address_p): ... this, and update
7436 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7438 (remove_symbol_file_command): Skip objfiles that don't have
7441 2014-06-16 Tom Tromey <tromey@redhat.com>
7443 * minsyms.h (prim_record_minimal_symbol)
7444 (prim_record_minimal_symbol_and_info): Update comments.
7446 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7448 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7449 or --without-guile, according to how GDB was built.
7451 2014-06-13 Tom Tromey <tromey@redhat.com>
7453 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7455 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7457 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7459 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7460 help_list.Pass all_commands, not -1, to help_list.
7461 * cli/cli-dump.c (dump_command, append_command)
7462 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7463 (binary_dump_command, binary_append_command): Pass all_commands,
7464 not -1, to help_list.
7465 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7467 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7469 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7471 * top.c (set_history): Pass all_commands, not -1, to help_list.
7472 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7473 all_commands, not -1, to help_list.
7474 * symfile.c (overlay_command): Pass all_commands, not -1, to
7476 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7478 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7480 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7482 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7483 not -1, to help_list.
7484 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7485 not -1, to help_list.
7486 * maint.c (maintenance_command, maintenance_info_command)
7487 (maintenance_print_command, maintenance_set_cmd): Pass
7488 all_commands, not -1, to help_list.
7489 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7491 * language.c (set_check): Pass all_commands, not -1, to help_list.
7492 * infcmd.c (unset_command): Pass all_commands, not -1, to
7494 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7496 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7498 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7500 * breakpoint.c (save_command): Pass all_commands, not -1, to
7502 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7503 all_commands, not -1, to help_list.
7505 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7507 * regcache.c (struct register_to_invalidate): New structure.
7508 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7510 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7512 2014-06-12 Yao Qi <yao@codesourcery.com>
7514 * varobj.c (varobj_get_num_children): Call
7515 varobj_is_dynamic_p.
7516 (varobj_list_children): Likewise.
7517 (varobj_update): Likewise. Update comments.
7519 2014-06-12 Yao Qi <yao@codesourcery.com>
7521 * varobj.c (varobj_pretty_printed_p): Rename to ...
7522 (varobj_is_dynamic_p): ... this. New function.
7523 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7524 (varobj_is_dynamic_p): Declare.
7525 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7526 (mi_print_value_p, varobj_update_one): Likewise.
7528 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7529 Yao Qi <yao@codesourcery.com>
7531 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7532 (varobj_get_iterator): Wrap up code for pretty-printer by
7533 "#if HAVE_PYTHON" and "#endif".
7534 (update_dynamic_varobj_children): Likewise.
7536 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7537 Yao Qi <yao@codesourcery.com>
7539 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7540 gdb_python_initialized is false. Move some code from varobj.c.
7541 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7542 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7543 (struct varobj_item): Moved to varobj-iter.h".
7544 (varobj_clear_saved_item): New function.
7545 (update_dynamic_varobj_children): Move python-related code to
7547 (free_variable): Call varobj_clear_saved_item and
7550 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7551 Yao Qi <yao@codesourcery.com>
7553 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7554 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7555 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7556 (py-varobj.o): New rule.
7557 * python/py-varobj.c: New file.
7558 * python/python-internal.h (py_varobj_get_iterator): Declare.
7559 * varobj-iter.h: New file.
7560 * varobj.c: Include "varobj-iter.h"
7561 (struct varobj) <child_iter>: Change its type from "PyObject *"
7562 to "struct varobj_iter *".
7563 <saved_item>: Likewise.
7564 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7565 [HAVE_PYTHON] (varobj_get_iterator): New function.
7566 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7567 python-specific code to python/py-varobj.c.
7568 (install_visualizer): Call varobj_iter_delete instead of
7570 * varobj.h (varobj_ensure_python_env): Declare.
7572 2014-06-12 Yao Qi <yao@codesourcery.com>
7574 * varobj.c (struct varobj_item): New structure.
7575 (create_child_with_value): Update declaration.
7576 (varobj_add_child): Replace arguments 'name' and 'value' with
7577 'item'. All callers updated.
7578 (install_dynamic_child): Likewise.
7579 (update_dynamic_varobj_children): Likewise.
7580 (varobj_add_child): Likewise.
7581 (create_child_with_value): Likewise.
7583 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7585 * NEWS: Create a new section for the next release branch.
7586 Rename the section of the current branch, now that it has
7589 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7591 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7592 * version.in: Bump version to 7.8.50.DATE-cvs.
7594 2014-06-11 Pedro Alves <palves@redhat.com>
7597 * ser-mingw.c (net_windows_socket_check_pending): New function.
7598 (net_windows_select_thread): Ignore spurious wakeups. Use
7599 net_windows_socket_check_pending.
7600 (net_windows_wait_handle): Check for pending events with
7601 ioctlsocket, through net_windows_socket_check_pending, instead of
7602 checking the socket's event.
7604 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7606 * python/python-internal.h (gdb_PyObject_GetAttrString)
7607 (gdb_PyObject_HasAttrString): New inline function definitions.
7608 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7609 char * of the second argument to PyObject_GetAttrString.
7611 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7613 * serial.c (serial_write): Fix index of character to be printed
7614 in call to serial_logchar when serial debug traces are enabled.
7616 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7618 * gdbtypes (resolve_dynamic_range): Add function description.
7620 2014-06-09 Pedro Alves <palves@redhat.com>
7622 * linux-nat.c (linux_child_follow_fork): Initialize status with
7623 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7624 inner block. Only pass the signal to PTRACE_DETACH if in pass
7627 2014-06-09 Gary Benson <gbenson@redhat.com>
7629 * common/signals.c (gdb_signal_from_host): Reorder to separate
7630 the always-available ANSI-standard signals from the signals that
7632 (do_gdb_signal_to_host): Likewise.
7633 * proc-events.c (signal_table): Likewise.
7635 2014-06-08 Hui Zhu <hui@codesourcery.com>
7637 * common/linux-ptrace.c (linux_disable_event_reporting): New
7639 * common/linux-ptrace.h (linux_disable_event_reporting): New
7641 * linux-nat.c (linux_child_follow_fork): Do a single step before
7644 2014-06-07 Keith Seitz <keiths@redhat.com>
7648 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7649 from symbol_matches_domain in symtab.c. All local callers
7650 of symbol_matches_domain updated.
7651 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7652 search STRUCT_DOMAIN.
7653 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7654 independently. standard_lookup will do that automatically.
7655 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7656 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7657 (cp_lookup_symbol_in_namespace): Likewise.
7658 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7659 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7660 may return a STRUCT_DOMAIN match.
7661 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7662 * cp-support.c: Include language.h.
7663 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7665 * psymtab.c (match_partial_symbol): Compare the requested
7666 domain with the symbol's domain directly.
7667 (lookup_partial_symbol): Likewise.
7668 * symtab.c (lookup_symbol_in_language): Explain when/why
7669 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7670 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7671 appropriate languages.
7672 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7673 and moved to ada-lang.c
7674 (lookup_block_symbol): Explain that this function only returns
7675 symbol matching the requested DOMAIN.
7676 Compare the requested domain with the symbol's domain directly.
7677 (iterate_over_symbols): Compare the requested domain with the
7678 symbol's domain directly.
7679 * symtab.h (symbol_matches_domain): Remove.
7681 2014-06-06 Doug Evans <xdje42@gmail.com>
7683 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7684 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7685 (gdbscm_guile_version_is_at_least): Declare.
7686 (gdbscm_scm_string_to_int): Declare.
7687 * guile/guile.c (gdbscm_guile_major_version): New global.
7688 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7689 (guile_datadir): New static global.
7690 (gdbscm_guile_data_directory): New function.
7691 (initialize_scheme_side): Update.
7692 (misc_guile_functions): Add guile-data-directory.
7693 (initialize_gdb_module): Fetch guile version number.
7694 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7695 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7696 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7697 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7699 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7700 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7701 * guile/scm-value.c (gdbscm_value_to_string): Only call
7702 scm_port_conversion_strategy if Guile version >= 2.0.6.
7704 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7706 * main.c (print_gdb_help): Add -q and --silent.
7708 2014-06-06 Gary Benson <gbenson@redhat.com>
7710 * common/signals.c: Remove preprocessor conditionals for
7711 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7712 SIGSEGV and SIGTERM.
7713 * proc-events.c: Likewise.
7715 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7717 * symfile.c (symfile_free_objfile): Remove restriction to
7719 * symfile-mem.c (symbol_file_add_from_memory): Call
7720 add_target_sections_of_objfile.
7722 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7724 * guile/scm-value.c (gdbscm_history_append_x): Use
7725 'vlscm_get_value_smob_arg_unsafe' instead of
7726 'vlscm_scm_to_value'.
7728 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7731 * utils.c (printchar): Don't escape at all if quoter is NUL.
7732 Update function documentation to clarify effect of parameter
7734 * remote.c (escape_buffer): Pass '\\' as the quoter to
7735 fputstrn_unfiltered.
7736 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7737 generate the output.
7738 (mi_solib_unloaded): Same.
7740 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7742 * development.sh: Delete.
7743 * Makefile.in (config.status): Adjust dependency on development.sh.
7744 * configure.ac: Adjust development.sh source call.
7745 * configure: Regenerate.
7747 2014-06-04 Doug Evans <xdje42@gmail.com>
7749 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7750 is_scheme_bkpt, spec.
7751 (bpscm_make_breakpoint_smob): Initialize new members.
7752 (gdbscm_create_breakpoint_x): Split into two ...
7753 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7754 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7755 (scheme_function breakpoint_functions): Update.
7756 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7757 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7758 register-breakpoint!.
7760 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7763 * mem-break.c (z_type_supported): Return zero if
7764 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7766 2014-06-04 Tom Tromey <tromey@redhat.com>
7768 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7769 value_from_contents_and_address_unresolved.
7770 (ada_template_to_fixed_record_type_1): Likewise.
7771 (ada_which_variant_applies): Likewise.
7772 * value.h (value_from_contents_and_address_unresolved): Declare.
7773 * value.c (value_from_contents_and_address_unresolved): New
7775 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7776 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7777 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7779 2014-06-04 Tom Tromey <tromey@redhat.com>
7781 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7783 2014-06-04 Tom Tromey <tromey@redhat.com>
7785 * procfs.c (procfs_attach): Make "args" const.
7786 * windows-nat.c (windows_attach): Make "args" const.
7787 * nto-procfs.c (procfs_attach): Make "args" const.
7788 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7789 * go32-nat.c (go32_attach): Make "args" const.
7790 * gnu-nat.c (gnu_attach): Make "args" const.
7791 * darwin-nat.c (darwin_attach): Make "args" const.
7792 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7793 * linux-nat.c (linux_nat_attach): Make "args" const.
7794 * remote.c (extended_remote_attach_1, extended_remote_attach):
7796 * target.h (struct target_ops) <to_attach>: Make "args" const.
7797 (find_default_attach): Likewise.
7798 * utils.c (parse_pid_to_attach): Make "args" const.
7799 * utils.h (parse_pid_to_attach): Update.
7801 2014-06-04 Tom Tromey <tromey@redhat.com>
7803 * target-delegates.c: Rebuild.
7804 * target.c (default_thread_address_space): New function.
7805 (target_thread_address_space): Simplify.
7806 * target.h (struct target_ops) <to_thread_address_space>: Add
7807 TARGET_DEFAULT_FUNC.
7809 2014-06-04 Doug Evans <xdje42@gmail.com>
7811 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7813 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7815 * record-btrace.c: Include event-loop.h and inf-loop.h.
7816 (record_btrace_resume_exec_dir)
7817 (record_btrace_async_inferior_event_handler)
7818 (record_btrace_handle_async_inferior_event): New.
7819 (record_btrace_open): Create async event handler.
7820 (record_btrace_close): Delete async event handler.
7821 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7822 Mark async event handler.
7823 (record_btrace_execution_direction): New.
7824 (init_record_btrace_ops): Initialize to_execution_direction.
7826 2014-06-03 Doug Evans <xdje42@gmail.com>
7828 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7829 (gdbscm_make_parameter): Ditto.
7831 2014-06-03 Doug Evans <dje@google.com>
7833 * exec.c (exec_close_1): Call clear_section_table instead of
7834 resize_section_table.
7835 (clear_section_table): New function.
7836 (resize_section_table): Make static. Rename arg num_added to
7838 * exec.h (clear_section_table): Declare.
7839 (resize_section_table): Delete.
7840 * progspace.c (release_program_space): Call clear_section_table
7841 instead of resize_section_table.
7843 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7845 * NEWS (Python Scripting): Add entry about the new xmethods
7848 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7850 * python/py-xmethods.c: New file.
7851 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7852 (objfpy_dealloc): XDECREF on the new xmethods field.
7853 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7855 (objfpy_get_xmethods): New function.
7856 (objfile_getset): New entry 'xmethods'.
7857 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7858 (pspy_dealloc): XDECREF on the new xmethods field.
7859 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7861 (pspy_get_xmethods): New function.
7862 (pspace_getset): New entry 'xmethods'.
7863 * python/python-internal.h: Add declarations for new functions.
7864 * python/python.c (_initialize_python): Invoke
7865 gdbpy_initialize_xmethods.
7866 * python/lib/gdb/__init__.py (xmethods): New
7868 * python/lib/gdb/xmethod.py: New file.
7869 * python/lib/gdb/command/xmethods.py: New file.
7871 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7873 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7874 best match method returned by find_overload_match is an xmethod.
7875 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7876 the best matching operator returned by find_overload_match is an
7878 * valops.c: #include "extension.h".
7879 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7880 Return void. The list of matching source methods is returned in
7881 "fn_list" and a vector of matching debug method workers is
7882 returned in "xm_worker_vec". Update all callers.
7883 (value_find_oload_method_list): Likewise.
7884 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7885 non-NULL, then the index of the best matching method in this
7886 vector is returned. Update all callers.
7887 (find_overload_match): Include xmethods while performing overload
7890 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7892 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7893 * extension-priv.h (struct extension_language_ops): Add the
7895 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7896 get_matching_xmethod_workers, get_xmethod_argtypes,
7897 invoke_xmethod, free_xmethod_worker,
7898 free_xmethod_worker_vec): New functions.
7899 * extension.h: #include "common/vec.h".
7900 New function declarations.
7901 (struct xmethod_worker): New struct.
7902 (VEC (xmethod_worker_ptr)): New vector type.
7903 (xmethod_worker_ptr): New typedef.
7904 (xmethod_worker_vec): Likewise.
7905 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7907 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7908 (struct builtin_type): New field "xmethod".
7909 * valarith.c (value_ptradd): Assert that the value argument is not
7911 * valops.c (value_must_coerce_to_target): Return 0 for
7912 lval_xcallable values.
7913 * value.c (struct value): New field XM_WORKER in the field
7915 (value_address, value_raw_address): Return 0 for lval_xcallable
7917 (set_value_address): Assert that the value is not an
7919 (value_free): Free the associated xmethod worker when freeing
7920 lval_xcallable values.
7921 (set_value_component_location): Assert that the WHOLE value is not
7923 (value_of_xmethod, call_xmethod): New functions.
7924 * value.h: Declare "struct xmethod_worker".
7925 Declare new functions value_of_xmethod, call_xmethod.
7927 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7928 Pedro Alves <palves@redhat.com>
7930 PR breakpoints/17000
7931 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7932 New function, extracted from software_breakpoint_inserted_here_p.
7933 (software_breakpoint_inserted_here_p): Replace factored out code
7934 by call to find_non_raw_software_breakpoint_inserted_here.
7935 (bp_target_info_copy_insertion_state): New function.
7936 (bkpt_insert_location): Handle the case of a single-step
7937 breakpoint already inserted at the same address.
7938 (bkpt_remove_location): Handle the case of a single-step
7939 breakpoint still inserted at the same address.
7940 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7941 breakpoint already inserted at the same address.
7942 (deprecated_remove_raw_breakpoint): Handle the case of a
7943 non-raw breakpoint still inserted at the same address.
7944 (find_single_step_breakpoint): New function, extracted from
7945 single_step_breakpoint_inserted_here_p.
7946 (find_single_step_breakpoint): New function,
7947 factored out from single_step_breakpoint_inserted_here_p.
7948 (single_step_breakpoint_inserted_here_p): Reimplement.
7950 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7952 Pushed by Joel Brobecker <brobecker@adacore.com>
7953 * source.c (show_substitute_path_command): Fix display of matching
7956 2014-06-03 Gary Benson <gbenson@redhat.com>
7958 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7960 2014-06-02 Doug Evans <xdje42@gmail.com>
7962 Add parameter support for Guile.
7963 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7964 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7965 (scm-param.o): New rule.
7966 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7967 (gdbscm_misc_error): Declare.
7968 (gdbscm_canonicalize_command_name): Declare.
7969 (gdbscm_scm_to_host_string): Declare.
7970 (gdbscm_scm_from_host_string): Declare.
7971 (gdbscm_initialize_parameters): Declare.
7972 * guile/guile.c (initialize_gdb_module): Call
7973 gdbscm_initialize_parameters.
7974 * guile/lib/gdb.scm: Export parameter symbols.
7975 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7976 cmdscm_canonicalize_name and made public. All callers updated.
7977 * guile/scm-exception.c (gdbscm_misc_error): New function.
7978 * guile/scm-param.c: New file.
7979 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7980 (gdbscm_scm_to_host_string): New function.
7981 (gdbscm_scm_from_host_string): New function.
7982 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7984 2014-06-02 Doug Evans <xdje42@gmail.com>
7986 Add command support for Guile.
7987 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7988 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7989 (scm-cmd.o): New rule.
7990 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7991 (gdbscm_user_error_p): Declare.
7992 (gdbscm_parse_command_name): Declare.
7993 (gdbscm_valid_command_class_p): Declare.
7994 (gdbscm_initialize_commands): Declare.
7995 * guile/guile.c (initialize_gdb_module): Call
7996 gdbscm_initialize_commands.
7997 * guile/lib/gdb.scm: Export command symbols.
7998 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7999 (throw-user-error): New function.
8000 * guile/scm-cmd.c: New file.
8001 * guile/scm-exception.c (user_error_symbol): New static global.
8002 (gdbscm_user_error_p): New function.
8003 (gdbscm_initialize_exceptions): Set user_error_symbol.
8004 * scm-utils.c (gdbscm_gc_xstrdup): New function.
8006 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
8008 * top.c (command_loop): Handle comments here...
8009 (command_line_input): ... not here.
8011 2014-06-02 Doug Evans <xdje42@gmail.com>
8013 Add progspace support for Guile.
8014 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
8015 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
8016 (scm-progspace.o): New rule.
8017 * guile/guile-internal.h (pspace_smob): New typedef.
8018 (psscm_pspace_smob_pretty_printers): Declare.
8019 (psscm_pspace_smob_from_pspace): Declare.
8020 (psscm_scm_from_pspace): Declare.
8021 * guile/guile.c (initialize_gdb_module): Call
8022 gdbscm_initialize_pspaces.
8023 * guile/lib/gdb.scm: Export progspace symbols.
8024 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
8026 (append-pretty-printer!): Ditto.
8027 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
8029 * guile/scm-progspace.c: New file.
8031 2014-06-03 Alan Modra <amodra@gmail.com>
8033 * ppc64-tdep.c (ppc64_standard_linkage8): New.
8034 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
8036 2014-06-02 Doug Evans <dje@google.com>
8038 Add support for skeletonless type units.
8039 * dwarf2read.c (struct dwarf2_per_objfile): New member
8040 n_allocated_type_units.
8041 (struct dwarf2_per_objfile) <tu_stats>: New member
8042 nr_all_type_units_reallocs.
8043 (create_signatured_type_table_from_index): Initialize
8044 n_allocated_type_units
8045 (create_all_type_units): Ditto.
8046 (add_type_unit): Move up in file. New arg slot.
8047 All callers updated. Increase space for all_type_units more
8049 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
8050 (lookup_dwo_signatured_type): Handle skeletonless TUs.
8051 (lookup_dwp_signatured_type): Ditto.
8052 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
8053 All callers updated.
8054 (build_type_psymtabs_1): Leave type_unit_groups as
8055 NULL if no TUs present.
8056 (print_tu_stats): New function.
8057 (process_skeletonless_type_unit): New function.
8058 (process_dwo_file_for_skeletonless_type_units): New
8060 (process_skeletonless_type_units): New function.
8061 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
8062 Call print tu_stats if debugging enabled.
8064 2014-06-02 Pedro Alves <palves@redhat.com>
8066 * breakpoint.c (build_target_command_list): Don't build a command
8067 list if we have any duplicate location that isn't a dprintf.
8069 2014-06-02 Pedro Alves <palves@redhat.com>
8071 * breakpoint.c (dprintf_breakpoint_hit): New function.
8072 (initialize_breakpoint_ops): Install it as dprintf's
8073 breakpoint_hit method.
8075 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8077 * source.c (substitute_path_rule_matches): Simplify using
8078 filename_ncmp instead of FILENAME_CMP.
8080 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8082 * source.c (substitute_path_rule_matches): Remove trailing spaces.
8084 2014-06-01 Ludovic Courtès <ludo@gnu.org>
8086 * configure.ac: When Guile is available, check for the
8087 availability of 'scm_new_smob'.
8088 * configure, config.h.in: Regenerate.
8089 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
8092 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8094 * frame.c (struct frame_info): Add stop_string field.
8095 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
8096 (get_prev_frame_always): Old content moved into
8097 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
8098 TRY_CATCH, handle MEMORY_ERROR exceptions.
8099 (frame_stop_reason_string): New function definition.
8100 * frame.h (unwind_stop_reason_to_string): Extend comment to
8101 mention frame_stop_reason_string.
8102 (frame_stop_reason_string): New function declaration.
8103 * stack.c (frame_info): Switch to frame_stop_reason_string.
8104 (backtrace_command_1): Switch to frame_stop_reason_string.
8105 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
8106 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
8107 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
8109 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8111 * frame.c (frame_stop_reason_string): Rename to ...
8112 (unwind_stop_reason_to_string): this.
8113 * frame.h (frame_stop_reason_string): Rename to ...
8114 (unwind_stop_reason_to_string): this.
8115 * stack.c (frame_info): Update call to frame_stop_reason_string.
8116 (backtrace_command_1): Likewise.
8117 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
8118 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
8120 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8122 * frame.c (remove_prev_frame): New function.
8123 (get_prev_frame_if_no_cycle): Create / discard cleanup using
8126 2014-05-29 Pedro Alves <palves@redhat.com>
8128 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
8129 and make it const. When a single-step decays to a continue,
8130 clear 'step', not 'hw_step'. Pass whether the caller wanted
8131 to step to user_visible_resume_ptid, not what we ask the
8134 2014-05-29 Pedro Alves <palves@redhat.com>
8136 * infrun.c (process_event_stop_test, handle_step_into_function)
8137 (handle_step_into_function_backward): Adjust.
8138 Don't set the even thread's stop_step and call stop_waiting before
8139 calling end_stepping_range. Instead do that ...
8140 (end_stepping_range): ... here. Take an ecs pointer parameter.
8142 2014-05-29 Pedro Alves <palves@redhat.com>
8144 * infrun.c (stop_stepping): Rename to ...
8145 (stop_waiting): ... this.
8146 (proceed): Update comment.
8147 (process_event_stop_test, handle_inferior_event)
8148 (handle_signal_stop, handle_step_into_function)
8149 (handle_step_into_function_backward): Update.
8151 2014-05-29 Pedro Alves <palves@redhat.com>
8153 * infcall.c (run_inferior_call): Don't check whether the current
8154 thread is running after the proceed call.
8156 2014-05-29 Pedro Alves <palves@redhat.com>
8157 Tom Tromey <tromey@redhat.com>
8159 * NEWS: Mention "maint set target-async", "set mi-async", and that
8160 background execution commands are now always available.
8161 * target.h (target_async_permitted): Update comment.
8162 * target.c (target_async_permitted, target_async_permitted_1):
8164 (set_target_async_command): Rename to ...
8165 (maint_set_target_async_command): ... this.
8166 (show_target_async_command): Rename to ...
8167 (maint_show_target_async_command): ... this.
8168 (_initialize_target): Adjust.
8169 * infcmd.c (prepare_execution_command): Make extern.
8170 * inferior.h (prepare_execution_command): Declare.
8171 * infrun.c (set_observer_mode): Leave target async alone.
8172 * mi/mi-interp.c (mi_interpreter_init): Install
8173 mi_on_sync_execution_done as sync_execution_done observer.
8174 (mi_on_sync_execution_done): New function.
8175 (mi_execute_command_input_handler): Don't print the prompt if we
8176 just started a synchronous command with an async target.
8177 (mi_on_resume): Check sync_execution before printing prompt.
8178 * mi/mi-main.h (mi_async_p): Declare.
8179 * mi/mi-main.c: Include gdbcmd.h.
8180 (mi_async_p): New function.
8181 (mi_async, mi_async_1): New globals.
8182 (set_mi_async_command, show_mi_async_command, mi_async): New
8184 (exec_continue): Call prepare_execution_command.
8185 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8186 (mi_execute_async_cli_command): Use mi_async_p.
8187 (_initialize_mi_main): Install "set mi-async". Make
8188 "target-async" a deprecated alias.
8190 2014-05-29 Pedro Alves <palves@redhat.com>
8192 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8193 (_initialize_cli_interp): Adjust.
8194 * event-loop.c: Include "observer.h".
8195 (start_event_loop): Notify 'command_error' observers instead of
8196 calling display_gdb_prompt. Remove FIXME comment.
8197 * event-top.c (display_gdb_prompt): Remove call into the
8199 * inf-loop.c: Include "observer.h".
8200 (inferior_event_handler): Notify 'command_error' observers instead
8201 of calling display_gdb_prompt.
8202 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8203 observers instead of calling display_gdb_prompt.
8204 * interps.c (interp_set): Don't call display_gdb_prompt.
8205 (current_interp_display_prompt_p): Delete.
8206 * interps.h (interp_prompt_p): Delete declaration.
8207 (interp_prompt_p_ftype): Delete.
8208 (struct interp_procs) <prompt_proc_p>: Delete field.
8209 (current_interp_display_prompt_p): Delete declaration.
8210 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8211 (_initialize_mi_interp): Adjust.
8212 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8213 'command_error' observers.
8214 (tui_on_sync_execution_done, tui_on_command_error): New
8216 (tui_display_prompt_p): Delete.
8217 (_initialize_tui_interp): Adjust.
8219 2014-05-29 Pedro Alves <palves@redhat.com>
8222 * cli/cli-interp.c: Include infrun.h and observer.h.
8223 (cli_uiout, cli_interp): New globals.
8224 (cli_on_signal_received, cli_on_end_stepping_range)
8225 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8227 (cli_interpreter_init): Install them as 'end_stepping_range',
8228 'signal_received' 'signal_exited', 'exited' and 'no_history'
8230 (_initialize_cli_interp): Remove cli_interp local.
8231 * infrun.c (handle_inferior_event): Call the several stop reason
8232 observers instead of printing the stop reason directly.
8233 (end_stepping_range): New function.
8234 (print_end_stepping_range_reason, print_signal_exited_reason)
8235 (print_exited_reason, print_signal_received_reason)
8236 (print_no_history_reason): Make static, and add an uiout
8237 parameter. Print to that instead of to CURRENT_UIOUT.
8238 * infrun.h (print_end_stepping_range_reason)
8239 (print_signal_exited_reason, print_exited_reason)
8240 (print_signal_received_reason print_no_history_reason): New
8242 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8244 <cli_uiout>: New field.
8245 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8246 uiout for CLI output. Install 'signal_received',
8247 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8249 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8250 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8251 (mi_on_no_history): New functions.
8252 (ui_out_free_cleanup): Delete function.
8253 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8254 instead use the one already stored in the MI interpreter data.
8255 (mi_ui_out): Adjust.
8256 * tui/tui-interp.c: Include infrun.h and observer.h.
8257 (tui_interp): New global.
8258 (tui_on_signal_received, tui_on_end_stepping_range)
8259 (tui_on_signal_exited, tui_on_exited)
8260 (tui_on_no_history): New functions.
8261 (tui_init): Install them as 'end_stepping_range',
8262 'signal_received' 'signal_exited', 'exited' and 'no_history'
8264 (_initialize_tui_interp): Delete tui_interp local.
8266 2014-05-29 Pedro Alves <palves@redhat.com>
8269 * linux-nat.c (linux_nat_resume_callback): Rename the second
8270 parameter to 'except'. Skip LP if it points to EXCEPT.
8271 (linux_nat_resume): Don't mark the event lwp as not stopped
8272 before resuming sibling lwps. Instead ask
8273 linux_nat_resume_callback to skip the event lwp. Mark it as not
8274 stopped after actually resuming it.
8275 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8277 (wait_lwp): Mark the lwp as stopped here.
8278 (stop_wait_callback): Mark the lwp as not stopped right after
8279 resuming it. Don't mark lwps as stopped here.
8280 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8281 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8283 2014-05-29 Pedro Alves <palves@redhat.com>
8286 * infrun.c (resume): Determine how much to resume depending on
8287 whether the caller wanted a step, not whether we can hardware step
8288 the target. Mark all threads that we intend to run as running,
8289 unless we're calling an inferior function.
8290 (normal_stop): If the thread is running an infcall, don't finish
8292 * target.c (target_resume): Don't mark threads as running here.
8294 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8296 * serial.c (_initialize_serial): Remove support for
8297 the "set remotebaud" and "show remotebaud" commands.
8298 * NEWS: Add entry documenting the removal of that command.
8300 2014-05-28 Yao Qi <yao@codesourcery.com>
8302 * charset.c: Fix typo in comments.
8304 2014-05-27 Gary Benson <gbenson@redhat.com>
8306 * utils.c (internal_vproblem): Prompt for a bug report.
8308 2014-05-26 Andy Wingo <wingo@igalia.com>
8310 * guile/scm-arch.c (arscm_mark_arch_smob):
8311 * guile/scm-block.c (bkscm_mark_block_smob)
8312 (bkscm_mark_block_syms_progress_smob):
8313 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8314 * guile/scm-exception.c (exscm_mark_exception_smob):
8315 * guile/scm-frame.c (frscm_mark_frame_smob):
8316 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8317 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8318 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8319 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8320 (ppscm_mark_pretty_printer_worker_smob):
8321 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8322 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8323 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8324 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8326 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8329 2014-05-26 Andy Wingo <wingo@igalia.com>
8330 Doug Evans <xdje42@gmail.com>
8332 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8333 empty_base_class. All uses updated.
8334 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8335 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8337 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8338 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8339 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8340 (gdbscm_gsmob_has_property_p, add_property_name)
8341 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8342 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8343 (gdb-object-has-property?, gdb-object-properties): Remove.
8344 (gdb-object-kind): Renamed from gsmob-kind.
8346 2014-05-26 Andy Wingo <wingo@igalia.com>
8348 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8349 * configure: Regenerate.
8351 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8353 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8355 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8357 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8358 (replay_memory_access_read_only, replay_memory_access_read_write)
8359 (replay_memory_access_types, replay_memory_access)
8360 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8361 (cmd_set_record_btrace, cmd_show_record_btrace)
8362 (cmd_show_replay_memory_access): New.
8363 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8364 (record_btrace_remove_breakpoint): Replace
8365 record_btrace_allow_memory_access with replay_memory_access.
8366 (_initialize_record_btrace): Add commands.
8367 * NEWS: Announce it.
8369 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8371 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8373 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8375 * MAINTAINERS (Write After Approval): Move self back from
8378 2014-05-22 Pedro Alves <palves@redhat.com>
8380 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8381 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8382 (disable_randomization, enum exec_direction_kind)
8383 (execution_direction, stop_registers, start_remote)
8384 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8385 (wait_for_inferior, normal_stop, get_last_target_status)
8386 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8387 (insert_step_resume_breakpoint_at_sal)
8388 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8389 (set_step_info, print_stop_event, signal_stop_state)
8390 (signal_print_state, signal_pass_state, signal_stop_update)
8391 (signal_print_update, signal_pass_update)
8392 (update_signals_program_target, clear_exit_convenience_vars)
8393 (displaced_step_dump_bytes, update_observer_mode)
8394 (signal_catch_update, gdb_signal_from_command): Move
8396 * infrun.h: ... to this new file.
8397 * amd64-tdep.c: Include infrun.h.
8398 * annotate.c: Include infrun.h.
8399 * arch-utils.c: Include infrun.h.
8400 * arm-linux-tdep.c: Include infrun.h.
8401 * arm-tdep.c: Include infrun.h.
8402 * break-catch-sig.c: Include infrun.h.
8403 * breakpoint.c: Include infrun.h.
8404 * common/agent.c: Include infrun.h instead of inferior.h.
8405 * corelow.c: Include infrun.h.
8406 * event-top.c: Include infrun.h.
8407 * go32-nat.c: Include infrun.h.
8408 * i386-tdep.c: Include infrun.h.
8409 * inf-loop.c: Include infrun.h.
8410 * infcall.c: Include infrun.h.
8411 * infcmd.c: Include infrun.h.
8412 * infrun.c: Include infrun.h.
8413 * linux-fork.c: Include infrun.h.
8414 * linux-nat.c: Include infrun.h.
8415 * linux-thread-db.c: Include infrun.h.
8416 * monitor.c: Include infrun.h.
8417 * nto-tdep.c: Include infrun.h.
8418 * procfs.c: Include infrun.h.
8419 * record-btrace.c: Include infrun.h.
8420 * record-full.c: Include infrun.h.
8421 * remote-m32r-sdi.c: Include infrun.h.
8422 * remote-mips.c: Include infrun.h.
8423 * remote-notif.c: Include infrun.h.
8424 * remote-sim.c: Include infrun.h.
8425 * remote.c: Include infrun.h.
8426 * reverse.c: Include infrun.h.
8427 * rs6000-tdep.c: Include infrun.h.
8428 * s390-linux-tdep.c: Include infrun.h.
8429 * solib-irix.c: Include infrun.h.
8430 * solib-osf.c: Include infrun.h.
8431 * solib-svr4.c: Include infrun.h.
8432 * target.c: Include infrun.h.
8433 * top.c: Include infrun.h.
8434 * windows-nat.c: Include infrun.h.
8435 * mi/mi-interp.c: Include infrun.h.
8436 * mi/mi-main.c: Include infrun.h.
8437 * python/py-threadevent.c: Include infrun.h.
8439 2014-05-22 Pedro Alves <palves@redhat.com>
8441 * infrun.c (handle_inferior_event): Store the exit code for
8442 --return-child-result here, instead of ...
8443 (print_exited_reason): ... here.
8445 2014-05-21 Pedro Alves <palves@redhat.com>
8448 * gdbthread.h (struct thread_control_state): New field
8450 * infrun.c (follow_fork): Copy the new thread control field to the
8452 (clear_proceed_status_thread): Clear the new thread control field.
8453 (proceed): Set the new thread control field.
8454 * interps.h (command_interp): Declare.
8455 * interps.c (command_interpreter): New global.
8456 (command_interp): New function.
8457 (interp_exec): Set `command_interpreter' while here.
8458 * cli-out.c (cli_uiout_dtor): New function.
8459 (cli_ui_out_impl): Install it.
8460 * mi/mi-interp.c: Include cli-out.h.
8461 (mi_cmd_interpreter_exec): Add comment.
8462 (restore_current_uiout_cleanup): New function.
8463 (ui_out_free_cleanup): New function.
8464 (mi_on_normal_stop): If finishing an execution command started by
8465 a CLI command, or any kind of breakpoint-like event triggered,
8466 print the stop event to the output (CLI) stream.
8467 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8469 2014-05-21 Pedro Alves <palves@redhat.com>
8471 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8472 current source line having changed.
8473 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8474 * infrun.c (normal_stop): Adjust call to
8475 set_current_sal_from_frame.
8476 * source.c (clear_lines_listed_range): New function.
8477 (set_current_source_symtab_and_line, identify_source_line): Clear
8478 the lines listed range.
8479 (line_info): Handle the first "info line" after the current source
8480 line having changed.
8481 * stack.c (print_stack_frame): Remove center handling.
8482 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8485 2014-05-21 Pedro Alves <palves@redhat.com>
8487 * inf-child.c (inf_child_mourn_inferior): New function.
8488 * inf-child.h (inf_child_mourn_inferior): New declaration.
8489 * darwin-nat.c (darwin_mourn_inferior): Use
8490 inf_child_mourn_inferior.
8491 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8492 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8493 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8494 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8495 * windows-nat.c (windows_mourn_inferior): Likewise.
8497 2014-05-21 Doug Evans <xdje42@gmail.com>
8499 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8501 2014-05-21 Doug Evans <xdje42@gmail.com>
8503 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8504 (gdbscm_out_of_range_error): Ditto.
8505 (gdbscm_memory_error): Ditto.
8506 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8507 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8508 (gdbscm_out_of_range_error): Update.
8509 (gdbscm_memory_error): Update.
8510 (gdbscm_scm_to_target_string_unsafe): Delete.
8512 2014-05-21 Pedro Alves <palves@redhat.com>
8514 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8516 (inf_child_open_target): New function.
8517 (inf_child_open): Use inf_child_open_target to push the target
8518 instead of erroring out.
8519 (inf_child_disconnect, inf_child_close)
8520 (inf_child_maybe_unpush_target): New functions.
8521 (inf_child_target): Install inf_child_disconnect and
8522 inf_child_close. Store a pointer to the returned object.
8523 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8525 * target.c (auto_connect_native_target): New global.
8526 (show_default_run_target): New function.
8527 (find_default_run_target): Return NULL if automatically connecting
8528 to the native target is disabled.
8529 (_initialize_target): Install set/show auto-connect-native-target.
8530 * NEWS: Mention "set auto-connect-native-target", and "target
8532 * linux-nat.c (super_close): New global.
8533 (linux_nat_close): Call super_close.
8534 (linux_nat_add_target): Store a pointer to the base class's
8536 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8537 inf_child_maybe_unpush.
8538 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8540 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8541 the inferior. Use inf_child_maybe_unpush_target.
8542 (inf_ttrace_attach): Don't push the target if it is already
8544 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8545 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8546 after mourning the inferior. Use inf_child_maybe_unpush_target.
8547 (darwin_attach_pid): Don't push the target if it is already
8549 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8550 mourning the inferior. Use inf_child_maybe_unpush_target.
8551 (gnu_detach): Use inf_child_maybe_unpush_target.
8552 * go32-nat.c (go32_create_inferior): Don't push the target if it
8554 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8555 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8556 (procfs_open): Rename to ...
8557 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8558 comments. Can target_preopen before changing node. Call
8559 inf_child_open_target to push the target explicitly.
8560 (procfs_attach): Don't push the target if it is already pushed.
8561 (procfs_detach): Use inf_child_maybe_unpush_target.
8562 (procfs_create_inferior): Don't push the target if it is already
8564 (nto_native_ops): New global.
8565 (procfs_open): Reimplement.
8566 (procfs_native_open): New function.
8567 (init_procfs_targets): Install procfs_native_open as to_open of
8568 "target native". Store a pointer to the "native" target in
8570 * procfs.c (procfs_attach): Don't push the target if it is already
8572 (procfs_detach): Use inf_child_maybe_unpush_target.
8573 (procfs_mourn_inferior): Only unpush the target after mourning the
8574 inferior. Use inf_child_maybe_unpush_target.
8575 (procfs_init_inferior): Don't push the target if it is already
8577 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8578 if it is already pushed.
8580 2014-05-21 Pedro Alves <palves@redhat.com>
8582 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8583 and "procfs" targets are now called "native" instead.
8585 2014-05-21 Pedro Alves <palves@redhat.com>
8587 * go32-nat.c (go32_open): Delete.
8588 (go32_target): Don't override the to_open method.
8590 2014-05-21 Pedro Alves <palves@redhat.com>
8592 * nto-procfs.c (procfs_can_run): New function.
8593 (nto_procfs_ops): New global.
8594 (init_procfs_targets): New, based on procfs_target. Install
8595 "target native" in addition to "target procfs".
8596 (_initialize_procfs): Call init_procfs_targets instead of adding
8599 2014-05-21 Pedro Alves <palves@redhat.com>
8601 * windows-nat.c (windows_target): Don't override to_shortname,
8602 to_longname or to_doc.
8604 2014-05-21 Pedro Alves <palves@redhat.com>
8606 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8609 2014-05-21 Pedro Alves <palves@redhat.com>
8611 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8612 to_shortname, to_longname or to_doc.
8614 2014-05-21 Pedro Alves <palves@redhat.com>
8616 * go32-nat.c (go32_target): Don't override to_shortname,
8617 to_longname or to_doc.
8619 2014-05-21 Pedro Alves <palves@redhat.com>
8621 * inf-child.c (inf_child_open): Remove mention of "child".
8622 (inf_child_target): Rename target to "native" instead of "child".
8624 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8626 * Makefile.in (SFILES): Delete "regset.c".
8627 (COMMON_OBS): Delete "regset.o".
8629 * regset.h (regset_alloc): Delete prototype.
8631 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8633 * sparc-linux-tdep.c (sparc32_linux_gregset)
8634 (sparc32_linux_fpregset): New static regset structures.
8635 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8636 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8638 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8639 (sparc64_linux_fpregset): New static regset structures.
8640 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8641 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8642 New static regset structures.
8643 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8644 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8645 New static regset structures.
8646 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8647 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8648 New static regset structures.
8649 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8650 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8651 New static regset structures.
8652 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8654 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8656 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8657 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8658 register maps ("regmaps") from "*regset" to "*regmap". Do this
8659 for all regmap types and variables.
8660 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8661 (sparc32_linux_supply_core_gregset)
8662 (sparc32_linux_collect_core_gregset)
8663 (sparc32_linux_supply_core_fpregset)
8664 (sparc32_linux_collect_core_fpregset): Likewise.
8665 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8666 (sparc_gregmap, sparc_fpregmap): ... these.
8667 (sparc_supply_gregset, sparc_collect_gregset)
8668 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8669 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8670 (_initialize_sparc_nat): Rename regmaps.
8671 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8672 (sparc_gregmap, sparc_fpregmap): ... these.
8673 (sparc_supply_gregset, sparc_collect_gregset)
8674 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8675 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8677 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8678 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8680 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8682 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8683 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8684 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8686 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8687 (sparc32_bsd_fpregset): Rename to...
8688 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8689 (sparc32_bsd_fpregmap): ... these.
8690 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8691 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8692 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8693 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8694 (struct sparc_gregmap, struct sparc_fpregmap)
8695 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8696 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8697 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8698 (sparc32_supply_regset, sparc32_collect_gregset)
8699 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8701 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8702 (sparc64_linux_ptrace_gregmap): ... this.
8703 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8704 (_initialize_sparc64_linux_nat): Rename regmaps.
8705 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8706 (sparc64_linux_core_gregmap): ... this.
8707 (sparc64_linux_supply_core_gregset)
8708 (sparc64_linux_collect_core_gregset)
8709 (sparc64_linux_supply_core_fpregset)
8710 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8711 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8712 (sparc64_sol2_fpregset): Rename to...
8713 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8714 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8715 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8717 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8718 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8719 (sparc64_bsd_fpregset): Rename to...
8720 (struct sparc_gregmap, sparc64_sol2_gregmap)
8721 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8722 (sparc64_bsd_fpregmap): ... these.
8723 (sparc64_supply_gregset, sparc64_collect_gregset)
8724 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8726 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8727 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8728 (sparc64fbsd_gregmap): ... this.
8729 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8730 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8732 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8733 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8734 (sparc64nbsd_collect_fpregset): Likewise.
8735 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8736 (sparc64nbsd_gregmap): ... this.
8737 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8739 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8740 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8741 (sparc64obsd_gregmap): ... this.
8742 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8744 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8745 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8746 (sparc32nbsd_gregmap): ... this.
8747 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8750 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8752 * score-tdep.c (score7_linux_gregset): New static regset
8754 (score7_linux_regset_from_core_section): Remove dynamic regset
8756 (score_gdbarch_init): Drop allocation of tdep structure.
8757 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8759 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8761 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8763 (am33_regset_from_core_section): Remove dynamic regset
8766 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8768 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8769 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8771 (mips_linux_regset_from_core_section): Remove dynamic regset
8773 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8774 'gregset64', 'fpregset', and 'fpregset64'.
8775 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8776 deleted tdep fields.
8778 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8780 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8782 (amd64_regset_from_core_section): Remove dynamic regset
8784 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8786 (amd64obsd_regset_from_core_section): Remove dynamic regset
8788 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8790 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8791 x86-common regset supply function.
8792 * i386-tdep.c (i386_collect_gregset): Make static.
8793 (i386_gregset): New global regset structure.
8794 (i386_fpregset, i386_xstateregset): New static regset structures.
8795 (i386_regset_from_core_section): Remove dynamic regset
8797 (i386_gdbarch_init): Remove initialization of tdep fields
8798 'gregset', 'fpregset', and 'xstateregset'.
8799 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8800 'fpregset', and 'xstateregset'.
8801 (i386_collect_gregset): Remove prototype.
8802 (i386_gregset): New declaration.
8803 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8805 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8808 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8810 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8811 (arm_linux_vfpregset): New static regset structures.
8812 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8814 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8815 and 'vfpregset' fields.
8817 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8819 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8820 (aarch64_linux_fpregset): New static regset structures.
8821 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8822 of regset structures.
8823 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8826 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8828 * regset.h (struct regset): Remove gdbarch field.
8829 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8830 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8831 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8833 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8834 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8835 (ppc32_linux_vsxregset): Likewise.
8836 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8837 via the regcache instead of the regset.
8838 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8839 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8840 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8841 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8844 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8846 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8847 Constify structures.
8848 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8849 (alphanbsd_aout_gregset): Likewise.
8850 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8851 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8853 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8854 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8856 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8857 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8858 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8859 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8860 * m88k-tdep.c (m88k_gregset): Likewise.
8861 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8862 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8863 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8864 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8865 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8866 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8867 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8868 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8869 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8871 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8872 * sh-tdep.h (sh_corefile_gregset): Likewise.
8873 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8874 * vax-tdep.c (vax_gregset): Likewise.
8876 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8878 Fix TLS access for -static -pthread.
8879 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8880 (try_thread_db_load_1): Initialize it.
8881 (thread_db_get_thread_local_address): Call it if LM is zero.
8882 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8883 * target.h (struct target_ops) (to_get_thread_local_address): Add
8884 load_module_addr comment.
8886 2014-05-21 Pedro Alves <palves@redhat.com>
8888 * dcache.c (dcache_read_memory_partial): If reading the cache line
8889 fails, fallback to reading just the memory the caller wanted.
8891 2014-05-20 Doug Evans <dje@google.com>
8893 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8894 instead of get_current_arch.
8896 2014-05-20 Pedro Alves <palves@redhat.com>
8898 * NEWS: Mention that compare-sections now works with all targets.
8900 * remote.c (PACKET_qCRC): New enum value.
8901 (remote_verify_memory): Don't send qCRC if the target has no
8902 execution. Use packet_support/packet_ok. If the target doesn't
8903 support the qCRC packet, fallback to a deep memory copy.
8904 (compare_sections_command): Say "target image" instead of "remote
8906 (_initialize_remote): Add PACKET_qCRC to the list of config
8907 packets that have no associated command. Extend comment.
8908 * target.c (simple_verify_memory, default_verify_memory): New
8910 * target.h (struct target_ops) <to_verify_memory>: Default to
8911 default_verify_memory.
8912 (simple_verify_memory): New declaration.
8913 * target-delegates.c: Regenerate.
8915 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8917 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8919 2014-05-20 Hui Zhu <hui@codesourcery.com>
8920 Yao Qi <yao@codesourcery.com>
8923 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8924 and change address of sp and pc.
8926 2014-05-19 Tom Tromey <tromey@redhat.com>
8928 * gdbtypes.c (rank_function): Use XNEWVEC.
8929 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8931 2014-05-19 Doug Evans <dje@google.com>
8933 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8934 build_type_unit_groups and moved closer to only caller. Remove
8935 arguments. All references updated. Remove outdated .gdb_index
8937 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8938 build_type_psymtabs_1.
8940 2014-05-19 Doug Evans <dje@google.com>
8942 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8943 n_type_unit_groups, all_type_unit_groups. All uses removed.
8944 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8945 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8946 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8947 (add_type_unit_group_to_table): Delete.
8949 2014-05-19 Doug Evans <dje@google.com>
8951 * eval.c (evaluate_subexp_standard): Add some comments.
8953 2014-05-17 Doug Evans <xdje42@gmail.com>
8955 * progspace.c (remove_program_space): Delete, unused.
8956 * progspace.h (remove_program_space): Ditto.
8958 2014-05-17 Doug Evans <xdje42@gmail.com>
8960 * inferior.c (prune_inferiors): Fix comment.
8961 (remove_inferior_command): Call prune_program_spaces.
8963 2014-05-16 Doug Evans <dje@google.com>
8965 New command line option -D.
8967 * main.c (set_gdb_data_directory): New function.
8968 (captured_main): Recognize -D. Flag error for --data-directory "".
8969 Call set_gdb_data_directory.
8970 (print_gdb_help): Print --data-directory, -D.
8971 * main.h (set_gdb_data_directory): Declare.
8972 * top.c (staged_gdb_datadir): New static global.
8973 (set_gdb_datadir): Call set_gdb_data_directory
8974 (show_gdb_datadir): New function.
8975 (init_main): Update init of data-directory parameter.
8977 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8979 Import the "dirfd" gnulib module.
8980 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8981 * gnulib/aclocal.m4: Update.
8982 * gnulib/config.in: Update.
8983 * gnulib/configure: Update.
8984 * gnulib/import/Makefile.am: Update.
8985 * gnulib/import/Makefile.in: Update.
8986 * gnulib/import/dirfd.c: New.
8987 * gnulib/import/m4/dirfd.m4: New.
8988 * gnulib/import/m4/gnulib-cache.m4: Update.
8989 * gnulib/import/m4/gnulib-comp.m4: Update.
8991 2014-05-16 Pierre Muller <muller@sourceware.org>
8992 Yao Qi <yao@codesourcery.com>
8994 * valprint.c (print_wchar): Move the code on checking whether
8995 W is a printable wide char to the default branch of switch
8996 statement below. Call wchar_printable instead of gdb_iswprint.
8998 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
9000 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
9001 ldr.w and ldrd instructions.
9003 2014-05-15 Doug Evans <dje@google.com>
9005 * dwarf2read.c (read_structure_type): Delete outdated comments.
9007 2014-05-14 Tom Tromey <tromey@redhat.com>
9009 * macrocmd.c (print_macro_definition): Reindent.
9011 2014-05-13 Doug Evans <xdje42@gmail.com>
9013 * python/py-cmd.c (cmdpy_completer): Add comment.
9014 (completers): Make const.
9016 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
9018 * infrun.c (resume): Remove should_resume (unused). Move up
9019 declaration of resume_ptid.
9021 2014-05-13 Tom Tromey <tromey@redhat.com>
9023 * language.h (unop_type_check): Remove.
9024 (binop_type_check): Don't declare.
9026 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
9028 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
9029 call to regcache_raw_collect.
9031 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9033 * mi/mi-console.c (mi_console_raw_packet): Use the value from
9034 mi_console->quote as the quoting character.
9036 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9038 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
9040 2014-04-29 Tom Tromey <tromey@redhat.com>
9042 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
9043 "show debug varobj".
9045 2014-05-07 Kyle McMartin <kyle@redhat.com>
9047 Pushed by Joel Brobecker <brobecker@adacore.com>.
9048 * aarch64-tdep.c (aarch64_software_single_step): New function.
9049 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
9050 with aarch64_software_single_step.
9052 2014-05-05 Joel Brobecker <brobecker@adacore.com>
9056 2014-05-05 Keith Seitz <keiths@redhat.com>
9058 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
9059 variable or history value is successfully parsed.
9061 2014-05-05 Yao Qi <yao@codesourcery.com>
9062 Pedro Alves <palves@redhat.com>
9064 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
9065 address of blocks that intersects the requested range. Trim
9066 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
9068 * ctf.c (ctf_xfer_partial): Likewise.
9070 2014-05-05 Yao Qi <yao@codesourcery.com>
9072 * printcmd.c (display_command): Remove the check to
9073 target_has_execution.
9075 2014-05-03 Mark Kettenis <kettenis@gnu.org>
9077 * ppcobsd-nat.c: Include "obsd-nat.h".
9078 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
9080 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9082 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9084 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
9085 and 16-bit signed and unsigned arguments. Update comment.
9086 (stap_parse_probe_arguments): Extend code to handle such
9087 arguments. Use warning instead of complaint to notify about
9088 unrecognized bitness.
9090 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9092 PR breakpoints/16889
9093 * stap-probe.c (stap_parse_probe_arguments): Simplify
9094 check for non-prefixed probes (i.e., probes whose
9095 arguments do not start with "N@"). Always set the
9096 argument type to a sane value.
9098 2014-05-01 David Taylor <dtaylor@emc.com>
9100 * remote.c (compare_sections_command): Add -r option to compare
9101 all loadable read-only sections.
9103 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
9105 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
9106 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
9108 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
9109 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
9110 Remove unused CORE_ADDR argument. Update all callers.
9112 2014-04-29 Pedro Alves <palves@redhat.com>
9114 * remote.c (struct packet_config) <detect>: Extend comment.
9115 (add_packet_config_cmd): Don't set the config's detect or support
9117 (init_all_packet_configs): Also initialize the config's 'detect'
9119 (reset_all_packet_configs_support): New function.
9120 (remote_open_1): Call reset_all_packet_configs_support instead of
9121 init_all_packet_configs.
9122 (_initialize_remote): Initialize all packet configs. Assert that
9123 all packets have an associated command, except a few known
9126 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9128 * dwarf2read.c (read_subrange_type): Handle dynamic
9129 DW_AT_lower_bound attributes.
9131 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9133 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
9134 dynamic bounds before computing its upper bound.
9135 (ada_discrete_type_low_bound): Same as above with the lower bound.
9137 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9139 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9140 range types. Adjust the array handling implementation to
9141 take advantage of this change.
9142 (resolve_dynamic_range): New function, mostly extracted from
9143 resolve_dynamic_bounds.
9144 (resolve_dynamic_array): New function, mostly extracted from
9145 resolve_dynamic_bounds.
9146 (resolve_dynamic_bounds): Delete.
9147 (resolve_dynamic_type): Reimplement. Add handling of
9148 TYPE_CODE_RANGE types.
9150 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9152 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9153 handling of parallel ___XA types.
9155 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9157 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9158 unnecessary second call to static_unwrap_type.
9160 2014-04-27 Hui Zhu <hui@codesourcery.com>
9162 * stack.c (print_frame_info): Call do_gdb_disassembly with
9163 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9165 2014-04-26 Doug Evans <xdje42@gmail.com>
9167 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9169 2014-04-25 Pedro Alves <palves@redhat.com>
9172 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9173 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9174 and newline from built string.
9175 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9176 (linux_ptrace_attach_fail_reason): ... this.
9177 * linux-nat.c (linux_nat_attach): Adjust to use
9178 linux_ptrace_attach_fail_reason.
9180 2014-04-25 Pedro Alves <palves@redhat.com>
9182 * remote.c (struct remote_state): Remove multi_process_aware,
9183 non_stop_aware, cond_tracepoints, cond_breakpoints,
9184 breakpoint_commands, fast_tracepoints, static_tracepoints,
9185 install_in_trace, disconnected_tracing,
9186 enable_disable_tracepoints, string_tracing, and
9187 augmented_libraries_svr4_read fields.
9188 (remote_multi_process_p): Move further below in the file.
9189 (struct packet_config): Add comments.
9190 (update_packet_config): Delete function.
9191 (show_packet_config_cmd): Use packet_config_support.
9192 (add_packet_config_cmd): Use NULL as set callback.
9193 (packet_ok): "set remote foo-packet"-style commands no longer
9194 change config->supported -- adjust.
9195 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9196 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9197 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9198 (PACKET_QNonStop, PACKET_multiprocess_feature)
9199 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9200 (PACKET_DisconnectedTracing_feature)
9201 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9202 (set_remote_protocol_packet_cmd): Delete function.
9203 (packet_config_support, packet_support): New functions.
9204 (set_remote_protocol_Z_packet_cmd): Don't call
9205 update_packet_config.
9206 (remote_query_attached, remote_pass_signals)
9207 (remote_program_signals, remote_threads_info)
9208 (remote_threads_extra_info, remote_start_remote): Use
9210 (remote_start_remote): Use packet_config_support and
9212 (init_all_packet_configs): Set all packets to unknown support,
9213 instead of calling update_packet_config.
9214 (remote_check_symbols): Use packet_support.
9215 (remote_supported_packet): Unconditionally set the packet config's
9217 (remote_multi_process_feature, remote_non_stop_feature)
9218 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9219 (remote_breakpoint_commands_feature)
9220 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9221 (remote_install_in_trace_feature)
9222 (remote_disconnected_tracing_feature)
9223 (remote_enable_disable_tracepoint_feature)
9224 (remote_string_tracing_feature)
9225 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9226 (remote_protocol_features): Adjust to use remote_supported_packet
9227 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9228 "ConditionalTracepoints", "ConditionalBreakpoints",
9229 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9230 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9231 "EnableDisableTracepoints", and "tracenz".
9232 (remote_query_supported): Use packet_support.
9233 (remote_open_1): Adjust.
9234 (extended_remote_attach_1): Use packet_support. Switch on the
9235 result of packet_ok instead of checking whether the packet ended
9237 (remote_vcont_resume): Use packet_support.
9238 (remote_resume, remote_stop_ns, fetch_register_using_p)
9239 (remote_prepare_to_store, store_register_using_P)
9240 (check_binary_download, remote_write_bytes): Use packet_support.
9241 (remote_vkill): Use packet_support. Switch on the result of
9242 packet_ok instead of checking whether the packet ended up
9244 (extended_remote_supports_disable_randomization): Use
9246 (extended_remote_run): Switch on the result of packet_ok instead
9247 of checking whether the packet ended up disabled.
9248 (remote_insert_breakpoint, remote_remove_breakpoint)
9249 (remote_insert_watchpoint, remote_remove_watchpoint)
9250 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9252 (remote_search_memory): Use packet_config_support.
9253 (remote_get_thread_local_address, remote_get_tib_address)
9254 (remote_hostio_send_command, remote_can_execute_reverse): Use
9256 (remote_supports_cond_tracepoints)
9257 (remote_supports_cond_breakpoints)
9258 (remote_supports_fast_tracepoints)
9259 (remote_supports_static_tracepoints)
9260 (remote_supports_install_in_trace)
9261 (remote_supports_enable_disable_tracepoint)
9262 (remote_supports_string_tracing)
9263 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9264 the packet config says the feature is enabled or disabled.
9265 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9266 (remote_get_trace_status): Use packet_support.
9267 (remote_set_disconnected_tracing): Adjust to check whether the
9268 feature is enabled with packet_support.
9269 (remote_set_trace_buffer_size, remote_use_agent)
9270 (remote_can_use_agent, remote_supports_btrace): Use
9272 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9273 Use packet_config_support.
9274 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9275 the packet config says the feature is enabled or disabled.
9276 (set_range_stepping): Use packet_support.
9278 2014-04-25 Tom Tromey <tromey@redhat.com>
9280 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9283 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9285 * NEWS: Mention support for C99 variable length arrays.
9287 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9289 * ada-lang.c (standard_exc): Expand introductory comment.
9291 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9292 Walfred Tedeschi <walfred.tedeschi@intel.com>
9294 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9296 (amd64_linux_read_description): Add code to handle AVX512 xstate
9297 mask and return respective tdesc.
9298 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9299 and features/i386/x32-avx512-linux.c.
9300 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9301 (amd64_linux_core_read_description): Add code to handle AVX512
9302 xstate mask and return respective tdesc.
9303 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9304 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9306 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9307 (tdesc_amd64_avx512_linux): New prototype.
9308 (tdesc_x32_avx512_linux): Likewise.
9309 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9310 features/i386/x32-avx512.c.
9311 (amd64_ymm_avx512_names): New register names for pseudo
9313 (amd64_ymmh_avx512_names): New register names for raw registers
9315 (amd64_k_names): New register names for K registers.
9316 (amd64_zmmh_names): New register names for ZMM raw registers.
9317 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9318 (amd64_xmm_avx512_names): New register names for XMM16-31
9320 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9322 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9323 if feature is present.
9324 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9325 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9326 (AMD64_NUM_REGS): Adjust to new number of registers.
9327 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9328 registers supplied via XSTATE by AVX512 registers.
9329 (i386_linux_read_description): Add case for AVX512.
9330 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9331 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9332 (i386_linux_core_read_description): Add case for AVX512.
9333 (i386_linux_init_abi): Install supported register note section
9335 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9337 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9338 registers to be number of zmm7h + 1.
9339 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9340 * i386-tdep.c: Include features/i386/i386-avx512.c.
9341 (i386_zmm_names): Add ZMM pseudo register names array.
9342 (i386_zmmh_names): Add ZMM raw register names array.
9343 (i386_k_names): Add K raw register names array.
9344 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9345 registers. AVX512 has 16 more ZMM registers than there are YMM
9347 (i386_zmmh_regnum_p): Add function to look up register number of
9349 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9350 (i386_k_regnum_p): Likewise for K raw registers.
9351 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9352 registers added by AVX512.
9353 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9354 registers added by AVX512.
9355 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9357 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9358 (i386_pseudo_register_name): Add ZMM pseudo registers.
9359 (i386_zmm_type): Construct and return vector registers type for ZMM
9361 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9362 ZMM0-31 pseudo registers and K registers.
9363 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9364 and YMM16-31 registers from register cache.
9365 (i386_pseudo_register_write): Add code to write K, ZMM and
9367 (i386_register_reggroup_p): Add code to include/exclude AVX512
9368 registers in/from respective register groups.
9369 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9370 registers if feature is present in xcr0.
9371 (i386_gdbarch_init): Add code to initialize AVX512 feature
9372 variables in tdep structure, wire in pseudo registers and call
9373 initialize_tdesc_i386_avx512.
9374 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9376 (i386_regnum): Add AVX512 registers.
9377 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9378 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9379 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9380 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9382 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9383 (i386_ymm_avx512_regnum_p): Likewise.
9384 (i386_k_regnum_p): Likewise.
9385 (i386_zmm_regnum_p): Likewise.
9386 (i386_zmmh_regnum_p): Likewise.
9387 * i387-tdep.c : Update year in copyright notice.
9388 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9390 (XSAVE_YMM_AVX512_ADDR): New macro.
9391 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9393 (XSAVE_XMM_AVX512_ADDR): New macro.
9394 (xsave_avx512_k_offset): New table for K register offsets in
9396 (XSAVE_AVX512_K_ADDR): New macro.
9397 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9399 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9400 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9402 (i387_collect_xsave): Add code to collect AVX512 registers from
9404 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9405 of XMM16-31 registers.
9406 (I387_NUM_K_REGS): New define for number of K registers.
9407 (I387_K0_REGNUM): New define for K0 register number.
9408 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9409 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9410 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9412 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9413 (I387_XMM16_REGNUM): New define for XMM16 register number.
9414 (I387_YMM0_REGNUM): New define for YMM0 register number.
9415 (I387_KEND_REGNUM): New define for last K register number.
9416 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9417 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9419 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9421 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9423 * features/Makefile: Add AVX512 related files.
9424 * features/i386/32bit-avx512.xml: New file.
9425 * features/i386/64bit-avx512.xml: Likewise.
9426 * features/i386/amd64-avx512-linux.c: Likewise.
9427 * features/i386/amd64-avx512-linux.xml: Likewise.
9428 * features/i386/amd64-avx512.c: Likewise.
9429 * features/i386/amd64-avx512.xml: Likewise.
9430 * features/i386/i386-avx512-linux.c: Likewise.
9431 * features/i386/i386-avx512-linux.xml: Likewise.
9432 * features/i386/i386-avx512.c: Likewise.
9433 * features/i386/i386-avx512.xml: Likewise.
9434 * features/i386/x32-avx512-linux.c: Likewise.
9435 * features/i386/x32-avx512-linux.xml: Likewise.
9436 * features/i386/x32-avx512.c: Likewise.
9437 * features/i386/x32-avx512.xml: Likewise.
9438 * regformats/i386/amd64-avx512-linux.dat: New file.
9439 * regformats/i386/amd64-avx512.dat: Likewise.
9440 * regformats/i386/i386-avx512-linux.dat: Likewise.
9441 * regformats/i386/i386-avx512.dat: Likewise.
9442 * regformats/i386/x32-avx512-linux.dat: Likewise.
9443 * regformats/i386/x32-avx512.dat: Likewise.
9444 * NEWS: Add note about new support for AVX512.
9447 2014-04-23 Pedro Alves <palves@redhat.com>
9449 * breakpoint.c (insert_bp_location): Tolerate errors if the
9450 breakpoint is set in a user-loaded objfile.
9451 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9452 location is marked shlib_disabled. If the breakpoint is set in a
9453 user-loaded objfile is a GDB-side memory breakpoint, validate it
9454 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9455 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9457 * mem-break.c (memory_validate_breakpoint): New function.
9458 * objfiles.c (userloaded_objfile_contains_address_p): New
9460 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9461 * target.h (memory_validate_breakpoint): New declaration.
9463 2014-04-23 Pedro Alves <palves@redhat.com>
9465 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9466 the breakpoint is set in a shared library, only suppress
9467 errors for software breakpoints, not hardware breakpoints.
9469 2014-04-22 Pedro Alves <palves@redhat.com>
9471 * infrun.c (schedlock_applies): New function, factored out from
9472 find_thread_needs_step_over.
9473 (find_thread_needs_step_over): Use it.
9474 (switch_back_to_stepped_thread): Always clear trap_expected if the
9475 step over is finished. Return early if scheduler locking applies.
9476 Look for the stepping thread and a potential step-over thread with
9478 (currently_stepping_or_nexting_callback): Delete.
9480 2014-04-22 Nick Clifton <nickc@redhat.com>
9482 * NEWS: Mention that ARM sim now supports tracing.
9484 2014-04-22 Yao Qi <yao@codesourcery.com>
9486 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9488 * tracefile.c (tracefile_fetch_registers): ... it. New
9490 * tracefile.h (tracefile_fetch_registers): Declare.
9491 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9492 tracefile_fetch_registers.
9494 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9497 * windows-nat.c (thread_rec): Don't display a warning when
9498 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9499 fails for any reason, set th->suspended to -1, so that we don't
9500 try to resume such a thread. Also, don't return NULL in these
9501 cases, to avoid completely ruin the session due to "PC register is
9502 not available" error.
9503 (do_windows_fetch_inferior_registers): Check errors in
9504 GetThreadContext call.
9505 (windows_continue): Accept an additional argument KILLED; if not
9506 zero, ignore errors in the SetThreadContext call, since the
9507 inferior was killed and is shutting down.
9508 (windows_resume, get_windows_debug_event)
9509 (windows_create_inferior, windows_mourn_inferior)
9510 (windows_kill_inferior): All callers of windows_continue changed
9511 to adjust to its new calling sequence.
9513 2014-04-19 Yao Qi <yao@codesourcery.com>
9515 * ctf.c (ctf_open): Call post_create_inferior.
9517 2014-04-19 Yao Qi <yao@codesourcery.com>
9519 * ctf.c (handle_id): New static variable.
9520 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9521 value. Get the declaration of event "register" and get length
9522 of field "contents".
9524 2014-04-19 Yao Qi <yao@codesourcery.com>
9526 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9528 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9530 * valops.c (oload_method_static): Remove unnecessary argument
9531 METHOD. Update all callers.
9533 2014-04-18 Pedro alves <palves@redhat.com>
9534 Tom Tromey <tromey@redhat.com>
9537 * frame.c (get_prev_frame_1): Rename to ...
9538 (get_prev_frame_always): ... this, and make extern. Adjust.
9539 (skip_artificial_frames): Use get_prev_frame_always.
9540 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9541 (get_frame_unwind_stop_reason): Adjust to rename.
9542 * frame.h (get_prev_frame_always): Declare.
9543 * inline-frame.c: Include frame.h.
9544 (inline_frame_this_id): Use get_prev_frame_always.
9546 2014-04-18 Tristan Gingold <gingold@adacore.com>
9548 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9549 code by using bfd_mach_o_get_base_address.
9551 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9553 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9554 (spu_ax_pseudo_register_collect): New function.
9555 (spu_ax_pseudo_register_push_stack): Likewise.
9556 (spu_dwarf_reg_to_regnum): Likewise.
9557 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9559 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9561 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9562 Replace FRAME argument with FRAME_ID.
9563 * gdbarch.c, gdbarch.h: Regenerate.
9564 * findvar.c (default_value_from_register): Add GDBARCH argument;
9565 replace FRAME by FRAME_ID. No longer call get_frame_id.
9566 (value_from_register): Update call to gdbarch_value_from_register.
9567 * value.h (default_value_from_register): Update prototype.
9568 * s390-linux-tdep.c (s390_value_from_register): Update interface
9569 and call to default_value_from_register.
9570 * spu-tdep.c (spu_value_from_register): Likewise.
9572 * findvar.c (address_from_register): Remove TYPE argument.
9573 Do not call value_from_register; use gdbarch_value_from_register
9574 with null_frame_id instead.
9575 * value.h (address_from_register): Update prototype.
9576 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9577 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9578 address_from_register interface change.
9580 2014-04-17 Yao Qi <yao@codesourcery.com>
9582 * gdbtypes.h: Update comments to link to types and macros'
9585 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9587 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9589 2014-04-16 Keith Seitz <keiths@redhat.com>
9592 * dwarf2read.c (skip_one_die): Check that all relative-offset
9593 sibling DIEs fall within range of the current reader's buffer.
9594 (read_partial_die): Likewise.
9596 2014-04-16 Keith Seitz <keiths@redhat.com>
9599 * cp-namespace.c (lookup_symbol_file): If the type name of
9600 `this' is NULL, return immediately.
9602 2014-04-14 Keith Seitz <keiths@redhat.com>
9605 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9606 from symbol_matches_domain in symtab.c. All local callers
9607 of symbol_matches_domain updated.
9608 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9609 search STRUCT_DOMAIN.
9610 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9611 independently. standard_lookup will do that automatically.
9612 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9613 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9614 (cp_lookup_symbol_in_namespace): Likewise.
9615 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9616 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9617 may return a STRUCT_DOMAIN match.
9618 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9619 * cp-support.c: Include language.h.
9620 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9622 * psymtab.c (match_partial_symbol): Compare the requested
9623 domain with the symbol's domain directly.
9624 (lookup_partial_symbol): Likewise.
9625 * symtab.c (lookup_symbol_in_language): Explain when/why
9626 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9627 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9628 appropriate languages.
9629 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9630 and moved to ada-lang.c
9631 (lookup_block_symbol): Explain that this function only returns
9632 symbol matching the requested DOMAIN.
9633 Compare the requested domain with the symbol's domain directly.
9634 (iterate_over_symbols): Compare the requested domain with the
9635 symbol's domain directly.
9636 * symtab.h (symbol_matches_domain): Remove.
9638 2014-04-14 Tom Tromey <tromey@redhat.com>
9641 * c-exp.y (type_aggregate_p): New function.
9642 (qualified_name, classify_inner_name): Use it.
9643 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9644 and TYPE_TARGET_TYPE of an enum type.
9645 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9647 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9648 handle TYPE_DECLARED_CLASS.
9649 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9651 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9652 * valops.c (enum_constant_from_type): New function.
9653 (value_aggregate_elt): Use it.
9654 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9657 2014-04-14 Tom Tromey <tromey@redhat.com>
9659 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9660 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9662 * value.h (value_aggregate_elt): Update.
9664 2014-04-14 Tom Tromey <tromey@redhat.com>
9666 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9668 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9670 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9671 (evaluate_subexp_standard): Pass noside argument.
9672 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9673 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9674 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9675 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9676 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9678 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9680 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9681 points to a constant blob.
9683 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9685 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9686 property and store it as the high bound and flag the range accordingly.
9687 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9688 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9689 * gdbtypes.h (enum range_flags): New enum.
9690 (struct range_bounds): Add flags member.
9692 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9694 * c-typeprint.c (c_type_print_varspec_suffix): Added
9695 check for not yet resolved high bound. If unresolved, print
9696 "variable length" string to the console instead of random
9699 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9701 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9703 (ada_template_to_fixed_record_type_1): Likewise.
9704 (ada_to_fixed_type_1): Likewise.
9705 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9706 (cp_print_value): Likewise.
9707 * d-valprint.c (dynamic_array_type): Likewise.
9708 * findvar.c (address_of_variable): Likewise.
9709 * jv-valprint.c (java_value_print): Likewise.
9710 * valops.c (value_ind): Likewise.
9711 * value.c (coerce_ref): Likewise.
9713 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9715 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9716 value and retrieve the dynamic type size.
9718 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9720 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9721 passed to sizeof is dynamic evaluate the argument to compute the length.
9723 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9724 Joel Brobecker <brobecker@adacore.com>
9726 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9727 (dwarf2_evaluate_property): New function.
9728 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9729 * dwarf2read.c (attr_to_dynamic_prop): New function.
9730 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9732 * gdbtypes.c: Include dwarf2loc.h.
9733 (is_dynamic_type): New function.
9734 (resolve_dynamic_type): New function.
9735 (resolve_dynamic_bounds): New function.
9736 (get_type_length): New function.
9737 (check_typedef): Use get_type_length to compute type length.
9738 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9739 (TYPE_LOW_BOUND_KIND): New macro.
9740 (is_dynamic_type): New function prototype.
9741 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9742 to resolve dynamic properties of the type. Update comment.
9743 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9745 2014-04-14 Richard Henderson <rth@redhat.com>
9747 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9749 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9750 Doug Evans <xdje42@gmail.com>
9752 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9753 dereference TYPE_CODE_REF values.
9755 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9757 Revert the following changes due to regressions:
9759 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9760 (dwarf2_evaluate_property): New function.
9761 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9762 * dwarf2read.c (attr_to_dynamic_prop): New function.
9763 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9765 * gdbtypes.c: Include dwarf2loc.h.
9766 (is_dynamic_type): New function.
9767 (resolve_dynamic_type): New function.
9768 (resolve_dynamic_bounds): New function.
9769 (get_type_length): New function.
9770 (check_typedef): Use get_type_length to compute type length.
9771 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9772 (TYPE_LOW_BOUND_KIND): New macro.
9773 (is_dynamic_type): New function prototype.
9774 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9775 to resolve dynamic properties of the type. Update comment.
9776 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9778 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9779 passed to sizeof is dynamic evaluate the argument to compute the length.
9781 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9782 value and retrieve the dynamic type size.
9784 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9785 (ada_template_to_fixed_record_type_1): Likewise.
9786 (ada_to_fixed_type_1): Likewise.
9787 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9788 (cp_print_value): Likewise.
9789 * d-valprint.c (dynamic_array_type): Likewise.
9790 * eval.c (evaluate_subexp_with_coercion): Likewise.
9791 * findvar.c (address_of_variable): Likewise.
9792 * jv-valprint.c (java_value_print): Likewise.
9793 * valops.c (value_ind): Likewise.
9794 * value.c (coerce_ref): Likewise.
9796 * c-typeprint.c (c_type_print_varspec_suffix): Added
9797 check for not yet resolved high bound. If unresolved, print
9798 "variable length" string to the console instead of random
9801 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9802 property and store it as the high bound and flag the range accordingly.
9803 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9804 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9805 * gdbtypes.h (enum range_flags): New enum.
9806 (struct range_bounds): Add flags member.
9808 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9809 points to a constant blob.
9811 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9812 (evaluate_subexp_standard): Pass noside argument.
9813 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9814 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9815 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9816 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9817 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9819 2014-04-11 Keith Seitz <keiths@redhat.com>
9822 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9823 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9826 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9828 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9829 (evaluate_subexp_standard): Pass noside argument.
9830 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9831 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9832 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9833 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9834 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9836 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9838 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9839 points to a constant blob.
9841 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9843 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9844 property and store it as the high bound and flag the range accordingly.
9845 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9846 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9847 * gdbtypes.h (enum range_flags): New enum.
9848 (struct range_bounds): Add flags member.
9850 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9852 * c-typeprint.c (c_type_print_varspec_suffix): Added
9853 check for not yet resolved high bound. If unresolved, print
9854 "variable length" string to the console instead of random
9857 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9859 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9860 (ada_template_to_fixed_record_type_1): Likewise.
9861 (ada_to_fixed_type_1): Likewise.
9862 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9863 (cp_print_value): Likewise.
9864 * d-valprint.c (dynamic_array_type): Likewise.
9865 * eval.c (evaluate_subexp_with_coercion): Likewise.
9866 * findvar.c (address_of_variable): Likewise.
9867 * jv-valprint.c (java_value_print): Likewise.
9868 * valops.c (value_ind): Likewise.
9869 * value.c (coerce_ref): Likewise.
9871 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9873 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9874 value and retrieve the dynamic type size.
9876 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9878 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9879 passed to sizeof is dynamic evaluate the argument to compute the length.
9881 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9883 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9884 (dwarf2_evaluate_property): New function.
9885 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9886 * dwarf2read.c (attr_to_dynamic_prop): New function.
9887 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9889 * gdbtypes.c: Include dwarf2loc.h.
9890 (is_dynamic_type): New function.
9891 (resolve_dynamic_type): New function.
9892 (resolve_dynamic_bounds): New function.
9893 (get_type_length): New function.
9894 (check_typedef): Use get_type_length to compute type length.
9895 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9896 (TYPE_LOW_BOUND_KIND): New macro.
9897 (is_dynamic_type): New function prototype.
9898 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9899 to resolve dynamic properties of the type. Update comment.
9900 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9902 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9904 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9905 declaring high/low bounds and change uses accordingly. Call
9906 create_range_type instead of create_static_range_type.
9907 * gdbtypes.c (create_range_type): New function.
9908 (create_range_type): Convert bounds into struct bound_prop and pass
9909 them to create_range_type.
9910 * gdbtypes.h (struct bound_prop): New struct.
9911 (create_range_type): New function prototype.
9912 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9913 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9914 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9916 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9918 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9920 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9921 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9922 * ada-lang.c: All uses of create_range_type updated.
9923 * coffread.c: All uses of create_range_type updated.
9924 * dwarf2read.c: All uses of create_range_type updated.
9925 * f-exp.y: All uses of create_range_type updated.
9926 * m2-valprint.c: All uses of create_range_type updated.
9927 * mdebugread.c: All uses of create_range_type updated.
9928 * stabsread.c: All uses of create_range_type updated.
9929 * valops.c: All uses of create_range_type updated.
9930 * valprint.c: All uses of create_range_type updated.
9932 2014-04-10 Pedro Alves <palves@redhat.com>
9934 * breakpoint.c (single_step_breakpoints)
9935 (single_step_gdbarch): Move up in the file.
9936 (one_breakpoint_xfer_memory): New function, factored out from ...
9937 (breakpoint_xfer_memory): ... here. Also process single-step
9940 2014-04-09 Tristan Gingold <gingold@adacore.com>
9942 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9944 (darwin_decode_exception_message): Free port only after use.
9946 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9948 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9949 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9950 when setting the size of call_length.
9952 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9954 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9955 dereference TYPE_CODE_REF values.
9957 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9959 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9960 end of warning message.
9962 2014-04-03 Doug Evans <dje@google.com>
9964 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9965 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9967 2014-04-02 Alan Modra <amodra@gmail.com>
9969 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9970 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9971 (struct symbol_file_add_from_memory_args): Add size field.
9972 (find_vdso_size): New function.
9973 (add_vsyscall_page): Attempt to find vdso size.
9975 2014-04-01 Doug Evans <dje@google.com>
9977 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9979 2014-04-01 Tristan Gingold <gingold@adacore.com>
9981 * darwin-nat.c (darwin_encode_reply): Add prototype.
9982 (darwin_decode_exception_message): Reply to unknown inferiors.
9983 (darwin_decode_message): Handle message by id. Ignore message
9984 to unknown inferior.
9985 (darwin_wait): Discard unknown messages, add debug trace.
9987 2014-03-31 Doug Evans <dje@google.com>
9989 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9992 2014-03-31 Doug Evans <dje@google.com>
9994 New option "set print symbol-loading".
9996 * solib.c (solib_read_symbols): Only print symbol loading messages
9998 (solib_add): If symbol loading is in "brief" mode, notify user
9999 symbols are being loaded.
10000 (reload_shared_libraries_1): Ditto.
10001 * symfile.c (print_symbol_loading_off): New static global.
10002 (print_symbol_loading_brief): New static global.
10003 (print_symbol_loading_full): New static global.
10004 (print_symbol_loading_enums): New static global.
10005 (print_symbol_loading): New static global.
10006 (print_symbol_loading_p): New function.
10007 (symbol_file_add_with_addrs): Only print symbol loading messages
10009 (_initialize_symfile): Register "print symbol-loading" set/show
10011 * symfile.h (print_symbol_loading_p): Declare.
10013 2014-03-30 Doug Evans <xdje42@gmail.com>
10015 * infrun.c (set_last_target_status): New function.
10016 (handle_inferior_event): Call it.
10018 2014-03-30 Doug Evans <xdje42@gmail.com>
10020 * inferior.h (enum stop_kind): Improve comment.
10022 2014-03-28 Joel Brobecker <brobecker@adacore.com>
10024 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
10025 a reference, strip the reference layer before calling
10026 the lang_ops value_has_mutated callback.
10028 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
10030 Remove some globals from our parser.
10031 * language.c (unk_lang_parser): Add "struct parser_state"
10033 * language.h (struct language_defn) <la_parser>: Likewise.
10034 * parse.c (expout, expout_size, expout_ptr): Remove variables.
10035 (initialize_expout): Add "struct parser_state" argument.
10036 Rewrite function to use the parser state.
10037 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
10038 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
10039 write_exp_elt_longcst, write_exp_elt_dblcst,
10040 write_exp_elt_decfloatcst, write_exp_elt_type,
10041 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10042 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
10043 write_dollar_variable): Likewise.
10044 (parse_exp_in_context_1): Use parser state.
10045 (insert_type_address_space): Add "struct parser_state" argument.
10047 (increase_expout_size): New function.
10048 * parser-defs.h: Forward declare "struct language_defn" and
10049 "struct parser_state".
10050 (expout, expout_size, expout_ptr): Remove extern declarations.
10051 (parse_gdbarch, parse_language): Rewrite macro declarations to
10052 accept the parser state.
10053 (struct parser_state): New struct.
10054 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
10055 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
10056 write_exp_elt_decfloatcst, write_exp_elt_type,
10057 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10058 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
10059 write_exp_msymbol, write_dollar_variable,
10060 mark_struct_expression, insert_type_address_space): Add "struct
10061 parser_state" argument.
10062 (increase_expout_size): New function.
10063 * utils.c (do_clear_parser_state): New function.
10064 (make_cleanup_clear_parser_state): Likewise.
10065 * utils.h (make_cleanup_clear_parser_state): New function
10067 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
10068 Update calls to write_exp* in order to pass the parser state.
10069 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
10070 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
10071 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10072 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
10073 * stap-probe.c (stap_parse_register_operand): Likewise.
10074 (stap_parse_single_operand): Likewise.
10075 (stap_parse_argument_1): Likewise.
10076 (stap_parse_argument): Use parser state.
10077 * stap-probe.h: Include "parser-defs.h".
10078 (struct stap_parse_info) <pstate>: New field.
10079 * c-exp.y (parse_type): Rewrite to use parser state.
10080 (yyparse): Redefine to c_parse_internal.
10081 (pstate): New global variable.
10082 (parse_number): Add "struct parser_state" argument.
10083 (write_destructor_name): Likewise.
10084 (type_exp): Update calls to write_exp* and similars in order to
10086 (exp1, exp, variable, qualified_name, space_identifier,
10087 typename, typebase): Likewise.
10088 (write_destructor_name, parse_number, lex_one_token,
10089 classify_name, classify_inner_name, c_parse): Add "struct
10090 parser_state" argument. Update function to use parser state.
10091 * c-lang.h: Forward declare "struct parser_state".
10092 (c_parse): Add "struct parser_state" argument.
10093 * ada-exp.y (parse_type): Rewrite macro to use parser state.
10094 (yyparse): Redefine macro to ada_parse_internal.
10095 (pstate): New variable.
10096 (write_int, write_object_renaming, write_var_or_type,
10097 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
10098 type_int, type_long, type_long_long, type_float, type_double,
10099 type_long_double, type_char, type_boolean, type_system_address):
10100 Add "struct parser_state" argument.
10101 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
10102 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
10103 var_or_type, aggregate, aggregate_component_list,
10104 positional_list, others, component_group,
10105 component_associations): Update calls to write_exp* and similar
10106 functions in order to use parser state.
10107 (ada_parse, write_var_from_sym, write_int,
10108 write_exp_op_with_string, write_object_renaming,
10109 find_primitive_type, write_selectors, write_ambiguous_var,
10110 write_var_or_type, write_name_assoc, type_int, type_long,
10111 type_long_long, type_float, type_double, type_long_double,
10112 type_char, type_boolean, type_system_address): Add "struct
10113 parser_state" argument. Adjust function to use parser state.
10114 * ada-lang.c (parse): Likewise.
10115 * ada-lang.h: Forward declare "struct parser_state".
10116 (ada_parse): Add "struct parser_state" argument.
10117 * ada-lex.l (processInt, processReal): Likewise. Adjust all
10118 calls to both functions.
10119 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
10121 (yyparse): Redefine macro to f_parse_internal.
10122 (pstate): New variable.
10123 (parse_number): Add "struct parser_state" argument.
10124 (type_exp, exp, subrange, typebase): Update calls to write_exp*
10125 and similars in order to use parser state.
10126 (parse_number): Adjust code to use parser state.
10128 (f_parse): New function.
10129 * f-lang.h: Forward declare "struct parser_state".
10130 (f_parse): Add "struct parser_state" argument.
10131 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
10133 (yyparse): Redefine macro for java_parse_internal.
10134 (pstate): New variable.
10135 (push_expression_name, push_expression_name, insert_exp): Add
10136 "struct parser_state" argument.
10137 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10138 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10139 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10140 PostIncrementExpression, PostDecrementExpression,
10141 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10142 UnaryExpressionNotPlusMinus, CastExpression,
10143 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10144 RelationalExpression, EqualityExpression, AndExpression,
10145 ExclusiveOrExpression, InclusiveOrExpression,
10146 ConditionalAndExpression, ConditionalOrExpression,
10147 ConditionalExpression, Assignment, LeftHandSide): Update
10148 calls to write_exp* and similars in order to use parser state.
10149 (parse_number): Ajust code to use parser state.
10151 (java_parse): New function.
10152 (push_variable): Add "struct parser_state" argument. Adjust
10153 code to user parser state.
10154 (push_fieldnames, push_qualified_expression_name,
10155 push_expression_name, insert_exp): Likewise.
10156 * jv-lang.h: Forward declare "struct parser_state".
10157 (java_parse): Add "struct parser_state" argument.
10158 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10160 (yyparse): Redefine macro to m2_parse_internal.
10161 (pstate): New variable.
10162 (type_exp, exp, fblock, variable, type): Update calls to
10163 write_exp* and similars to use parser state.
10165 (m2_parse): New function.
10166 * m2-lang.h: Forward declare "struct parser_state".
10167 (m2_parse): Add "struct parser_state" argument.
10168 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10169 * objc-lang.h: Forward declare "struct parser_state".
10170 (end_msglist): Add "struct parser_state" argument.
10171 * p-exp.y (parse_type): Rewrite macro to use parser state.
10172 (yyparse): Redefine macro to pascal_parse_internal.
10173 (pstate): New variable.
10174 (parse_number): Add "struct parser_state" argument.
10175 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10176 write_exp* and similars in order to use parser state.
10177 (parse_number, yylex): Adjust code to use parser state.
10178 (pascal_parse): New function.
10179 * p-lang.h: Forward declare "struct parser_state".
10180 (pascal_parse): Add "struct parser_state" argument.
10181 * go-exp.y (parse_type): Rewrite macro to use parser state.
10182 (yyparse): Redefine macro to go_parse_internal.
10183 (pstate): New variable.
10184 (parse_number): Add "struct parser_state" argument.
10185 (type_exp, exp1, exp, variable, type): Update calls to
10186 write_exp* and similars in order to use parser state.
10187 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10188 to use parser state.
10189 (go_parse): Likewise.
10190 * go-lang.h: Forward declare "struct parser_state".
10191 (go_parse): Add "struct parser_state" argument.
10193 2014-03-27 Doug Evans <dje@google.com>
10195 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10197 2014-03-27 Doug Evans <dje@google.com>
10199 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10200 Remove argument abbrev_section. All callers updated.
10202 2014-03-27 Doug Evans <dje@google.com>
10204 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10205 addr_base, ranges_base.
10207 2014-03-26 Keith Seitz <keiths@redhat.com>
10209 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10210 types, not VAR_DOMAIN.
10212 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10214 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10216 * features/nios2-linux.c: Regenerated.
10217 * features/nios2.c: Regenerated.
10219 2014-03-25 Pedro Alves <palves@redhat.com>
10221 * cli/cli-script.c (script_from_file): Force the interpreter to
10224 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10226 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10227 small stack allocation.
10229 2014-03-24 Tristan Gingold <gingold@adacore.com>
10231 * darwin-nat.c (exc_server): Remove unused prototype.
10232 (darwin_dump_message): Correctly display data on x86_64.
10233 (darwin_encode_reply): Fix style.
10234 Add comments and fix indentation.
10236 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10238 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10240 2014-03-22 Doug Evans <xdje42@gmail.com>
10242 * infcmd.c: Whitespace fixes.
10243 (interrupt_command): Merge two function comments into one.
10245 2014-03-22 Doug Evans <xdje42@gmail.com>
10247 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10250 2014-03-22 Yao Qi <yao@codesourcery.com>
10252 * remote.c (target_read_live_memory): Remove.
10253 (memory_xfer_live_readonly_partial): Rename it to
10254 remote_xfer_live_readonly_partial. Remove argument 'object'.
10255 All callers updated. Call remote_read_bytes_1
10256 instead of target_read_live_memory.
10257 * tracepoint.c (set_traceframe_number): Remove.
10258 (make_cleanup_restore_traceframe_number): Likewise .
10259 * tracepoint.h (set_traceframe_number): Remove declaration.
10260 (make_cleanup_restore_traceframe_number): Likewise.
10262 2014-03-22 Yao Qi <yao@codesourcery.com>
10264 * remote.c (remote_read_bytes): Move code on reading from the
10266 (remote_read_bytes_1): ... here. New function.
10268 2014-03-22 Yao Qi <yao@codesourcery.com>
10270 * ctf.c (ctf_xfer_partial): Check the return value of
10271 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10272 return TARGET_XFER_UNAVAILABLE.
10273 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10274 * target.c (target_read_live_memory): Move it to remote.c.
10275 (memory_xfer_live_readonly_partial): Likewise.
10276 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10277 * remote.c (target_read_live_memory): Moved from target.c.
10278 (memory_xfer_live_readonly_partial): Likewise.
10279 (remote_read_bytes): Factored out from
10280 memory_xfer_partial_1.
10282 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10284 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10287 2014-03-21 Pedro Alves <palves@redhat.com>
10289 * infrun.c (normal_stop): Extend comment.
10291 2014-03-21 Hui Zhu <hui@codesourcery.com>
10292 Pedro Alves <palves@redhat.com>
10294 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10296 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10297 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10298 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10300 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10302 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10303 `z' formatted output modifier.
10305 2014-03-20 Tom Tromey <tromey@redhat.com>
10306 Sergio Durigan Junior <sergiodj@redhat.com>
10308 * probe.c (parse_probes): Turn assert into an ordinary error.
10309 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10310 exceptions when parsing probes. Rearrange the code for clarity.
10312 2014-03-20 Tom Tromey <tromey@redhat.com>
10315 * top.c (execute_command): Only dispatch events if the command
10316 started the target.
10318 2014-03-20 Tom Tromey <tromey@redhat.com>
10321 * infcall.c: Include event-top.h.
10322 (run_inferior_call): Call async_disable_stdin if needed.
10324 2014-03-20 Pedro Alves <palves@redhat.com>
10326 * infrun.c (prepare_to_proceed): Delete.
10327 (thread_still_needs_step_over): New function.
10328 (find_thread_needs_step_over): New function.
10329 (proceed): If the current thread needs a step-over, set its
10330 steping_over_breakpoint flag. Adjust to use
10331 find_thread_needs_step_over instead of prepare_to_proceed.
10332 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10333 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10335 (switch_back_to_stepped_thread): Step over breakpoints of all
10336 threads not the stepping thread, before switching back to the
10339 2014-03-20 Pedro Alves <palves@redhat.com>
10341 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10343 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10344 * infrun.c (saved_singlestep_ptid)
10345 (stepping_past_singlestep_breakpoint): Delete.
10346 (resume): Remove stepping_past_singlestep_breakpoint handling.
10347 (proceed): Store the prev_pc of the stepping thread too.
10348 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10350 (enum infwait_states): Delete infwait_thread_hop_state.
10351 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10353 (handle_inferior_event): Adjust.
10354 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10355 handling and the thread-hop code. Before removing single-step
10356 breakpoints, check whether the thread hit a single-step breakpoint
10357 of another thread. If it did, the trap is not a random signal.
10358 (switch_back_to_stepped_thread): If the event thread hit a
10359 single-step breakpoint, unblock it before switching to the
10360 stepping thread. Handle the case of the stepped thread having
10362 (keep_going): Handle the case of the current thread moving past a
10363 single-step breakpoint.
10365 2014-03-20 Pedro Alves <palves@redhat.com>
10367 PR breakpoints/7143
10368 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10369 are being stepped over.
10370 (breakpoint_address_match): Make extern.
10371 * breakpoint.h (breakpoint_address_match): New declaration.
10372 * inferior.h (stepping_past_instruction_at): New declaration.
10373 * infrun.c (struct step_over_info): New type.
10374 (step_over_info): New global.
10375 (set_step_over_info, clear_step_over_info)
10376 (stepping_past_instruction_at): New functions.
10377 (handle_inferior_event): Clear the step-over info when
10378 trap_expected is cleared.
10379 (resume): Remove now stale comment.
10380 (clear_proceed_status): Clear step-over info.
10381 (proceed): Adjust step-over handling to set or clear the step-over
10382 info instead of removing all breakpoints.
10383 (handle_signal_stop): When setting up a thread-hop, don't remove
10385 (stop_stepping): Clear step-over info.
10386 (keep_going): Adjust step-over handling to set or clear step-over
10387 info and then always inserting breakpoints, instead of removing
10388 all breakpoints when stepping over one.
10390 2014-03-20 Pedro Alves <palves@redhat.com>
10392 * infrun.c (previous_inferior_ptid): Adjust comment.
10393 (deferred_step_ptid): Delete.
10394 (infrun_thread_ptid_changed, prepare_to_proceed)
10395 (init_wait_for_inferior): Adjust.
10396 (handle_signal_stop): Delete deferred_step_ptid handling.
10398 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10401 * defs.h (sync_quit_force_run): New declaration.
10402 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10403 * event-top.c (async_sigterm_handler): New declaration.
10404 (async_sigterm_token): New variable.
10405 (async_init_signals): Create also async_sigterm_token.
10406 (async_sigterm_handler): New function.
10407 (sync_quit_force_run): New variable.
10408 (handle_sigterm): Replace quit_force call by other calls.
10409 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10411 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10413 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10414 offset into SPE pseudo registers.
10416 2014-03-18 Pedro Alves <palves@redhat.com>
10419 * inferior.h (print_stop_event): Declare.
10420 * infrun.c (print_stop_event): New, factored out from ...
10421 (normal_stop): ... this.
10422 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10423 of bpstat_print/print_stack_frame.
10425 2014-03-17 Tom Tromey <tromey@redhat.com>
10427 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10429 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10431 * ada-lang.c (decode_constrained_packed_array): Perform a
10432 minimal coercion for reference with coerce_ref instead of
10435 2014-03-17 Tristan Gingold <gingold@adacore.com>
10437 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10438 (darwin_solib_create_inferior_hook): Emit a warning if version
10441 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10443 * python/py-value.c (get_field_flag): Cast flag_name argument to
10444 PyObject_GetAttrString to support Python 2.4.
10446 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10448 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10449 (Global Maintainers): Remove Jan Kratochvil.
10451 2014-03-14 Pedro Alves <palves@redhat.com>
10453 * inferior.h (terminal_ours_for_output): Rename to ...
10454 (child_terminal_ours_for_output): ... this.
10455 (terminal_save_ours): Rename to ...
10456 (child_terminal_save_ours): ... this.
10457 (terminal_ours): Rename to ...
10458 (child_terminal_ours): ... this.
10459 (terminal_inferior): Rename to ...
10460 (child_terminal_inferior): ... this.
10461 (terminal_init_inferior): Rename to ...
10462 (child_terminal_init_inferior): ... this.
10463 (terminal_init_inferior_with_pgrp): Rename to ...
10464 (child_terminal_init_inferior_with_pgrp): ... this.
10465 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10466 (child_terminal_init_with_pgrp): ... this.
10467 (terminal_save_ours): Rename to ...
10468 (child_terminal_save_ours): ... this.
10469 (terminal_init_inferior): Rename to ...
10470 (child_terminal_init): ... this. Adjust.
10471 (terminal_inferior): Rename to ...
10472 (child_terminal_inferior): ... this.
10473 (terminal_ours_for_output): Rename to ...
10474 (child_terminal_ours_for_output): ... this. Adjust.
10475 (terminal_ours): Rename to ...
10476 (child_terminal_ours): ... this.
10477 (terminal_ours_1): Rename to ...
10478 (child_terminal_ours_1): ... this. Adjust.
10479 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10480 * windows-nat.c (do_initial_windows_stuff): Adjust.
10481 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10482 (gnu_terminal_init): ... this. Adjust.
10483 (gnu_target): Adjust.
10484 * inf-child.c (inf_child_target): Adjust.
10486 2014-03-13 Doug Evans <xdje42@gmail.com>
10489 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10492 2014-03-13 Doug Evans <xdje42@gmail.com>
10494 * value.c (record_latest_value): Call release_value_or_incref
10495 instead of release_value.
10497 2014-03-13 Pedro Alves <palves@redhat.com>
10499 * procfs.c (procfs_target): Don't override to_shortname,
10500 to_longname or to_doc.
10502 2014-03-13 Pedro Alves <palves@redhat.com>
10504 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10505 Unix in user visible strings.
10507 2014-03-12 Stan Shebs <stan@codesourcery.com>
10509 * gdbtypes.h: Annotate comments for Doxygen, add a page
10510 block comment with some general info.
10512 2014-03-12 Pedro Alves <palves@redhat.com>
10514 * infcmd.c (prepare_execution_command): New function, factored out
10515 from several execution commands.
10516 (run_command_1, continue_command, step_1, jump_command)
10517 (signal_command, until_command, advance_command, finish_command)
10518 (attach_command): Use prepare_execution_command.
10520 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10522 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10523 (MAX_BPTS): Define.
10524 (MAX_WPTS): Define.
10525 (struct arm_linux_thread_points): Removed.
10526 (struct arm_linux_process_info): New.
10527 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10528 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10529 (arm_linux_find_breakpoints_by_tid): Removed.
10530 (struct arch_lwp_info): New.
10531 (arm_linux_find_process_pid): New functions.
10532 (arm_linux_add_process): New functions.
10533 (arm_linux_process_info_get): New functions.
10534 (arm_linux_forget_process): New function.
10535 (arm_linux_get_debug_reg_state): New function.
10536 (struct update_registers_data): New.
10537 (update_registers_callback): New function.
10538 (arm_linux_insert_hw_breakpoint1): Updated.
10539 (arm_linux_remove_hw_breakpoint1): Updated.
10540 (arm_linux_insert_hw_breakpoint): Updated.
10541 (arm_linux_remove_hw_breakpoint): Updated.
10542 (arm_linux_insert_watchpoint): Updated.
10543 (arm_linux_remove_watchpoint): Updated.
10544 (arm_linux_new_thread): Updated.
10545 (arm_linux_prepare_to_resume): New function.
10546 (arm_linux_new_fork): New function.
10547 (_initialize_arm_linux_nat): Updated.
10549 2014-03-12 Pedro Alves <palves@redhat.com>
10551 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10553 2014-03-12 Tom Tromey <tromey@redhat.com>
10555 * inf-child.c (return_zero): New function.
10556 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10557 * aix-thread.c (aix_thread_inferior_created): New function.
10558 (aix_thread_attach): Remove.
10559 (init_aix_thread_ops): Don't set to_attach.
10560 (_initialize_aix_thread): Register inferior_created observer.
10561 * corelow.c (init_core_ops): Don't set to_attach or
10562 to_create_inferior.
10563 * exec.c (init_exec_ops): Don't set to_attach or
10564 to_create_inferior.
10565 * infcmd.c (run_command_1): Use find_run_target. Make direct
10567 (attach_command): Use find_attach_target. Make direct target
10569 * record-btrace.c (init_record_btrace_ops): Don't set
10570 to_create_inferior.
10571 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10573 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10574 set to_create_inferior.
10575 * target.c (complete_target_initialization): Add assertion.
10576 (target_create_inferior): Remove.
10577 (find_default_attach, find_default_create_inferior): Remove.
10578 (find_attach_target, find_run_target): New functions.
10579 (find_default_is_async_p, find_default_can_async_p)
10580 (target_supports_non_stop, target_attach): Remove.
10581 (init_dummy_target): Don't set to_create_inferior or
10582 to_supports_non_stop.
10583 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10584 TARGET_DEFAULT_FUNC.
10585 <to_create_inferior>: Add comment.
10586 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10587 TARGET_DEFAULT_RETURN.
10588 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10589 (find_attach_target, find_run_target): Declare.
10590 (target_create_inferior): Remove.
10591 (target_has_execution_1): Update comment.
10592 (target_supports_non_stop): Remove.
10593 * target-delegates.c: Rebuild.
10595 2014-03-12 Pedro Alves <palves@redhat.com>
10597 * inf-child.h: Update comment to not mention Unix.
10599 2014-03-12 Pedro Alves <palves@redhat.com>
10601 * inf-child.c: Update top comment to not mention Unix. Add
10602 generic comment describing how this target is meant to be used.
10603 (inf_child_post_attach, inf_child_post_startup_inferior)
10604 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10607 2014-03-12 Pedro Alves <palves@redhat.com>
10609 * nto-procfs.c: Include inf-child.h.
10610 (procfs_ops): Delete global.
10611 (procfs_can_run): Delete method.
10612 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10613 target pointer instead of referencing procfs_ops.
10614 (procfs_prepare_to_store): Delete.
10615 (init_procfs_ops): Delete function.
10616 (procfs_target): New function, based on init_procfs_ops, but
10617 inherit inf_child_target.
10618 (_initialize_procfs): Use procfs_target.
10620 2014-03-12 Pedro Alves <palves@redhat.com>
10622 * windows-nat.c: Include inf-child.h.
10623 (windows_ops): Delete global.
10624 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10626 (init_windows_ops): Delete function.
10627 (windows_target): New function, based on init_windows_ops, but
10628 inherit inf_child_target.
10629 (_initialize_windows_nat): Use windows_target. Install x86
10630 specific target methods here.
10632 2014-03-10 Doug Evans <xdje42@gmail.com>
10634 * guile/guile.c (call_initialize_gdb_module): New function.
10635 (initialize_guile): Replace call to scm_init_guile with call to
10638 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10640 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10641 in call to TYPE_CODE macro.
10643 2014-03-10 Jerome Guitton <guitton@adacore.com>
10645 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10646 Resolve tagged types to full view.
10648 2014-03-10 Hui Zhu <hui@codesourcery.com>
10650 * target.h (target_insert_breakpoint): Remove "hardware" from its
10653 2014-03-07 Doug Evans <dje@google.com>
10655 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10657 2014-03-07 Doug Evans <dje@google.com>
10659 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10660 Remove unused local comp_dir_attr. Assert exactly one of
10661 stub_comp_unit_die, stub_comp_dir is non-NULL.
10663 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10665 * target.h (complete_target_initialization, add_target):
10668 2014-03-07 Pedro Alves <palves@redhat.com>
10670 * go32-nat.c: Include inf-child.h.
10671 (go32_ops): Delete global.
10672 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10674 (go32_create_inferior): Push the passed in target pointer instead
10675 of referencing go32_ops.
10676 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10677 (go32_target): New function, based on init_go32_ops, but inherit
10679 (_initialize_go32_nat): Use go32_target. Move parts of
10680 init_go32_ops here.
10682 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10684 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10685 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10686 SYMBOL_VALUE_ADDRESS.
10687 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10689 2014-03-06 Yao Qi <yao@codesourcery.com>
10691 * breakpoint.c (get_tracepoint_by_number): Remove argument
10692 optional_p. All callers updated. Adjust comments. Update
10694 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10696 2014-03-06 Yao Qi <yao@codesourcery.com>
10698 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10699 early if get_number returns zero. Use 'p' instead of 'args'.
10701 2014-03-06 Yao Qi <yao@codesourcery.com>
10703 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10706 2014-03-06 Yao Qi <yao@codesourcery.com>
10708 PR breakpoints/16508
10709 * tracepoint.c (check_trace_running): New function.
10710 (trace_find_command): Move code to check_trace_running and
10711 call check_trace_running.
10712 (trace_find_pc_command): Likewise.
10713 (trace_find_tracepoint_command): Likewise.
10714 (trace_find_line_command): Likewise.
10715 (trace_find_range_command): Likewise.
10716 * tracepoint.h (check_trace_running): Likewise.
10717 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10719 2014-03-06 Yao Qi <yao@codesourcery.com>
10721 * target.h (struct target_ops) <to_traceframe_info>: Use
10722 TARGET_DEFAULT_NORETURN (tcomplain ()).
10723 * target-delegates.c: Regenerated.
10725 2014-03-05 Pedro Alves <palves@redhat.com>
10728 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10729 void. Update comment.
10730 (dcache_xfer_memory): Delete.
10731 (dcache_read_memory_partial): New, based on the read bits of
10732 dcache_xfer_memory.
10733 (dcache_update): Add status parameter. Use ULONGEST for len, and
10734 adjust. Discard cache lines if the reason for the update was
10736 * dcache.h (dcache_xfer_memory): Delete declaration.
10737 (dcache_read_memory_partial): New declaration.
10738 (dcache_update): Update prototype.
10739 * target.c (raw_memory_xfer_partial): Update the dcache here.
10740 (memory_xfer_partial_1): Don't handle dcache writes here.
10742 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10744 * remote-sim.c (gdbsim_load): Add const to prog.
10746 2014-03-03 Tom Tromey <tromey@redhat.com>
10748 * elfread.c (probe_key): Change to bfd_data.
10749 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10750 now per-BFD, not per-objfile.
10751 * stap-probe.c (stap_probe_destroy): Update comment.
10752 (handle_stap_probe): Allocate on the per-BFD obstack.
10754 2014-03-03 Tom Tromey <tromey@redhat.com>
10756 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10757 * breakpoint.c (create_longjmp_master_breakpoint): Use
10759 (add_location_to_breakpoint, bkpt_probe_insert_location)
10760 (bkpt_probe_remove_location): Update.
10761 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10762 * elfread.c (elf_symfile_relocate_probe): Remove.
10763 (elf_probe_fns): Update.
10764 (insert_exception_resume_breakpoint): Change type of "probe"
10765 parameter to bound_probe.
10766 (check_exception_resume): Update.
10767 * objfiles.c (objfile_relocate1): Don't relocate probes.
10768 * probe.c (bound_probe_s): New typedef.
10769 (parse_probes): Use get_probe_address. Set sal's objfile.
10770 (find_probe_by_pc): Return a bound_probe.
10771 (collect_probes): Return a VEC(bound_probe_s).
10772 (compare_probes): Update.
10773 (gen_ui_out_table_header_info): Change type of "probes"
10775 (info_probes_for_ops): Update.
10776 (get_probe_address): New function.
10777 (probe_safe_evaluate_at_pc): Update.
10778 * probe.h (struct probe_ops) <get_probe_address>: New field.
10779 <set_semaphore, clear_semaphore>: Add objfile parameter.
10780 (struct probe) <objfile>: Remove field.
10782 <address>: Update comment.
10783 (struct bound_probe): New.
10784 (find_probe_by_pc): Return a bound_probe.
10785 (get_probe_address): Declare.
10786 * solib-svr4.c (struct probe_and_action) <address>: New field.
10787 (hash_probe_and_action, equal_probe_and_action): Update.
10788 (register_solib_event_probe): Add address parameter.
10789 (solib_event_probe_at): Update.
10790 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10792 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10793 (stap_get_probe_address): New function.
10794 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10795 (compile_probe_arg): Update.
10796 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10798 (handle_stap_probe): Don't relocate the probe.
10799 (stap_relocate): Remove.
10800 (stap_gen_info_probes_table_values): Update.
10801 (stap_probe_ops): Remove stap_relocate.
10802 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10803 (debug_sym_probe_fns): Update.
10804 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10805 * symtab.c (init_sal): Use memset.
10806 * symtab.h (struct symtab_and_line) <objfile>: New field.
10807 * tracepoint.c (start_tracing, stop_tracing): Update.
10809 2014-03-03 Tom Tromey <tromey@redhat.com>
10811 * probe.h (parse_probes, find_probe_by_pc)
10812 (find_probes_in_objfile): Fix comments.
10814 2014-03-02 Doug Evans <xdje42@gmail.com>
10816 * infrun.c (handle_signal_stop): Replace test for
10817 TARGET_WAITKIND_STOPPED with an assert.
10819 2014-03-02 Doug Evans <xdje42@gmail.com>
10821 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10823 2014-03-02 Doug Evans <xdje42@gmail.com>
10825 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10827 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10829 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10831 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10833 * i386obsd-nat.c: Include "obsd-nat.h".
10834 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10836 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10838 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10840 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10842 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10844 * mips64obsd-nat.c: Include "obsd-nath".
10845 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10847 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10849 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10851 * amd64obsd-nat.c: Include "obsd-nat,h.
10852 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10854 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10856 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10858 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10859 (find_overload_match): Update call to find_oload_champ.
10860 (find_oload_champ_namespace_loop): Likewise
10862 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10864 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10866 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10867 * config/sparc/obsd64.mh: New file.
10868 * sparc64obsd-nat.c: New file.
10870 * obsd-nat.h: New file.
10871 * obsd-nat.c: New file.
10872 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10873 (ALLDEPFILES): Add obsd-nat.c.
10875 2014-02-28 Tom Tromey <tromey@redhat.com>
10877 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10878 * cli-out.h (cli_ui_out_impl): Now const.
10879 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10880 * ui-out.c (struct ui_out) <impl>: Now const.
10881 (default_ui_out_impl): Now const.
10882 (ui_out_new): Make 'impl' parameter const.
10883 * ui-out.h (ui_out_new): Update.
10885 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10887 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10889 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10891 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10893 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10895 Additional PR 8882 fix.
10896 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10898 2014-02-27 Pedro Alves <palves@redhat.com>
10900 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10903 2014-02-27 Pedro Alves <palves@redhat.com>
10906 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10907 * nat/linux-waitpid.c: Include string.h.
10908 (status_to_str): Moved here and made extern.
10909 * nat/linux-waitpid.h (status_to_str): New declaration.
10911 2014-02-27 Hui Zhu <hui@codesourcery.com>
10914 * infrun.c (ptid_match): Move ...
10915 * common/ptid.c (ptid_match): ... here.
10916 * inferior.h (ptid_match): Move ...
10917 * common/ptid.h (ptid_match): ... here.
10919 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10921 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10922 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10925 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10927 * obsd-tdep.c (obsd_auxv_parse): New function.
10928 (obsd_init_abi): Set auxv_parse.
10930 * gdbarch.sh (auxv_parse): New.
10931 * gdbarch.h: Regenerated.
10932 * gdbarch.c: Regenerated.
10933 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10935 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10937 * guile/scm-value.c (gdbscm_history_append_x): New function.
10938 (value_functions): Add it.
10940 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10942 * dwarf2read.c (attr_value_as_address): New function.
10943 (dwarf2_find_base_address, read_call_site_scope): Use
10944 attr_value_as_address in place of DW_ADDR.
10945 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10946 the low and high addresses. Slight rework of the handling
10947 of the high pc being a constant form, and limit it to
10948 DWARF verson 4 or higher.
10949 (dwarf2_record_block_ranges): Likewise.
10950 (read_partial_die): Likewise.
10951 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10953 2014-02-26 Tom Tromey <tromey@redhat.com>
10955 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10957 2014-02-26 Tom Tromey <tromey@redhat.com>
10959 * elfread.c (elf_read_minimal_symbols): Return early if
10960 minimal symbols have already been read. Add "ei" parameter.
10961 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10962 * minsyms.c (prim_record_minimal_symbol_full): Update.
10963 * objfiles.h (struct objstats) <n_minsyms>: Move...
10964 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10965 * symmisc.c (print_objfile_statistics): Update.
10967 2014-02-26 Tom Tromey <tromey@redhat.com>
10969 * elfread.c (elf_read_minimal_symbols): New function, from
10971 (elf_symfile_read): Call it.
10973 2014-02-26 Tom Tromey <tromey@redhat.com>
10975 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10976 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10977 (lookup_minimal_symbol_solib_trampoline)
10978 (lookup_minimal_symbol_by_pc_section_1)
10979 (lookup_minimal_symbol_and_objfile): Update.
10980 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10981 Don't allocate a minimal symbol if minsyms have already been read.
10982 (build_minimal_symbol_hash_tables): Update.
10983 (install_minimal_symbols): Do nothing if minsyms already read.
10984 Use the per-BFD obstack.
10985 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10986 * objfiles.c (allocate_objfile): Call
10987 terminate_minimal_symbol_table later.
10988 (have_minimal_symbols): Update.
10989 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10990 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10991 Move from struct objfile.
10992 <minsyms_read>: New field.
10993 (struct objfile) <msymbols, minimal_symbol_count,
10994 msymbol_hash, msymbol_demangled_hash>: Move.
10995 (ALL_OBJFILE_MSYMBOLS): Update.
10996 * symfile.c (read_symbols): Set minsyms_read.
10997 (reread_symbols): Update.
10998 * symmisc.c (dump_objfile, dump_msymbols): Update.
11000 2014-02-26 Tom Tromey <tromey@redhat.com>
11002 * minsyms.c (msymbols_sort): Remove.
11003 * minsyms.h (msymbols_sort): Remove.
11004 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
11005 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
11006 * elfread.c (elf_symtab_read): Don't add section offsets.
11007 * xcoffread.c (record_minimal_symbol): Don't add section offset
11008 to minimal symbol address.
11009 * somread.c (text_offset, data_offset): Remove.
11010 (som_symtab_read): Don't add section offsets to minimal symbol
11012 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
11013 Don't add section offsets to minimal symbols.
11014 * coffread.c (coff_symtab_read): Don't add section offsets
11015 to minimal symbol addresses.
11016 * machoread.c (macho_symtab_add_minsym): Don't add section offset
11017 to minimal symbol addresses.
11018 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
11019 section offset to minimal symbol addresses.
11020 * mdebugread.c (parse_partial_symbols): Don't add section
11021 offset to minimal symbol addresses.
11022 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
11023 offset to minimal symbol addresses.
11025 2014-02-26 Tom Tromey <tromey@redhat.com>
11027 * ada-lang.c (ada_main_name): Update.
11028 (ada_add_standard_exceptions): Update.
11029 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11030 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11031 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
11032 * auxv.c (ld_so_xfer_auxv): Update.
11033 * avr-tdep.c (avr_scan_prologue): Update.
11034 * ax-gdb.c (gen_var_ref): Update.
11035 * blockframe.c (get_pc_function_start)
11036 (find_pc_partial_function_gnu_ifunc): Update.
11037 * breakpoint.c (create_overlay_event_breakpoint)
11038 (create_longjmp_master_breakpoint)
11039 (create_std_terminate_master_breakpoint)
11040 (create_exception_master_breakpoint): Update.
11041 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11042 * c-valprint.c (c_val_print): Update.
11043 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11044 * common/agent.c (agent_look_up_symbols): Update.
11045 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11046 * dwarf2loc.c (call_site_to_target_addr): Update.
11047 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
11048 * elfread.c (elf_gnu_ifunc_record_cache)
11049 (elf_gnu_ifunc_resolve_by_got): Update.
11050 * findvar.c (default_read_var_value): Update.
11051 * frame.c (inside_main_func): Update.
11052 * frv-tdep.c (frv_frame_this_id): Update.
11053 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11054 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11056 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
11057 (hppa_hpux_find_dummy_bpaddr): Update.
11058 * hppa-tdep.c (hppa_symbol_address): Update.
11059 * infcmd.c (until_next_command): Update.
11060 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
11062 * linespec.c (minsym_found, add_minsym): Update.
11063 * linux-nat.c (get_signo): Update.
11064 * linux-thread-db.c (inferior_has_bug): Update.
11065 * m32c-tdep.c (m32c_return_value)
11066 (m32c_m16c_address_to_pointer): Update.
11067 * m32r-tdep.c (m32r_frame_this_id): Update.
11068 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11069 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11070 * maint.c (maintenance_translate_address): Update.
11071 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
11072 (frob_address): New function.
11073 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
11074 frob_address. Rename parameter to "pc_in".
11075 (compare_minimal_symbols, compact_minimal_symbols): Use raw
11077 (find_solib_trampoline_target, minimal_symbol_upper_bound):
11079 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11080 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
11081 * objc-lang.c (find_objc_msgsend): Update.
11082 * objfiles.c (objfile_relocate1): Update.
11083 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11084 * p-valprint.c (pascal_val_print): Update.
11085 * parse.c (write_exp_msymbol): Update.
11086 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
11087 (ppc_elfv2_skip_entrypoint): Update.
11088 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11089 * printcmd.c (build_address_symbolic, msym_info)
11090 (address_info): Update.
11091 * proc-service.c (ps_pglobal_lookup): Update.
11092 * psymtab.c (find_pc_sect_psymtab_closer)
11093 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
11094 Change msymbol parameter to bound_minimal_symbol.
11095 * ravenscar-thread.c (get_running_thread_id): Update.
11096 * remote.c (remote_check_symbols): Update.
11097 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
11099 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11100 * solib-dsbt.c (lm_base): Update.
11101 * solib-frv.c (lm_base, main_got): Update.
11102 * solib-irix.c (locate_base): Update.
11103 * solib-som.c (som_solib_create_inferior_hook)
11104 (link_map_start): Update.
11105 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
11106 * solib-svr4.c (elf_locate_base, enable_break): Update.
11107 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11108 (flush_ea_cache): Update.
11109 * stabsread.c (define_symbol, scan_file_globals): Update.
11110 * stack.c (find_frame_funname): Update.
11111 * symfile-debug.c (debug_qf_expand_symtabs_matching)
11112 (debug_qf_find_pc_sect_symtab): Update.
11113 * symfile.c (simple_read_overlay_table)
11114 (simple_overlay_update): Update.
11115 * symfile.h (struct quick_symbol_functions)
11116 <find_pc_sect_symtab>: Change type of msymbol to
11117 bound_minimal_symbol.
11118 * symmisc.c (dump_msymbols): Update.
11119 * symtab.c (find_pc_sect_symtab_via_partial)
11120 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
11121 (search_symbols, print_msymbol_info): Update.
11122 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
11123 (MSYMBOL_VALUE_ADDRESS): Redefine.
11124 (BMSYMBOL_VALUE_ADDRESS): New macro.
11125 * tracepoint.c (scope_info): Update.
11126 * tui/tui-disasm.c (tui_find_disassembly_address)
11127 (tui_get_begin_asm_address): Update.
11128 * valops.c (find_function_in_inferior): Update.
11129 * value.c (value_static_field, value_fn_field): Update.
11131 2014-02-26 Tom Tromey <tromey@redhat.com>
11133 * ada-lang.c (ada_update_initial_language): Update.
11134 (ada_main_name, ada_has_this_exception_support): Update.
11135 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11136 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11137 * arm-tdep.c (arm_skip_stub): Update.
11138 * auxv.c (ld_so_xfer_auxv): Update.
11139 * avr-tdep.c (avr_scan_prologue): Update.
11140 * ax-gdb.c (gen_var_ref): Update.
11141 * breakpoint.c (struct breakpoint_objfile_data)
11142 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11143 type to bound_minimal_symbol.
11144 (create_overlay_event_breakpoint)
11145 (create_longjmp_master_breakpoint)
11146 (create_std_terminate_master_breakpoint)
11147 (create_exception_master_breakpoint): Update.
11148 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11149 * c-exp.y (classify_name): Update.
11150 * coffread.c (coff_symfile_read): Update.
11151 * common/agent.c (agent_look_up_symbols): Update.
11152 * d-lang.c (d_main_name): Update.
11153 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11154 * dec-thread.c (enable_dec_thread): Update.
11155 * dwarf2loc.c (call_site_to_target_addr): Update.
11156 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11157 * eval.c (evaluate_subexp_standard): Update.
11158 * findvar.c (struct minsym_lookup_data) <result>: Change type
11159 to bound_minimal_symbol.
11161 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11162 * frame.c (inside_main_func): Update.
11163 * frv-tdep.c (frv_frame_this_id): Update.
11164 * gcore.c (call_target_sbrk): Update.
11165 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11166 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11168 * go-lang.c (go_main_name): Update.
11169 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11170 (hppa_hpux_find_import_stub_for_addr): Update.
11171 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11172 Update. Change return type.
11173 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11175 * jit.c (jit_breakpoint_re_set_internal): Update.
11176 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11178 * linux-nat.c (get_signo): Update.
11179 * linux-thread-db.c (inferior_has_bug): Update
11180 * m32c-tdep.c (m32c_return_value)
11181 (m32c_m16c_address_to_pointer): Update.
11182 * m32r-tdep.c (m32r_frame_this_id): Update.
11183 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11184 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11185 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11186 lookup_minimal_symbol. Change return type.
11187 (lookup_minimal_symbol): Remove.
11188 (lookup_bound_minimal_symbol): Update.
11189 (lookup_minimal_symbol_text): Change return type.
11190 (lookup_minimal_symbol_solib_trampoline): Change return type.
11191 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11192 (lookup_minimal_symbol_solib_trampoline): Change return type.
11193 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11194 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11195 (value_nsstring, find_imps): Update.
11196 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11197 * p-lang.c (pascal_main_name): Update.
11198 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11199 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11200 * proc-service.c (ps_pglobal_lookup): Update.
11201 * ravenscar-thread.c (get_running_thread_msymbol): Change
11203 (has_ravenscar_runtime, get_running_thread_id): Update.
11204 * remote.c (remote_check_symbols): Update.
11205 * sol-thread.c (ps_pglobal_lookup): Update.
11206 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11207 * solib-dsbt.c (lm_base): Update.
11208 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11210 * solib-irix.c (locate_base): Update.
11211 * solib-som.c (som_solib_create_inferior_hook)
11212 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11214 * solib-spu.c (spu_enable_break): Update.
11215 * solib-svr4.c (elf_locate_base, enable_break): Update.
11216 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11217 (flush_ea_cache): Update.
11218 * stabsread.c (define_symbol): Update.
11219 * symfile.c (simple_read_overlay_table): Update.
11220 * symtab.c (find_pc_sect_line): Update.
11221 * tracepoint.c (scope_info): Update.
11222 * tui-disasm.c (tui_get_begin_asm_address): Update.
11223 * value.c (value_static_field): Update.
11225 2014-02-26 Tom Tromey <tromey@redhat.com>
11227 * minsyms.c (prim_record_minimal_symbol_full): Use
11228 SET_MSYMBOL_VALUE_ADDRESS.
11229 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11230 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11231 SET_MSYMBOL_VALUE_ADDRESS.
11232 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11233 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11235 2014-02-26 Tom Tromey <tromey@redhat.com>
11237 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11238 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11239 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11240 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11241 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11242 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11243 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11244 * ada-lang.c (ada_main_name): Update.
11245 (ada_lookup_simple_minsym): Update.
11246 (ada_make_symbol_completion_list): Update.
11247 (ada_add_standard_exceptions): Update.
11248 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11249 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11250 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11251 * arm-tdep.c (skip_prologue_function): Update.
11252 (arm_skip_stack_protector, arm_skip_stub): Update.
11253 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11254 (arm_wince_skip_main_prologue): Update.
11255 * auxv.c (ld_so_xfer_auxv): Update.
11256 * avr-tdep.c (avr_scan_prologue): Update.
11257 * ax-gdb.c (gen_var_ref): Update.
11258 * block.c (call_site_for_pc): Update.
11259 * blockframe.c (get_pc_function_start): Update.
11260 (find_pc_partial_function_gnu_ifunc): Update.
11261 * breakpoint.c (create_overlay_event_breakpoint): Update.
11262 (create_longjmp_master_breakpoint): Update.
11263 (create_std_terminate_master_breakpoint): Update.
11264 (create_exception_master_breakpoint): Update.
11265 (resolve_sal_pc): Update.
11266 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11267 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11269 * c-valprint.c (c_val_print): Update.
11270 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11271 * coffread.c (coff_symfile_read): Update.
11272 * common/agent.c (agent_look_up_symbols): Update.
11273 * dbxread.c (find_stab_function_addr): Update.
11274 (end_psymtab): Update.
11275 * dwarf2loc.c (call_site_to_target_addr): Update.
11276 (func_verify_no_selftailcall): Update.
11277 (tailcall_dump): Update.
11278 (call_site_find_chain_1): Update.
11279 (dwarf_expr_reg_to_entry_parameter): Update.
11280 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11281 (elf_gnu_ifunc_resolve_by_got): Update.
11282 * f-valprint.c (info_common_command): Update.
11283 * findvar.c (read_var_value): Update.
11284 * frame.c (get_prev_frame_1): Update.
11285 (inside_main_func): Update.
11286 * frv-tdep.c (frv_skip_main_prologue): Update.
11287 (frv_frame_this_id): Update.
11288 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11289 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11290 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11291 (gnuv3_skip_trampoline): Update.
11292 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11293 (hppa64_hpux_in_solib_call_trampoline): Update.
11294 (hppa_hpux_skip_trampoline_code): Update.
11295 (hppa64_hpux_search_dummy_call_sequence): Update.
11296 (hppa_hpux_find_import_stub_for_addr): Update.
11297 (hppa_hpux_find_dummy_bpaddr): Update.
11298 * hppa-tdep.c (hppa_symbol_address)
11299 (hppa_lookup_stub_minimal_symbol): Update.
11300 * i386-tdep.c (i386_skip_main_prologue): Update.
11301 (i386_pe_skip_trampoline_code): Update.
11302 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11303 * infcall.c (get_function_name): Update.
11304 * infcmd.c (until_next_command): Update.
11305 * jit.c (jit_breakpoint_re_set_internal): Update.
11306 (jit_inferior_init): Update.
11307 * linespec.c (minsym_found): Update.
11308 (add_minsym): Update.
11309 * linux-fork.c (info_checkpoints_command): Update.
11310 * linux-nat.c (get_signo): Update.
11311 * linux-thread-db.c (inferior_has_bug): Update.
11312 * m32c-tdep.c (m32c_return_value): Update.
11313 (m32c_m16c_address_to_pointer): Update.
11314 (m32c_m16c_pointer_to_address): Update.
11315 * m32r-tdep.c (m32r_frame_this_id): Update.
11316 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11317 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11318 * maint.c (maintenance_translate_address): Update.
11319 * minsyms.c (add_minsym_to_hash_table): Update.
11320 (add_minsym_to_demangled_hash_table): Update.
11321 (msymbol_objfile): Update.
11322 (lookup_minimal_symbol): Update.
11323 (iterate_over_minimal_symbols): Update.
11324 (lookup_minimal_symbol_text): Update.
11325 (lookup_minimal_symbol_by_pc_name): Update.
11326 (lookup_minimal_symbol_solib_trampoline): Update.
11327 (lookup_minimal_symbol_by_pc_section_1): Update.
11328 (lookup_minimal_symbol_and_objfile): Update.
11329 (prim_record_minimal_symbol_full): Update.
11330 (compare_minimal_symbols): Update.
11331 (compact_minimal_symbols): Update.
11332 (build_minimal_symbol_hash_tables): Update.
11333 (install_minimal_symbols): Update.
11334 (terminate_minimal_symbol_table): Update.
11335 (find_solib_trampoline_target): Update.
11336 (minimal_symbol_upper_bound): Update.
11337 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11338 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11339 (mips_skip_pic_trampoline_code): Update.
11340 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11341 * objc-lang.c (selectors_info): Update.
11342 (classes_info): Update.
11343 (find_methods): Update.
11344 (find_imps): Update.
11345 (find_objc_msgsend): Update.
11346 * objfiles.c (objfile_relocate1): Update.
11347 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11348 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11349 * p-valprint.c (pascal_val_print): Update.
11350 * parse.c (write_exp_msymbol): Update.
11351 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11352 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11353 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11354 * printcmd.c (build_address_symbolic): Update.
11355 (sym_info): Update.
11356 (address_info): Update.
11357 * proc-service.c (ps_pglobal_lookup): Update.
11358 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11359 (find_pc_sect_psymtab): Update.
11360 * python/py-framefilter.c (py_print_frame): Update.
11361 * ravenscar-thread.c (get_running_thread_id): Update.
11362 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11364 * remote.c (remote_check_symbols): Update.
11365 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11366 (rs6000_skip_trampoline_code): Update.
11367 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11368 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11369 * solib-dsbt.c (lm_base): Update.
11370 * solib-frv.c (lm_base): Update.
11371 (main_got): Update.
11372 * solib-irix.c (locate_base): Update.
11373 * solib-som.c (som_solib_create_inferior_hook): Update.
11374 (som_solib_desire_dynamic_linker_symbols): Update.
11375 (link_map_start): Update.
11376 * solib-spu.c (spu_enable_break): Update.
11377 (ocl_enable_break): Update.
11378 * solib-svr4.c (elf_locate_base): Update.
11379 (enable_break): Update.
11380 * spu-tdep.c (spu_get_overlay_table): Update.
11381 (spu_catch_start): Update.
11382 (flush_ea_cache): Update.
11383 * stabsread.c (define_symbol): Update.
11384 (scan_file_globals): Update.
11385 * stack.c (find_frame_funname): Update.
11386 (frame_info): Update.
11387 * symfile.c (simple_read_overlay_table): Update.
11388 (simple_overlay_update): Update.
11389 * symmisc.c (dump_msymbols): Update.
11390 * symtab.c (fixup_section): Update.
11391 (find_pc_sect_line): Update.
11392 (skip_prologue_sal): Update.
11393 (search_symbols): Update.
11394 (print_msymbol_info): Update.
11395 (rbreak_command): Update.
11396 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11397 (completion_list_objc_symbol): Update.
11398 (default_make_symbol_completion_list_break_on): Update.
11399 * tracepoint.c (scope_info): Update.
11400 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11401 (tui_get_begin_asm_address): Update.
11402 * valops.c (find_function_in_inferior): Update.
11403 * value.c (value_static_field): Update.
11404 (value_fn_field): Update.
11406 2014-02-26 Tom Tromey <tromey@redhat.com>
11408 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11409 bound minimal symbols. Move code that knows about minsym
11411 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11413 * minsyms.h (minimal_symbol_upper_bound): Declare.
11414 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11415 minimal_symbol_upper_bound.
11417 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11419 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11420 Use the type's name if its basic type does not have a tag.
11422 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11424 * dwarf2read.c (read_subrange_type): Add comment.
11426 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11428 * dwarf2read.c (update_enumeration_type_from_children): New
11429 function, mostly extracted from process_structure_scope.
11430 (read_enumeration_type): Call update_enumeration_type_from_children.
11431 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11432 and flag_flag_enum fields.
11434 2014-02-26 Pedro Alves <palves@redhat.com>
11436 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11437 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11438 to_xfer_partial method.
11440 2014-02-26 Pedro Alves <palves@redhat.com>
11442 * target.c (complete_target_initialization): Don't install
11443 default_xfer_partial as to_xfer_partial hook.
11444 (nomemory): Delete.
11445 (update_current_target): Don't INHERIT nor de_fault
11446 deprecated_xfer_memory. Delete de_fault macro.
11447 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11448 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11449 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11452 2014-02-26 Pedro Alves <palves@redhat.com>
11454 * go32-nat.c (my_write_child): New function.
11455 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11456 (go32_xfer_partial): New function.
11457 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11458 Instead install a to_xfer_partial hook.
11460 2014-02-26 Pedro Alves <palves@redhat.com>
11462 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11463 to_xfer_partial helper. Rewrite.
11464 (procfs_xfer_partial): New function.
11465 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11466 Install a to_xfer_partial hook.
11468 2014-02-26 Pedro Alves <palves@redhat.com>
11470 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11471 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11472 (m32r_xfer_partial): New function.
11473 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11474 Install a to_xfer_partial hook.
11476 2014-02-26 Pedro Alves <palves@redhat.com>
11478 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11480 (mips_xfer_partial): New function.
11481 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11482 hook. Install a to_xfer_partial hook.
11484 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11486 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11487 * gdbtypes.c (create_array_type_with_stride): New function,
11488 renaming create_array_type, but with an added parameter
11489 called "bit_stride".
11490 (create_array_type): Re-implement using
11491 create_array_type_with_stride.
11492 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11493 and DW_AT_bit_stride attributes.
11495 2014-02-26 Pedro Alves <palves@redhat.com>
11497 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11498 task-specific breakpoints.
11500 2014-02-25 Pedro Alves <palves@redhat.com>
11502 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11503 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11505 2014-02-25 Stan Shebs <stan@codesourcery.com>
11507 * defs.h: Annotate comments for Doxygen.
11509 2014-02-25 Tom Tromey <tromey@redhat.com>
11511 * target.h (target_ignore): Don't declare.
11512 * target.c (target_ignore): Remove.
11514 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11517 * auto-load.c (auto_load_objfile_script_1): Change filename to
11520 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11522 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11523 documentation. Adjust prototype to match the target_ops
11524 to_xfer_partial method. Adjust implementation accordingly.
11526 2014-02-25 Hui Zhu <hui@codesourcery.com>
11528 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11529 to_traceframe_info.
11531 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11533 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11534 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11535 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11536 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11537 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11538 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11539 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11540 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11542 (rl78_register_type): Use a data pointer type for SP and
11543 new pseudo registers mentioned above. Use a 16 bit integer
11544 type for all other register pairs.
11545 (rl78_register_name, rl78_g10_register_name): Update for
11546 new pseudo registers.
11547 (rl78_pseudo_register_read): Likewise.
11548 (rl78_pseudo_register_write): Likewise.
11549 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11550 to the newly added pseudo registers.
11552 2014-02-24 Doug Evans <dje@google.com>
11554 * value.c (record_latest_value): Fix comment.
11555 * printcmd.c (print_command_1): Remove code to handle -1 return from
11556 record_latest_value.
11558 2014-02-24 Pedro Alves <palves@redhat.com>
11560 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11561 deprecated_xfer_memory hook.
11562 (procfs_xfer_partial): Call procfs_xfer_memory instead
11563 of the deprecated_xfer_memory target hook.
11564 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11567 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11569 * windows-nat.c (windows_xfer_shared_libraries): Return
11570 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11571 requested object is TARGET_OBJECT_LIBRARIES.
11573 2014-02-24 Yao Qi <yao@codesourcery.com>
11575 * target.h (enum target_xfer_status)
11576 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11577 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11579 * corefile.c (memory_error_message): User updated.
11580 * exec.c (section_table_read_available_memory): Likewise.
11581 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11582 * target.c (target_xfer_status_to_string): Likewise.
11583 (raw_memory_xfer_partial): Likewise.
11584 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11585 * valops.c (read_value_memory): Likewise.
11586 * exec.h: Update comments.
11588 2014-02-24 Yao Qi <yao@codesourcery.com>
11590 * target.c (target_xfer_status_to_string): Rename argument err
11592 * target.h (target_xfer_status_to_string): Update declaration.
11593 Replace target_xfer_error_to_string with
11594 target_xfer_status_to_string in comment.
11596 2014-02-24 Yao Qi <yao@codesourcery.com>
11598 * mips-linux-nat.c (super_close): Update its type.
11599 (mips_linux_close): Pass 'self' to super_close.
11601 2014-02-24 Yao Qi <yao@codesourcery.com>
11603 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11604 * corefile.c (read_memory): Adjusted.
11605 * target.c (target_write_with_progress): Adjusted.
11607 2014-02-23 Yao Qi <yao@codesourcery.com>
11609 Revert two patches:
11611 2013-10-25 Yao Qi <yao@codesourcery.com>
11613 * remote.c (remote_traceframe_info): Return early if
11614 traceframe is not selected.
11616 2013-07-19 Yao Qi <yao@codesourcery.com>
11618 * target.c (update_current_target): Change the default action
11619 of 'to_traceframe_info' from tcomplain to return_zero.
11620 * target.h (struct target_ops) <to_traceframe_info>: Add more
11623 2014-02-23 Yao Qi <yao@codesourcery.com>
11625 * valops.c (read_value_memory): Rewrite it. Call
11626 target_xfer_partial in a loop.
11627 * exec.h (section_table_available_memory): Remove declaration.
11628 Move comments to ...
11629 * exec.c (section_table_available_memory): ... here. Make it
11632 2014-02-23 Yao Qi <yao@codesourcery.com>
11634 * exec.c (section_table_read_available_memory): New function.
11635 * exec.h (section_table_read_available_memory): Declare.
11636 * ctf.c (ctf_xfer_partial): Call
11637 section_table_read_available_memory.
11638 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11640 2014-02-23 Yao Qi <yao@codesourcery.com>
11642 * ctf.c (ctf_xfer_partial): Move code to ...
11643 * exec.c (exec_read_partial_read_only): ... it. New function.
11644 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11645 * tracefile.c: Include "exec.h".
11646 * exec.h (exec_read_partial_read_only): Declare.
11648 2014-02-23 Yao Qi <yao@codesourcery.com>
11650 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11651 (tfile_has_memory): Remove.
11652 (init_tfile_ops): Don't set fields to_has_all_memory and
11653 to_has_memory of tfile_ops.
11654 * tracefile.c (tracefile_has_all_memory): New function.
11655 (tracefile_has_memory): New function.
11656 (init_tracefile_ops): Initialize fields to_has_all_memory and
11657 to_has_memory of 'ops'.
11659 2014-02-23 Yao Qi <yao@codesourcery.com>
11661 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11662 (ctf_thread_alive, ctf_get_trace_status): Remove.
11663 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11664 init_tracefile_ops.
11665 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11666 (tfile_has_stack, tfile_has_registers): Remove.
11667 (tfile_thread_alive): Remove.
11668 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11669 init_tracefile_ops.
11670 * tracefile.c (tracefile_has_stack): New function.
11671 (tracefile_has_registers): New function.
11672 (tracefile_thread_alive): New function.
11673 (tracefile_get_trace_status): New function.
11674 (init_tracefile_ops): New function.
11675 * tracefile.h (init_tracefile_ops): Declare.
11677 2014-02-23 Yao Qi <yao@codesourcery.com>
11679 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11680 (O_LARGEFILE): Likewise.
11681 (tfile_ops): Likewise.
11682 (TRACE_HEADER_SIZE): Likewise.
11683 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11684 (cur_data_size): Likewise.
11685 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11686 (tfile_close, tfile_files_info): Likewise.
11687 (tfile_get_trace_status): Likewise.
11688 (tfile_get_tracepoint_status): Likewise.
11689 (tfile_get_traceframe_address): Likewise.
11690 (tfile_trace_find, match_blocktype): Likewise.
11691 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11692 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11693 (tfile_get_trace_state_variable_value): Likewise.
11694 (tfile_has_all_memory, tfile_has_memory): Likewise.
11695 (tfile_has_stack, tfile_has_registers): Likewise.
11696 (tfile_thread_alive, build_traceframe_info): Likewise.
11697 (tfile_traceframe_info, init_tfile_ops): Likewise.
11698 (_initialize_tracepoint): Don't call init_tfile_ops
11699 and add_target_with_completer.
11700 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11701 exec.h, completer.h and filenames.h.
11702 (_initialize_tracefile_tfile): New function.
11704 2014-02-23 Yao Qi <yao@codesourcery.com>
11706 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11708 (HFILES_NO_SRCDIR): Add tracefile.h.
11709 * ctf.c: Include "tracefile.h".
11710 * tracefile.h: New file.
11711 * tracefile.c: New file
11712 * tracefile-tfile.c: New file.
11713 * tracepoint.c: Include "tracefile.h".
11714 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11715 (stop_reason_names): Add const.
11716 (trace_file_writer_xfree): Move it to tracefile.c.
11717 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11718 (trace_save_ctf): Likewise.
11719 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11720 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11721 (tfile_write_header, tfile_write_regblock_type): Likewise.
11722 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11723 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11724 (tfile_write_raw_data, tfile_end): Likewise.
11725 (tfile_trace_file_writer_new): Likewise.
11726 (free_uploaded_tp): Make it extern.
11727 (free_uploaded_tsv): Make it extern.
11728 (_initialize_tracepoint): Move code to register command 'tsave'
11730 * tracepoint.h (stop_reason_names): Declare.
11731 (struct trace_frame_write_ops): Move it to tracefile.h.
11732 (struct trace_file_write_ops): Likewise.
11733 (struct trace_file_writer): Likewise.
11734 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11736 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11739 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11741 (get_cores_used_by_process): New parameter num_cores, use it.
11742 (linux_xfer_osdata_processes): Pass num_cores to it.
11743 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11746 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11748 * target.c (memory_xfer_partial): Fix length arg in call to
11749 breakpoint_xfer_memory.
11751 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11754 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11755 number comes after the + or - signs. Adjust length of register
11756 name to be extracted.
11758 2014-02-20 Tom Tromey <tromey@redhat.com>
11760 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11761 (ada_varobj_ops): Mark "extern".
11763 2014-02-20 Tom Tromey <tromey@redhat.com>
11765 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11767 2014-02-20 Doug Evans <xdje42@gmail.com>
11769 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11770 All callers updated.
11771 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11772 All callers updated.
11773 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11774 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11776 2014-02-20 lin zuojian <manjian2006@gmail.com>
11777 Joel Brobecker <brobecker@adacore.com>
11778 Doug Evans <xdje42@gmail.com>
11781 * dwarf2read.c (struct die_info): New member in_process.
11782 (reset_die_in_process): New function.
11783 (process_die): Set it at the start, reset when returning.
11784 (inherit_abstract_dies): Only call process_die if origin_child_die
11785 not already being processed.
11787 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11789 * windows-nat.c (handle_unload_dll): Add function documentation.
11790 (do_initial_windows_stuff): Add comment explaining why we wait
11791 until after inferior initialization has finished before
11792 processing all DLLs.
11794 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11796 * windows-nat.c (get_module_name): Delete.
11797 (windows_get_exec_module_filename): New function, mostly
11798 inspired from get_module_name.
11799 (windows_pid_to_exec_file): Replace call to get_module_name
11800 by call to windows_get_exec_module_filename.
11802 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11804 * windows-nat.c (handle_load_dll): Rewrite this function's
11805 introductory comment. Remove code using get_module_name
11806 to get the DLL's name.
11808 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11810 * windows-nat.c (get_windows_debug_event): Ignore
11811 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11812 if windows_initialization_done == 0.
11813 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11814 Adjust implementation to always load all DLLs.
11815 (do_initial_windows_stuff): Replace call to
11816 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11818 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11820 * windows-nat.c (_initialize_windows_nat): Deprecate the
11821 "dll-symbols" command. Turn the "add-shared-symbol-files"
11822 and "assf" aliases into commands, and deprecate them as well.
11823 * NEWS: Add entry explaining that "dll-symbols" and its two
11824 aliases are now deprecated.
11826 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11828 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11829 new-line in debug string. Remove trailing spaces.
11831 2014-02-19 Stan Shebs <stan@codesourcery.com>
11833 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11835 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11837 * NEWS: Add entry for the new feature
11838 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11841 2014-02-19 Stan Shebs <stan@codesourcery.com>
11843 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11845 2014-02-19 Pedro Alves <palves@redhat.com>
11847 * common/ptid.h (struct ptid): Mention that process_stratum
11848 targets should prefer ptid.lwp.
11850 2014-02-19 Pedro Alves <palves@redhat.com>
11852 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11853 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11854 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11855 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11856 store remote thread ids rather than ptid.tid.
11857 (_initialize_remote): Adjust.
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11861 * target.c (target_get_unwinder): Rewrite.
11862 (target_get_tailcall_unwinder): Rewrite.
11863 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11864 (record_btrace_to_get_tailcall_unwinder): New function.
11865 (init_record_btrace_ops): Update.
11866 * target.h (struct target_ops) <to_get_unwinder,
11867 to_get_tailcall_unwinder>: Now function pointers. Use
11868 TARGET_DEFAULT_RETURN.
11870 2014-02-19 Tom Tromey <tromey@redhat.com>
11872 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11874 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11876 2014-02-19 Tom Tromey <tromey@redhat.com>
11878 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11880 * target-delegates.c: Rebuild.
11881 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11882 TARGET_DEFAULT_FUNC.
11883 * target.c (default_target_decr_pc_after_break): Rename from
11884 forward_target_decr_pc_after_break. Simplify.
11885 (target_decr_pc_after_break): Rely on delegation.
11887 2014-02-19 Tom Tromey <tromey@redhat.com>
11889 * target.c (update_current_target): Do not INHERIT to_doc or
11890 to_magic. Do not de_fault to_open or to_close.
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11894 * gcore.h (objfile_find_memory_regions): Declare.
11895 * gcore.c (objfile_find_memory_regions): No longer static. Add
11897 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11898 * exec.c: Include gcore.h.
11899 (exec_set_find_memory_regions): Remove.
11900 (exec_find_memory_regions): Remove.
11901 (exec_do_find_memory_regions): Remove.
11902 (init_exec_ops): Update.
11903 * defs.h (exec_set_find_memory_regions): Remove.
11905 2014-02-19 Tom Tromey <tromey@redhat.com>
11907 * target-delegates.c: Rebuild.
11908 * target.h (struct target_ops) <to_extra_thread_info,
11909 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11910 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11911 not 0, in TARGET_DEFAULT_RETURN.
11913 2014-02-19 Tom Tromey <tromey@redhat.com>
11915 * target.c (complete_target_initialization): Remove casts. Use
11916 return_zero_has_execution.
11917 (return_zero): Add "ignore" argument.
11918 (return_zero_has_execution): New function.
11919 (init_dummy_target): Remove casts. Use
11920 return_zero_has_execution.
11922 2014-02-19 Tom Tromey <tromey@redhat.com>
11924 * target.c (update_current_target): Update comments. Do not
11925 INHERIT to_stratum.
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11929 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11931 * corelow.c (core_read_description): Delegate when needed.
11932 * remote.c (remote_read_description): Delegate when needed.
11933 * target-delegates.c: Rebuild.
11934 * target.c (target_read_description): Rewrite.
11935 * target.h (struct target_ops) <to_read_description>: Update
11936 comment. Use TARGET_DEFAULT_RETURN.
11938 2014-02-19 Tom Tromey <tromey@redhat.com>
11940 * target-delegates.c: Rebuild.
11941 * target.c (update_current_target): Don't inherit or default
11943 (find_default_run_target): Check against delegate_can_run.
11944 * target.h (struct target_ops) <to_can_run>: Use
11945 TARGET_DEFAULT_RETURN.
11947 2014-02-19 Tom Tromey <tromey@redhat.com>
11949 * target-delegates.c: Rebuild.
11950 * target.c (target_disconnect): Unconditionally delegate.
11951 * target.h (struct target_ops) <to_disconnect>: Use
11952 TARGET_DEFAULT_NORETURN.
11954 2014-02-19 Tom Tromey <tromey@redhat.com>
11956 * record.c (record_stop): Unconditionally delegate.
11957 * target-delegates.c: Rebuild.
11958 * target.c (target_stop_recording): Unconditionally delegate.
11959 * target.h (struct target_ops) <to_stop_recording>: Use
11960 TARGET_DEFAULT_IGNORE.
11962 2014-02-19 Tom Tromey <tromey@redhat.com>
11964 * target-delegates.c: Rebuild.
11965 * target.c (target_enable_btrace): Unconditionally delegate.
11966 * target.h (struct target_ops) <to_enable_btrace>: Use
11967 TARGET_DEFAULT_NORETURN.
11969 2014-02-19 Tom Tromey <tromey@redhat.com>
11971 * target-delegates.c: Rebuild.
11972 * target.c (target_read_btrace): Unconditionally delegate.
11973 * target.h (struct target_ops) <to_read_btrace>: Use
11974 TARGET_DEFAULT_NORETURN.
11976 2014-02-19 Tom Tromey <tromey@redhat.com>
11978 * target-delegates.c: Rebuild.
11979 * target.c (target_teardown_btrace): Unconditionally delegate.
11980 * target.h (struct target_ops) <to_teardown_btrace>: Use
11981 TARGET_DEFAULT_NORETURN.
11983 2014-02-19 Tom Tromey <tromey@redhat.com>
11985 * target-delegates.c: Rebuild.
11986 * target.c (target_disable_btrace): Unconditionally delegate.
11987 * target.h (struct target_ops) <to_disable_btrace>: Use
11988 TARGET_DEFAULT_NORETURN.
11990 2014-02-19 Tom Tromey <tromey@redhat.com>
11992 * target-delegates.c: Rebuild.
11993 * target.c (default_search_memory): New function.
11994 (simple_search_memory): Update comment.
11995 (target_search_memory): Unconditionally delegate.
11996 * target.h (struct target_ops) <to_search_memory>: Use
11997 TARGET_DEFAULT_FUNC.
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12001 * auxv.c (default_auxv_parse): No longer static.
12002 (target_auxv_parse): Unconditionally delegate.
12003 * auxv.h (default_auxv_parse): Declare.
12004 * target-delegates.c: Rebuild.
12005 * target.c: Include auxv.h.
12006 * target.h (struct target_ops) <to_auxv_parse>: Use
12007 TARGET_DEFAULT_FUNC.
12009 2014-02-19 Tom Tromey <tromey@redhat.com>
12011 * target-delegates.c: Rebuild.
12012 * target.c (target_memory_map): Unconditionally delegate.
12013 * target.h (struct target_ops) <to_memory_map>: Use
12014 TARGET_DEFAULT_RETURN.
12016 2014-02-19 Tom Tromey <tromey@redhat.com>
12018 * target-delegates.c: Rebuild.
12019 * target.c (target_thread_alive): Unconditionally delegate.
12020 * target.h (struct target_ops) <to_thread_alive>: Use
12021 TARGET_DEFAULT_RETURN.
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12025 * target-delegates.c: Rebuild.
12026 * target.c (target_save_record): Unconditionally delegate.
12027 * target.h (struct target_ops) <to_save_record>: Use
12028 TARGET_DEFAULT_NORETURN.
12030 2014-02-19 Tom Tromey <tromey@redhat.com>
12032 * target-delegates.c: Rebuild.
12033 * target.c (target_delete_record): Unconditionally delegate.
12034 * target.h (struct target_ops) <to_delete_record>: Use
12035 TARGET_DEFAULT_NORETURN.
12037 2014-02-19 Tom Tromey <tromey@redhat.com>
12039 * target-delegates.c: Rebuild.
12040 * target.c (target_record_is_replaying): Unconditionally
12042 * target.h (struct target_ops) <to_record_is_replaying>: Use
12043 TARGET_DEFAULT_RETURN.
12045 2014-02-19 Tom Tromey <tromey@redhat.com>
12047 * target-delegates.c: Rebuild.
12048 * target.c (target_goto_record_begin): Unconditionally delegate.
12049 * target.h (struct target_ops) <to_goto_record_begin>: Use
12050 TARGET_DEFAULT_NORETURN.
12052 2014-02-19 Tom Tromey <tromey@redhat.com>
12054 * target-delegates.c: Rebuild.
12055 * target.c (target_goto_record_end): Unconditionally delegate.
12056 * target.h (struct target_ops) <to_goto_record_end>: Use
12057 TARGET_DEFAULT_NORETURN.
12059 2014-02-19 Tom Tromey <tromey@redhat.com>
12061 * target-delegates.c: Rebuild.
12062 * target.c (target_goto_record): Unconditionally delegate.
12063 * target.h (struct target_ops) <to_goto_record>: Use
12064 TARGET_DEFAULT_NORETURN.
12066 2014-02-19 Tom Tromey <tromey@redhat.com>
12068 * target-delegates.c: Rebuild.
12069 * target.c (target_insn_history): Unconditionally delegate.
12070 * target.h (struct target_ops) <to_insn_history>: Use
12071 TARGET_DEFAULT_NORETURN.
12073 2014-02-19 Tom Tromey <tromey@redhat.com>
12075 * target-delegates.c: Rebuild.
12076 * target.c (target_insn_history_from): Unconditionally delegate.
12077 * target.h (struct target_ops) <to_insn_history_from>: Use
12078 TARGET_DEFAULT_NORETURN.
12080 2014-02-19 Tom Tromey <tromey@redhat.com>
12082 * target-delegates.c: Rebuild.
12083 * target.c (target_insn_history_range): Unconditionally delegate.
12084 * target.h (struct target_ops) <to_insn_history_range>: Use
12085 TARGET_DEFAULT_NORETURN.
12087 2014-02-19 Tom Tromey <tromey@redhat.com>
12089 * target-delegates.c: Rebuild.
12090 * target.c (target_call_history): Unconditionally delegate.
12091 * target.h (struct target_ops) <to_call_history>: Use
12092 TARGET_DEFAULT_NORETURN.
12094 2014-02-19 Tom Tromey <tromey@redhat.com>
12096 * target-delegates.c: Rebuild.
12097 * target.c (target_call_history_from): Unconditionally delegate.
12098 * target.h (struct target_ops) <to_call_history_from>: Use
12099 TARGET_DEFAULT_NORETURN.
12101 2014-02-19 Tom Tromey <tromey@redhat.com>
12103 * target-delegates.c: Rebuild.
12104 * target.c (target_call_history_range): Unconditionally delegate.
12105 * target.h (struct target_ops) <to_call_history_range>: Use
12106 TARGET_DEFAULT_NORETURN.
12108 2014-02-19 Tom Tromey <tromey@redhat.com>
12110 * target-delegates.c: Rebuild.
12111 * target.c (target_verify_memory): Unconditionally delegate.
12112 * target.h (struct target_ops) <to_verify_memory>: Use
12113 TARGET_DEFAULT_NORETURN.
12115 2014-02-19 Tom Tromey <tromey@redhat.com>
12117 * target-delegates.c: Rebuild.
12118 * target.c (target_core_of_thread): Unconditionally delegate.
12119 * target.h (struct target_ops) <to_core_of_thread>: Use
12120 TARGET_DEFAULT_RETURN.
12122 2014-02-19 Tom Tromey <tromey@redhat.com>
12124 * target-delegates.c: Rebuild.
12125 * target.c (target_flash_done): Unconditionally delegate.
12126 * target.h (struct target_ops) <to_flash_done>: Use
12127 TARGET_DEFAULT_NORETURN.
12129 2014-02-19 Tom Tromey <tromey@redhat.com>
12131 * target-delegates.c: Rebuild.
12132 * target.c (target_flash_erase): Unconditionally delegate.
12133 * target.h (struct target_ops) <to_flash_erase>: Use
12134 TARGET_DEFAULT_NORETURN.
12136 2014-02-19 Tom Tromey <tromey@redhat.com>
12138 * target-delegates.c: Rebuild.
12139 * target.c (target_get_section_table): Unconditionally delegate.
12140 * target.h (struct target_ops) <to_get_section_table>: Use
12141 TARGET_DEFAULT_RETURN.
12143 2014-02-19 Tom Tromey <tromey@redhat.com>
12145 * target-delegates.c: Rebuild.
12146 * target.c (target_pid_to_str): Unconditionally delegate.
12147 (init_dummy_target): Don't initialize to_pid_to_str.
12148 (default_pid_to_str): Rename from dummy_pid_to_str.
12149 * target.h (struct target_ops) <to_pid_to_str>: Use
12150 TARGET_DEFAULT_FUNC.
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12154 * target-delegates.c: Rebuild.
12155 * target.c (target_find_new_threads): Unconditionally delegate.
12156 * target.h (struct target_ops) <to_find_new_threads>: Use
12157 TARGET_DEFAULT_RETURN.
12159 2014-02-19 Tom Tromey <tromey@redhat.com>
12161 * target-delegates.c: Rebuild.
12162 * target.c (target_program_signals): Unconditionally delegate.
12163 * target.h (struct target_ops) <to_program_signals>: Use
12164 TARGET_DEFAULT_IGNORE.
12166 2014-02-19 Tom Tromey <tromey@redhat.com>
12168 * target-delegates.c: Rebuild.
12169 * target.c (target_pass_signals): Unconditionally delegate.
12170 * target.h (struct target_ops) <to_pass_signals>: Use
12171 TARGET_DEFAULT_IGNORE.
12173 2014-02-19 Tom Tromey <tromey@redhat.com>
12175 * target-delegates.c: Rebuild.
12176 * target.c (default_mourn_inferior): New function.
12177 (target_mourn_inferior): Unconditionally delegate.
12178 * target.h (struct target_ops) <to_mourn_inferior>: Use
12179 TARGET_DEFAULT_FUNC.
12181 2014-02-19 Tom Tromey <tromey@redhat.com>
12183 * target-delegates.c: Rebuild.
12184 * target.c (default_follow_fork): New function.
12185 (target_follow_fork): Unconditionally delegate.
12186 * target.h (struct target_ops) <to_follow_fork>: Use
12187 TARGET_DEFAULT_FUNC.
12189 2014-02-19 Tom Tromey <tromey@redhat.com>
12191 * target-delegates.c: Rebuild.
12192 * target.c (target_kill): Unconditionally delegate.
12193 * target.h (struct target_ops) <to_kill>: Use
12194 TARGET_DEFAULT_NORETURN.
12196 2014-02-19 Tom Tromey <tromey@redhat.com>
12198 * target-delegates.c: Rebuild.
12199 * target.c (target_masked_watch_num_registers): Unconditionally
12201 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12202 Use TARGET_DEFAULT_RETURN.
12204 2014-02-19 Tom Tromey <tromey@redhat.com>
12206 * target-delegates.c: Rebuild.
12207 * target.c (target_remove_mask_watchpoint): Unconditionally
12209 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12210 TARGET_DEFAULT_RETURN.
12212 2014-02-19 Tom Tromey <tromey@redhat.com>
12214 * target-delegates.c: Rebuild.
12215 * target.c (target_insert_mask_watchpoint): Unconditionally
12217 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12218 TARGET_DEFAULT_RETURN.
12220 2014-02-19 Tom Tromey <tromey@redhat.com>
12222 * target-delegates.c: Rebuild.
12223 * target.c (target_ranged_break_num_registers): Unconditionally
12225 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12226 Use TARGET_DEFAULT_RETURN.
12228 2014-02-19 Tom Tromey <tromey@redhat.com>
12230 * target-delegates.c: Rebuild.
12231 * target.c (target_fetch_registers): Unconditionally delegate.
12232 * target.h (struct target_ops) <to_fetch_registers>: Use
12233 TARGET_DEFAULT_NORETURN.
12235 2014-02-19 Tom Tromey <tromey@redhat.com>
12237 * target-delegates.c: Rebuild.
12238 * target.c (update_current_target): Don't inherit or default
12240 * target.h (struct target_ops) <to_stop>: Use
12241 TARGET_DEFAULT_IGNORE.
12243 2014-02-19 Tom Tromey <tromey@redhat.com>
12245 * target-delegates.c: Rebuild.
12246 * target.c (update_current_target): Don't inherit or default
12247 to_can_run_breakpoint_commands.
12248 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12249 Use TARGET_DEFAULT_RETURN.
12251 2014-02-19 Tom Tromey <tromey@redhat.com>
12253 * target-delegates.c: Rebuild.
12254 * target.c (update_current_target): Don't inherit or default
12255 to_supports_evaluation_of_breakpoint_conditions.
12256 * target.h (struct target_ops)
12257 <to_supports_evaluation_of_breakpoint_conditions>: Use
12258 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_augmented_libraries_svr4_read.
12265 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12266 Use TARGET_DEFAULT_RETURN.
12268 2014-02-19 Tom Tromey <tromey@redhat.com>
12270 * target-delegates.c: Rebuild.
12271 * target.c (update_current_target): Don't inherit or default
12273 * target.h (struct target_ops) <to_can_use_agent>: Use
12274 TARGET_DEFAULT_RETURN.
12276 2014-02-19 Tom Tromey <tromey@redhat.com>
12278 * target-delegates.c: Rebuild.
12279 * target.c (update_current_target): Don't inherit or default
12281 * target.h (struct target_ops) <to_use_agent>: Use
12282 TARGET_DEFAULT_NORETURN.
12284 2014-02-19 Tom Tromey <tromey@redhat.com>
12286 * target-delegates.c: Rebuild.
12287 * target.c (update_current_target): Don't inherit or default
12288 to_traceframe_info.
12289 (return_null): Remove.
12290 * target.h (struct target_ops) <to_traceframe_info>: Use
12291 TARGET_DEFAULT_RETURN.
12293 2014-02-19 Tom Tromey <tromey@redhat.com>
12295 * target-delegates.c: Rebuild.
12296 * target.c (update_current_target): Don't inherit or default
12297 to_static_tracepoint_markers_by_strid.
12298 * target.h (struct target_ops)
12299 <to_static_tracepoint_markers_by_strid>: Use
12300 TARGET_DEFAULT_NORETURN.
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_marker_at.
12307 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12308 Use TARGET_DEFAULT_RETURN.
12310 2014-02-19 Tom Tromey <tromey@redhat.com>
12312 * target-delegates.c: Rebuild.
12313 * target.c (update_current_target): Don't inherit or default
12314 to_set_permissions.
12315 * target.h (struct target_ops) <to_set_permissions>: Use
12316 TARGET_DEFAULT_IGNORE.
12318 2014-02-19 Tom Tromey <tromey@redhat.com>
12320 * target-delegates.c: Rebuild.
12321 * target.c (update_current_target): Don't inherit or default
12322 to_get_tib_address.
12323 * target.h (struct target_ops) <to_get_tib_address>: Use
12324 TARGET_DEFAULT_NORETURN.
12326 2014-02-19 Tom Tromey <tromey@redhat.com>
12328 * target-delegates.c: Rebuild.
12329 * target.c (update_current_target): Don't inherit or default
12330 to_set_trace_notes.
12331 * target.h (struct target_ops) <to_set_trace_notes>: Use
12332 TARGET_DEFAULT_RETURN.
12334 2014-02-19 Tom Tromey <tromey@redhat.com>
12336 * target-delegates.c: Rebuild.
12337 * target.c (update_current_target): Don't initialize
12338 to_set_trace_buffer_size.
12339 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12340 TARGET_DEFAULT_IGNORE.
12342 2014-02-19 Tom Tromey <tromey@redhat.com>
12344 * target-delegates.c: Rebuild.
12345 * target.c (update_current_target): Don't inherit or default
12346 to_set_circular_trace_buffer.
12347 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12348 TARGET_DEFAULT_IGNORE.
12350 2014-02-19 Tom Tromey <tromey@redhat.com>
12352 * target-delegates.c: Rebuild.
12353 * target.c (update_current_target): Don't inherit or default
12354 to_set_disconnected_tracing.
12355 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12356 TARGET_DEFAULT_IGNORE.
12358 2014-02-19 Tom Tromey <tromey@redhat.com>
12360 * target-delegates.c: Rebuild.
12361 * target.c (update_current_target): Don't inherit or default
12362 to_get_min_fast_tracepoint_insn_len.
12363 (return_minus_one): Remove.
12364 * target.h (struct target_ops)
12365 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
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_raw_trace_data.
12372 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12373 TARGET_DEFAULT_NORETURN.
12375 2014-02-19 Tom Tromey <tromey@redhat.com>
12377 * target-delegates.c: Rebuild.
12378 * target.c (update_current_target): Don't inherit or default
12379 to_upload_trace_state_variables.
12380 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12381 Use TARGET_DEFAULT_RETURN.
12383 2014-02-19 Tom Tromey <tromey@redhat.com>
12385 * target-delegates.c: Rebuild.
12386 * target.c (update_current_target): Don't inherit or default
12387 to_upload_tracepoints.
12388 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12389 TARGET_DEFAULT_RETURN.
12391 2014-02-19 Tom Tromey <tromey@redhat.com>
12393 * target-delegates.c: Rebuild.
12394 * target.c (update_current_target): Don't inherit or default
12395 to_save_trace_data.
12396 * target.h (struct target_ops) <to_save_trace_data>: Use
12397 TARGET_DEFAULT_NORETURN.
12399 2014-02-19 Tom Tromey <tromey@redhat.com>
12401 * target-delegates.c: Rebuild.
12402 * target.c (update_current_target): Don't inherit or default
12403 to_get_trace_state_variable_value.
12404 * target.h (struct target_ops)
12405 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12407 2014-02-19 Tom Tromey <tromey@redhat.com>
12409 * target-delegates.c: Rebuild.
12410 * target.c (update_current_target): Don't inherit or default
12412 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12414 2014-02-19 Tom Tromey <tromey@redhat.com>
12416 * target-delegates.c: Rebuild.
12417 * target.c (update_current_target): Don't inherit or default
12419 * target.h (struct target_ops) <to_trace_stop>: Use
12420 TARGET_DEFAULT_NORETURN.
12422 2014-02-19 Tom Tromey <tromey@redhat.com>
12424 * target-delegates.c: Rebuild.
12425 * target.c (update_current_target): Don't inherit or default
12426 to_get_tracepoint_status.
12427 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12428 TARGET_DEFAULT_NORETURN.
12430 2014-02-19 Tom Tromey <tromey@redhat.com>
12432 * target-delegates.c: Rebuild.
12433 * target.c (update_current_target): Don't inherit or default
12434 to_get_trace_status.
12435 * target.h (struct target_ops) <to_get_trace_status>: Use
12436 TARGET_DEFAULT_RETURN.
12438 2014-02-19 Tom Tromey <tromey@redhat.com>
12440 * target-delegates.c: Rebuild.
12441 * target.c (update_current_target): Don't inherit or default
12443 * target.h (struct target_ops) <to_trace_start>: Use
12444 TARGET_DEFAULT_NORETURN.
12446 2014-02-19 Tom Tromey <tromey@redhat.com>
12448 * target-delegates.c: Rebuild.
12449 * target.c (update_current_target): Don't inherit or default
12450 to_trace_set_readonly_regions.
12451 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12452 Use TARGET_DEFAULT_NORETURN.
12454 2014-02-19 Tom Tromey <tromey@redhat.com>
12456 * target-delegates.c: Rebuild.
12457 * target.c (update_current_target): Don't inherit or default
12458 to_disable_tracepoint.
12459 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12460 TARGET_DEFAULT_NORETURN.
12462 2014-02-19 Tom Tromey <tromey@redhat.com>
12464 * target-delegates.c: Rebuild.
12465 * target.c (update_current_target): Don't inherit or default
12466 to_enable_tracepoint.
12467 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12468 TARGET_DEFAULT_NORETURN.
12470 2014-02-19 Tom Tromey <tromey@redhat.com>
12472 * target-delegates.c: Rebuild.
12473 * target.c (update_current_target): Don't inherit or default
12474 to_download_trace_state_variable.
12475 * target.h (struct target_ops) <to_download_trace_state_variable>:
12476 Use TARGET_DEFAULT_NORETURN.
12478 2014-02-19 Tom Tromey <tromey@redhat.com>
12480 * target-delegates.c: Rebuild.
12481 * target.c (update_current_target): Don't inherit or default
12482 to_can_download_tracepoint.
12483 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12484 TARGET_DEFAULT_RETURN.
12486 2014-02-19 Tom Tromey <tromey@redhat.com>
12488 * target-delegates.c: Rebuild.
12489 * target.c (update_current_target): Don't inherit or default
12490 to_download_tracepoint.
12491 * target.h (struct target_ops) <to_download_tracepoint>: Use
12492 TARGET_DEFAULT_NORETURN.
12494 2014-02-19 Tom Tromey <tromey@redhat.com>
12496 * target-delegates.c: Rebuild.
12497 * target.c (update_current_target): Don't inherit or default
12499 * target.h (struct target_ops) <to_trace_init>: Use
12500 TARGET_DEFAULT_RETURN.
12502 2014-02-19 Tom Tromey <tromey@redhat.com>
12504 * target-delegates.c: Rebuild.
12505 * target.c (update_current_target): Don't inherit or default
12506 to_supports_string_tracing.
12507 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12508 TARGET_DEFAULT_RETURN.
12510 2014-02-19 Tom Tromey <tromey@redhat.com>
12512 * target-delegates.c: Rebuild.
12513 * target.c (update_current_target): Don't inherit or default
12514 to_supports_enable_disable_tracepoint.
12515 * target.h (struct target_ops)
12516 <to_supports_enable_disable_tracepoint>: 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_multi_process.
12524 * target.h (struct target_ops) <to_supports_multi_process>: Use
12525 TARGET_DEFAULT_RETURN.
12527 2014-02-19 Tom Tromey <tromey@redhat.com>
12529 * target-delegates.c: Rebuild.
12530 * target.c (update_current_target): Don't inherit or default
12531 to_get_ada_task_ptid.
12532 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12533 TARGET_DEFAULT_FUNC.
12535 2014-02-19 Tom Tromey <tromey@redhat.com>
12537 * target-delegates.c: Rebuild.
12538 * target.c (update_current_target): Don't inherit or default
12539 to_thread_architecture.
12540 * target.h (struct target_ops) <to_thread_architecture>: Use
12541 TARGET_DEFAULT_FUNC.
12543 2014-02-19 Tom Tromey <tromey@redhat.com>
12545 * target-delegates.c: Rebuild.
12546 * target.c (update_current_target): Don't inherit or default
12547 to_execution_direction.
12548 * target.h (struct target_ops) <to_execution_direction>: Use
12549 TARGET_DEFAULT_FUNC.
12551 2014-02-19 Tom Tromey <tromey@redhat.com>
12553 * target-delegates.c: Rebuild.
12554 * target.c (update_current_target): Don't inherit or default
12555 to_can_execute_reverse.
12556 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12557 TARGET_DEFAULT_RETURN.
12558 (target_can_execute_reverse): Unconditionally delegate.
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
12565 (dummy_goto_bookmark): Remove.
12566 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12567 * target.h (struct target_ops) <to_goto_bookmark>: Use
12568 TARGET_DEFAULT_NORETURN.
12570 2014-02-19 Tom Tromey <tromey@redhat.com>
12572 * target-delegates.c: Rebuild.
12573 * target.c (update_current_target): Don't inherit or default
12575 (dummy_get_bookmark): Remove.
12576 (init_dummy_target): Don't inherit or default to_get_bookmark.
12577 * target.h (struct target_ops) <to_get_bookmark>: Use
12578 TARGET_DEFAULT_NORETURN
12580 2014-02-19 Tom Tromey <tromey@redhat.com>
12582 * target-delegates.c: Rebuild.
12583 * target.c (update_current_target): Don't inherit or default
12584 to_make_corefile_notes.
12585 (init_dummy_target): Don't initialize to_make_corefile_notes.
12586 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12587 TARGET_DEFAULT_FUNC.
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_find_memory_regions.
12594 (init_dummy_target): Don't initialize to_find_memory_regions.
12595 * target.h (struct target_ops) <to_find_memory_regions>: 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
12603 * target.h (struct target_ops) <to_log_command>: Use
12604 TARGET_DEFAULT_IGNORE.
12605 (target_log_command): Unconditionally delegate.
12607 2014-02-19 Tom Tromey <tromey@redhat.com>
12609 * target-delegates.c: Rebuild.
12610 * target.c (update_current_target): Don't inherit or default
12611 to_pid_to_exec_file.
12612 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12613 TARGET_DEFAULT_RETURN.
12615 2014-02-19 Tom Tromey <tromey@redhat.com>
12617 * target-delegates.c: Rebuild.
12618 * target.c (update_current_target): Don't inherit or default
12620 (target_thread_name): Unconditionally delegate.
12621 * target.h (struct target_ops) <to_thread_name>: 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
12628 to_extra_thread_info.
12629 * target.h (struct target_ops) <to_extra_thread_info>: Use
12630 TARGET_DEFAULT_RETURN.
12632 2014-02-19 Tom Tromey <tromey@redhat.com>
12634 * target-delegates.c: Rebuild.
12635 * target.c (update_current_target): Don't inherit or default
12637 * target.h (struct target_ops) <to_has_exited>: Use
12638 TARGET_DEFAULT_RETURN..
12640 2014-02-19 Tom Tromey <tromey@redhat.com>
12642 * target-delegates.c: Rebuild.
12643 * target.c (update_current_target): Don't inherit or default
12644 to_set_syscall_catchpoint.
12645 (return_one): Remove.
12646 * target.h (struct target_ops) <to_set_syscall_catchpoint>: 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_insert_exec_catchpoint.
12654 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12655 TARGET_DEFAULT_RETURN.
12657 2014-01-08 Tom Tromey <tromey@redhat.com>
12659 * target-delegates.c: Rebuild.
12660 * target.c (update_current_target): Don't inherit or default
12661 to_insert_exec_catchpoint.
12662 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12663 TARGET_DEFAULT_RETURN.
12665 2014-02-19 Tom Tromey <tromey@redhat.com>
12667 * target-delegates.c: Rebuild.
12668 * target.c (update_current_target): Don't inherit or default
12669 to_remove_vfork_catchpoint.
12670 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12671 TARGET_DEFAULT_RETURN.
12673 2014-02-19 Tom Tromey <tromey@redhat.com>
12675 * target-delegates.c: Rebuild.
12676 * target.c (update_current_target): Don't inherit or default
12677 to_insert_vfork_catchpoint.
12678 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12679 TARGET_DEFAULT_RETURN.
12681 2014-02-19 Tom Tromey <tromey@redhat.com>
12683 * target-delegates.c: Rebuild.
12684 * target.c (update_current_target): Don't inherit or default
12685 to_remove_fork_catchpoint.
12686 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12687 TARGET_DEFAULT_RETURN.
12689 2014-02-19 Tom Tromey <tromey@redhat.com>
12691 * target-delegates.c: Rebuild.
12692 * target.c (update_current_target): Don't inherit or default
12693 to_insert_fork_catchpoint.
12694 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12695 TARGET_DEFAULT_RETURN.
12697 2014-02-19 Tom Tromey <tromey@redhat.com>
12699 * target-delegates.c: Rebuild.
12700 * target.c (update_current_target): Don't inherit or default
12701 to_post_startup_inferior.
12702 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12703 TARGET_DEFAULT_IGNORE.
12705 2014-02-19 Tom Tromey <tromey@redhat.com>
12707 * target-delegates.c: Rebuild.
12708 * target.c (update_current_target): Don't inherit or default
12710 * target.h (struct target_ops) <to_load>: Use
12711 TARGET_DEFAULT_NORETURN.
12713 2014-02-19 Tom Tromey <tromey@redhat.com>
12715 * target-delegates.c: Rebuild.
12716 * target.c (update_current_target): Don't inherit or default
12718 * target.h (struct target_ops) <to_terminal_info>: Use
12719 TARGET_DEFAULT_FUNC.
12721 2014-02-19 Tom Tromey <tromey@redhat.com>
12723 * target-delegates.c: Rebuild.
12724 * target.c (update_current_target): Don't inherit or default
12725 to_terminal_save_ours.
12726 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12727 TARGET_DEFAULT_IGNORE.
12729 2014-02-19 Tom Tromey <tromey@redhat.com>
12731 * target-delegates.c: Rebuild.
12732 * target.c (update_current_target): Don't inherit or default
12734 * target.h (struct target_ops) <to_terminal_ours>: Use
12735 TARGET_DEFAULT_IGNORE.
12737 2014-02-19 Tom Tromey <tromey@redhat.com>
12739 * target-delegates.c: Rebuild.
12740 * target.c (update_current_target): Don't inherit or default
12741 to_terminal_ours_for_output.
12742 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12743 TARGET_DEFAULT_IGNORE.
12745 2014-02-19 Tom Tromey <tromey@redhat.com>
12747 * target-delegates.c: Rebuild.
12748 * target.c (update_current_target): Don't inherit or default
12749 to_terminal_inferior.
12750 * target.h (struct target_ops) <to_terminal_inferior>: Use
12751 TARGET_DEFAULT_IGNORE.
12753 2014-02-19 Tom Tromey <tromey@redhat.com>
12755 * target-delegates.c: Rebuild.
12756 * target.c (update_current_target): Don't inherit or default
12758 * target.h (struct target_ops) <to_terminal_init>: Use
12759 TARGET_DEFAULT_IGNORE.
12761 2014-02-19 Tom Tromey <tromey@redhat.com>
12763 * target-delegates.c: Rebuild.
12764 * target.c (update_current_target): Don't inherit or default
12765 to_can_accel_watchpoint_condition.
12766 * target.h (struct target_ops)
12767 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12769 2014-02-19 Tom Tromey <tromey@redhat.com>
12771 * target-delegates.c: Rebuild.
12772 * target.c (update_current_target): Don't inherit or default
12773 to_region_ok_for_hw_watchpoint.
12774 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12775 Use TARGET_DEFAULT_FUNC.
12777 2014-02-19 Tom Tromey <tromey@redhat.com>
12779 * target-delegates.c: Rebuild.
12780 * target.c (update_current_target): Don't inherit or default
12781 to_watchpoint_addr_within_range.
12782 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12783 Use TARGET_DEFAULT_FUNC.
12785 2014-02-19 Tom Tromey <tromey@redhat.com>
12787 * target-delegates.c: Rebuild.
12788 * target.c (update_current_target): Don't inherit or default
12789 to_remove_watchpoint.
12790 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12791 TARGET_DEFAULT_NORETURN.
12793 2014-02-19 Tom Tromey <tromey@redhat.com>
12795 * target-delegates.c: Rebuild.
12796 * target.c (update_current_target): Don't inherit or default
12797 to_insert_watchpoint.
12798 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12799 TARGET_DEFAULT_RETURN.
12801 2014-02-19 Tom Tromey <tromey@redhat.com>
12803 * target-delegates.c: Rebuild.
12804 * target.c (update_current_target): Don't inherit or default
12805 to_remove_hw_breakpoint.
12806 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12807 TARGET_DEFAULT_RETURN.
12809 2014-02-19 Tom Tromey <tromey@redhat.com>
12811 * target-delegates.c: Rebuild.
12812 * target.c (update_current_target): Don't inherit or default
12813 to_insert_hw_breakpoint.
12814 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12815 TARGET_DEFAULT_RETURN.
12817 2014-02-19 Tom Tromey <tromey@redhat.com>
12819 * target-delegates.c: Rebuild.
12820 * target.c (update_current_target): Don't inherit or default
12821 to_can_use_hw_breakpoint.
12822 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12823 TARGET_DEFAULT_RETURN.
12825 2014-02-19 Tom Tromey <tromey@redhat.com>
12827 * target-delegates.c: Rebuild.
12828 * target.c (update_current_target): Don't inherit or default
12830 * target.h (struct target_ops) <to_files_info>: Use
12831 TARGET_DEFAULT_IGNORE.
12833 2014-02-19 Tom Tromey <tromey@redhat.com>
12835 * target-delegates.c: Rebuild.
12836 * target.c (update_current_target): Don't inherit or default
12838 * target.h (struct target_ops) <to_store>: Use
12839 TARGET_DEFAULT_NORETURN.
12841 2014-02-19 Tom Tromey <tromey@redhat.com>
12843 * target-delegates.c: Rebuild.
12844 * target.c (update_current_target): Don't inherit or default
12846 * target.h (struct target_ops) <to_post_attach>: Use
12847 TARGET_DEFAULT_IGNORE.
12849 2014-02-19 Tom Tromey <tromey@redhat.com>
12851 * target-delegates.c: Rebuild.
12852 * target.c (update_current_target): Don't inherit or default
12854 (default_rcmd): New function.
12855 (do_monitor_command): Unconditionally delegate.
12856 * target.h (struct target_ops) <to_rmcd>: Use
12857 TARGET_DEFAULT_FUNC.
12859 2014-02-19 Tom Tromey <tromey@redhat.com>
12861 * target-delegates.c: Rebuild.
12862 * target.c (init_dummy_target): Don't initialize to_attach.
12863 (target_attach): Unconditionally delegate.
12864 * target.h (struct target_ops) <to_attach>: Use
12865 TARGET_DEFAULT_FUNC.
12867 2014-02-19 Tom Tromey <tromey@redhat.com>
12869 * target-delegates.c: Rebuild.
12870 * target.c (target_detach): Unconditionally delegate.
12871 (init_dummy_target): Don't initialize to_detach.
12872 * target.h (struct target_ops) <to_detach>: Use
12873 TARGET_DEFAULT_IGNORE.
12875 2014-02-19 Tom Tromey <tromey@redhat.com>
12877 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12879 (target_augmented_libraries_svr4_read): Add argument.
12880 * target.c (update_current_target): Update.
12881 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12884 2014-02-19 Tom Tromey <tromey@redhat.com>
12886 * target.h (struct target_ops) <to_call_history_range>: Add
12888 * target.c (target_call_history_range): Add argument.
12889 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12891 (record_btrace_call_history_from): Update.
12893 2014-02-19 Tom Tromey <tromey@redhat.com>
12895 * target.h (struct target_ops) <to_call_history_from>: Add
12897 * target.c (target_call_history_from): Add argument.
12898 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12901 2014-02-19 Tom Tromey <tromey@redhat.com>
12903 * target.h (struct target_ops) <to_call_history>: Add argument.
12904 * target.c (target_call_history): Add argument.
12905 * record-btrace.c (record_btrace_call_history): Add 'self'
12908 2014-02-19 Tom Tromey <tromey@redhat.com>
12910 * target.h (struct target_ops) <to_insn_history_range>: Add
12912 * target.c (target_insn_history_range): Add argument.
12913 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12915 (record_btrace_insn_history_from): Update.
12917 2014-02-19 Tom Tromey <tromey@redhat.com>
12919 * target.h (struct target_ops) <to_insn_history_from>: Add
12921 * target.c (target_insn_history_from): Add argument.
12922 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12925 2014-02-19 Tom Tromey <tromey@redhat.com>
12927 * target.h (struct target_ops) <to_insn_history>: Add argument.
12928 * target.c (target_insn_history): Add argument.
12929 * record-btrace.c (record_btrace_insn_history): Add 'self'
12932 2014-02-19 Tom Tromey <tromey@redhat.com>
12934 * target.h (struct target_ops) <to_goto_record>: Add argument.
12935 * target.c (target_goto_record): Add argument.
12936 * record-full.c (record_full_goto): Add 'self' argument.
12937 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12939 2014-02-19 Tom Tromey <tromey@redhat.com>
12941 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12942 * target.c (target_goto_record_end): Add argument.
12943 * record-full.c (record_full_goto_end): Add 'self' argument.
12944 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12946 2014-02-19 Tom Tromey <tromey@redhat.com>
12948 * target.h (struct target_ops) <to_goto_record_begin>: Add
12950 * target.c (target_goto_record_begin): Add argument.
12951 * record-full.c (record_full_goto_begin): Add 'self' argument.
12952 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12955 2014-02-19 Tom Tromey <tromey@redhat.com>
12957 * target.h (struct target_ops) <to_record_is_replaying>: Add
12959 * target.c (target_record_is_replaying): Add argument.
12960 * record-full.c (record_full_is_replaying): Add 'self' argument.
12961 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12963 (record_btrace_xfer_partial, record_btrace_store_registers)
12964 (record_btrace_prepare_to_store, record_btrace_resume)
12965 (record_btrace_wait, record_btrace_decr_pc_after_break)
12966 (record_btrace_find_new_threads, record_btrace_thread_alive):
12969 2014-02-19 Tom Tromey <tromey@redhat.com>
12971 * target.h (struct target_ops) <to_delete_record>: Add argument.
12972 * target.c (target_delete_record): Add argument.
12973 * record-full.c (record_full_delete): Add 'self' argument.
12975 2014-02-19 Tom Tromey <tromey@redhat.com>
12977 * target.h (struct target_ops) <to_save_record>: Add argument.
12978 * target.c (target_save_record): Add argument.
12979 * record-full.c (record_full_save): Add 'self' argument.
12980 (record_full_save): Add 'self' argument.
12982 2014-02-19 Tom Tromey <tromey@redhat.com>
12984 * target.h (struct target_ops) <to_info_record>: Add argument.
12985 * target.c (target_info_record): Add argument.
12986 * record.c (info_record_command): Add argument.
12987 * record-full.c (record_full_info): Add 'self' argument.
12988 * record-btrace.c (record_btrace_info): Add 'self' argument.
12990 2014-02-19 Tom Tromey <tromey@redhat.com>
12992 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12993 * target.c (target_stop_recording): Add argument.
12994 * record.c (record_stop): Add argument.
12995 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12998 2014-02-19 Tom Tromey <tromey@redhat.com>
13000 * target.h (struct target_ops) <to_read_btrace>: Add argument.
13001 * target.c (struct target_ops) <to_read_btrace>: Add argument.
13002 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
13004 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
13005 (_initialize_amd64_linux_nat): Use it.
13006 * i386-linux-nat.c (i386_linux_read_btrace): New function.
13007 (_initialize_i386_linux_nat): Use it.
13009 2014-02-19 Tom Tromey <tromey@redhat.com>
13011 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
13012 * target.c (target_teardown_btrace): Add argument.
13013 * remote.c (remote_teardown_btrace): Add 'self' argument.
13014 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
13016 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
13019 2014-02-19 Tom Tromey <tromey@redhat.com>
13021 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
13022 * target.c (target_disable_btrace): Add argument.
13023 * remote.c (remote_disable_btrace): Add 'self' argument.
13024 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
13026 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
13029 2014-02-19 Tom Tromey <tromey@redhat.com>
13031 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
13032 * target.c (target_enable_btrace): Add argument.
13033 * remote.c (remote_enable_btrace): Add 'self' argument.
13034 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
13036 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
13039 2014-02-19 Tom Tromey <tromey@redhat.com>
13041 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
13042 (target_can_use_agent): Add argument.
13043 * target.c (update_current_target): Update.
13044 * remote.c (remote_can_use_agent): Add 'self' argument.
13045 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
13047 2014-02-19 Tom Tromey <tromey@redhat.com>
13049 * target.h (struct target_ops) <to_use_agent>: Add argument.
13050 (target_use_agent): Add argument.
13051 * target.c (update_current_target): Update.
13052 * remote.c (remote_use_agent): Add 'self' argument.
13053 * inf-child.c (inf_child_use_agent): Add 'self' argument.
13055 2014-02-19 Tom Tromey <tromey@redhat.com>
13057 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
13058 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
13059 (target_traceframe_info): Add argument.
13060 * target.c (update_current_target): Update.
13061 * remote.c (remote_traceframe_info): Add 'self' argument.
13062 * ctf.c (ctf_traceframe_info): Add 'self' argument.
13064 2014-02-19 Tom Tromey <tromey@redhat.com>
13066 * target.h (target_static_tracepoint_markers_by_strid): Add
13068 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
13070 * target.c (update_current_target): Update.
13071 * remote.c (struct target_ops)
13072 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13073 * linux-nat.c (struct target_ops)
13074 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13076 2014-02-19 Tom Tromey <tromey@redhat.com>
13078 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
13080 (target_static_tracepoint_marker_at): Add argument.
13081 * target.c (update_current_target): Update.
13082 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
13085 2014-02-19 Tom Tromey <tromey@redhat.com>
13087 * target.h (struct target_ops) <to_set_permissions>: Add argument.
13088 (target_set_permissions): Add argument.
13089 * target.c (update_current_target): Update.
13090 * remote.c (remote_set_permissions): Add 'self' argument.
13091 (remote_start_remote): Update.
13093 2014-02-19 Tom Tromey <tromey@redhat.com>
13095 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
13096 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
13097 (target_get_tib_address): Add argument.
13098 * target.c (update_current_target): Update.
13099 * remote.c (remote_get_tib_address): Add 'self' argument.
13101 2014-02-19 Tom Tromey <tromey@redhat.com>
13103 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
13104 (target_set_trace_notes): Add argument.
13105 * target.c (update_current_target): Update.
13106 * remote.c (remote_set_trace_notes): Add 'self' argument.
13108 2014-02-19 Tom Tromey <tromey@redhat.com>
13110 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
13112 (target_set_trace_buffer_size): Add argument.
13113 * target.c (update_current_target): Update.
13114 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
13116 2014-02-19 Tom Tromey <tromey@redhat.com>
13118 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
13120 (target_set_circular_trace_buffer): Add argument.
13121 * target.c (update_current_target): Update.
13122 * remote.c (remote_set_circular_trace_buffer): Add 'self'
13125 2014-02-19 Tom Tromey <tromey@redhat.com>
13127 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
13129 (target_set_disconnected_tracing): Add argument.
13130 * target.c (update_current_target): Update.
13131 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
13133 2014-02-19 Tom Tromey <tromey@redhat.com>
13135 * target.h (struct target_ops)
13136 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13137 (target_get_min_fast_tracepoint_insn_len): Add argument.
13138 * target.c (update_current_target): Update.
13139 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13142 2014-02-19 Tom Tromey <tromey@redhat.com>
13144 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13146 (target_get_raw_trace_data): Add argument.
13147 * target.c (update_current_target): Update.
13148 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13150 2014-02-19 Tom Tromey <tromey@redhat.com>
13152 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13154 (target_upload_trace_state_variables): Add argument.
13155 * target.c (update_current_target): Update.
13156 * remote.c (remote_upload_trace_state_variables): Add 'self'
13158 (remote_start_remote): Update.
13160 2014-02-19 Tom Tromey <tromey@redhat.com>
13162 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13164 (target_upload_tracepoints): Add argument.
13165 * target.c (update_current_target): Update.
13166 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13167 (remote_start_remote): Update.
13169 2014-02-19 Tom Tromey <tromey@redhat.com>
13171 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13172 (target_save_trace_data): Add argument.
13173 * target.c (update_current_target): Update.
13174 * remote.c (remote_save_trace_data): Add 'self' argument.
13176 2014-02-19 Tom Tromey <tromey@redhat.com>
13178 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13180 * target.h (struct target_ops)
13181 <to_get_trace_state_variable_value>: Add argument.
13182 (target_get_trace_state_variable_value): Add argument.
13183 * target.c (update_current_target): Update.
13184 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13186 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13188 2014-02-19 Tom Tromey <tromey@redhat.com>
13190 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13191 * target.h (struct target_ops) <to_trace_find>: Add argument.
13192 (target_trace_find): Add argument.
13193 * target.c (update_current_target): Update.
13194 * remote.c (remote_trace_find): Add 'self' argument.
13195 * ctf.c (ctf_trace_find): Add 'self' argument.
13197 2014-02-19 Tom Tromey <tromey@redhat.com>
13199 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13200 (target_trace_stop): Add argument.
13201 * target.c (update_current_target): Update.
13202 * remote.c (remote_trace_stop): Add 'self' argument.
13204 2014-02-19 Tom Tromey <tromey@redhat.com>
13206 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13207 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13209 (target_get_tracepoint_status): Add argument.
13210 * target.c (update_current_target): Update.
13211 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13213 2014-02-19 Tom Tromey <tromey@redhat.com>
13215 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13216 * target.h (struct target_ops) <to_get_trace_status>: Add
13218 (target_get_trace_status): Add argument.
13219 * target.c (update_current_target): Update.
13220 * remote.c (remote_get_trace_status): Add 'self' argument.
13221 (remote_start_remote, remote_can_download_tracepoint): Update.
13222 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13224 2014-02-19 Tom Tromey <tromey@redhat.com>
13226 * target.h (struct target_ops) <to_trace_start>: Add argument.
13227 (target_trace_start): Add argument.
13228 * target.c (update_current_target): Update.
13229 * remote.c (remote_trace_start): Add 'self' argument.
13231 2014-02-19 Tom Tromey <tromey@redhat.com>
13233 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13235 (target_trace_set_readonly_regions): Add argument.
13236 * target.c (update_current_target): Update.
13237 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13240 2014-02-19 Tom Tromey <tromey@redhat.com>
13242 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13244 (target_disable_tracepoint): Add argument.
13245 * target.c (update_current_target): Update.
13246 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13248 2014-02-19 Tom Tromey <tromey@redhat.com>
13250 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13252 (target_enable_tracepoint): Add argument.
13253 * target.c (update_current_target): Update.
13254 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13256 2014-02-19 Tom Tromey <tromey@redhat.com>
13258 * target.h (struct target_ops) <to_download_trace_state_variable>:
13260 (target_download_trace_state_variable): Add argument.
13261 * target.c (update_current_target): Update.
13262 * remote.c (remote_download_trace_state_variable): Add 'self'
13265 2014-02-19 Tom Tromey <tromey@redhat.com>
13267 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13269 (target_can_download_tracepoint): Add argument.
13270 * target.c (update_current_target): Update.
13271 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13273 2014-02-19 Tom Tromey <tromey@redhat.com>
13275 * target.h (struct target_ops) <to_download_tracepoint>: Add
13277 (target_download_tracepoint): Add argument.
13278 * target.c (update_current_target): Update.
13279 * remote.c (remote_download_tracepoint): Add 'self' argument.
13281 2014-02-19 Tom Tromey <tromey@redhat.com>
13283 * target.h (struct target_ops) <to_trace_init>: Add argument.
13284 (target_trace_init): Add argument.
13285 * target.c (update_current_target): Update.
13286 * remote.c (remote_trace_init): Add 'self' argument.
13288 2014-02-19 Tom Tromey <tromey@redhat.com>
13290 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13291 * target.c (target_fileio_readlink): Add argument.
13292 * remote.c (remote_hostio_readlink): Add 'self' argument.
13293 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13295 2014-02-19 Tom Tromey <tromey@redhat.com>
13297 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13298 * target.c (target_fileio_unlink): Add argument.
13299 * remote.c (remote_hostio_unlink): Add 'self' argument.
13300 (remote_file_delete): Update.
13301 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13303 2014-02-19 Tom Tromey <tromey@redhat.com>
13305 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13306 * target.c (target_fileio_close): Add argument.
13307 * remote.c (remote_hostio_close): Add 'self' argument.
13308 (remote_hostio_close_cleanup): Update.
13309 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13311 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13313 2014-02-19 Tom Tromey <tromey@redhat.com>
13315 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13316 * target.c (target_fileio_pread): Add argument.
13317 * remote.c (remote_hostio_pread): Add 'self' argument.
13318 (remote_bfd_iovec_pread, remote_file_get): Update.
13319 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13321 2014-02-19 Tom Tromey <tromey@redhat.com>
13323 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13324 * target.c (target_fileio_pwrite): Add argument.
13325 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13326 (remote_file_put): Update.
13327 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13329 2014-02-19 Tom Tromey <tromey@redhat.com>
13331 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13332 * target.c (target_fileio_open): Add argument.
13333 * remote.c (remote_hostio_open): Add 'self' argument.
13334 (remote_bfd_iovec_open): Add 'self' argument.
13335 (remote_file_put): Add 'self' argument.
13336 (remote_file_get): Add 'self' argument.
13337 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13339 2014-02-19 Tom Tromey <tromey@redhat.com>
13341 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13343 (target_can_run_breakpoint_commands): Add argument.
13344 * target.c (update_current_target): Update.
13345 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13347 (remote_insert_breakpoint): Add 'self' argument.
13348 (remote_insert_hw_breakpoint): Add 'self' argument.
13349 (remote_can_run_breakpoint_commands): Add 'self' argument.
13351 2014-02-19 Tom Tromey <tromey@redhat.com>
13353 * target.h (struct target_ops)
13354 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13355 (target_supports_evaluation_of_breakpoint_conditions): Add
13357 * target.c (update_current_target): Update.
13358 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13360 (remote_insert_breakpoint): Add 'self' argument.
13361 (remote_insert_hw_breakpoint): Add 'self' argument.
13362 (remote_supports_cond_breakpoints): Add 'self' argument.
13364 2014-02-19 Tom Tromey <tromey@redhat.com>
13366 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13368 (target_supports_string_tracing): Add argument.
13369 * target.c (update_current_target): Update.
13370 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13372 2014-02-19 Tom Tromey <tromey@redhat.com>
13374 * target.h (struct target_ops)
13375 <to_supports_disable_randomization>: Add argument.
13376 * target.c (find_default_supports_disable_randomization): Add
13378 (target_supports_disable_randomization): Add argument.
13379 (find_default_supports_disable_randomization): Add 'self'
13381 * remote.c (extended_remote_supports_disable_randomization): Add
13383 (remote_supports_disable_randomization): Add 'self' argument.
13384 (extended_remote_create_inferior): Update.
13385 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13388 2014-02-19 Tom Tromey <tromey@redhat.com>
13390 * target.h (struct target_ops)
13391 <to_supports_enable_disable_tracepoint>: Add argument.
13392 (target_supports_enable_disable_tracepoint): Add argument.
13393 * target.c (update_current_target): Update.
13394 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13397 2014-02-19 Tom Tromey <tromey@redhat.com>
13399 * target.h (struct target_ops) <to_supports_multi_process>: Add
13401 (target_supports_multi_process): Add argument.
13402 * target.c (update_current_target): Update.
13403 * remote.c (remote_supports_multi_process): Add 'self' argument.
13404 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13406 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13409 2014-02-19 Tom Tromey <tromey@redhat.com>
13411 * target.h (struct target_ops) <to_execution_direction>: Add
13413 (target_execution_direction): Add argument.
13414 * target.c (default_execution_direction): Add 'self' argument.
13415 * record-full.c (record_full_execution_direction): Add 'self'
13418 2014-02-19 Tom Tromey <tromey@redhat.com>
13420 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13422 (target_can_execute_reverse): Add argument.
13423 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13424 * record-full.c (record_full_can_execute_reverse): Add 'self'
13426 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13429 2014-02-19 Tom Tromey <tromey@redhat.com>
13431 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13432 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13434 (target_get_ada_task_ptid): Add argument.
13435 * target.c (update_current_target): Update.
13436 (default_get_ada_task_ptid): Add 'self' argument.
13437 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13438 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13439 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13441 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13443 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13445 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13447 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13448 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13451 2014-02-19 Tom Tromey <tromey@redhat.com>
13453 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13454 (target_goto_bookmark): Add argument.
13455 * target.c (dummy_goto_bookmark): Add 'self' argument.
13456 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13458 2014-02-19 Tom Tromey <tromey@redhat.com>
13460 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13461 (target_get_bookmark): Add argument.
13462 * target.c (dummy_get_bookmark): Add 'self' argument.
13463 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13465 2014-02-19 Tom Tromey <tromey@redhat.com>
13467 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13469 (target_make_corefile_notes): Add argument.
13470 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13471 * procfs.c (procfs_make_note_section): Add 'self' argument.
13472 (procfs_make_note_section): Add 'self' argument.
13473 (procfs_make_note_section): Add 'self' argument.
13474 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13476 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13477 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13478 * exec.c (exec_make_note_section): Add 'self' argument.
13479 (exec_make_note_section): Add 'self' argument.
13481 2014-02-19 Tom Tromey <tromey@redhat.com>
13483 * target.h (struct target_ops) <to_find_memory_regions>: Add
13485 (target_find_memory_regions): Add argument.
13486 * target.c (dummy_find_memory_regions): Add 'self' argument.
13487 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13488 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13489 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13490 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13491 * exec. (exec_do_find_memory_regions): New global.
13492 (exec_set_find_memory_regions): Rewrite.
13493 (exec_find_memory_regions): New function.
13494 (init_exec_ops): Use exec_find_memory_regions.
13496 2014-02-19 Tom Tromey <tromey@redhat.com>
13498 * target.h (struct target_ops) <to_supports_non_stop>: Add
13500 * target.c (find_default_supports_non_stop): Add argument.
13501 (target_supports_non_stop): Add argument.
13502 (find_default_supports_non_stop): Add 'self' argument.
13503 * remote.c (remote_supports_non_stop): Add 'self' argument.
13504 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13506 2014-02-19 Tom Tromey <tromey@redhat.com>
13508 * target.h (struct target_ops) <to_log_command>: Add argument.
13509 (target_log_command): Add argument.
13510 * serial.h (serial_log_command): Add 'self' argument.
13511 * serial.c (serial_log_command): Add 'self' argument.
13513 2014-02-19 Tom Tromey <tromey@redhat.com>
13515 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13516 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13518 (target_pid_to_exec_file): Add argument.
13519 * target.c (debug_to_pid_to_exec_file): Add argument.
13520 (update_current_target): Update.
13521 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13522 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13523 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13524 (linux_handle_extended_wait): Update.
13525 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13526 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13527 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13528 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13530 2014-02-19 Tom Tromey <tromey@redhat.com>
13532 * target.h (struct target_ops) <to_rcmd>: Add argument.
13533 (target_rcmd): Add argument.
13534 * target.c (debug_to_rcmd): Add argument.
13535 (update_current_target, do_monitor_command): Update.
13536 * remote.c (remote_rcmd): Add 'self' argument.
13537 * monitor.c (monitor_rcmd): Add 'self' argument.
13539 2014-02-19 Tom Tromey <tromey@redhat.com>
13541 * windows-nat.c (windows_stop): Add 'self' argument.
13542 * target.h (struct target_ops) <to_stop>: Add argument.
13543 * target.c (target_stop): Add argument.
13544 (debug_to_stop): Add argument.
13545 (update_current_target): Update.
13546 * remote.c (remote_stop): Add 'self' argument.
13547 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13548 (gdbsim_cntrl_c): Update.
13549 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13550 * procfs.c (procfs_stop): Add 'self' argument.
13551 * nto-procfs.c (procfs_stop): Add 'self' argument.
13552 * monitor.c (monitor_stop): Add 'self' argument.
13553 (monitor_open): Update.
13554 * linux-nat.c (linux_nat_stop): Add argument.
13555 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13556 * gnu-nat.c (gnu_stop): Add 'self' argument.
13557 * darwin-nat.c (darwin_stop): Add 'self' argument.
13559 2014-02-19 Tom Tromey <tromey@redhat.com>
13561 * target.h (struct target_ops) <to_thread_name>: Add argument.
13562 * target.c (target_thread_name): Add argument.
13563 (update_current_target): Update.
13564 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13566 2014-02-19 Tom Tromey <tromey@redhat.com>
13568 * target.h (struct target_ops) <to_extra_thread_info>: Add
13570 (target_extra_thread_info): Add argument.
13571 * target.c (update_current_target): Update.
13572 * remote.c (remote_threads_extra_info): Add 'self' argument.
13573 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13575 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13576 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13577 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13579 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13581 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13583 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13586 2014-02-19 Tom Tromey <tromey@redhat.com>
13588 * target.h (struct target_ops) <to_program_signals>: Add argument.
13589 * target.c (target_program_signals): Add argument.
13590 * remote.c (remote_program_signals): Add 'self' argument.
13592 2014-02-19 Tom Tromey <tromey@redhat.com>
13594 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13595 * target.c (target_pass_signals): Add argument.
13596 * remote.c (remote_pass_signals): Add 'self' argument.
13597 (remote_start_remote): Update.
13598 * procfs.c (procfs_pass_signals): Add 'self' argument.
13599 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13600 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13601 (linux_nat_create_inferior, linux_nat_attach): Update.
13603 2014-02-19 Tom Tromey <tromey@redhat.com>
13605 * windows-nat.c (windows_can_run): Add 'self' argument.
13606 * target.h (struct target_ops) <to_can_run>: Add argument.
13607 (target_can_run): Add argument.
13608 * target.c (debug_to_can_run): Add argument.
13609 (update_current_target): Update.
13610 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13611 * inf-child.c (inf_child_can_run): Add 'self' argument.
13612 * go32-nat.c (go32_can_run): Add 'self' argument.
13614 2014-02-19 Tom Tromey <tromey@redhat.com>
13616 * target.h (struct target_ops) <to_has_exited>: Add argument.
13617 (target_has_exited): Add argument.
13618 * target.c (debug_to_has_exited): Add argument.
13619 (update_current_target): Update.
13621 2014-02-19 Tom Tromey <tromey@redhat.com>
13623 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13625 (target_set_syscall_catchpoint): Add argument.
13626 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13628 * target.c (update_current_target): Update.
13630 2014-02-19 Tom Tromey <tromey@redhat.com>
13632 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13634 (target_remove_exec_catchpoint): Add argument.
13635 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13636 (update_current_target): Update.
13637 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13640 2014-02-19 Tom Tromey <tromey@redhat.com>
13642 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13644 (target_insert_exec_catchpoint): Add argument.
13645 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13646 (update_current_target): Update.
13647 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13650 2014-02-19 Tom Tromey <tromey@redhat.com>
13652 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13654 (target_remove_vfork_catchpoint): Add argument.
13655 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13656 (update_current_target): Update.
13657 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13660 2014-02-19 Tom Tromey <tromey@redhat.com>
13662 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13664 (target_insert_vfork_catchpoint): Add argument.
13665 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13666 (update_current_target): Update.
13667 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13670 2014-02-19 Tom Tromey <tromey@redhat.com>
13672 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13674 (target_remove_fork_catchpoint): Add argument.
13675 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13676 (update_current_target): Update.
13677 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13680 2014-02-19 Tom Tromey <tromey@redhat.com>
13682 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13684 (target_insert_fork_catchpoint): Add argument.
13685 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13686 (update_current_target): Update.
13687 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13690 2014-02-19 Tom Tromey <tromey@redhat.com>
13692 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13694 (target_post_startup_inferior): Add argument.
13695 * target.c (debug_to_post_startup_inferior): Add argument.
13696 (update_current_target): Update.
13697 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13699 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13701 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13703 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13705 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13707 (super_post_startup_inferior): Likewise.
13708 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13710 (super_post_startup_inferior): Likewise.
13711 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13712 Add 'self' argument.
13713 (super_post_startup_inferior): Likewise.
13715 2014-02-19 Tom Tromey <tromey@redhat.com>
13717 * target.h (struct target_ops) <to_load>: Add argument.
13718 * target.c (target_load): Add argument.
13719 (debug_to_load): Add argument.
13720 (update_current_target): Update.
13721 * remote.c (remote_load): Add 'self' argument.
13722 * remote-sim.c (gdbsim_load): Add 'self' argument.
13723 * remote-mips.c (mips_load): Add 'self' argument.
13724 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13725 * monitor.c (monitor_load): Add 'self' argument.
13726 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13728 2014-02-19 Tom Tromey <tromey@redhat.com>
13730 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13731 (target_terminal_info): Add argument.
13732 * target.c (debug_to_terminal_info): Add argument.
13733 (default_terminal_info): Likewise.
13734 * inflow.c (child_terminal_info): Add 'self' argument.
13735 * inferior.h (child_terminal_info): Add 'self' argument.
13736 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13738 2014-02-19 Tom Tromey <tromey@redhat.com>
13740 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13742 (target_terminal_save_ours): Add argument.
13743 * target.c (debug_to_terminal_save_ours): Add argument.
13744 (update_current_target): Update.
13745 * inflow.c (terminal_save_ours): Add 'self' argument.
13746 * inferior.h (terminal_save_ours): Add 'self' argument.
13748 2014-02-19 Tom Tromey <tromey@redhat.com>
13750 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13751 (target_terminal_ours): Add argument.
13752 * target.c (debug_to_terminal_ours): Add argument.
13753 (update_current_target): Update.
13754 * remote.c (remote_terminal_ours): Add 'self' argument.
13755 (remote_close): Update.
13756 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13757 * inflow.c (terminal_ours): Add 'self' argument.
13758 * inferior.h (terminal_ours): Add 'self' argument.
13759 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13761 2014-02-19 Pedro Alves <palves@redhat.com>
13762 Tom Tromey <tromey@redhat.com>
13764 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13766 (target_terminal_ours_for_output): Add argument.
13767 * target.c (debug_to_terminal_ours_for_output): Add argument.
13768 (update_current_target): Update.
13769 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13770 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13771 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13773 2014-02-19 Tom Tromey <tromey@redhat.com>
13775 * target.h (struct target_ops) <to_terminal_inferior>: Add
13777 * target.c (target_terminal_inferior): Add argument.
13778 (update_current_target): Update.
13779 * remote.c (remote_terminal_inferior): Add 'self' argument.
13780 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13781 * inflow.c (terminal_inferior): Add 'self' argument.
13782 * inferior.h (terminal_inferior): Add 'self' argument.
13783 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13784 (go32_terminal_inferior): Add 'self' argument.
13786 2014-02-19 Tom Tromey <tromey@redhat.com>
13788 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13789 (target_terminal_init): Add argument.
13790 * target.c (debug_to_terminal_init): Add argument.
13791 (update_current_target): Update.
13792 * inflow.c (terminal_init_inferior): Add 'self' argument.
13793 * inferior.h (terminal_init_inferior): Add 'self' argument.
13794 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13795 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13797 2014-02-19 Tom Tromey <tromey@redhat.com>
13799 * target.h (struct target_ops)
13800 <to_can_accel_watchpoint_condition>: Add argument.
13801 (target_can_accel_watchpoint_condition): Add argument.
13802 * target.c (debug_to_can_accel_watchpoint_condition): Add
13804 (update_current_target): Update.
13805 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13808 2014-02-19 Tom Tromey <tromey@redhat.com>
13810 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13812 (target_region_ok_for_hw_watchpoint): Add argument.
13813 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13814 (default_region_ok_for_hw_watchpoint): Add argument.
13815 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13816 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13818 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13820 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13822 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13824 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13826 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13828 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13829 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13831 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13832 Add 'self' argument.
13834 2014-02-19 Tom Tromey <tromey@redhat.com>
13836 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13838 (target_insert_watchpoint): Add argument.
13839 * target.c (debug_to_insert_watchpoint): Add argument.
13840 (update_current_target): Update.
13841 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13842 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13843 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13844 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13845 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13846 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13848 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13849 (procfs_insert_hw_watchpoint): Add 'self' argument.
13850 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13852 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13854 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13856 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13857 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13859 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13862 2014-02-19 Tom Tromey <tromey@redhat.com>
13864 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13866 (target_remove_watchpoint): Add argument.
13867 * target.c (debug_to_remove_watchpoint): Add argument.
13868 (update_current_target): Update.
13869 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13870 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13871 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13872 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13873 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13874 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13876 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13877 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13879 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13881 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13883 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13884 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13886 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13889 2014-02-19 Tom Tromey <tromey@redhat.com>
13891 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13893 (target_remove_hw_breakpoint): Add argument.
13894 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13895 (update_current_target): Update.
13896 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13897 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13899 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13900 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13902 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13905 2014-02-19 Tom Tromey <tromey@redhat.com>
13907 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13909 (target_insert_hw_breakpoint): Add argument.
13910 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13911 (update_current_target): Update.
13912 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13913 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13915 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13916 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13917 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13919 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13922 2014-02-19 Tom Tromey <tromey@redhat.com>
13924 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13926 (target_can_use_hardware_watchpoint): Add argument.
13927 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13928 (update_current_target): Update.
13929 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13931 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13933 * remote.c (remote_check_watch_resources): Add 'self' argument.
13934 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13935 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13937 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13938 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13940 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13942 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13944 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13946 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13948 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13950 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13951 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13953 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13956 2014-02-19 Tom Tromey <tromey@redhat.com>
13958 * target.h (struct target_ops) <to_post_attach>: Add argument.
13959 (target_post_attach): Add argument.
13960 * target.c (debug_to_post_attach): Add argument.
13961 (update_current_target): Update.
13962 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13963 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13964 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13965 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13966 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13968 2014-02-19 Tom Tromey <tromey@redhat.com>
13970 * windows-nat.c (windows_close): Add 'self' argument.
13971 * tracepoint.c (tfile_close): Add 'self' argument.
13972 * target.h (struct target_ops) <to_close>: Add argument.
13973 * target.c (target_close): Add argument.
13974 (update_current_target): Update.
13975 * remote.c (remote_close): Add 'self' argument.
13976 * remote-sim.c (gdbsim_close): Add 'self' argument.
13977 * remote-mips.c (mips_close): Add 'self' argument.
13978 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13979 * record-full.c (record_full_close): Add 'self' argument.
13980 * record-btrace.c (record_btrace_close): Add 'self' argument.
13981 * monitor.h (monitor_close): Add 'self' argument.
13982 * monitor.c (monitor_close): Add 'self' argument.
13983 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13984 * linux-nat.c (linux_nat_close): Add argument.
13985 * go32-nat.c (go32_close): Add 'self' argument.
13986 * exec.c (exec_close_1): Add 'self' argument.
13987 * ctf.c (ctf_close): Add 'self' argument.
13988 * corelow.c (core_close): Add 'self' argument.
13989 (core_close_cleanup): Update.
13990 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13991 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13993 2014-02-19 Tom Tromey <tromey@redhat.com>
13995 * remote.c (remote_load): New function.
13996 (init_remote_ops): Use it.
13998 2014-02-19 Tom Tromey <tromey@redhat.com>
14000 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
14002 * common/linux-btrace.h (linux_supports_btrace): Update.
14003 * remote.c (remote_supports_btrace): Add "self" argument.
14004 * target-delegates.c: Rebuild.
14005 * target.c (target_supports_btrace): Remove.
14006 * target.h (struct target_ops) <to_supports_btrace>: Add
14007 target_ops argument.
14008 (target_supports_btrace): New define.
14010 2014-02-19 Tom Tromey <tromey@redhat.com>
14012 * record-full.c (record_full_beneath_to_resume_ops)
14013 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
14014 (record_full_beneath_to_wait)
14015 (record_full_beneath_to_store_registers_ops)
14016 (record_full_beneath_to_store_registers)
14017 (record_full_beneath_to_xfer_partial_ops)
14018 (record_full_beneath_to_xfer_partial)
14019 (record_full_beneath_to_insert_breakpoint_ops)
14020 (record_full_beneath_to_insert_breakpoint)
14021 (record_full_beneath_to_remove_breakpoint_ops)
14022 (record_full_beneath_to_remove_breakpoint)
14023 (record_full_beneath_to_stopped_by_watchpoint)
14024 (record_full_beneath_to_stopped_data_address)
14025 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
14026 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
14027 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
14028 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
14029 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
14030 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
14031 (tmp_to_stopped_data_address, tmp_to_async): Remove.
14032 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
14033 (record_full_resume, record_full_wait_1)
14034 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
14035 (record_full_store_registers, record_full_xfer_partial)
14036 (record_full_insert_breakpoint, record_full_remove_breakpoint)
14037 (record_full_async, record_full_core_xfer_partial): Use target
14039 * target-delegates.c: Rebuild.
14040 * target.c (current_xfer_partial): Remove.
14041 (update_current_target): Do not INHERIT or de_fault
14042 to_insert_breakpoint, to_remove_breakpoint,
14043 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
14044 to_is_async_p, to_async. Do not set to_xfer_partial field.
14045 (default_xfer_partial): Simplify.
14046 (current_xfer_partial): Remove.
14047 (target_wait, target_resume): Simplify.
14048 (find_default_can_async_p, find_default_is_async_p): Update.
14049 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
14050 to_xfer_partial, to_stopped_by_watchpoint,
14051 to_stopped_data_address.
14052 (target_store_registers): Simplify.
14053 (forward_target_remove_breakpoint)
14054 (forward_target_insert_breakpoint): Remove.
14055 (target_remove_breakpoint, target_insert_breakpoint)
14056 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
14057 * target.h (struct target_ops) <to_resume, to_wait,
14058 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
14059 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
14060 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
14062 (forward_target_remove_breakpoint)
14063 (forward_target_insert_breakpoint): Remove.
14064 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
14066 (record_btrace_insert_breakpoint): Delegate directly.
14068 2014-02-19 Tom Tromey <tromey@redhat.com>
14071 * target-delegates.c: New file.
14072 * target.c: Include target-delegates.c.
14073 (init_dummy_target): Call install_dummy_methods.
14074 (complete_target_initialization): Call install_delegators.
14075 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
14076 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
14077 * make-target-delegates: New file.
14079 2014-02-19 Tom Tromey <tromey@redhat.com>
14081 * record.c (find_record_target): Use find_target_at.
14082 * target.c (find_target_at): New function.
14083 * target.h (find_target_at): Declare.
14085 2014-02-19 Tom Tromey <tromey@redhat.com>
14087 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
14088 Add 'ops' argument.
14089 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
14091 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
14092 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
14094 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
14096 * linux-nat.c (save_sigtrap): Update.
14097 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
14098 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
14099 (linux_nat_close): Update.
14100 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
14102 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
14104 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
14105 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
14106 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
14107 (tmp_to_async): Add 'ops' argument.
14108 (record_full_stopped_by_watchpoint, record_full_async)
14109 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
14111 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
14112 (m32r_stopped_by_watchpoint): Add 'ops' argument.
14113 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
14114 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
14115 (remote_is_async_p, remote_async): Add 'ops' argument.
14116 (remote_stopped_data_address): Update.
14117 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
14118 * target.c (update_current_target)
14119 (find_default_can_async_p, find_default_is_async_p): Update.
14120 (init_dummy_target): Update.
14121 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
14122 * target.h (struct target_ops) <to_stopped_by_watchpoint,
14123 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
14124 (target_can_async_p, target_is_async_p, target_async)
14125 (target_stopped_by_watchpoint): Update.
14127 2014-02-19 Yao Qi <yao@codesourcery.com>
14130 * gdbarch.sh: Remove startup_gdbarch.
14131 * gdbarch.c: Regenerated.
14132 * gdbarch.h: Likewise.
14134 2014-02-17 Kevin Buettner <kevinb@redhat.com>
14136 * rl78-tdep.c (rl78_g10_register_name): New function.
14137 (rl78_return_value): Add g10 support.
14138 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14141 2014-02-17 Doug Evans <xdje42@gmail.com>
14143 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14144 (SUBDIR_GUILE_SRCS): Ditto.
14145 (scm-gsmob.o): Ditto.
14147 2014-02-17 Yao Qi <yao@codesourcery.com>
14149 * gnu-nat.c (ILL_RPC): Declare defined function.
14151 2014-02-17 Yao Qi <yao@codesourcery.com>
14153 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14154 mach_msg_type_number_t.
14155 (gnu_write_inferior): Likewise.
14157 2014-02-17 Yao Qi <yao@codesourcery.com>
14159 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14161 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14162 (inf_validate_procs, inf_signal): Likewise.
14163 (S_exception_raise_request): Likewise.
14164 (do_mach_notify_dead_name): Likewise.
14165 (steal_exc_port): Likewise.
14166 (gnu_read_inferior): Change 'copy_count''s type to
14167 mach_msg_type_number_t.
14168 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14171 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14173 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14174 flag. Adjust all users; in particular...
14175 (gnu_wait): ..., don't decrement its value in here...
14176 (gnu_create_inferior): ..., and instead set the flag in here,
14177 around the startup_inferior call, and call that one with
14178 START_INFERIOR_TRAPS_EXPECTED.
14180 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14181 (ILL_RPC): ... new macro.
14182 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14183 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14184 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14185 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14186 functions with ILL_RPC macro.
14187 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14188 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14189 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14190 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14191 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14192 (S_proc_getlogin_reply, S_proc_getsid_reply)
14193 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14194 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14195 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14196 (S_proc_getnports_reply, S_proc_is_important_reply)
14197 (S_proc_get_code_reply): New stub functions, generated with
14200 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14201 collected the type check structures.
14203 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14205 2014-02-14 Doug Evans <dje@google.com>
14207 * target.c (target_write_partial): Fix result type.
14209 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14211 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14212 the proper offsets to access fpregset_t.
14214 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14216 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14217 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14218 * h8300-tdep.c (setmachinelist): Remove global.
14219 * hppa-tdep.c (hppa_sigtramp): Remove global.
14220 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14221 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14222 * ravenscar-thread.c (update_target_observer): Remove global.
14223 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14225 2014-02-12 Tom Tromey <tromey@redhat.com>
14227 * common/rsp-low.c: Update comments.
14228 * common/rsp-low.h: Update comments.
14230 2014-02-12 Tom Tromey <tromey@redhat.com>
14232 * common/rsp-low.c (convert_ascii_to_int): Remove.
14233 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14235 2014-02-12 Tom Tromey <tromey@redhat.com>
14237 * common/rsp-low.h (unhexify): Don't declare.
14238 * common/rsp-low.c (unhexify): Remove.
14240 2014-02-12 Tom Tromey <tromey@redhat.com>
14242 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14243 * common/rsp-low.c (convert_int_to_ascii): Remove.
14245 2014-02-12 Tom Tromey <tromey@redhat.com>
14247 * common/rsp-low.h (hexify): Don't declare.
14248 * common/rsp-low.c (hexify): Remove.
14250 2014-02-12 Tom Tromey <tromey@redhat.com>
14252 * common/rsp-low.c (hexify): Never take strlen of argument.
14254 2014-02-12 Tom Tromey <tromey@redhat.com>
14256 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14257 * remote.c (extended_remote_run, remote_rcmd)
14258 (remote_download_trace_state_variable, remote_save_trace_data)
14259 (remote_set_trace_notes): Update.
14260 * tracepoint.c (encode_source_string, tfile_write_status)
14261 (tfile_write_uploaded_tsv): Update.
14263 2014-02-12 Tom Tromey <tromey@redhat.com>
14265 * tracepoint.c: Include rsp-low.h.
14266 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14267 * remote.c: Include rsp-low.h.
14268 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14269 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14270 (remote_unescape_input): Move to common/rsp-low.c.
14271 * common/rsp-low.h: New file.
14272 * common/rsp-low.c: New file.
14273 * Makefile.in (SFILES): Add common/rsp-low.c.
14274 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14275 (COMMON_OBS): Add rsp-low.o.
14276 (rsp-low.o): New target.
14278 2014-02-12 Tom Tromey <tromey@redhat.com>
14280 * utils.h: Include print-utils.h.
14281 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14282 (int_string, core_addr_to_string, core_addr_to_string_nz)
14283 (hex_string, hex_string_custom): Don't declare.
14284 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14285 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14286 (hex_string_custom, int_string, core_addr_to_string)
14287 (core_addr_to_string_nz, host_address_to_string): Move to
14288 common/print-utils.c.
14289 * common/print-utils.h: New file.
14290 * common/print-utils.c: New file
14291 * Makefile.in (SFILES): Add common/print-utils.c.
14292 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14293 (COMMON_OBS): Add print-utils.o.
14294 (print-utils.o): New target.
14296 2014-02-12 Tom Tromey <tromey@redhat.com>
14298 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14300 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14302 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14304 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14306 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14307 if a PT_IO ptrace request returns sucessfully but indicates that 0
14308 bytes were transferred.
14310 2014-02-12 Pedro Alves <palves@redhat.com>
14311 Kevin Buettner <kevinb@redhat.com>
14313 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14314 TYPE_INSTANCE_FLAG_CODE_SPACE.
14316 2014-02-12 Pedro Alves <palves@redhat.com>
14318 * h8300-tdep.c (pseudo_from_raw_register)
14319 (raw_from_pseudo_register): New functions.
14320 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14323 2014-02-12 Pedro Alves <palves@redhat.com>
14325 * h8300-tdep.c (h8300_register_sim_regno): New function.
14326 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14327 gdbarch_register_sim_regno hook.
14329 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14331 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14333 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14335 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14337 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14339 * obsd-tdep.h (obsd_init_abi): New prototype.
14340 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14341 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14342 (obsd_init_abi): New functions.
14343 * i386obsd-tdep.c: Include "obsd-tdep.h".
14344 (i386obsd_init_abi): Call obsd_init_abi.
14345 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14346 (amd64obsd_init_abi): Call obsd_init_abi.
14347 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14348 obsd-tdep.c to gdb_target_obs.
14350 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14352 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14353 double float arguments to 16-byte in the argument slots.
14355 2014-02-11 Doug Evans <xdje42@gmail.com>
14357 * configure.ac: Don't crash if pkg-config is not found and guile
14358 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14360 * configure: Regenerate.
14362 2014-02-11 Yao Qi <yao@codesourcery.com>
14364 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14365 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14366 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14367 * gnu-nat.c (gnu_xfer_memory): Likewise.
14368 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14369 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14370 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14371 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14373 2014-02-11 Yao Qi <yao@codesourcery.com>
14375 * target.h (enum target_xfer_error): Rename to ...
14376 (enum target_xfer_status): ... it. New. All users updated.
14377 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14379 (TARGET_XFER_STATUS_ERROR_P): New macro.
14380 (target_xfer_error_to_string): Remove declaration.
14381 (target_xfer_status_to_string): Declare.
14382 (target_xfer_partial_ftype): Adjust it.
14383 (struct target_ops) <to_xfer_partial>: Return
14384 target_xfer_status. Add argument xfered_len. Update
14386 * target.c (target_xfer_error_to_string): Rename to ...
14387 (target_xfer_status_to_string): ... it. New. All callers
14389 (target_read_live_memory): Likewise. Call target_xfer_partial
14390 instead of target_read.
14391 (memory_xfer_live_readonly_partial): Return
14392 target_xfer_status. Add argument xfered_len.
14393 (raw_memory_xfer_partial): Likewise.
14394 (memory_xfer_partial_1): Likewise.
14395 (memory_xfer_partial): Likewise.
14396 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14397 properly. Update debug message.
14398 (default_xfer_partial, current_xfer_partial): Likewise.
14399 (target_write_partial): Likewise.
14400 (target_read_partial): Likewise. All callers updated.
14401 (read_whatever_is_readable): Likewise.
14402 (target_write_with_progress): Likewise.
14403 (target_read_alloc_1): Likewise.
14405 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14406 * auxv.c (procfs_xfer_auxv): Likewise.
14407 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14408 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14409 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14410 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14411 * corefile.c (read_memory): Adjust.
14412 * corelow.c (core_xfer_partial): Likewise.
14413 * ctf.c (ctf_xfer_partial): Likewise.
14414 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14416 (darwin_xfer_partial): Likewise.
14417 * exec.c (section_table_xfer_memory_partial): Likewise. All
14419 (exec_xfer_partial): Likewise.
14420 * exec.h (section_table_xfer_memory_partial): Update
14422 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14424 (gnu_xfer_partial): Likewise.
14425 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14426 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14427 (ia64_hpux_xfer_solib_got): Likewise.
14428 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14429 type of 'partial_len' to ULONGEST.
14430 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14431 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14432 (linux_nat_xfer_partial): Likewise.
14433 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14434 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14435 * monitor.c (monitor_xfer_memory): Likewise.
14436 (monitor_xfer_partial): Likewise.
14437 * procfs.c (procfs_xfer_partial): Likewise.
14438 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14439 * record-full.c (record_full_xfer_partial): Likewise.
14440 (record_full_core_xfer_partial): Likewise.
14441 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14442 (gdbsim_xfer_partial): Likewise.
14443 * remote.c (remote_write_bytes_aux): Likewise. All callers
14445 (remote_write_bytes, remote_read_bytes): Likewise. All
14447 (remote_flash_erase): Likewise. All callers updated.
14448 (remote_write_qxfer): Likewise. All callers updated.
14449 (remote_read_qxfer): Likewise. All callers updated.
14450 (remote_xfer_partial): Likewise.
14451 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14452 (rs6000_xfer_shared_libraries): Likewise.
14453 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14454 (sol_thread_xfer_partial): Likewise.
14455 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14456 (sparc_xfer_partial): Likewise.
14457 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14459 (spu_xfer_partial): Likewise.
14460 * spu-multiarch.c (spu_xfer_partial): Likewise.
14461 * tracepoint.c (tfile_xfer_partial): Likewise.
14462 * windows-nat.c (windows_xfer_memory): Likewise.
14463 (windows_xfer_shared_libraries): Likewise.
14464 (windows_xfer_partial): Likewise.
14465 * valprint.c: Replace 'target_xfer_error' with
14466 'target_xfer_status' in comments.
14468 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14470 Checked in by Joel Brobecker <brobecker@adacore.com>.
14471 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14473 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14475 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14476 function parameters.
14478 2014-02-10 Will Newton <will.newton@linaro.org>
14480 * elfread.c (elf_rel_plt_read): Look for a .got section if
14481 looking up .got.plt fails.
14482 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14483 on address passed to elf_gnu_ifunc_record_cache.
14484 (elf_gnu_ifunc_resolve_addr): Likewise.
14485 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14487 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14489 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14490 (X_RETTURN): New macro.
14491 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14493 * sparc64-tdep.c (sparc64_init_abi): Hook
14494 sparc_in_function_epilogue_p.
14496 2014-02-10 Gary Benson <gbenson@redhat.com>
14498 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14499 Rename name_matcher to symbol_matcher.
14501 2014-02-10 Gary Benson <gbenson@redhat.com>
14503 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14504 Use expand_symtabs_file_matcher_ftype and
14505 expand_symtabs_symbol_matcher_ftype.
14507 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14509 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14510 (struct ada_symbol_cache): New.
14511 (ada_free_symbol_cache): Forward declare.
14512 (struct ada_pspace_data): New.
14513 (ada_pspace_data_handle): New static global.
14514 (get_ada_pspace_data, ada_pspace_data_cleanup)
14515 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14516 (cache_space, cache): Delete, now folded inside struct
14518 (ada_get_symbol_cache): New function.
14519 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14521 (_initialize_ada_language): Remove initialization of cache_space.
14522 Move call to observer_attach_inferior_exit up, grouping it
14523 with the other observer registrations inside this function.
14524 Rename command to be more general. Add call to
14525 register_program_space_data_with_cleanup.
14527 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14529 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14530 ada_new_objfile_observer.
14531 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14532 (_initialize_tasks): Update uses of ada_new_objfile_observer
14533 and ada_tasks_normal_stop_observer.
14535 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14537 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14538 returned by the 'Length attribute to integer.
14540 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14542 * ada-lang.c (_initialize_ada_language): Initialize
14543 cache_space obstack.
14545 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14547 * ada-lang.c (HASH_SIZE): New macro.
14548 (struct cache_entry): New type.
14549 (cache_space, cache): New static globals.
14550 (ada_clear_symbol_cache, find_entry): New functions.
14551 (lookup_cached_symbol, cache_symbol): Implement.
14552 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14553 (_initialize_ada_language): Attach ada_new_objfile_observer
14554 and ada_free_objfile_observer.
14556 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14558 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14559 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14560 struct block * parameter.
14561 (ada_lookup_symbol_list_worker): Constify local variable "block".
14562 Remove cast which is no longer necessary.
14564 2014-02-10 Doug Evans <xdje42@gmail.com>
14566 Add Guile as an extension language.
14567 * NEWS: Mention Guile scripting.
14568 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14569 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14570 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14571 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14572 (CLIBS): Add GUILE_LIBS.
14573 (install-guile): New rule.
14574 (guile.o): New rule.
14575 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14576 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14577 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14578 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14579 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14580 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14581 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14582 * configure.ac: New option --with-guile.
14583 * configure: Regenerate.
14584 * config.in: Regenerate.
14585 * auto-load.c: Remove #include "python/python.h". Add #include
14586 "gdb/section-scripts.h".
14587 (source_section_scripts): Handle Guile scripts.
14588 (_initialize_auto_load): Add name of Guile objfile script to
14589 scripts-directory help text.
14590 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14591 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14592 (struct breakpoint): New member scm_bp_object.
14593 * defs.h (enum command_control_type): New value guile_control.
14594 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14596 (show_user): Update comment.
14597 (_initialize_cli_cmds): Update help text for "show user". Update help
14598 text for max-user-call-depth.
14599 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14601 (multi_line_command_p): Add guile_control.
14602 (print_command_lines): Handle guile_control.
14603 (execute_control_command, recurse_read_control_structure): Ditto.
14604 (process_next_line): Recognize "guile" commands.
14605 * disasm.c (gdb_disassemble_info): Make non-static.
14606 * disasm.h: #include "dis-asm.h".
14607 (struct gdbarch): Add forward decl.
14608 (gdb_disassemble_info): Declare.
14609 * extension.c: #include "guile/guile.h".
14610 (extension_languages): Add guile.
14611 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14612 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14613 * gdbtypes.c (get_unsigned_type_max): New function.
14614 (get_signed_type_minmax): New function.
14615 * gdbtypes.h (get_unsigned_type_max): Declare.
14616 (get_signed_type_minmax): Declare.
14617 * guile/README: New file.
14618 * guile/guile-internal.h: New file.
14619 * guile/guile.c: New file.
14620 * guile/guile.h: New file.
14621 * guile/scm-arch.c: New file.
14622 * guile/scm-auto-load.c: New file.
14623 * guile/scm-block.c: New file.
14624 * guile/scm-breakpoint.c: New file.
14625 * guile/scm-disasm.c: New file.
14626 * guile/scm-exception.c: New file.
14627 * guile/scm-frame.c: New file.
14628 * guile/scm-gsmob.c: New file.
14629 * guile/scm-iterator.c: New file.
14630 * guile/scm-lazy-string.c: New file.
14631 * guile/scm-math.c: New file.
14632 * guile/scm-objfile.c: New file.
14633 * guile/scm-ports.c: New file.
14634 * guile/scm-pretty-print.c: New file.
14635 * guile/scm-safe-call.c: New file.
14636 * guile/scm-string.c: New file.
14637 * guile/scm-symbol.c: New file.
14638 * guile/scm-symtab.c: New file.
14639 * guile/scm-type.c: New file.
14640 * guile/scm-utils.c: New file.
14641 * guile/scm-value.c: New file.
14642 * guile/lib/gdb.scm: New file.
14643 * guile/lib/gdb/boot.scm: New file.
14644 * guile/lib/gdb/experimental.scm: New file.
14645 * guile/lib/gdb/init.scm: New file.
14646 * guile/lib/gdb/iterator.scm: New file.
14647 * guile/lib/gdb/printing.scm: New file.
14648 * guile/lib/gdb/types.scm: New file.
14649 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14650 (VPATH): Add $(GUILE_SRCDIR).
14651 (GUILE_DIR): New variable.
14652 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14653 (all): Add stamp-guile dependency.
14654 (stamp-guile): New rule.
14655 (clean-guile, install-guile, uninstall-guile): New rules.
14656 (install-only): Add install-guile dependency.
14657 (uninstall): Add uninstall-guile dependency.
14658 (clean): Add clean-guile dependency.
14660 2014-02-09 Doug Evans <xdje42@gmail.com>
14662 Revert this patch (which I approved, mea culpa).
14664 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14666 * Makefile.in (all-lib): Remove.
14667 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14669 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14671 Fix Python stack corruption.
14672 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14675 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14677 * Makefile.in (all-lib): Remove.
14678 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14680 2014-02-07 Doug Evans <dje@google.com>
14682 * extension-priv.h (extension_language_script_ops): Add comment.
14683 (extension_language_ops): Add comment.
14684 (active_ext_lang_state): Fix typo in comment.
14686 2014-02-07 Pedro Alves <palves@redhat.com>
14688 PR breakpoints/16292
14689 * infrun.c (handle_signal_stop) <signal arrives while stepping
14690 over a breakpoint>: Switch back to the stepping thread.
14692 2014-02-07 Yao Qi <yao@codesourcery.com>
14694 * target.c (target_xfer_partial): Return zero if LEN is zero.
14696 2014-02-07 Yao Qi <yao@codesourcery.com>
14698 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14699 (ld_so_xfer_auxv): Likewise.
14700 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14701 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14702 * corelow.c (core_xfer_partial): Likewise.
14703 * ctf.c (ctf_xfer_partial): Likewise.
14704 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14705 (darwin_xfer_partial): Likewise.
14706 * exec.c (exec_xfer_partial): Likewise.
14707 * gnu-nat.c (gnu_xfer_partial): Likewise.
14708 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14709 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14710 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14711 * linux-nat.c (linux_xfer_siginfo): Likewise.
14712 (linux_proc_xfer_spu): Likewise.
14713 * procfs.c (procfs_xfer_partial): Likewise.
14714 * record-full.c (record_full_xfer_partial): Likewise.
14715 (record_full_core_xfer_partial): Likewise.
14716 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14717 * remote.c (remote_write_qxfer): Likewise.
14718 (remote_write_qxfer, remote_read_qxfer): Likewise.
14719 (remote_xfer_partial): Likewise.
14720 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14721 (rs6000_xfer_shared_libraries): Likewise.
14722 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14723 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14724 (spu_xfer_partial): Likewise.
14725 * target.c (memory_xfer_partial_1): Likewise.
14726 * tracepoint.c (tfile_xfer_partial): Likewise.
14727 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14728 (windows_xfer_partial): Likewise.
14730 2014-02-07 Yao Qi <yao@codesourcery.com>
14732 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14734 (core_xfer_shared_libraries_aix): Likewise.
14735 * gdbarch.c, gdbarch.h: Regenerated.
14736 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14737 ULONGEST. Change 'len_avail' type to ULONGEST.
14738 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14739 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14741 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14743 2014-02-07 Yao Qi <yao@codesourcery.com>
14745 * corefile.c (memory_error): Get 'exception' from ERR and pass
14746 'exception' to throw_error.
14748 2014-02-06 Doug Evans <xdje42@gmail.com>
14750 * configure.ac (libpython checking): Remove all but python.o from
14751 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14752 * configure: Regenerate.
14754 * Makefile.in (SFILES): Add extension.c.
14755 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14756 (COMMON_OBS): Add extension.o.
14757 * extension.h: New file.
14758 * extension-priv.h: New file.
14759 * extension.c: New file.
14761 * python/python-internal.h: #include "extension.h".
14762 (gdbpy_auto_load_enabled): Declare.
14763 (gdbpy_apply_val_pretty_printer): Declare.
14764 (gdbpy_apply_frame_filter): Declare.
14765 (gdbpy_preserve_values): Declare.
14766 (gdbpy_breakpoint_cond_says_stop): Declare.
14767 (gdbpy_breakpoint_has_cond): Declare.
14768 (void source_python_script_for_objfile): Delete.
14769 * python/python.c: #include "extension-priv.h".
14770 Delete inclusion of "observer.h".
14771 (extension_language_python): Moved here and renamed from
14772 script_language_python in py-auto-load.c.
14773 Redefined to be of type extension_language_defn.
14774 (python_extension_script_ops): New global.
14775 (python_extension_ops): New global.
14776 (struct python_env): New member previous_active.
14777 (restore_python_env): Call restore_active_ext_lang.
14778 (ensure_python_env): Call set_active_ext_lang.
14779 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14781 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14783 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14785 (gdbpy_eval_from_control_command): Renamed from
14786 eval_python_from_control_command, made static. New arg extlang.
14787 (gdbpy_source_script) Renamed from source_python_script, made static.
14789 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14790 result to int. New arg extlang.
14791 (gdbpy_source_objfile_script): Renamed from
14792 source_python_script_for_objfile, made static. New arg extlang.
14793 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14794 static. New args extlang, extlang_printers. Change result type to
14796 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14797 static. New arg extlang. Rename arg printers to extlang_printers
14798 and change type to ext_lang_type_printers *.
14799 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14800 static. Replace argument arg with extlang, extlang_printers.
14801 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14802 (!HAVE_PYTHON, source_python_script): Delete.
14803 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14804 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14805 (!HAVE_PYTHON, start_type_printers): Delete.
14806 (!HAVE_PYTHON, apply_type_printers): Delete.
14807 (!HAVE_PYTHON, free_type_printers): Delete.
14808 (_initialize_python): Delete call to observer_attach_before_prompt.
14809 (finalize_python): Set/restore active extension language.
14810 (gdbpy_finish_initialization) Renamed from
14811 finish_python_initialization, made static. New arg extlang.
14812 (gdbpy_initialized): New function.
14813 * python/python.h: #include "extension.h". Delete #include
14814 "value.h", "mi/mi-cmds.h".
14815 (extension_language_python): Declare.
14816 (GDBPY_AUTO_FILE_NAME): Delete.
14817 (enum py_bt_status): Moved to extension.h and renamed to
14818 ext_lang_bt_status.
14819 (enum frame_filter_flags): Moved to extension.h.
14820 (enum py_frame_args): Moved to extension.h and renamed to
14821 ext_lang_frame_args.
14822 (finish_python_initialization): Delete.
14823 (eval_python_from_control_command): Delete.
14824 (source_python_script): Delete.
14825 (apply_val_pretty_printer): Delete.
14826 (apply_frame_filter): Delete.
14827 (preserve_python_values): Delete.
14828 (gdbpy_script_language_defn): Delete.
14829 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14830 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14832 * auto-load.c: #include "extension.h".
14833 (GDB_AUTO_FILE_NAME): Delete.
14834 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14835 (script_language_gdb): Delete, moved to extension.c and renamed to
14836 extension_language_gdb.
14837 (source_gdb_script_for_objfile): Delete.
14838 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14839 (loaded_script): Change type of language member to
14840 struct extension_language_defn *.
14841 (init_loaded_scripts_info): Initialize
14842 unsupported_script_warning_printed.
14843 (maybe_add_script): Make static. Change type of language arg to
14844 struct extension_language_defn *.
14845 (clear_section_scripts): Reset unsupported_script_warning_printed.
14846 (auto_load_objfile_script_1): Rewrite to use extension language API.
14847 (auto_load_objfile_script): Make public. Remove support-compiled-in
14848 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14849 (source_section_scripts): Rewrite to use extension language API.
14850 (load_auto_scripts_for_objfile): Rewrite to use
14851 auto_load_scripts_for_objfile.
14852 (collect_matching_scripts_data): Change type of language member to
14853 struct extension_language_defn *.
14854 (auto_load_info_scripts): Change type of language arg to
14855 struct extension_language_defn *.
14856 (unsupported_script_warning_print): New function.
14857 (script_not_found_warning_print): Make static.
14858 (_initialize_auto_load): Rewrite construction of scripts-directory
14860 * auto-load.h (struct objfile): Add forward decl.
14861 (struct script_language): Delete.
14862 (struct auto_load_pspace_info): Add forward decl.
14863 (struct extension_language_defn): Add forward decl.
14864 (maybe_add_script): Delete.
14865 (auto_load_objfile_script): Declare.
14866 (script_not_found_warning_print): Delete.
14867 (auto_load_info_scripts): Update prototype.
14868 (auto_load_gdb_scripts_enabled): Declare.
14869 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14870 auto_load_python_scripts_enabled and made public.
14871 (script_language_python): Delete, moved to python.c.
14872 (gdbpy_script_language_defn): Delete.
14873 (info_auto_load_python_scripts): Update to use
14874 extension_language_python.
14876 * breakpoint.c (condition_command): Replace call to
14877 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14878 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14879 with call to breakpoint_ext_lang_cond_says_stop.
14880 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14881 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14882 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14883 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14885 (local_setattro): Print name of extension language with existing
14888 * valprint.c (val_print, value_print): Update to call
14889 apply_ext_lang_val_pretty_printer.
14890 * cp-valprint.c (cp_print_value): Update call to
14891 apply_ext_lang_val_pretty_printer.
14892 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14893 (gdbpy_apply_val_pretty_printer): Renamed from
14894 apply_val_pretty_printer. New arg extlang.
14895 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14897 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14898 extension language API.
14899 * cli/cli-script.c (execute_control_command): Update to call
14900 eval_ext_lang_from_control_command.
14902 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14903 enum ext_lang_bt_status values. Update call to
14904 apply_ext_lang_frame_filter.
14905 (mi_cmd_stack_list_locals): Ditto.
14906 (mi_cmd_stack_list_args): Ditto.
14907 (mi_cmd_stack_list_variables): Ditto.
14908 * mi/mi-main.c: Delete #include "python/python-internal.h".
14909 Add #include "extension.h".
14910 (mi_cmd_list_features): Replace reference to python internal variable
14911 gdb_python_initialized with call to ext_lang_initialized_p.
14913 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14914 Update to use enum ext_lang_frame_args. Update to call
14915 apply_ext_lang_frame_filter.
14916 * python/py-framefilter.c (extract_sym): Update to use enum
14917 ext_lang_bt_status.
14918 (extract_value, py_print_type, py_print_value): Ditto.
14919 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14920 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14921 (py_print_frame): Ditto.
14922 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14923 New arg extlang. Update to use enum ext_lang_bt_status.
14925 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14926 finish_python_initialization. Replace with call to
14927 finish_ext_lang_initialization.
14929 * typeprint.c (do_free_global_table): Update to call
14930 free_ext_lang_type_printers.
14931 (create_global_typedef_table): Update to call
14932 start_ext_lang_type_printers.
14933 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14934 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14935 (type_print_options): Change type of global_printers from "void *"
14936 to "struct ext_lang_type_printers *".
14938 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14939 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14940 (gdbpy_preserve_values): Renamed from preserve_python_values.
14942 (!HAVE_PYTHON, preserve_python_values): Delete.
14944 * utils.c (quit_flag): Delete, moved to extension.c.
14945 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14948 * eval.c: Delete #include "python/python.h".
14949 * main.c: Delete #include "python/python.h".
14951 * defs.h: Update comment.
14953 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14957 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14959 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14962 2014-02-05 Yao Qi <yao@codesourcery.com>
14964 * remote.c (remote_pass_signals): Remove local 'buf' and use
14966 (remote_program_signals): Likewise.
14968 2014-02-05 Yao Qi <yao@codesourcery.com>
14970 * ctf.c: Include "inferior.h" and "gdbthread.h".
14971 (CTF_PID): A new macro.
14972 (ctf_open): Call inferior_appeared and add_thread_silent.
14973 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14974 (ctf_thread_alive): New function.
14975 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14977 2014-02-05 Yao Qi <yao@codesourcery.com>
14981 2013-05-24 Yao Qi <yao@codesourcery.com>
14983 * tracepoint.c (TFILE_PID): Remove.
14984 (tfile_open): Don't add thread and inferior.
14985 (tfile_close): Don't set 'inferior_ptid'. Don't call
14986 exit_inferior_silent.
14987 (tfile_thread_alive): Remove.
14988 (init_tfile_ops): Don't set field 'to_thread_alive' of
14991 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14993 * remote.c (remote_start_remote): Call remote_check_symbols even
14994 if only symbol-file (not file) has been given.
14996 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14998 * gdbarch.sh (skip_entrypoint): New callback.
14999 * gdbarch.c, gdbarch.h: Regenerate.
15000 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
15001 * infrun.c (fill_in_stop_func): Likewise.
15002 * ppc-linux-tdep.c: Include "elf/ppc64.h".
15003 (ppc_elfv2_elf_make_msymbol_special): New function.
15004 (ppc_elfv2_skip_entrypoint): Likewise.
15005 (ppc_linux_init_abi): Install them for ELFv2.
15007 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15009 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
15010 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
15011 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
15012 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
15013 structures returned in GPRs.
15015 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15017 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
15018 offset to the stack parameter list for the ELFv2 ABI.
15020 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15022 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
15023 set_gdbarch_convert_from_func_ptr_addr and
15024 set_gdbarch_elf_make_msymbol_special for ELFv1.
15025 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
15026 function descriptors on ELFv1.
15027 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
15028 set up r12 at function entry.
15030 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15032 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
15033 (struct gdbarch_tdep): New member elf_abi.
15035 * rs6000-tdep.c: Include "elf/ppc64.h".
15036 (rs6000_gdbarch_init): Detect ELF ABI version.
15038 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15040 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
15041 within a register pair holding a DFP 128-bit value on little-endian.
15042 (ppc64_sysv_abi_return_value_base): Likewise.
15043 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
15044 (dfp_pseudo_register_write): Likewise.
15046 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15048 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
15049 offset on little-endian when passing _Decimal32.
15050 (ppc64_sysv_abi_return_value_base): Likewise for return values.
15052 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15054 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
15055 of the overlapped FP register within the VSX register on little-
15057 (efpr_pseudo_register_write): Likewise.
15059 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15061 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
15062 offset on little-endian when passing small structures.
15064 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15066 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
15067 (struct ppc64_sysv_argpos): New data structure.
15068 (ppc64_sysv_abi_push_float): Remove.
15069 (ppc64_sysv_abi_push_val): New function.
15070 (ppc64_sysv_abi_push_integer): Likewise.
15071 (ppc64_sysv_abi_push_freg): Likewise.
15072 (ppc64_sysv_abi_push_vreg): Likewise.
15073 (ppc64_sysv_abi_push_param): Likewise.
15074 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
15075 (ppc64_sysv_abi_return_value_base): New function.
15076 (ppc64_sysv_abi_return_value): Refactor to use it.
15078 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15080 * NEWS: Document new target powerpc64le-*-linux*.
15082 2014-02-04 Mark Kettenis <kettenis@gnu.org>
15084 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
15085 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
15087 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
15088 register set used in ELF core dumps. Add floating-point register set.
15090 2014-02-03 Kevin Buettner <kevinb@redhat.com>
15092 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
15093 dwarf2_to_gdb[] table using symbolic constants. Adjust
15094 penultimate entry from number representing the PC register
15095 to symbolic constant representing the MDR register. Add
15096 constant for the PC register to the end of the table.
15098 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15100 * bsd-kvm.c: Include <sys/param.h>
15102 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15104 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
15106 2014-01-31 Joel Brobecker <brobecker@adacore.com>
15108 * ada-lang.h (clear_ada_sym_cache): Delete.
15110 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
15112 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
15114 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
15116 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
15117 the sigreturn register save area only if the syscall is
15120 2014-01-29 Joel Brobecker <brobecker@adacore.com>
15122 * valops.c (value_slice): Minor reformatting.
15124 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
15126 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
15128 2014-01-28 Joel Brobecker <brobecker@adacore.com>
15130 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
15131 New static globals.
15132 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
15133 (ada_ignore_descriptive_types_p): New static global.
15134 (find_parallel_type_by_descriptive_type): Return immediately
15135 if ada_ignore_descriptive_types_p is set.
15136 (_initialize_ada_language): Register new commands "maintenance
15137 set ada", "maintenance show ada", "maintenance set ada
15138 ignore-descriptive-types" and "maintenance show ada
15139 ignore-descriptive-types".
15140 * NEWS: Add entry for new "maint ada set/show
15141 ignore-descriptive-types" commands.
15143 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15145 * record-btrace.c (record_btrace_close): Call btrace_teardown
15148 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15150 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15153 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15155 * ada-typeprint (type_is_full_subrange_of_target_type):
15157 (print_range): Add parameter bounds_prefered_p. If not set,
15158 try printing range types using the name of their base type.
15159 (print_range_type): Add parameter bounds_prefered_p.
15160 Use it in call to print_range.
15161 (print_array_type, ada_print_type): Update calls to print_range
15162 and print_range_type.
15164 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15166 * ada-typeprint.c (print_array_type, print_choices, print_range)
15167 (print_range_bound, print_dynamic_range_bound, print_range_type):
15168 Remove declaration.
15170 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15172 * ada-typeprint.c (print_range): Add missing empty line
15173 after local declaration.
15175 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15177 * ada-valprint.c (print_optional_low_bound): Get index_type's
15178 target type for as long as it is a TYPE_CODE_RANGE.
15180 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15182 * procfs.c (procfs_make_note_section): Remove assertion and
15183 associated comment.
15185 2014-01-24 Yao Qi <yao@codesourcery.com>
15187 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15188 * corelow.c (get_core_siginfo): Likewise.
15190 2014-01-24 Yao Qi <yao@codesourcery.com>
15192 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15193 ULONGEST. Don't check 'len' is negative.
15194 (remote_write_bytes): Change type of 'len' to ULONGEST.
15196 2014-01-23 Tom Tromey <tromey@redhat.com>
15199 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15200 Handle exception from frame.block.
15201 (FrameVars.fetch_frame_locals): Likewise.
15203 2014-01-23 Tom Tromey <tromey@redhat.com>
15206 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15207 on a NULL pointer. Move "goto error" to correct place.
15209 2014-01-23 Tom Tromey <tromey@redhat.com>
15212 * python/py-framefilter.c (apply_frame_filter): Call
15213 ensure_python_env after computing gdbarch.
15215 2014-01-23 Yao Qi <yao@codesourcery.com>
15217 * target.c (raw_memory_xfer_partial): Change argument type
15218 from void * to gdb_byte *.
15219 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15221 2014-01-22 Doug Evans <dje@google.com>
15223 New gdbserver option --debug-format=timestamp.
15224 * NEWS: Mention it.
15226 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15228 * syscalls/s390x-linux.xml: New file.
15229 * syscalls/s390-linux.xml: New file.
15230 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15231 (XML_SYSCALL_FILENAME_S390X): Likewise.
15232 (op_svc): New enum value for SVC opcode.
15233 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15234 (s390_linux_get_syscall_number): New function.
15235 (s390_gdbarch_init): Register '*get_syscall_number' and the
15236 syscall xml file name.
15237 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15238 "s390-linux.xml" and "s390x-linux.xml".
15239 * NEWS: Announce new feature.
15241 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15243 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15245 2014-01-22 Pedro Alves <palves@redhat.com>
15247 * xtensa-config.c: Include defs.h.
15249 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15251 * common/common-utils.h: Add "ARI:" comment beside __func__
15254 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15256 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15257 documentation a bit.
15259 2014-01-21 Roland McGrath <mcgrathr@google.com>
15261 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15262 * configure: Regenerate.
15263 * aclocal.m4: Regenerate.
15264 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15265 New substituted variables.
15266 (install-strip): New target.
15267 (INSTALL_SCRIPT): New substituted variable.
15268 (FLAGS_TO_PASS): Add it.
15269 (install-only): Use $(INSTALL_SCRIPT) rather than
15270 $(INSTALL_PROGRAM) for gcore.
15272 2014-01-20 Tom Tromey <tromey@redhat.com>
15274 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15277 2014-01-20 Tom Tromey <tromey@redhat.com>
15279 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15280 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15281 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15282 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15283 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15284 (struct cmd_list_element) <flags>: Remove.
15285 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15286 doc_allocated>: New fields.
15287 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15289 * maint.c (maintenance_do_deprecate): Update.
15290 * top.c (execute_command): Update.
15292 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15294 * xtensa-linux-nat.c: Include asm/ptrace.h.
15296 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15298 * Makefile.in (SFILES): Add d-support.c.
15299 (COMMON_OBS): Add d-support.o.
15300 * d-lang.h (d_parse_symbol): Add comment, now defined in
15302 * d-lang.c (parse_call_convention)
15303 (parse_attributes, parse_function_types)
15304 (parse_function_args, parse_type, parse_identifier)
15305 (call_convention_p, d_parse_symbol): Move functions to ...
15306 * d-support.c: ... New file.
15308 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15310 * d-lang.h (d_parse_symbol): Add declaration.
15311 * d-lang.c (extract_identifiers)
15312 (extract_type_info): Remove functions.
15313 (parse_call_convention, parse_attributes)
15314 (parse_function_types, parse_function_args)
15315 (parse_type, parse_identifier, call_convention_p)
15316 (d_parse_symbol): New functions.
15317 (d_demangle): Use d_parse_symbol to demangle D symbols.
15319 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15321 * d-lang.h (struct builtin_d_type): New data type.
15322 (builtin_d_type): Add declaration.
15323 * d-lang.c (d_language_arch_info, build_d_types)
15324 (builtin_d_type): New functions.
15325 (enum d_primitive_types): New data type.
15326 (d_language_defn): Change c_language_arch_info to
15327 d_language_arch_info.
15328 (d_type_data): New static variable.
15329 (_initialize_d_language): Initialize d_type_data.
15331 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15333 * d-lang.h (d_main_name): Add declaration.
15334 * d-lang.c (d_main_name): New function.
15335 * symtab.c (find_main_name): Add call to d_main_name.
15337 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15339 * d-lang.c (d_language_defn): Change macro_expansion_c to
15340 macro_expansion_no.
15342 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15344 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15346 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15348 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15349 gdb_exception" declaration.
15350 * remote.c (getpkt_or_notif_sane): Likewise.
15352 2014-01-17 Doug Evans <dje@google.com>
15354 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15355 function, contents of dirnames_to_char_ptr_vec_append moved here.
15356 (delim_string_to_char_ptr_vec): New function.
15357 (dirnames_to_char_ptr_vec_append): Rewrite.
15358 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15360 2014-01-17 Doug Evans <dje@google.com>
15362 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15364 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15365 #include "common-utils.h".
15366 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15367 * common/vec.h (VEC_ASSERT_PASS): Update.
15368 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15369 (MACH_CHECK_ERROR): Update.
15371 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15373 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15375 * gdbarch.h: Regenerate.
15377 2014-01-16 Tom Tromey <tromey@redhat.com>
15379 * value.c (struct value) <regnum>: Move earlier.
15381 2014-01-16 Tom Tromey <tromey@redhat.com>
15383 * remote.c (extended_remote_create_inferior): Rename from
15384 extended_remote_create_inferior_1. Add "ops" argument. Remove
15385 old implementation.
15387 2014-01-16 Pedro Alves <palves@redhat.com>
15389 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15390 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15393 2014-01-16 Doug Evans <dje@google.com>
15395 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15397 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15399 * btrace.h (btrace_thread_flag): New.
15400 (struct btrace_thread_info) <flags>: New.
15401 * record-btrace.c (record_btrace_resume_thread)
15402 (record_btrace_find_thread_to_move, btrace_step_no_history)
15403 (btrace_step_stopped, record_btrace_start_replaying)
15404 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15405 (record_btrace_find_resume_thread): New.
15406 (record_btrace_resume, record_btrace_wait): Extend.
15407 (record_btrace_can_execute_reverse): New.
15408 (record_btrace_open): Fail in non-stop mode.
15409 (record_btrace_set_replay): Split into this, ...
15410 (record_btrace_stop_replaying): ... this, ...
15411 (record_btrace_clear_histories): ... and this.
15412 (init_record_btrace_ops): Init to_can_execute_reverse.
15413 * NEWS: Announce it.
15415 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15417 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15418 (forward_target_decr_pc_after_break)
15419 (target_decr_pc_after_break): New.
15420 * target.c (forward_target_decr_pc_after_break)
15421 (target_decr_pc_after_break): New.
15422 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15423 instead of gdbarch_decr_pc_after_break.
15424 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15425 instead of gdbarch_decr_pc_after_break.
15426 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15427 instead of gdbarch_decr_pc_after_break.
15428 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15429 instead of gdbarch_decr_pc_after_break.
15430 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15431 instead of gdbarch_decr_pc_after_break.
15432 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15433 instead of gdbarch_decr_pc_after_break.
15435 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15437 * btrace.c: Include regcache.h.
15438 (btrace_add_pc): New.
15439 (btrace_enable): Call btrace_add_pc.
15440 (btrace_is_empty): New.
15441 * btrace.h (btrace_is_empty): New.
15442 * record-btrace.c (require_btrace, record_btrace_info): Call
15445 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15447 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15448 Support delta reads.
15449 (linux_disable_btrace): Change return type.
15450 * common/linux-btrace.h (linux_read_btrace): Change parameters
15451 and return type to allow error reporting. Update users.
15452 (linux_disable_btrace): Change return type. Update users.
15453 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15455 (btrace_error): New.
15456 (btrace_block) <begin>: Comment on BEGIN == 0.
15457 * btrace.c (btrace_compute_ftrace): Start from the end of
15459 (btrace_stitch_trace, btrace_clear_history): New.
15460 (btrace_fetch): Read delta trace, return if replaying.
15461 (btrace_clear): Move clear history code to btrace_clear_history.
15462 (parse_xml_btrace): Throw an error if parsing failed.
15463 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15464 and return type to allow error reporting.
15465 (target_read_btrace): Change parameters and return type to allow
15467 * target.c (target_read_btrace): Update.
15468 * remote.c (remote_read_btrace): Support delta reads. Pass
15470 * NEWS: Announce it.
15472 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15474 * record.h (record_btrace_frame_unwind)
15475 (record_btrace_tailcall_frame_unwind): New declarations.
15476 * dwarf2-frame: Include record.h
15477 (dwarf2_frame_cfa): Throw an error for btrace frames.
15478 * record-btrace.c: Include hashtab.h.
15479 (btrace_get_bfun_name): New.
15480 (btrace_call_history): Call btrace_get_bfun_name.
15481 (struct btrace_frame_cache): New.
15483 (bfcache_hash, bfcache_eq, bfcache_new): New.
15484 (btrace_get_frame_function): New.
15485 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15486 (record_btrace_frame_this_id): Compute own id.
15487 (record_btrace_frame_prev_register): Provide PC, throw_error
15488 for all other registers.
15489 (record_btrace_frame_sniffer): Detect btrace frames.
15490 (record_btrace_tailcall_frame_sniffer): New.
15491 (record_btrace_frame_dealloc_cache): New.
15492 (record_btrace_frame_unwind): Add new functions.
15493 (record_btrace_tailcall_frame_unwind): New.
15494 (_initialize_record_btrace): Allocate cache.
15495 * btrace.c (btrace_clear): Call reinit_frame_cache.
15496 * NEWS: Announce it.
15498 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15500 * record-btrace.c (record_btrace_set_replay)
15501 (record_btrace_goto_begin, record_btrace_goto_end)
15502 (record_btrace_goto): New.
15503 (init_record_btrace_ops): Initialize them.
15504 * NEWS: Announce it.
15506 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15508 * record-btrace.c (record_btrace_find_new_threads)
15509 (record_btrace_thread_alive): New.
15510 (init_record_btrace_ops): Initialize to_find_new_threads and
15513 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15515 * record-btrace.c (record_btrace_resume): New.
15516 (record_btrace_wait): New.
15517 (init_record_btrace_ops): Initialize to_wait and to_resume.
15519 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15521 * record-btrace.c (record_btrace_xfer_partial)
15522 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15523 (record_btrace_allow_memory_access): New.
15524 (init_record_btrace_ops): Initialize new methods.
15525 * target.c (raw_memory_xfer_partial): Bail out if target reports
15526 that this memory is not available.
15528 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15530 * target.h (target_ops) <to_insert_breakpoint>
15531 <to_remove_breakpoint>: Add target_ops parameter.
15532 (forward_target_insert_breakpoint): New.
15533 (forward_target_remove_breakpoint): New.
15534 (memory_remove_breakpoint, memory_insert_breakpoint):
15535 Add target_ops parameter.
15536 * target.c (target_insert_breakpoint): Split into this and ...
15537 (forward_target_insert_breakpoint): ... this.
15538 (target_remove_breakpoint): Split into this and ...
15539 (forward_target_remove_breakpoint): ... this.
15540 (debug_to_insert_breakpoint): Add target_ops parameter.
15541 Call forward_target_insert_breakpoint.
15542 (debug_to_remove_breakpoint): Add target_ops parameter.
15543 Call forward_target_remove_breakpoint.
15544 (update_current_target): Do not inherit or default to_insert_breakpoint
15545 and to_remove_breakpoint.
15546 * corelow.c (ignore): Add target_ops parameter.
15547 * exec.c (ignore): Add target_ops parameter.
15548 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15549 Add target_ops parameter.
15550 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15551 Add target_ops parameter.
15552 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15553 Add target_ops parameter.
15554 * record-full.c (record_full_beneath_to_insert_breakpoint)
15555 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15556 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15557 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15558 (record_full_core_remove_breakpoint): Add target_ops parameter.
15560 (record_full_beneath_to_insert_breakpoint_ops)
15561 (record_full_beneath_to_remove_breakpoint_ops)
15562 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15563 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15564 tmp_to_remove_breakpoint_ops,
15565 record_full_beneath_to_insert_breakpoint_ops, and
15566 record_full_beneath_to_remove_breakpoint_ops.
15567 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15568 (m32r_remove_breakpoint): Add target_ops parameter.
15569 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15570 Add target_ops parameter.
15571 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15572 Add target_ops parameter.
15574 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15575 Markus Metzger <markus.t.metzger@intel.com>
15577 * record-btrace.c: Include frame-unwind.h.
15578 (record_btrace_frame_unwind_stop_reason)
15579 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15580 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15582 (init_record_btrace_ops): Install it.
15584 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15586 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15589 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15591 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15594 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15596 * frame-unwind.c: Include target.h.
15597 (frame_unwind_try_unwinder): New function with code from ...
15598 (frame_unwind_find_by_frame): ... here. New variable
15599 unwinder_from_target, call also target_get_unwinder)
15600 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15601 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15602 * target.h (struct target_ops): New fields to_get_unwinder and
15603 to_get_tailcall_unwinder.
15604 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15606 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15608 * record-btrace.c (record_btrace_fetch_registers)
15609 (record_btrace_store_registers)
15610 (record_btrace_to_prepare_to_store): New.
15611 (init_record_btrace_ops): Add the above.
15613 2014-01-16 Tom Tromey <tromey@redhat.com>
15615 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15616 * target.h (struct target_ops) <to_prepare_to_store>: Add
15618 (target_prepare_to_store): Add argument.
15619 * target.c (debug_to_prepare_to_store): Add argument.
15620 (update_current_target): Update.
15621 * remote.c (remote_prepare_to_store): Add 'self' argument.
15622 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15623 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15624 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15625 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15627 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15628 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15629 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15630 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15631 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15633 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15635 * btrace.h (replay) <replay>: New.
15636 (btrace_is_replaying): New.
15637 * btrace.c (btrace_clear): Free replay iterator.
15638 (btrace_is_replaying): New.
15639 * record-btrace.c (record_btrace_is_replaying): New.
15640 (record_btrace_info): Print insn number if replaying.
15641 (record_btrace_insn_history): Start at replay position.
15642 (record_btrace_call_history): Start at replay position.
15643 (init_record_btrace_ops): Init to_record_is_replaying.
15645 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15647 * record-btrace.c (record_btrace_insn_history_range): Include
15649 (record_btrace_insn_history_from): Adjust range.
15650 (record_btrace_call_history_range): Include
15652 (record_btrace_call_history_from): Adjust range.
15653 * NEWS: Announce changes.
15655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15657 * record.h (enum record_print_flag)
15658 <record_print_indent_calls>: New.
15659 * record.c (get_call_history_modifiers): Recognize /c modifier.
15660 (_initialize_record): Document /c modifier.
15661 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15662 Reorder fields. Optionally indent the function name. Update
15664 * NEWS: Announce changes.
15666 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15668 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15672 * btrace.c (ftrace_new_function): Start counting at one.
15673 * record-btrace.c (record_btrace_info): Adjust number of calls
15675 * NEWS: Announce it.
15677 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15679 * record-btrace.c (btrace_call_history_insn_range): Print
15680 insn range as [begin, end].
15682 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15684 * btrace.h (struct btrace_func_link): New.
15685 (enum btrace_function_flag): New.
15686 (struct btrace_inst): Rename to ...
15687 (struct btrace_insn): ...this. Update all users.
15688 (struct btrace_func) <ibegin, iend>: Remove.
15689 (struct btrace_func_link): New.
15690 (struct btrace_func): Rename to ...
15691 (struct btrace_function): ...this. Update all users.
15692 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15693 (number, level, flags>: New.
15694 (struct btrace_insn_iterator): Rename to ...
15695 (struct btrace_insn_history): ...this.
15697 (struct btrace_insn_iterator, btrace_call_iterator): New.
15698 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15699 (struct btrace_target_info) <begin, end, level>
15700 <insn_history, call_history>: New.
15701 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15702 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15703 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15704 (btrace_call_number, btrace_call_begin, btrace_call_end)
15705 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15706 (btrace_find_function_by_number, btrace_set_insn_history)
15707 (btrace_set_call_history): New.
15708 * btrace.c (btrace_init_insn_iterator)
15709 (btrace_init_func_iterator, compute_itrace): Remove.
15710 (ftrace_print_function_name, ftrace_print_filename)
15711 (ftrace_skip_file): Change
15712 parameter to const.
15713 (ftrace_init_func): Remove.
15714 (ftrace_debug): Use new btrace_function fields.
15715 (ftrace_function_switched): Also consider gaining and
15716 losing symbol information).
15717 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15718 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15719 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15721 (ftrace_new_function): Move. Remove debug print.
15722 (ftrace_update_lines, ftrace_update_insns): New.
15723 (ftrace_update_function): Check for call, ret, and jump.
15724 (compute_ftrace): Renamed to ...
15725 (btrace_compute_ftrace): ...this. Rewritten to compute call
15727 (btrace_fetch, btrace_clear): Updated.
15728 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15729 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15730 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15731 (btrace_call_number, btrace_call_begin, btrace_call_end)
15732 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15733 (btrace_find_function_by_number, btrace_set_insn_history)
15734 (btrace_set_call_history): New.
15735 * record-btrace.c (require_btrace): Use new btrace thread
15737 (record_btrace_info, btrace_insn_history)
15738 (record_btrace_insn_history, record_btrace_insn_history_range):
15739 Use new btrace thread info fields and new iterator.
15740 (btrace_func_history_src_line): Rename to ...
15741 (btrace_call_history_src_line): ...this. Use new btrace
15742 thread info fields.
15743 (btrace_func_history): Rename to ...
15744 (btrace_call_history): ...this. Use new btrace thread info
15745 fields and new iterator.
15746 (record_btrace_call_history, record_btrace_call_history_range):
15747 Use new btrace thread info fields and new iterator.
15749 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15751 * frame.h (frame_id_build_unavailable_stack_special): New.
15752 * frame.c (frame_id_build_unavailable_stack_special): New.
15754 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15756 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15757 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15758 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15760 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15761 (i386_insn_is_jump, i386_jmp_p): New.
15762 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15763 insn_is_jump to gdbarch.
15764 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15765 * gdbarch.h: Regenerated.
15766 * gdbarch.c: Regenerated.
15767 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15768 (default_insn_is_jump): New.
15769 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15770 (default_insn_is_jump): New.
15772 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15774 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15776 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15777 (btrace_read_type) <btrace_read_new>: Change to ...
15778 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15780 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15782 * common/linux-btrace.c (linux_read_btrace): Free trace from
15783 previous iteration.
15785 2014-01-15 Doug Evans <dje@google.com>
15787 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15790 2014-01-15 Tom Tromey <tromey@redhat.com>
15792 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15793 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15794 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15795 (set_objfile_main_name): New function.
15796 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15797 language_of_main>: New fields.
15798 (set_objfile_main_name): Declare.
15799 * symtab.c (find_main_name): Loop over objfiles to find the main
15801 (set_main_name): Now static.
15802 (get_main_info): Add comment.
15803 * symtab.h (set_main_name): Don't declare.
15805 2014-01-15 Tom Tromey <tromey@redhat.com>
15807 * symtab.c (main_progspace_key): New global.
15808 (struct main_info): New.
15809 (name_of_main, language_of_main): Remove.
15810 (get_main_info, main_info_cleanup): New function.
15811 (set_main_name, main_name, main_language): Use get_main_info.
15812 (_initialize_symtab): Initialize main_progspace_key.
15814 2014-01-15 Tom Tromey <tromey@redhat.com>
15816 * dbxread.c (process_one_symbol): Update.
15817 * dwarf2read.c (read_partial_die): Update.
15818 * symfile.c (set_initial_language): Call main_language.
15819 * symtab.c (language_of_main): Now static.
15820 (set_main_name): Add 'lang' parameter.
15821 (find_main_name): Update.
15822 (main_language): New function.
15823 (symtab_observer_executable_changed): Update.
15824 * symtab.h (set_main_name): Update.
15825 (language_of_main): Remove.
15826 (main_language): Declare.
15828 2014-01-15 Tom Tromey <tromey@redhat.com>
15830 * symfile.c (init_entry_point_info): Use new "initialized" field.
15832 * objfiles.h (struct entry_point) <initialized>: New field.
15833 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15834 (struct objfile) <ei>: ...here. Remove.
15835 * objfiles.c (entry_point_address_query): Update.
15837 2014-01-15 Tom Tromey <tromey@redhat.com>
15839 * objfiles.c (entry_point_address_query): Relocate entry point
15841 (objfile_relocate1): Do not relocate entry point address.
15842 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15843 <the_bfd_section_index>: New field.
15844 * symfile.c (init_entry_point_info): Find the entry point's
15847 2014-01-15 Tom Tromey <tromey@redhat.com>
15849 * solib-frv.c (enable_break): Use entry_point_address_query.
15851 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15853 * NEWS: Add note on improved process record-replay on
15854 arm*-linux* targets.
15856 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15858 * arm-tdep.c (enum arm_record_result): New enum.
15859 (arm_record_unsupported_insn): New function.
15860 (arm_record_coproc_data_proc): Removed.
15861 (thumb2_record_ld_st_multiple): New function.
15862 (thumb2_record_ld_st_dual_ex_tbb): New function.
15863 (thumb2_record_data_proc_sreg_mimm): New function.
15864 (thumb2_record_ps_dest_generic): New function.
15865 (thumb2_record_branch_misc_cntrl): New function.
15866 (thumb2_record_str_single_data): New function.
15867 (thumb2_record_ld_mem_hints): New function.
15868 (thumb2_record_ld_word): New function.
15869 (thumb2_record_lmul_lmla_div): New function.
15870 (thumb2_record_decode_insn_handler): New function.
15871 (decode_insn): Add thumb32 instruction handlers.
15873 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15875 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15876 (struct arm_linux_record_tdep): Declare.
15877 (arm_canonicalize_syscall): New function.
15878 (arm_all_but_pc_registers_record): New function.
15879 (arm_linux_syscall_record): New function.
15880 (arm_linux_init_abi): Add syscall recording constructs.
15881 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15882 decoding. (arm_record_coproc_data_proc): Update arm syscall
15884 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15885 <arm_syscall_record>: New field.
15886 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15889 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15891 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15892 register for push instruction recording.
15894 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15896 * arm-tdep.c (thumb_record_misc): Update to correct logical
15897 error while recording ldm, ldmia and pop instructions.
15899 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15901 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15903 2014-01-15 Pedro Alves <palves@redhat.com>
15905 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15906 (go32_resume, go32_fetch_registers, store_register)
15907 (go32_store_registers, go32_prepare_to_store)
15908 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15909 (go32_create_inferior, go32_can_run, go32_terminal_init)
15910 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15913 2014-01-15 Tom Tromey <tromey@redhat.com>
15915 * target.h (async_callback_ftype): New typedef.
15916 (struct target_ops) <to_async>: Use it.
15918 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15920 * python/py-value.c (get_field_type): Remove unnecessary curly
15921 braces for single-statement if block.
15923 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15925 * python/py-type.c (convert_field): Add missing empty line
15926 after declarations.
15928 2014-01-14 Doug Evans <dje@google.com>
15930 * symfile.h (expand_symtabs_matching): Renamed from
15931 expand_partial_symbol_names. Update prototype.
15932 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15933 * symfile.c (expand_symtabs_matching): Renamed from
15934 expand_partial_symbol_names. New args file_matcher, kind.
15935 Rename arg fun to symbol_matcher.
15936 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15937 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15938 ada_expand_partial_symbol_name.
15939 (ada_make_symbol_completion_list): Update to call
15940 expand_symtabs_matching.
15941 (ada_add_global_exceptions): Call expand_symtabs_matching.
15942 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15943 call map_symbol_filenames.
15944 * symtab.c (sources_info): Update to call map_symbol_filenames.
15945 (search_symbols): Call expand_symtabs_matching.
15946 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15947 (default_make_symbol_completion_list_break_on): Update to call
15948 expand_symtabs_matching.
15949 (make_source_files_completion_list): Update to call
15950 map_symbol_filenames.
15952 2014-01-14 Doug Evans <dje@google.com>
15954 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15955 (expand_symtabs_symbol_matcher_ftype): New typedef.
15956 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15957 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15958 * symfile.c (expand_partial_symbol_names): Update to use
15959 expand_symtabs_symbol_matcher_ftype.
15960 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15961 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15962 Arg name_matcher renamed to symbol_matcher.
15963 * psymtab.c (recursively_search_psymtabs): Update to use
15964 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15966 (expand_symtabs_matching_via_partial): Update to use
15967 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15968 Arg name_matcher renamed to symbol_matcher.
15970 2014-01-14 Doug Evans <dje@google.com>
15972 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15973 (map_partial_symbol_filenames): Ditto.
15974 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15975 (map_partial_symbol_filenames): Ditto.
15976 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15977 (map_partial_symbol_filenames): Ditto.
15978 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15979 (map_partial_symbol_filenames): Ditto.
15980 * symtab.c: Delete #include "psymtab.h".
15982 2014-01-14 Pedro Alves <palves@redhat.com>
15983 Tom Tromey <tromey@redhat.com>
15985 * infrun.c (use_displaced_stepping): Use find_record_target
15986 instead of RECORD_IS_USED.
15987 (adjust_pc_after_break): Use record_full_is_used instead of
15989 * record-btrace.c (record_btrace_open): Call record_preopen
15990 instead of checking RECORD_IS_USED.
15991 * record-full.c (record_full_shortname)
15992 (record_full_core_shortname): New globals.
15993 (record_full_is_used): New function.
15994 (find_full_open): Call record_preopen instead of checking
15996 (init_record_full_ops): Set the target's shortname to
15997 record_full_shortname.
15998 (init_record_full_core_ops): Set the target's shortname to
15999 record_full_core_shortname.
16000 * record-full.h (record_full_is_used): Declare.
16001 * record.c (find_record_target): Make extern.
16002 (record_preopen): New function.
16003 * record.h (RECORD_IS_USED): Delete macro.
16004 (find_record_target, record_preopen): Declare functions.
16006 2014-01-14 Yao Qi <yao@codesourcery.com>
16008 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
16009 'len''s type to ULONGEST.
16010 (core_xfer_shared_libraries_aix): Likewise.
16011 * gdbarch.c, gdbarch.h: Regenerated.
16012 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
16013 Change type of 'len' to ULONGEST.
16014 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16015 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
16017 2014-01-14 Yao Qi <yao@codesourcery.com>
16019 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
16020 type of 'len' to ULONGEST.
16021 (linux_xfer_osdata_processgroups): Likewise.
16022 (linux_xfer_osdata_threads): Likewise.
16023 (linux_xfer_osdata_fds): Likewise.
16024 (linux_xfer_osdata_isockets): Likewise.
16025 (linux_xfer_osdata_shm): Likewise.
16026 (linux_xfer_osdata_sem): Likewise.
16027 (linux_xfer_osdata_msg): Likewise.
16028 (linux_common_xfer_osdata): Likewise.
16029 (struct osdata_type) <getter>: Likewise.
16030 * common/linux-osdata.h (linux_common_xfer_osdata): Update
16033 2014-01-14 Yao Qi <yao@codesourcery.com>
16035 * target.h (target_xfer_partial_ftype): Update.
16036 (struct target_ops) <to_xfer_partial>: Change 'len' type to
16038 * aix-thread.c (aix_thread_xfer_partial): Change type of
16039 argument 'len' to ULONGEST.
16040 * auxv.c (procfs_xfer_auxv): Likewise.
16041 (ld_so_xfer_auxv): Likewise.
16042 (memory_xfer_auxv): Likewise.
16043 * bfd-target.c (target_bfd_xfer_partial): Likewise.
16044 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
16045 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
16046 * corelow.c (core_xfer_partial): Likewise.
16047 * ctf.c (ctf_xfer_partial): Likewise.
16048 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
16050 (darwin_read_dyld_info): Likewise.
16051 (darwin_xfer_partial): Likewise.
16052 * exec.c (section_table_xfer_memory_partial): Likewise.
16053 (exec_xfer_partial): Likewise.
16054 * exec.h (section_table_xfer_memory_partial): Update
16056 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
16057 instead of plongest.
16058 (gnu_xfer_partial): Likewise.
16059 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
16060 (ia64_hpux_xfer_solib_got): Likewise.
16061 (ia64_hpux_xfer_partial): Likewise.
16062 * ia64-linux-nat.c (ia64_linux_xfer_partial):
16063 * inf-ptrace.c (inf_ptrace_xfer_partial):
16064 * inf-ttrace.c (inf_ttrace_xfer_partial):
16065 * linux-nat.c (linux_xfer_siginfo): Likewise.
16066 (linux_nat_xfer_partial): Likewise.
16067 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
16068 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
16069 * monitor.c (monitor_xfer_memory): Likewise.
16070 (monitor_xfer_partial): Likewise.
16071 * procfs.c (procfs_xfer_partial): Likewise.
16072 * record-full.c (record_full_xfer_partial): Likewise.
16073 (record_full_core_xfer_partial): Likewise.
16074 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
16075 instead of plongest.
16076 (gdbsim_xfer_partial): Likewise.
16077 * remote.c (remote_xfer_partial): Likewise.
16078 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16079 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
16081 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
16082 (rs6000_xfer_shared_libraries): Likewise.
16083 * sol-thread.c (sol_thread_xfer_partial): Likewise.
16084 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
16085 (sparc_xfer_partial): Likewise.
16086 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
16087 (spu_xfer_partial): Likewise.
16088 * spu-multiarch.c (spu_xfer_partial): Likewise.
16089 * target.c (target_read_live_memory): Likewise.
16090 (memory_xfer_live_readonly_partial): Likewise.
16091 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
16092 (target_xfer_partial, default_xfer_partial): Likewise.
16093 (current_xfer_partial): Likewise.
16094 * tracepoint.c (tfile_xfer_partial): Likewise.
16095 * windows-nat.c (windows_xfer_memory): Likewise. Call
16096 pulongest instead of plongest.
16097 (windows_xfer_partial): Likewise.
16098 (windows_xfer_shared_libraries): Likewise.
16100 2014-01-14 Yao Qi <yao@codesourcery.com>
16102 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
16103 target_xfer_partial_ftype.
16105 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
16109 * valops.c (value_struct_elt_bitpos): New function
16110 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
16111 object to 'None' if the field name is an empty string ("").
16112 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
16113 attribute to look for a field when 'name' is 'None'.
16114 (get_field_type): New function
16116 2014-01-13 Doug Evans <dje@google.com>
16119 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
16120 (try_open_dwop_file): Ditto.
16121 * gdb_bfd.c: #include "vec.h".
16122 (bfdp): New typedef.
16123 (struct gdb_bfd_data): New member included_bfds.
16124 (gdb_bfd_unref): Unref all included bfds.
16125 (gdb_bfd_record_inclusion): New function.
16126 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
16128 2014-01-13 Tom Tromey <tromey@redhat.com>
16130 * gdbcore.h (deprecated_core_resize_section_table): Remove.
16132 2014-01-13 Tom Tromey <tromey@redhat.com>
16134 * defs.h (use_windows): Remove.
16135 * gdb.c (main): Update.
16136 * main.c (captured_main, gdb_main): Update.
16137 * main.h (struct captured_main_args) <use_windows>: Remove.
16138 * top.c (use_windows): Remove.
16140 2014-01-13 Tom Tromey <tromey@redhat.com>
16142 * defs.h (deprecated_flush_hook): Remove.
16144 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16147 * linux-thread-db.c (try_thread_db_load): Add parameter
16148 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16149 (try_thread_db_load_from_pdir_1): Move it there from here.
16150 (try_thread_db_load_from_sdir): Update caller.
16151 (try_thread_db_load_from_dir): Move it there from here.
16153 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16155 * regformats/regdat.sh: Always rewrite the register file.
16157 2014-01-13 Pedro Alves <palves@redhat.com>
16159 * Makefile.in (CHECK_HEADERS): New variable.
16160 (check-headers:): New rule.
16162 2014-01-13 Tom Tromey <tromey@redhat.com>
16164 * cli/cli-setshow.c (do_set_command): Update.
16165 * defs.h (deprecated_set_hook): Remove.
16166 * top.c (deprecated_set_hook): Remove.
16168 2014-01-13 Pedro Alves <palves@redhat.com>
16170 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16171 the tracepoint if the PC is a pseudo-register.
16173 2014-01-13 Tom Tromey <tromey@redhat.com>
16175 * defs.h (XCALLOC): Remove.
16176 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16177 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16178 * dwarf2loc.c (allocate_piece_closure): Likewise.
16179 * elfread.c (elf_symfile_segments): Likewise.
16180 (elf_symfile_segments): Likewise.
16181 * gdbtypes.c (copy_type_recursive): Likewise.
16182 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16183 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16184 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16186 * mt-tdep.c (mt_gdbarch_init): Likewise.
16187 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16189 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16190 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16191 * registry.c (registry_alloc_data): Likewise.
16192 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16193 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16194 * serial.c (serial_fdopen_ops): Likewise.
16195 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16197 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16198 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16201 2014-01-13 Tom Tromey <tromey@redhat.com>
16203 * defs.h (XMALLOC): Remove.
16204 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16205 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16206 * cli-out.c (struct ui_out *): Likewise.
16207 * cli/cli-dump.c (add_dump_command): Likewise.
16208 (add_dump_command): Likewise.
16209 * complaints.c (get_complaints): Likewise.
16210 (find_complaint): Likewise.
16211 * dwarf2-frame.c (execute_cfa_program): Likewise.
16212 * dwarf2read.c (abbrev_table_read_table): Likewise.
16213 * gdbarch.sh: Likewise.
16214 * gdbarch.c: Rebuild.
16215 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16216 * interps.c (interp_new): Likewise.
16217 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16218 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16219 * mi/mi-console.c (mi_console_file_new): Likewise.
16220 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16221 * mi/mi-out.c (mi_out_new): Likewise.
16222 * mi/mi-parse.c (mi_parse): Likewise.
16223 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16224 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16225 * observer.c (xalloc_observer_list_node): Likewise.
16226 * regcache.c (regcache_xmalloc_1): Likewise.
16227 * reggroups.c (reggroup_new): Likewise.
16228 (_initialize_reggroup): Likewise.
16229 * registry.c (register_data_with_cleanup): Likewise.
16230 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16231 * ser-base.c (serial_ttystate): Likewise.
16232 * ser-mingw.c (make_pipe_state): Likewise.
16233 * ser-pipe.c (pipe_open): Likewise.
16234 * serial.c (serial_open): Likewise.
16235 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16236 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16237 (tui_alloc_win_info): Likewise.
16238 (tui_add_content_elements): Likewise.
16239 * tui/tui-file.c (tui_file_new): Likewise.
16240 * tui/tui-out.c (tui_out_new): Likewise.
16241 * ui-file.c (mem_file_new): Likewise.
16242 * ui-out.c (push_level): Likewise.
16243 (make_cleanup_ui_out_end): Likewise.
16244 (append_header_to_list): Likewise.
16245 (ui_out_new): Likewise.
16246 * user-regs.c (user_reg_add_builtin): Likewise.
16248 2014-01-13 Tom Tromey <tromey@redhat.com>
16250 * defs.h (XZALLOC): Remove.
16251 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16252 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16253 (get_ada_tasks_inferior_data): Likewise.
16254 * auto-load.c (get_auto_load_pspace_data): Likewise.
16255 * auxv.c (get_auxv_inferior_data): Likewise.
16256 * bfd-target.c (target_bfd_reopen): Likewise.
16257 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16258 (deprecated_insert_raw_breakpoint): Likewise.
16259 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16260 * corelow.c (core_open): Likewise.
16261 * darwin-nat.c (darwin_check_new_threads): Likewise.
16262 (darwin_attach_pid): Likewise.
16263 * dummy-frame.c (dummy_frame_push): Likewise.
16264 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16265 * dwarf2loc.c (allocate_piece_closure): Likewise.
16266 * elfread.c (elf_symfile_segments): Likewise.
16267 * eval.c (ptrmath_type_p): Likewise.
16268 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16269 * gdbtypes.c (alloc_type_arch): Likewise.
16270 (alloc_type_instance): Likewise.
16271 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16272 * inf-child.c (inf_child_can_use_agent): Likewise.
16273 * inflow.c (get_inflow_inferior_data): Likewise.
16274 * infrun.c (save_infcall_suspend_state): Likewise.
16275 * jit.c (jit_reader_load): Likewise.
16276 (get_jit_objfile_data): Likewise.
16277 (get_jit_program_space_data): Likewise.
16278 (jit_object_open_impl): Likewise.
16279 (jit_symtab_open_impl): Likewise.
16280 (jit_block_open_impl): Likewise.
16281 (jit_frame_sniffer): Likewise.
16282 * linux-fork.c (add_fork): Likewise.
16283 * maint.c (make_command_stats_cleanup): Likewise.
16284 * objfiles.c (get_objfile_pspace_data): Likewise.
16285 * opencl-lang.c (struct lval_closure): Likewise.
16286 * osdata.c (osdata_start_osdata): Likewise.
16287 * progspace.c (new_address_space): Likewise.
16288 (add_program_space): Likewise.
16289 * remote-sim.c (get_sim_inferior_data): Likewise.
16290 * sh-tdep.c (sh_gdbarch_init): Likewise.
16291 * skip.c (Ignore): Likewise.
16292 (skip_delete_command): Likewise.
16293 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16294 (library_list_start_library): Likewise.
16295 (solib_aix_current_sos): Likewise.
16296 * solib-darwin.c (get_darwin_info): Likewise.
16297 (darwin_current_sos): Likewise.
16298 * solib-dsbt.c (get_dsbt_info): Likewise.
16299 * solib-ia64-hpux.c (new_so_list): Likewise.
16300 (ia64_hpux_get_solib_linkage_addr): Likewise.
16301 * solib-spu.c (append_ocl_sos): Likewise.
16302 (spu_current_sos): Likewise.
16303 * solib-svr4.c (get_svr4_info): Likewise.
16304 (svr4_keep_data_in_core): Likewise.
16305 (library_list_start_library): Likewise.
16306 (svr4_default_sos): Likewise.
16307 (svr4_read_so_list): Likewise.
16308 * solib-target.c (library_list_start_library): Likewise.
16309 (solib_target_current_sos): Likewise.
16310 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16311 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16312 * symfile.c (default_symfile_segments): Likewise.
16313 * target-descriptions.c (tdesc_data_init): Likewise.
16314 (tdesc_create_reg): Likewise.
16315 (struct tdesc_type *): Likewise.
16316 (tdesc_create_vector): Likewise.
16317 (tdesc_set_struct_size): Likewise.
16318 (struct tdesc_type *): Likewise.
16319 (tdesc_free_feature): Likewise.
16320 (tdesc_create_feature): Likewise.
16321 * windows-nat.c (windows_add_thread): Likewise.
16322 (windows_make_so): Likewise.
16323 * xml-support.c (gdb_xml_body_text): Likewise.
16324 (gdb_xml_create_parser_and_cleanup): Likewise.
16325 (xml_process_xincludes): Likewise.
16326 * xml-syscall.c (allocate_syscalls_info): Likewise.
16327 (syscall_create_syscall_desc): Likewise.
16329 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16331 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16332 function, with code from i386_stap_parse_special_token.
16333 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16334 (i386_stap_parse_special_token): Move code to the two functions
16335 above; simplify it.
16337 2014-01-09 Pedro Alves <palves@redhat.com>
16338 Hui Zhu <hui@codesourcery.com>
16341 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16342 bp_err_string. Don't mark the location shlib_disabled if the
16343 error thrown wasn't a generic or memory error. Catch errors
16344 thrown while inserting breakpoints in overlayed code. Output
16345 error message of software breakpoints.
16346 * remote.c (remote_insert_breakpoint): If this breakpoint has
16347 target-side commands but this stub doesn't support Z0 packets,
16348 throw NOT_SUPPORTED_ERROR error.
16349 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16350 * target.h (target_insert_breakpoint): Extend comment.
16351 (target_insert_hw_breakpoint): Add comment.
16353 2014-01-08 Pedro Alves <palves@redhat.com>
16355 * remote.c (remote_add_thread): Add threads silently if starting
16357 (remote_notice_new_inferior): If in all-stop, and starting up,
16358 don't call notice_new_inferior.
16359 (get_current_thread): New function, factored out from ...
16360 (add_current_inferior_and_thread): ... this. Adjust.
16361 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16362 found any thread, then select the remote's current thread as GDB's
16363 current thread too.
16365 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16367 * NEWS: Create a new section for the next release branch.
16368 Rename the section of the current branch, now that it has
16371 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16373 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16374 * version.in: Bump version to 7.7.50.DATE-cvs.
16376 2014-01-08 Yao Qi <yao@codesourcery.com>
16378 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16379 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16380 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16382 2014-01-08 Yao Qi <yao@codesourcery.com>
16384 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16385 return value of bfd_get_filename to symbol_file_add_from_bfd.
16387 2014-01-08 Pierre Muller <muller@sourceware.org>
16390 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16391 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16392 to prim_record_mininal_symbol_and_info.
16393 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16394 in call to prim_record_minimal_symbol_and_info.
16395 (read_pe_exported_syms): Set index field of section_data.
16397 2014-01-07 Andrew Pinski <apinski@cavium.com>
16399 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16400 * features/aarch64.c: Regenerate.
16402 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16404 * target.c (return_null): Define.
16405 (update_current_target): Use it instead of return_zero for
16406 functions that return a pointer.
16408 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16410 * source.c (add_path): Fix check for duplicated paths in the previously
16413 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16415 * ada-lang.c: Remove duplicated include statements.
16416 * alphabsd-nat.c: Ditto.
16417 * amd64-darwin-tdep.c: Ditto.
16418 * amd64fbsd-nat.c: Ditto.
16419 * auto-load.c: Ditto.
16421 * breakpoint.c: Ditto.
16422 * dbxread.c: Ditto.
16423 * fork-child.c: Ditto.
16424 * gdb_usleep.c: Ditto.
16425 * i386-darwin-tdep.c: Ditto.
16426 * i386fbsd-nat.c: Ditto.
16428 * inferior.c: Ditto.
16429 * jv-lang.c: Ditto.
16430 * linux-nat.c: Ditto.
16431 * linux-tdep.c: Ditto.
16432 * m68kbsd-nat.c: Ditto.
16433 * m68klinux-nat.c: Ditto.
16434 * microblaze-tdep.c: Ditto.
16435 * mips-linux-tdep.c: Ditto.
16436 * mn10300-tdep.c: Ditto.
16437 * nto-tdep.c: Ditto.
16438 * opencl-lang.c: Ditto.
16440 * printcmd.c: Ditto.
16441 * regcache.c: Ditto.
16442 * remote-m32r-sdi.c: Ditto.
16444 * symfile.c: Ditto.
16446 * tilegx-linux-nat.c: Ditto.
16447 * tilegx-tdep.c: Ditto.
16448 * tracepoint.c: Ditto.
16450 * vaxbsd-nat.c: Ditto.
16451 * windows-nat.c: Ditto.
16452 * xtensa-tdep.c: Ditto.
16454 2014-01-07 Yao Qi <yao@codesourcery.com>
16456 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16458 2014-01-07 Yao Qi <yao@codesourcery.com>
16459 Joel Brobecker <brobecker@adacore.com>
16461 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16462 (pdc_write_regs): Likewise.
16463 (fetch_regs_kernel_thread): Likewise.
16464 (store_regs_kernel_thread): Likewise.
16466 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16468 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16469 tagged type objects to their actual type.
16471 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16473 * ada-valprint.c (print_field_values): Add "language" parameter.
16474 Update calls to print_field_values and print_variant_part.
16475 Pass new parameter "language" in call to val_print instead
16476 of "current_language". Replace call to ada_val_print by call
16478 (print_variant_part): Add "language" parameter.
16479 (ada_val_print_struct_union): Update call to print_field_values.
16481 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16483 * ada-valprint.c (ui_memcpy): Delete.
16484 (ada_print_floating): Update documentation. Add empty line
16485 between between function documentation and implementation.
16486 Delete variable "buffer". Use ui_file_xstrdup in place of
16487 ui_file_put. Minor adjustments following this change.
16489 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16491 * ada-valprint.c (ada_val_print_string): New function,
16492 extracted from ada_val_print_array.
16493 (ada_val_print_array): Replace extracted code by call
16494 to ada_val_print_string followed by a return. Move
16495 "else" branch to the function's top block.
16497 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16499 * ada-valprint.c (ada_val_print_array): Move implementation
16500 down. Rename parameter "offset" and "val" into "offset_aligned"
16501 and "original_value" respectively. Add parameter "offset".
16503 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16505 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16506 re-organizing the code. Change the "???" message printed
16507 when target type is a TYPE_CODE_UNDEF into
16508 "<ref to undefined type>".
16510 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16512 * ada-valprint.c (print_record): Delete, implementation inlined...
16513 (ada_val_print_struct_union): ... here. Remove call to
16514 ada_check_typedef in inlined implementation.
16516 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16518 * ada-valprint.c (ada_val_print_gnat_array): New function,
16519 extracted from ada_val_print_1;
16520 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16521 (ada_val_print_flt, ada_val_print_struct_union)
16522 (ada_val_print_ref): Likewise.
16523 (ada_val_print_1): Delete variables i and elttype.
16524 Replace extracted-out code by call to corresponding
16527 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16529 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16531 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16533 * ada-valprint.c (ada_val_print_1): Replace calls to
16534 ada_val_print_1 by calls to val_print.
16536 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16538 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16539 Update calls to self accordingly. Replace calls to c_val_print
16540 by calls to val_print.
16542 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16544 * ada-valprint.c (print_record): Delete declaration.
16545 (adjust_type_signedness, ada_val_print_1): Likewise.
16546 (ada_val_print): Move function implementation down.
16547 (print_variant_part, print_field_values, print_record):
16548 Move function implementation up.
16550 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16552 * python/py-type.c (typy_get_name): New function.
16553 (type_object_getset): Add entry for attribute "name".
16554 * NEWS: Add entry mentioning this new attribute.
16556 2014-01-07 Yao Qi <yao@codesourcery.com>
16558 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16561 2014-01-07 Yao Qi <yao@codesourcery.com>
16563 * gnu-nat.c (info_port_rights): Add qualifier const to
16566 2014-01-07 Yao Qi <yao@codesourcery.com>
16568 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16570 2014-01-07 Yao Qi <yao@codesourcery.com>
16572 * gnu-nat.c (make_inf) Update declaration.
16573 (make_inf): Make it static.
16574 (inf_set_traced): Likewise.
16575 (inf_port_to_thread, inf_task_died_status): Likewise.
16577 2014-01-07 Yao Qi <yao@codesourcery.com>
16579 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16581 2014-01-07 Yao Qi <yao@codesourcery.com>
16583 * gnu-nat.c (_initialize_gnu_nat): Declare.
16585 2014-01-07 Yao Qi <yao@codesourcery.com>
16587 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16589 (struct gdbarch_info) <byte_order>: Change type to
16591 <byte_order_for_code>: Likewise.
16592 * gdbarch.c, gdbarch.h: Regenerated.
16594 2014-01-06 Sasha Smundak <asmundak@google.com>
16596 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16598 2014-01-06 Tom Tromey <tromey@redhat.com>
16600 * doublest.c (convert_doublest_to_floatformat): Use const, not
16602 * somread.c (som_symtab_read): Likewise.
16604 2014-01-07 Hui Zhu <hui@codesourcery.com>
16606 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16607 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16608 (gdb_bfd_fopen): Ditto.
16609 (gdb_bfd_openr): Ditto.
16610 (gdb_bfd_openw): Ditto.
16611 (gdb_bfd_openr_iovec): Ditto.
16612 (gdb_bfd_fdopenr): Ditto.
16613 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16614 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16616 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16618 * symfile-mem.c (symbol_file_add_from_memory): Removed
16619 gdb_bfd_stash_filename.
16621 2014-01-03 Doug Evans <dje@google.com>
16623 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16626 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16628 Update year range in copyright notice of all files.
16630 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16632 * top.c (print_gdb_version): Set copyright year to 2014.
16634 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16636 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16638 For older changes see ChangeLog-2013.
16644 version-control: never