1 2014-12-29 Anthony Green <green@moxielogic.com>
3 * configure.tgt: Add support for moxiebox target.
5 2014-12-27 Anthony Green <green@moxielogic.com>
7 * moxie-tdep.c (moxie_software_single_step): ldo/sto instructions
8 are 32 bits, not 48. Update comments for various instructions.
9 (moxie_process_record): Update for new shorter ldo/sto
10 instructions. Add support for sex, zex, umul.x and mul.x
11 instructions. Update comments for various instructions.
13 2014-12-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
15 * arm-tdep.c (arm_gdbarch_init): Explicitly handle value 3 of
16 Tag_ABI_VFP_args. Also replace hardcoded values by enum values in the
17 switch handling the different values of Tag_ABI_VFP_args.
19 2014-12-23 Doug Evans <xdje42@gmail.com>
21 * ada-lang.c (user_select_syms): Only fetch symtab if symbol is
23 (cache_symbol): Ignore symbols that are not objfile-owned.
24 * block.c (block_objfile): New function.
25 (block_gdbarch): New function.
26 * block.h (block_objfile): Declare.
27 (block_gdbarch): Declare.
28 * c-exp.y (classify_name): Remove call to
29 language_lookup_primitive_type. No longer necessary.
30 * gdbtypes.c (lookup_typename): Call lookup_symbol_in_language.
31 Remove call to language_lookup_primitive_type. No longer necessary.
32 * guile/scm-symbol.c (syscm_gdbarch_data_key): New static global.
33 (syscm_gdbarch_data): New struct.
34 (syscm_init_arch_symbols): New function.
35 (syscm_get_symbol_map): Renamed from syscm_objfile_symbol_map.
36 All callers updated. Handle symbols owned by arches.
37 (gdbscm_symbol_symtab): Handle symbols owned by arches.
38 (gdbscm_initialize_symbols): Initialize syscm_gdbarch_data_key.
39 * language.c (language_lookup_primitive_type_1): New function.
40 (language_lookup_primitive_type): Call it.
41 (language_alloc_type_symbol): New function.
42 (language_init_primitive_type_symbols): New function.
43 (language_lookup_primitive_type_as_symbol): New function.
44 * language.h (struct language_arch_info) <primitive_type_symbols>:
46 (language_lookup_primitive_type): Add function comment.
47 (language_lookup_primitive_type_as_symbol): Declare.
48 * printcmd.c (address_info): Handle arch-owned symbols.
49 * python/py-symbol.c (sympy_get_symtab): Ditto.
51 (sympy_dealloc): Ditto.
52 * symmisc.c (print_symbol): Ditto.
53 * symtab.c (fixup_symbol_section): Ditto.
54 (lookup_symbol_aux): Initialize block_found.
55 (basic_lookup_symbol_nonlocal): Try looking up the symbol as a
57 (initialize_objfile_symbol_1): New function.
58 (initialize_objfile_symbol): Call it.
59 (allocate_symbol): Call it.
60 (allocate_template_symbol): Call it.
61 (symbol_objfile): Assert symbol is objfile-owned.
62 (symbol_arch, symbol_symtab, symbol_set_symtab): Ditto.
63 * symtab.h (struct symbol) <owner>: Replaces member "symtab".
64 (struct symbol) <is_objfile_owned>: New member.
65 (SYMBOL_OBJFILE_OWNED): New macro.
66 * cp-namespace.c (cp_lookup_bare_symbol): New arg langdef.
67 All callers updated. Try to find the symbol as a primitive type.
68 (lookup_namespace_scope): New arg langdef. All callers updated.
69 Call cp_lookup_bare_symbol directly for simple bare symbols.
71 2014-12-23 Doug Evans <xdje42@gmail.com>
73 * symtab.h (SYMBOL_DOMAIN_BITS): New macro.
74 (struct symbol) <domain>: Use it.
76 2014-12-23 Doug Evans <xdje42@gmail.com>
78 * symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
81 2014-12-23 Doug Evans <xdje42@gmail.com>
83 * language.h (struct language_defn) <la_lookup_symbol_nonlocal>:
84 New arg language_defn. All uses updated.
86 2014-12-23 Doug Evans <xdje42@gmail.com>
88 * symtab.h (SYMBOL_SYMTAB): Delete
89 (SYMBOL_OBJFILE): Delete.
90 (symbol_symtab, symbol_set_symtab): Declare.
91 (symbol_objfile, symbol_arch): Declare.
92 * symtab.c (symbol_symtab): Replaces SYMBOL_SYMTAB. All uses updated.
93 All references to symbol->symtab redirected through here.
94 (symbol_set_symtab): New function. All assignments to SYMBOL_SYMTAB
95 redirected through here.
96 (symbol_arch): New function.
97 (symbol_objfile): New function. Replaces SYMBOL_OBJFILE.
99 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
101 * findvar.c (default_read_var_value): Call symbol_arch.
102 * guile/scm-frame.c (gdbscm_frame_block): Call symbol_objfile.
103 * jv-lang.c (add_class_symtab_symbol): Call symbol_arch.
104 * printcmd.c (address_info): Call symbol_arch.
105 * tracepoint.c (scope_info): Call symbol_arch.
107 2014-12-22 Doug Evans <xdje42@gmail.com>
109 * cp-namespace.c (cp_lookup_symbol_via_all_imports): New function.
110 (cp_lookup_symbol_namespace): Call it.
111 (cp_lookup_symbol_nonlocal): Ditto.
113 2014-12-22 Doug Evans <xdje42@gmail.com>
115 * cp-namespace.c (cp_lookup_symbol_via_imports): New arg
116 "search_scope_first". All callers updated.
118 2014-12-22 Doug Evans <xdje42@gmail.com>
120 * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
121 (cp_basic_lookup_symbol): Renamed from lookup_symbol_file. Delete
122 arg "search". All callers updated.
123 (cp_lookup_bare_symbol): New function.
124 (cp_search_static_and_baseclasses): New function.
125 (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
126 (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
127 (cp_lookup_nested_symbol): Ditto.
129 2014-12-22 Doug Evans <xdje42@gmail.com>
131 * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
133 2014-12-22 Doug Evans <xdje42@gmail.com>
135 * cp-namespace.c: Whitespace cleanup.
137 2014-12-20 Keith Seitz <keiths@redhat.com>
138 Mihail-Marian Nistor <mihail.nistor@freescale.com>
141 * linespec.c (struct collect_minsyms): Add new member `symtab'.
142 (add_minsym): Handle cases where info.symtab is non-NULL.
143 (search_minsyms_for_name): Add new parameter `symtab'.
144 Handle limiting searches to a specific symtab.
145 (add_matching_symtabs_to_info): Search through minimal symbols
146 for language_asm files for which no new symbols are found.
148 2014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
149 Nigel Stephens <nigel@mips.com>
150 Chris Dearman <chris@mips.com>
151 Luis Machado <lgustavo@codesourcery.com>
153 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
154 (ALLDEPFILES): Add mips-sde-tdep.c.
155 * mips-sde-tdep.c: New file containg SDE specific code.
156 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
158 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
159 * osabi.c (gdb_osabi_names): Add SDE.
160 * NEWS: Mention the change.
162 2014-12-18 Simon Marchi <simon.marchi@ericsson.com>
164 * elfread.c (elf_symfile_init): Remove stale comment.
165 (elf_symfile_read): Same.
166 * symfile.h (struct sym_fns): Same.
168 2014-12-18 Nigel Stephens <nigel@mips.com>
169 Maciej W. Rozycki <macro@codesourcery.com>
171 * mips-tdep.c (print_fpu_flags): New function.
172 (mips_print_float_info): Likewise.
173 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
174 print_float_info routine.
176 2014-12-18 Yao Qi <yao@codesourcery.com>
178 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
179 * gdbarch.c: Re-generated.
180 * gdbarch.h: Likewise.
181 * infcmd.c (default_print_float_info): New function.
182 (print_float_info): Removed. Move code to
183 default_print_float_info.
184 (float_info): Adjust to call gdbarch_print_float_info.
185 * inferior.h (default_print_float_info): Declare it.
187 2014-12-18 Yao Qi <yao@codesourcery.com>
189 * h8300-tdep.c (h8300_print_float_info): Remove.
190 (h8300_gdbarch_init): Remove the call to
191 set_gdbarch_print_float_info.
193 2014-12-18 Doug Evans <xdje42@gmail.com>
195 * infcmd.c (jump_command): Minor simplification.
197 2014-12-18 Doug Evans <xdje42@gmail.com>
199 * language.c (language_lookup_primitive_type): Renamed from
200 language_lookup_primitive_type_by_name. All callers updated.
202 2014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
204 Fix MinGW compilation.
205 * compile/compile.c (get_compile_file_tempdir): Call error if
207 * config.in: Regenerate.
208 * configure: Regenerate.
209 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
211 2014-12-17 Doug Evans <xdje42@gmail.com>
213 * valops.c (value_maybe_namespace_elt): Remove redundant call to
214 lookup_static_symbol.
216 2014-12-17 Doug Evans <xdje42@gmail.com>
218 New parameter "debug symbol-lookup".
220 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
222 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
223 (cp_lookup_nested_symbol): Ditto.
224 * language.c (language_lookup_primitive_type_by_name): Add debug
226 * minsyms.c (lookup_minimal_symbol): Add debug output.
227 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
228 * symfile-debug.c (debug_objfile_name): ... from here. All callers
230 * objfiles.h (objfile_debug_name): Declare.
231 * symtab.h (symbol_lookup_debug): Declare.
232 * symtab.c (symbol_lookup_debug): New global.
233 (lookup_language_this): Add debug output.
234 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
235 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
236 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
237 (_initialize_symtab): Add new parameter "debug symbol-lookup".
239 2014-12-16 Doug Evans <xdje42@gmail.com>
241 * buildsym.c: Add comments describing how the buildsym machinery
242 is used by the various file formats.
243 (really_free_pendings): Enhance function comment.
244 See pending_macros to NULL. Simplify resetting pending_addrmap.
245 Call free_buildsym_compunit.
246 (free_buildsym_compunit): Set current_subfile to NULL.
247 (prepare_for_building): New function.
248 (start_symtab): Call it. Remove call to set_last_source_file.
249 (restart_symtab): New arg "cust". All callers updated.
250 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
251 (reset_symtab_globals): Enhance function comment.
252 Set local_symbols, file_symbols, global_symbols to NULL.
253 Set pending_macros to NULL. Simplify resetting pending_addrmap.
254 Call free_buildysym_compunit.
255 (end_symtab_without_blockvector): Delete. All callers updated.
256 (end_symtab_with_blockvector): Remove redundant call to
257 free_buildsym_compunit.
258 (augment_type_symtab): Remove arg "cust". All callers updated.
259 (buildsym_init): Remove resetting of free_pendings, file_symbols,
260 global_symbols, pending_blocks, pending_macros. Instead make
261 handling consistent with pending_addrmap: Assert value was reset
262 at end of previous symtab building. Initialize context_stack here.
264 2014-12-16 Doug Evans <xdje42@gmail.com>
266 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
267 cp_lookup_symbol_imports. All callers updated.
269 2014-12-16 Doug Evans <xdje42@gmail.com>
271 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
272 find_type_baseclass_by_name. All callers updated.
274 2014-12-16 Doug Evans <xdje42@gmail.com>
276 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
277 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
278 (print_symbol_info): Delete arg symtab. All callers updated.
279 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
281 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
283 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
284 "Name" columns. Assure that the output is always indented.
286 2014-12-16 Joel Brobecker <brobecker@adacore.com>
288 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
290 (linux_enable_event_reporting): Add parameter "attached".
291 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
292 declaration. New function.
293 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
294 (linux_enable_event_reporting): Add new parameter "attached".
295 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
297 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
298 Use it. Update function description.
299 (linux_child_post_attach, linux_child_post_startup_inferior):
300 Update call to linux_enable_event_reporting.
302 2014-12-16 Yao Qi <yao@codesourcery.com>
304 * NEWS: Move some entries to "Changes since GDB 7.8" section.
306 2014-12-16 Yao Qi <yao@codesourcery.com>
308 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
311 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
313 * inferior.c (find_inferior_ptid): New function.
314 * inferior.h (find_inferior_ptid): New declaration.
315 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
316 * corelow.c (core_pid_to_str): Same.
317 * darwin-nat.c (darwin_resume): Same.
318 * infrun.c (fetch_inferior_event): Same.
319 (get_inferior_stop_soon): Same.
320 (handle_inferior_event): Same.
321 (handle_signal_stop): Same.
322 * linux-nat.c (resume_lwp): Same.
323 (stop_wait_callback): Same.
324 * mi/mi-interp.c (mi_new_thread): Same.
325 (mi_thread_exit): Same.
326 * proc-service.c (ps_pglobal_lookup): Same.
327 * record-btrace.c (record_btrace_step_thread): Same.
328 * remote-sim.c (gdbsim_close_inferior): Same.
329 (gdbsim_resume): Same.
331 * sol2-tdep.c (sol2_core_pid_to_str): Same.
332 * target.c (memory_xfer_partial_1): Same.
333 (default_thread_address_space): Same.
334 * thread.c (thread_change_ptid): Same.
335 (switch_to_thread): Same.
336 (do_restore_current_thread_cleanup): Same.
338 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
340 * defs.h (gdb_readline): Constify argument.
341 (gdb_readline_wrapper): Same.
342 (command_line_input): Same.
343 (deprecated_readline_hook): Same.
344 * top.c (deprecated_readline_hook): Same.
345 (gdb_readline): Same.
346 (gdb_readline_wrapper): Same.
347 (command_line_input): Constify argument. Pass prompt_arg to called
348 functions instead of local_prompt, overwriting prompt_arg if necessary.
349 * event-top.h (display_gdb_prompt): Constify argument.
350 * event-top.c (display_gdb_prompt): Same.
351 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
352 if building with Python 3.4 and up.
354 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
356 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
359 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
362 * memattr.c (mem_info_command): Remove "unsigned long" casts.
364 2014-12-13 Doug Evans <xdje42@gmail.com>
366 * utils.c (make_hex_string): Fix off-by-one error.
368 2014-12-13 Joel Brobecker <brobecker@adacore.com>
370 * ada-lang.h (ada_ensure_varsize_limit): Declare.
371 * ada-lang.c (check_size): Remove advance declaration.
372 (ada_ensure_varsize_limit): Renames check_size.
373 Replace calls to check_size by calls to ada_ensure_varsize_limit
375 * ada-valprint.c (ada_val_print_ref): Add call to
376 ada_ensure_varsize_limit. Add comment explaining why.
378 2014-12-13 Joel Brobecker <brobecker@adacore.com>
380 * utils.c (make_hex_string): Replace use of sprintf by use of
383 2014-12-13 Joel Brobecker <brobecker@adacore.com>
385 * compile/compile-object-load.c (link_callbacks_multiple_definition)
386 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
387 newline at end of warning message.
389 2014-12-13 Joel Brobecker <brobecker@adacore.com>
391 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
392 new "EXTRA-ARGS" parameter.
393 * configure.ac: If large-file support is disabled in GDB,
394 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
395 * configure: Regenerate.
397 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
400 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
401 TYPE if not TYPE_CODE_TYPEDEF.
403 2014-12-13 Joel Brobecker <brobecker@adacore.com>
406 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
407 the frame unwinder must either be the dwarf2_frame_unwind
408 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
409 stack_addr is valid before calling get_frame_base. Throw
410 an error if not valid.
412 2014-12-12 Doug Evans <xdje42@gmail.com>
414 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
417 2014-12-12 Doug Evans <xdje42@gmail.com>
419 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
420 All callers updated. Rename arg "namespace" to "symbol_name".
422 2014-12-12 Doug Evans <xdje42@gmail.com>
424 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
425 partial_map_symtabs_matching_filename. All uses updated.
426 (psym_find_pc_sect_compunit_symtab): Renamed from
427 find_pc_sect_compunit_symtab_from_partial. All uses updated.
428 Add function comment.
429 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
430 All uses updated. Add function comment.
431 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
432 Add function comment.
433 (psym_find_last_source_symtab): Renamed from
434 find_last_source_symtab_from_partial. All uses updated.
435 Add function comment.
436 (psym_forget_cached_source_info): Renamed from
437 forget_cached_source_info_partial. All uses updated.
438 Add function comment.
439 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
440 All uses updated. Add function comment.
441 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
442 updated. Add function comment.
443 (psym_expand_symtabs_for_function): Renamed from
444 read_symtabs_for_function. All uses updated. Update function comment.
445 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
446 All uses updated. Add function comment.
447 (psym_expand_symtabs_with_fullname): Renamed from
448 read_psymtabs_with_fullname. All uses updated. Add function comment.
449 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
450 All uses updated. Add function comment.
451 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
453 (psym_expand_symtabs_matching): Renamed from
454 expand_symtabs_matching_via_partial. All uses updated.
455 Add function comment.
456 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
457 Add function comment.
459 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
460 Jan Kratochvil <jan.kratochvil@redhat.com>
461 Tom Tromey <tromey@redhat.com>
464 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
466 * p-lang.c (pascal_language_defn): Update.
467 * opencl-lang.c (opencl_language_defn): Update.
468 * objc-lang.c (objc_language_defn): Update.
469 * m2-lang.c (m2_language_defn): Update.
470 * language.h (struct language_defn) <la_get_compile_instance,
471 la_compute_program>: New fields.
472 * language.c (unknown_language_defn, auto_language_defn)
473 (local_language_defn): Update.
474 * jv-lang.c (java_language_defn): Update.
475 * go-lang.c (go_language_defn): Update.
476 * f-lang.c (f_language_defn): Update.
477 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
478 * dwarf2loc.c (dwarf2_compile_property_to_c)
479 (locexpr_generate_c_location, loclist_generate_c_location): New
481 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
482 * defs.h (enum compile_i_scope_types): New.
483 (enum command_control_type) <compile_control>: New constant.
484 (struct command_line) <control_u>: New field.
485 * d-lang.c (d_language_defn): Update.
486 * compile/compile.c: New file.
487 * compile/compile-c-support.c: New file.
488 * compile/compile-c-symbols.c: New file.
489 * compile/compile-c-types.c: New file.
490 * compile/compile.h: New file.
491 * compile/compile-internal.h: New file.
492 * compile/compile-loc2c.c: New file.
493 * compile/compile-object-load.c: New file.
494 * compile/compile-object-load.h: New file.
495 * compile/compile-object-run.c: New file.
496 * compile/compile-object-run.h: New file.
497 * cli/cli-script.c (multi_line_command_p, print_command_lines)
498 (execute_control_command, process_next_line)
499 (recurse_read_control_structure): Handle compile_control.
500 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
501 * c-lang.c (c_language_defn, cplus_language_defn)
502 (asm_language_defn, minimal_language_defn): Update.
503 * ada-lang.c (ada_language_defn): Update.
504 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
506 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
507 (HFILES_NO_SRCDIR): Add compile.h.
508 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
509 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
510 (compile.o, compile-c-types.o, compile-c-symbols.o)
511 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
512 (compile-c-support.o): New targets.
514 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
516 * s390-linux-tdep.c (s390_gcc_target_options): New function.
517 (s390_gdbarch_init): Add it to gdbarch.
519 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
521 * linux-tdep.c: Include objfiles.h and infcall.h.
522 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
524 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
526 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
528 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
529 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
530 translate_register. Now public.
531 (dwarf2_compile_expr_to_ax): Update.
533 2014-12-12 Tom Tromey <tromey@redhat.com>
534 Jan Kratochvil <jan.kratochvil@redhat.com>
536 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
537 (dwarf_expr_frame_base): Update caller.
538 (dwarf_expr_frame_base_1): Rename to ...
539 (func_get_frame_base_dwarf_block): ... this and make it public.
540 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
542 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
544 2014-12-12 Tom Tromey <tromey@redhat.com>
546 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
548 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
549 dwarf2_compile_cfa_to_ax.
550 (dwarf2_compile_cfa_to_ax): Remove.
551 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
552 (dwarf2_compile_cfa_to_ax): Remove.
554 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
556 * infcall.h (call_function_by_hand_dummy): Declare.
557 * infcall.c (call_function_by_hand): Use
558 call_function_by_hand_dummy.
559 (call_function_by_hand_dummy): Rename from call_function_by_hand.
560 Add arguments. Register a destructor.
562 2014-12-12 Tom Tromey <tromey@redhat.com>
563 Jan Kratochvil <jan.kratochvil@redhat.com>
565 * osabi.h (osabi_triplet_regexp): Declare.
566 * osabi.c (struct osabi_names): New.
567 (gdb_osabi_names): Change type to struct osabi_names. Update
569 (gdbarch_osabi_name): Update.
570 (osabi_triplet_regexp): New function.
571 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
572 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
573 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
574 set_gdbarch_gnu_triplet_regexp.
575 * gdbarch.sh (gnu_triplet_regexp): New method.
576 * gdbarch.c, gdbarch.h: Rebuild.
577 * arch-utils.h (default_gnu_triplet_regexp): Declare.
578 * arch-utils.c (default_gnu_triplet_regexp): New function.
580 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
582 * arch-utils.c (default_infcall_mmap)
583 (default_gcc_target_options): New functions.
584 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
585 (GDB_MMAP_PROT_EXEC): Define.
586 (default_infcall_mmap, default_gcc_target_options): Declare.
587 * gdbarch.h: Rebuild.
588 * gdbarch.c: Rebuild.
589 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
591 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
593 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
595 (pop_dummy_frame): Call the destructor if it exists.
596 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
598 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
599 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
601 2014-12-12 Tom Tromey <tromey@redhat.com>
603 * gdbtypes.h (make_unqualified_type): Declare.
604 * gdbtypes.c (make_unqualified_type): New function.
606 2014-12-12 Tom Tromey <tromey@redhat.com>
608 * ui-file.h (ui_file_write_for_put): Declare.
609 * ui-file.c (ui_file_write_for_put): New function.
610 * mi/mi-out.c (do_write): Remove.
611 (mi_out_put): Use ui_file_write_for_put.
613 2014-12-12 Doug Evans <dje@google.com>
615 * NEWS: Mention gdb.lookup_objfile.
616 * python/python.c (GdbMethods): Add lookup_objfile.
617 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
618 * python/py-objfile.c: #include "symtab.h".
619 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
620 (objfpy_lookup_objfile_by_name): New function.
621 (objfpy_lookup_objfile_by_build_id): New function.
622 (gdbpy_lookup_objfile): New function.
624 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
626 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
627 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
628 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
630 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
633 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
635 * completer.c: Include "target.h", "reggroups.h", and
637 (reg_or_group_completer): New.
638 * completer.h (reg_or_group_completer): Declare.
639 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
640 the "info registers" and "info all-registers" commands and the
641 dbx-mode "lr" command.
643 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
645 * user-regs.c: Include "arch-utils.h", "command.h", and
647 (maintenance_print_user_registers): New.
648 (_initialize_user_regs): Register new "maint print user-registers"
650 * NEWS: Mention new GDB command "maint print user-registers".
652 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
653 Maciej W. Rozycki <macro@mips.com>
654 Pedro Alves <pedro@codesourcery.com>
656 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
657 remove `predefault' and `invalid_p' initializers.
658 (make_symbol_special): New architecture method.
659 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
660 (objfile, symbol): New declarations.
661 * arch-utils.h (default_elf_make_msymbol_special): Remove
663 (default_make_symbol_special): New prototype.
664 (default_adjust_dwarf2_addr): Likewise.
665 (default_adjust_dwarf2_line): Likewise.
666 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
667 * arch-utils.c (default_elf_make_msymbol_special): Remove
669 (default_make_symbol_special): New function.
670 (default_adjust_dwarf2_addr): Likewise.
671 (default_adjust_dwarf2_line): Likewise.
672 * dwarf2-frame.c (decode_frame_entry_1): Call
673 `gdbarch_adjust_dwarf2_addr'.
674 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
675 * dwarf2read.c (create_addrmap_from_index): Likewise.
676 (process_psymtab_comp_unit_reader): Likewise.
677 (add_partial_symbol): Likewise.
678 (add_partial_subprogram): Likewise.
679 (process_full_comp_unit): Likewise.
680 (read_file_scope): Likewise.
681 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
682 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
683 (read_call_site_scope): Likewise.
684 (dwarf2_ranges_read): Likewise.
685 (dwarf2_record_block_ranges): Likewise.
686 (read_attribute_value): Likewise.
687 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
688 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
689 * elfread.c (elf_symtab_read): Don't call
690 `gdbarch_elf_make_msymbol_special' if unset.
691 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
692 the ISA bit from the PC.
693 * mips-tdep.c (mips_unmake_compact_addr): New function.
694 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
695 address appropriately.
696 (mips_make_symbol_special): New function.
697 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
698 (mips_pc_is_mips16): Likewise.
699 (mips_pc_is_micromips): Likewise.
700 (mips_pc_isa): Likewise.
701 (mips_adjust_dwarf2_addr): New function.
702 (mips_adjust_dwarf2_line): Likewise.
703 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
704 (mips_addr_bits_remove): Likewise.
705 (mips_skip_trampoline_code): Likewise.
706 (mips_write_pc): Don't set the ISA bit.
707 (mips_eabi_push_dummy_call): Likewise.
708 (mips_o64_push_dummy_call): Likewise.
709 (mips_gdbarch_init): Install `mips_make_symbol_special',
710 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
712 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
713 target-specific symbol address adjustments.
714 * gdbarch.h: Regenerate.
715 * gdbarch.c: Regenerate.
717 2014-12-12 Yao Qi <yao@codesourcery.com>
720 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
721 'skip_pc'. Remove code skipping prologue instructions, use
722 arm_analyze_prologue instead.
723 (arm_analyze_prologue): Stop the scanning for unrecognized
724 instruction when skipping prologue.
726 2014-12-12 Yao Qi <yao@codesourcery.com>
728 * arm-tdep.c (arm_instruction_restores_sp): New function.
729 (arm_analyze_prologue): Call arm_instruction_restores_sp.
730 (arm_in_function_epilogue_p): Move code to
731 arm_instruction_restores_sp.
733 2014-12-11 Doug Evans <xdje42@gmail.com>
735 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
737 2014-12-11 Doug Evans <xdje42@gmail.com>
739 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
740 (symbol *lookup_symbol_via_quick_fns): Ditto.
741 (lookup_symbol_in_objfile): Add forward decl.
742 (lookup_global_symbol_from_objfile): Simplify, call
743 lookup_symbol_in_objfile.
745 2014-12-11 Doug Evans <xdje42@gmail.com>
747 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
749 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
752 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
753 it is marked as persistent.
755 2014-12-10 Doug Evans <xdje42@gmail.com>
757 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
758 closer to its subroutines.
760 2014-12-10 Doug Evans <xdje42@gmail.com>
762 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
764 2014-12-10 Doug Evans <xdje42@gmail.com>
766 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
767 * cp-support.h (cp_lookup_symbol_imports): Delete.
769 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
772 * target.c (cleanup_restore_target_terminal): New function.
773 (make_cleanup_restore_target_terminal): New function.
774 * target.h (make_cleanup_restore_target_terminal): New declaration.
775 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
777 2014-12-08 Doug Evans <dje@google.com>
779 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
781 2014-12-08 Doug Evans <dje@google.com>
783 * NEWS: Mention gdb.Objfile.owner.
784 * python/py-objfile.c (objfpy_get_owner): New function.
785 (objfile_getset): Add "owner".
787 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
789 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
790 (lookup_global_symbol_from_objfile): Call it.
792 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
794 Remove const from struct objfile *.
795 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
796 symtab.c, symtab.h: In these files.
798 2014-12-05 Andreas From <andreas.from@ericsson.com>
800 * MAINTAINERS (Write After Approval): Add "Andreas From"
802 2014-12-05 Doug Evans <xdje42@gmail.com>
806 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
808 2014-12-04 Doug Evans <dje@google.com>
810 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
811 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
812 (objfile_getset): Add "add_separate_debug_file".
814 2014-12-04 Doug Evans <dje@google.com>
816 * NEWS: Mention gdb.Objfile.build_id.
817 * build-id.c (build_id_bfd_get): Make non-static.
818 * build-id.h (build_id_bfd_get): Add declaration.
819 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
820 (OBJFPY_REQUIRE_VALID): New macro.
821 (objfpy_get_build_id): New function.
822 (objfile_getset): Add "build_id".
823 * utils.c (make_hex_string): New function.
824 * utils.h (make_hex_string): Add declaration.
826 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
828 * block.c (block_lookup_symbol_primary): New function.
829 * block.h (block_lookup_symbol_primary): New declaration.
830 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
831 Call block_lookup_symbol_primary.
833 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
835 * tramp-frame.h (tramp_frame): Add `validate' member.
836 * tramp-frame.c (tramp_frame_start): Validate trampoline before
838 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
839 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
840 (mips_linux_o32_sigframe): Initialize `validate' member.
841 (mips_linux_o32_rt_sigframe): Likewise.
842 (mips_linux_n32_rt_sigframe): Likewise.
843 (mips_linux_n64_rt_sigframe): Likewise.
844 (micromips_linux_o32_sigframe): New variable.
845 (micromips_linux_o32_rt_sigframe): Likewise.
846 (micromips_linux_n32_rt_sigframe): Likewise.
847 (micromips_linux_n64_rt_sigframe): Likewise.
848 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
849 (mips_linux_n32n64_sigframe_init): Likewise.
850 (mips_linux_sigframe_validate): New function.
851 (micromips_linux_sigframe_validate): Likewise.
852 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
854 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
856 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
857 * sparc-sol2-tdep.c: Include "regset.h".
858 (sparc32_sol2_supply_core_gregset): New function.
859 (sparc32_sol2_collect_core_gregset): Likewise.
860 (sparc32_sol2_supply_core_fpregset): Likewise.
861 (sparc32_sol2_collect_core_fpregset): Likewise.
862 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
863 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
864 tdep->fpregset/sizeof_fpregset.
865 * sparc64-sol2-tdep.c: Include "regset.h".
866 (sparc64_sol2_supply_core_gregset): New function.
867 (sparc64_sol2_collect_core_gregset): Likewise.
868 (sparc64_sol2_supply_core_fpregset): Likewise.
869 (sparc64_sol2_collect_core_fpregset): Likewise.
870 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
871 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
872 tdep->fpregset/sizeof_fpregset.
874 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
876 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
879 2014-12-02 Doug Evans <dje@google.com>
881 * symtab.c (symbol_init_cplus_specific): Delete.
882 (symbol_set_demangled_name): Remove special c++ support.
883 (symbol_get_demangled_name, symbol_set_language): Ditto.
884 * symtab.h (struct cplus_specific): Delete.
885 (struct general_symbol_info) <language_specific>: Remove
888 2014-12-02 Doug Evans <dje@google.com>
891 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
893 2014-12-02 Doug Evans <dje@google.com>
896 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
899 2014-12-02 Doug Evans <dje@google.com>
901 * dwarf2read.c (peek_die_abbrev): Improve error message text.
903 2014-12-02 Doug Evans <dje@google.com>
905 * valops.c (do_search_struct_field): Remove remnant of Chill support.
906 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
908 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
910 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
912 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
914 * NEWS: Mention new Python events.
915 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
916 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
917 (py-infevents.o): New rule.
918 * doc/observer.texi (inferior_call_pre, inferior_call_post)
919 (memory_changed, register_changed): New observers.
920 * infcall.c (call_function_by_hand): Notify observer before and
922 * python/py-event.h (inferior_call_kind): New enum.
923 (emit_inferior_call_event): New prototype.
924 (emit_register_changed_event): New prototype.
925 (emit_memory_changed_event): New prototype.
926 * python/py-events.h (events_object): New registries
927 inferior_call, memory_changed and register_changed.
928 * python/py-evts.c (gdbpy_initialize_py_events): Add the
929 inferior_call, memory_changed and register_changed registries.
930 * python/py-infevents.c: New.
931 * python/py-inferior.c (python_on_inferior_call_pre)
932 (python_on_inferior_call_post, python_on_register_change)
933 (python_on_memory_change): New functions.
934 (gdbpy_initialize_inferior): Attach python handler to new
936 * python/py-infthread.c(gdbpy_create_ptid_object): New.
937 (thpy_get_ptid) Use gdbpy_create_ptid_object.
938 * python/python-internal.h:
939 (gdbpy_create_ptid_object)
940 (gdbpy_initialize_inferior_call_pre_event)
941 (gdbpy_initialize_inferior_call_post_event)
942 (gdbpy_initialize_register_changed_event)
943 (gdbpy_initialize_memory_changed_event): New prototypes.
944 * python/python.c (_initialize_python): Initialize new events.
945 * valops.c (value_assign): Notify register_changed observer.
947 2014-12-02 Doug Evans <dje@google.com>
949 * python/py-infthread.c: Whitespace fixes.
951 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
953 * features/Makefile (s390-te-linux64-expedite): Replace
954 non-existant r14 and r15 by r14l and r15l, respectively.
955 * regformats/s390-te-linux64.dat: Regenerate.
957 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
959 * objfiles.c (allocate_objfile): Remove duplicate comment.
961 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
963 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
964 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
965 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
966 (supply_gregset, supply_fpregset): Remove.
967 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
968 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
971 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
973 Add add-auto-load-scripts-directory.
974 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
975 * auto-load.c (add_auto_load_dir): New function.
976 (_initialize_auto_load): Install it.
978 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
980 Pushed by Joel Brobecker <brobecker@adacore.com>.
981 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
983 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
985 * eval.c (evaluate_subexp): Check that the thread stack temporaries
986 are not already enabled before enabling them.
988 2014-11-29 Yao Qi <yao@codesourcery.com>
990 * arm-tdep.c (arm_analyze_prologue): Move local variables
991 'framereg' and 'framesize' to inner block. Move code to
994 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
996 * eval.c: Include gdbthread.h.
997 (evaluate_subexp): Enable thread stack temporaries before
998 evaluating a complete expression and clean them up after the
999 evaluation is complete.
1000 * gdbthread.h: Include common/vec.h.
1001 (value_ptr): New typedef.
1002 (VEC (value_ptr)): New vector type.
1003 (value_vec): New typedef.
1004 (struct thread_info): Add new fields stack_temporaries_enabled
1005 and stack_temporaries.
1006 (enable_thread_stack_temporaries)
1007 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1008 (get_last_thread_stack_temporary)
1009 (value_in_thread_stack_temporaries): Declare.
1010 * gdbtypes.c (class_or_union_p): New function.
1011 * gdbtypes.h (class_or_union_p): Declare.
1012 * infcall.c (call_function_by_hand): Store return values of class
1013 type as temporaries on stack.
1014 * thread.c (enable_thread_stack_temporaries): New function.
1015 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1016 (get_last_thread_stack_temporary): Likewise.
1017 (value_in_thread_stack_temporaries): Likewise.
1018 * value.c (value_force_lval): New function.
1019 * value.h (value_force_lval): Declare.
1021 2014-11-28 Pierre Muller <muller@sourceware.org>
1023 Pushed by Joel Brobecker <brobecker@adacore.com>.
1024 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
1027 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
1029 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
1030 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1031 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1032 * m68klinux-nat.c (fetch_core_registers): Remove.
1033 (linux_elf_core_fns): Remove.
1034 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
1036 2014-11-28 Joel Brobecker <brobecker@adacore.com>
1038 * utils.c (gdb_realpath): Rework comment about handling on
1041 2014-11-28 Yao Qi <yao@codesourcery.com>
1043 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1045 * gnulib/aclocal.m4: Re-generated.
1046 * gnulib/config.in: Re-generated.
1047 * gnulib/configure: Re-generated.
1048 * gnulib/import/Makefile.am: Re-generated.
1049 * gnulib/import/Makefile.in: Re-generated.
1050 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1051 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1052 * import/basename-lgpl.c: New file.
1053 * import/dirname-lgpl.c: New file.
1054 * import/dirname.h: New file.
1055 * import/m4/dirname.m4: New file.
1056 * import/m4/malloc.m4: New file.
1057 * import/m4/rename.m4: New file.
1058 * import/m4/rmdir.m4: New file.
1059 * import/m4/stdio_h.m4: New file.
1060 * import/malloc.c: New file.
1061 * import/rename.c: New file.
1062 * import/rmdir.c: New file.
1063 * import/same-inode.h: New file.
1064 * import/stdio.c: New file.
1065 * import/stdio.in.h: New file.
1066 * import/stripslash.c: New file.
1068 2014-11-28 Yao Qi <yao@codesourcery.com>
1070 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
1072 * config.in: Re-generated.
1073 * configure: Re-generated.
1074 * utils.c (gdb_realpath): Remove code calling realpath,
1075 canonicalize_file_name and pathconf.
1076 [!_WIN32]: Call canonicalize_file_name.
1078 2014-11-28 Yao Qi <yao@codesourcery.com>
1080 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1082 * aclocal.m4: Re-generated.
1083 * config.in: Re-generated.
1084 * configure: Re-generated.
1085 * import/Makefile.am: Re-generated.
1086 * import/Makefile.in: Re-generated.
1087 * import/m4/gnulib-cache.m4: Re-generated.
1088 * import/m4/gnulib-comp.m4: Re-generated.
1089 * import/canonicalize-lgpl.c: New file.
1090 * import/extra/snippet/_Noreturn.h: New file.
1091 * import/m4/canonicalize.m4: New file.
1092 * import/m4/double-slash-root.m4: New file.
1093 * import/m4/eealloc.m4: New file.
1094 * import/m4/malloca.m4: New file.
1095 * import/m4/nocrash.m4: New file.
1096 * import/m4/stdlib_h.m4: New file.
1097 * import/malloca.c: New file.
1098 * import/malloca.h: New file.
1099 * import/malloca.valgrind: New file.
1101 2014-11-28 Yao Qi <yao@codesourcery.com>
1103 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
1104 * config.in, configure: Regenerate.
1105 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1106 code checking HAVE_LSTAT is defined.
1108 2014-11-28 Yao Qi <yao@codesourcery.com>
1110 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1112 * gnulib/aclocal.m4: Re-generated.
1113 * gnulib/config.in: Re-generated.
1114 * gnulib/configure: Re-generated.
1115 * gnulib/import/Makefile.am: Re-generated.
1116 * gnulib/import/Makefile.in: Re-generated.
1117 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1118 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1119 * gnulib/import/lstat.c: New file.
1120 * gnulib/import/m4/lstat.m4: New file.
1122 2014-11-28 Yao Qi <yao@codesourcery.com>
1124 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
1125 * config.in, configure: Re-generate.
1126 * inf-child.c (inf_child_fileio_readlink): Don't check
1127 HAVE_READLINK is defined.
1129 2014-11-28 Yao Qi <yao@codesourcery.com>
1131 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1132 * gnulib/aclocal.m4: Re-generated.
1133 * gnulib/config.in: Likewise.
1134 * gnulib/configure: Likewise.
1135 * gnulib/import/Makefile.am: Likewise.
1136 * gnulib/import/Makefile.in: Likewise.
1137 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1138 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1139 * gnulib/import/dosname.h: New file
1140 * gnulib/import/m4/largefile.m4: New file.
1141 * gnulib/import/m4/readlink.m4: New file.
1142 * gnulib/import/m4/stat.m4: New file.
1143 * gnulib/import/readlink.c: New file.
1144 * gnulib/import/stat.c: New file.
1146 2014-11-26 Mark Wielaard <mjw@redhat.com>
1148 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1149 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1151 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1153 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1154 that there can be only one stack adjustment in the prologue
1155 with tests to detect specific disallowed stack adjustments.
1157 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1159 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1162 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1164 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1165 the instruction as well as reading it from memory.
1166 (nios2_match_add): New.
1167 (nios2_match_sub): New.
1168 (nios2_match_addi): New.
1169 (nios2_match_orhi): New.
1170 (nios2_match_stw): New.
1171 (nios2_match_ldw): New.
1172 (nios2_match_rdctl): New.
1173 (enum branch_condition): New.
1174 (nios2_match_branch): New.
1175 (nios2_match_jmpi): New.
1176 (nios2_match_calli): New.
1177 (nios2_match_jmpr): New.
1178 (nios2_match_callr): New.
1179 (nios2_match_break): New.
1180 (nios2_match_trap): New.
1181 (nios2_in_epilogue_p): Rewrite to use new functions.
1182 (nios2_analyze_prologue): Likewise.
1183 (nios2_skip_prologue): Delete unused local limit_pc.
1184 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1185 (nios2_get_next_pc): Rewrite to use new functions.
1187 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1189 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1191 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1193 Pushed by Joel Brobecker <brobecker@adacore.com>
1194 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1195 elements pi_len by the size of the elements before calling
1197 (inf_validate_task_sc): Likewise, and properly deallocate the
1200 2014-11-23 Doug Evans <xdje42@gmail.com>
1202 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1203 number and name if present. All callers updated.
1204 (dump_fn_fieldlists): Fix indentation of args.
1206 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1208 * MAINTAINERS (Write After Approval): Add myself.
1210 2014-11-23 Joel Brobecker <brobecker@adacore.com>
1212 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1213 to a bp_call_dummy breakpoint type.
1215 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1217 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1218 registering the signal handler.
1220 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1222 * event-top.h (call_stdin_event_handler_again_p): Declare.
1223 * event-top.c (call_stdin_event_handler_again_p): Define.
1224 (stdin_event_handler): Use it.
1225 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1226 handler again if there is pending input following a
1229 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1231 Pushed by Joel Brobecker <brobecker@adacore.com>
1232 * linux-fork.c (checkpoint_command): Print index of new
1233 checkpoint in response message.
1235 2014-11-23 Yao Qi <yao@codesourcery.com>
1237 * valprint.c (read_string): Move local variables 'found_nul',
1238 'chunksize' and 'limit' to inner scope. Update comments.
1240 2014-11-22 Doug Evans <xdje42@gmail.com>
1242 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1244 (search_symbols): Fix comments and whitespace.
1246 2014-11-22 Doug Evans <xdje42@gmail.com>
1248 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1250 2014-11-21 Doug Evans <dje@google.com>
1252 * psymtab.c (psymtab_search_name): Fix whitespace.
1254 2014-11-21 Yao Qi <yao@codesourcery.com>
1256 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1258 * gnulib/import/Makefile.am: Re-generated.
1259 * gnulib/import/Makefile.in: Likewise.
1260 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1262 2014-11-21 Yao Qi <yao@codesourcery.com>
1264 * gdb_wchar.h: Include wchar.h and wctype.h.
1265 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1266 include wchar.h and wctype.h.
1267 Don't check HAVE_WCHAR_H.
1269 2014-11-21 Yao Qi <yao@codesourcery.com>
1271 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1273 * gnulib/import/Makefile.am: Re-generated.
1274 * gnulib/import/Makefile.in: Likewise.
1275 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1277 2014-11-21 Yao Qi <yao@codesourcery.com>
1279 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1281 * gnulib/import/Makefile.am: Re-generated.
1282 * gnulib/import/Makefile.in: Likewise.
1283 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1285 2014-11-21 Yao Qi <yao@codesourcery.com>
1287 * common/common-defs.h: Include alloca.h
1288 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1289 * configure: Re-generated.
1290 * defs.h: Remove code handling alloca.
1291 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1294 2014-11-21 Yao Qi <yao@codesourcery.com>
1296 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1298 * gnulib/import/Makefile.am: Re-generated.
1299 * gnulib/import/Makefile.in: Likewise..
1300 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1302 2014-11-21 Yao Qi <yao@codesourcery.com>
1304 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1307 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1309 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1310 flag_unsigned if HIGH_BOUND is constant and negative.
1312 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1314 PR breakpoints/10737
1315 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1316 modifier from "struct gdbarch" when compiling without Expat (XML)
1318 (get_syscall_by_number): Likewise.
1319 (get_syscall_by_name): Likewise.
1320 (get_syscall_names): Likewise.
1322 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1324 PR breakpoints/10737
1325 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1326 set_xml_syscall_file_name to provide gdbarch.
1327 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1328 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1329 * breakpoint.c (print_it_catch_syscall): Adjust call to
1330 get_syscall_by_number to provide gdbarch.
1331 (print_one_catch_syscall): Likewise.
1332 (print_mention_catch_syscall): Likewise.
1333 (print_recreate_catch_syscall): Likewise.
1334 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1335 and get_syscall_by_name to provide gdbarch.
1336 (catch_syscall_completer): Adjust call to get_syscall_names to
1338 * gdbarch.c: Regenerate.
1339 * gdbarch.h: Likewise.
1340 * gdbarch.sh: Forward declare "struct syscalls_info".
1341 (xml_syscall_file): New variable.
1342 (syscalls_info): Likewise.
1343 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1344 set_xml_syscall_file_name to provide gdbarch.
1345 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1346 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1347 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1348 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1349 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1350 * xml-syscall.c: Include gdbarch.h.
1351 (set_xml_syscall_file_name): Accept gdbarch parameter.
1352 (get_syscall_by_number): Likewise.
1353 (get_syscall_by_name): Likewise.
1354 (get_syscall_names): Likewise.
1355 (my_gdb_datadir): Delete global variable.
1356 (struct syscalls_info) <my_gdb_datadir>: New variable.
1357 (struct syscalls_info) <sysinfo>: Rename variable to
1359 (sysinfo): Delete global variable.
1360 (have_initialized_sysinfo): Likewise.
1361 (xml_syscall_file): Likewise.
1362 (sysinfo_free_syscalls_desc): Rename to...
1363 (syscalls_info_free_syscalls_desc): ... this.
1364 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1365 code to the new layout of "struct syscalls_info".
1366 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1368 (syscall_create_syscall_desc): Likewise.
1369 (syscall_start_syscall): Likewise.
1370 (syscall_parse_xml): Likewise.
1371 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1372 (init_sysinfo): Rename to...
1373 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1374 Adjust function to deal with gdbarch.
1375 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1376 gdbarch as a parameter. Adjust code.
1377 (xml_get_syscall_name): Likewise.
1378 (xml_list_of_syscalls): Likewise.
1379 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1380 (get_syscall_by_number): Likewise.
1381 (get_syscall_by_name): Likewise.
1382 (get_syscall_names): Likewise.
1383 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1384 (get_syscall_by_number): Likewise.
1385 (get_syscall_by_name): Likewise.
1386 (get_syscall_names): Likewise.
1388 2014-11-20 Doug Evans <xdje42@gmail.com>
1390 Split struct symtab into two: struct symtab and compunit_symtab.
1391 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1392 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1393 to "struct compunit_symtab *". All callers updated.
1394 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1395 "struct symtab *" argument to "struct compunit_symtab *".
1396 All callers updated.
1397 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1398 result to "struct compunit_symtab *". All callers updated.
1399 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1400 Change result to "struct compunit_symtab *". All callers updated.
1401 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1402 hange type to "struct compunit_symtab *". All uses updated.
1403 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1404 Change type to "struct compunit_symtab *". All uses updated.
1405 * buildsym.c (struct buildsym_compunit): New struct.
1406 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1407 (buildsym_compunit): New static global.
1408 (finish_block_internal): Update to fetch objfile from
1410 (make_blockvector): Delete objfile argument.
1411 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1412 debugformat, producer.
1413 (start_buildsym_compunit): New function.
1414 (free_buildsym_compunit): Renamed from free_subfiles_list.
1415 All callers updated.
1416 (patch_subfile_names): Rewrite to use buildsym_compunit.
1417 (get_compunit_symtab): New function.
1418 (get_macro_table): Delete argument comp_dir. All callers updated.
1419 (start_symtab): Change result to "struct compunit_symtab *".
1420 All callers updated. Create the subfile of the main source file.
1421 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1422 (reset_symtab_globals): Update.
1423 (end_symtab_get_static_block): Update to use buildsym_compunit.
1424 (end_symtab_without_blockvector): Rewrite.
1425 (end_symtab_with_blockvector): Change result to
1426 "struct compunit_symtab *". All callers updated.
1427 Update to use buildsym_compunit. Don't set symtab->dirname,
1428 instead set it in the compunit.
1429 Explicitly make sure main symtab is first in its list.
1430 Set debugformat, producer, blockvector, block_line_section, and
1431 macrotable in the compunit.
1432 (end_symtab_from_static_block): Change result to
1433 "struct compunit_symtab *". All callers updated.
1434 (end_symtab, end_expandable_symtab): Ditto.
1435 (set_missing_symtab): Change symtab argument to
1436 "struct compunit_symtab *". All callers updated.
1437 (augment_type_symtab): Ditto.
1438 (record_debugformat): Update to use buildsym_compunit.
1439 (record_producer): Update to use buildsym_compunit.
1440 * buildsym.h (struct subfile) <dirname>: Delete.
1441 <producer, debugformat>: Delete.
1442 <buildsym_compunit>: New member.
1443 (get_compunit_symtab): Declare.
1444 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1445 from primary_symtab. Change type to "struct compunit_symtab *".
1447 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1448 All callers updated.
1449 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1450 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1451 symtab. Change type to "struct compunit_symtab *". All uses updated.
1452 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1453 All callers updated.
1454 (dw2_find_last_source_symtab): Ditto.
1455 (dw2_lookup_symbol): Ditto.
1456 (recursively_find_pc_sect_compunit_symtab): Renamed from
1457 recursively_find_pc_sect_symtab. Change result to
1458 "struct compunit_symtab *". All callers updated.
1459 (dw2_find_pc_sect_compunit_symtab): Renamed from
1460 dw2_find_pc_sect_symtab. Change result to
1461 "struct compunit_symtab *". All callers updated.
1462 (get_compunit_symtab): Renamed from get_symtab. Change result to
1463 "struct compunit_symtab *". All callers updated.
1464 (recursively_compute_inclusions): Change type of immediate_parent
1465 argument to "struct compunit_symtab *". All callers updated.
1466 (compute_compunit_symtab_includes): Renamed from
1467 compute_symtab_includes. All callers updated. Rewrite to compute
1468 includes of compunit_symtabs and not symtabs.
1469 (process_full_comp_unit): Update to work with struct compunit_symtab.
1470 (process_full_type_unit): Ditto.
1471 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1472 (dwarf_decode_lines): Remove special case handling of main subfile.
1473 (macro_start_file): Delete argument comp_dir. All callers updated.
1474 (dwarf_decode_macro_bytes): Ditto.
1475 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1476 use struct compunit_symtab.
1477 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1478 * jit.c (finalize_symtab): Build compunit_symtab.
1479 * jv-lang.c (get_java_class_symtab): Change result to
1480 "struct compunit_symtab *". All callers updated.
1481 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1482 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1483 comp_dir. Change type to "struct compunit_symtab *".
1485 (new_macro_table): Change comp_dir argument to cust,
1486 "struct compunit_symtab *". All callers updated.
1487 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1488 nr_primary_symtabs. All uses updated.
1489 (count_symtabs_and_blocks): Update to handle compunits.
1490 (report_command_stats): Update output, "primary symtabs" renamed to
1492 * mdebugread.c (new_symtab): Change result to
1493 "struct compunit_symtab *". All callers updated.
1494 (parse_procedure): Change type of search_symtab argument to
1495 "struct compunit_symtab *". All callers updated.
1496 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1498 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1499 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1500 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1502 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1504 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1505 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1506 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1507 symtab. Change type to "struct compunit_symtab *". All uses updated.
1508 * psymtab.c (psymtab_to_symtab): Change result type to
1509 "struct compunit_symtab *". All callers updated.
1510 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1511 find_pc_sect_symtab_from_partial. Change result type to
1512 "struct compunit_symtab *". All callers updated.
1513 (lookup_symbol_aux_psymtabs): Change result type to
1514 "struct compunit_symtab *". All callers updated.
1515 (find_last_source_symtab_from_partial): Ditto.
1516 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1517 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1518 and macro_table from compunit.
1519 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1520 type to "struct compunit_symtab *". All callers updated.
1521 (debug_qf_lookup_symbol): Ditto.
1522 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1523 debug_qf_find_pc_sect_symtab, change result type to
1524 "struct compunit_symtab *". All callers updated.
1525 * symfile.c (allocate_symtab): Delete objfile argument.
1527 (allocate_compunit_symtab): New function.
1528 (add_compunit_symtab_to_objfile): New function.
1529 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1530 Change result type to "struct compunit_symtab *". All uses updated.
1531 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1532 Change result type to "struct compunit_symtab *". All uses updated.
1533 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1535 (dump_symtab_1): Update test for primary source symtab.
1536 (maintenance_info_symtabs): Update to handle compunit symtabs.
1537 (maintenance_check_symtabs): Ditto.
1538 * symtab.c (set_primary_symtab): Delete.
1539 (compunit_primary_filetab): New function.
1540 (compunit_language): New function.
1541 (iterate_over_some_symtabs): Change type of arguments "first",
1542 "after_last" to "struct compunit_symtab *". All callers updated.
1543 Update to loop over symtabs in each compunit.
1544 (error_in_psymtab_expansion): Rename symtab argument to cust,
1545 and change type to "struct compunit_symtab *". All callers updated.
1546 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1547 Change result type to "struct compunit_symtab *". All callers updated.
1548 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1549 Change result type to "struct compunit_symtab *". All callers updated.
1550 (find_pc_sect_line): Only loop over symtabs within selected compunit
1551 instead of all symtabs in the objfile.
1552 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1553 <compunit_symtab> New member.
1554 <block_line_section>: Moved to compunit_symtab.
1555 <locations_valid>: Ditto.
1556 <epilogue_unwind_valid>: Ditto.
1557 <macro_table>: Ditto.
1559 <debugformat>: Ditto.
1562 <call_site_htab>: Ditto.
1566 (SYMTAB_COMPUNIT): New macro.
1567 (SYMTAB_BLOCKVECTOR): Update definition.
1568 (SYMTAB_OBJFILE): Update definition.
1569 (SYMTAB_DIRNAME): Update definition.
1570 (struct compunit_symtab): New type. Common members among all source
1571 symtabs within a compilation unit moved here. All uses updated.
1572 (COMPUNIT_OBJFILE): New macro.
1573 (COMPUNIT_FILETABS): New macro.
1574 (COMPUNIT_DEBUGFORMAT): New macro.
1575 (COMPUNIT_PRODUCER): New macro.
1576 (COMPUNIT_DIRNAME): New macro.
1577 (COMPUNIT_BLOCKVECTOR): New macro.
1578 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1579 (COMPUNIT_LOCATIONS_VALID): New macro.
1580 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1581 (COMPUNIT_CALL_SITE_HTAB): New macro.
1582 (COMPUNIT_MACRO_TABLE): New macro.
1583 (ALL_COMPUNIT_FILETABS): New macro.
1584 (compunit_symtab_ptr): New typedef.
1585 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1587 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1589 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1590 if the TYPE_CODE of range_type's base type does not match
1591 the TYPE_CODE of encoding_type's base type.
1593 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1595 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1598 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1600 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1601 (ada_is_redundant_index_type_desc): New function.
1602 (to_fixed_array_type): Ignore parallel XA type if redundant.
1604 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1606 * ada-lang.c (constrained_packed_array_type): Set the length
1607 of the return array as if both bounds where zero if that
1608 returned array's index type is dynamic.
1610 2014-11-19 Yao Qi <yao@codesourcery.com>
1612 * config/i386/go32.mh (CC): Remove.
1614 2014-11-18 Doug Evans <xdje42@gmail.com>
1616 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1619 2014-11-18 Doug Evans <xdje42@gmail.com>
1621 * buildsym.c (buildsym_objfile): New static global.
1622 (buildsym_comp_dir): New static global.
1623 (finish_block_internal): Delete arg objfile. All callers updated.
1624 (finish_block): Delete arg objfile. All callers updated.
1625 (start_subfile): Delete arg dirname. All callers updated.
1626 (patch_subfile_names): Update buildsym_comp_dir.
1627 (get_macro_table): Delete arg objfile. All callers updated.
1628 (start_symtab): New arg objfile. All callers updated.
1629 Rename arg dirname to comp_dir.
1630 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1631 (end_symtab_get_static_block): Delete arg objfile. All callers
1633 (end_symtab_without_blockvector): Ditto.
1634 (end_symtab_with_blockvector): Ditto.
1635 (end_symtab_from_static_block): Ditto.
1636 (end_symtab): Ditto.
1637 (end_expandable_symtab): Ditto.
1638 (augment_type_symtab): Ditto.
1639 * coffread.c (coff_start_symtab): New arg objfile. All callers
1642 2014-11-18 Doug Evans <xdje42@gmail.com>
1644 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1647 2014-11-18 Doug Evans <xdje42@gmail.com>
1649 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1650 symtab.dirname updated to use it.
1652 2014-11-18 Doug Evans <xdje42@gmail.com>
1654 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1655 symtab.objfile updated to use it.
1657 2014-11-18 Doug Evans <xdje42@gmail.com>
1659 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1661 2014-11-18 Doug Evans <xdje42@gmail.com>
1663 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1665 * findvar.c (default_read_var_value): Ditto.
1666 * jv-lang.c (add_class_symtab_symbol): Ditto.
1667 * parse.c (operator_check_standard): Ditto.
1668 * printcmd.c (address_info): Ditto.
1669 * symtab.c (fixup_symbol_section): Ditto.
1670 (skip_prologue_sal): Ditto.
1671 * tracepoint.c (scope_info): Ditto.
1672 * valops.c (find_function_in_inferior): Ditto.
1673 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1674 * python/py-symbol.c (set_symbol): Ditto.
1676 2014-11-18 Doug Evans <xdje42@gmail.com>
1678 * buildsym.c (main_subfile): New static global.
1679 (free_subfiles_list): New function.
1680 (start_symtab): Set main_subfile.
1681 (restart_symtab): Replace init of subfiles, current_subfile with
1682 call to free_subfiles_list.
1683 (watch_main_source_file_lossage): Use main_subfile.
1684 (reset_symtab_globals): Replace init of current_subfile with call
1685 to free_subfiles_list.
1686 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1687 functions, split out from ...
1688 (end_symtab_from_static_block): ... here. Rewrite to call them.
1690 2014-11-18 Doug Evans <xdje42@gmail.com>
1692 The result of symtab expansion is always a primary symtab.
1693 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1694 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1695 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1696 (psymtab_to_symtab): Add comment and assert.
1697 (map_matching_symbols_psymtab): Remove unnecessary test for
1700 2014-11-15 Doug Evans <xdje42@gmail.com>
1703 * symtab.c (find_pc_line_symtab): New function.
1704 * symtab.h (find_pc_line_symtab): Declare.
1705 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1707 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1708 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1709 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1710 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1711 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1712 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1714 2014-11-15 Doug Evans <xdje42@gmail.com>
1716 * symtab.c (expand_symtab_containing_pc): Renamed from
1717 find_pc_sect_symtab_via_partial. All callers updated.
1719 2014-11-15 Yao Qi <yao@codesourcery.com>
1721 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1723 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1725 * common/common-defs.h: Move <stdarg.h> #include ahead of
1728 2014-11-14 Pedro Alves <palves@redhat.com>
1730 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1731 [!PHONY_ICONV] (gdb_iconv): New function.
1732 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1734 2014-11-13 Doug Evans <dje@google.com>
1737 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1738 "(anonymous namespace)".
1740 2014-11-13 Doug Evans <dje@google.com>
1742 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1745 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1747 * NEWS (maint set target-async): Fix typo.
1749 2014-11-12 Pedro Alves <palves@redhat.com>
1751 * infrun.c (enum infwait_states, infwait_state): Delete.
1753 2014-11-12 Pedro Alves <palves@redhat.com>
1755 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1756 Rewrite stepping over a permanent breakpoint.
1757 (thread_still_needs_step_over, proceed): Don't set
1758 stepping_over_breakpoint for permanent breakpoints.
1759 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1760 single-step breakpoints out of the target on hardware step
1762 (process_event_stop_test): If stepping a permanent breakpoint
1763 doesn't hit the step-resume breakpoint, delete the step-resume
1765 (switch_back_to_stepped_thread): Also check if the stepped thread
1766 has advanced already on hardware step targets.
1767 (currently_stepping): Return true if the thread stepped a
1770 2014-11-12 Pedro Alves <palves@redhat.com>
1772 Mark locations as permanent, not the whole breakpoint.
1773 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1774 (mark_breakpoints_out): Don't mark permanent breakpoints as
1776 (breakpoint_init_inferior): Use mark_breakpoints_out.
1777 (breakpoint_here_p): Adjust.
1778 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1779 of permanent breakpoints.
1780 (make_breakpoint_permanent): Mark each location as permanent,
1781 instead of marking the breakpoint.
1782 (add_location_to_breakpoint): If the location is permanent, mark
1783 it as such, and as inserted.
1784 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1785 (bp_location_compare, update_global_location_list): Adjust.
1786 (update_breakpoint_locations): Don't make the breakpoint permanent
1788 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1790 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1791 (struct bp_location) <permanent>: New field.
1792 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1793 reference to bp_permanent.
1795 2014-11-12 Pedro Alves <palves@redhat.com>
1797 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1798 * arch-utils.h (default_skip_permanent_breakpoint): New
1800 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1801 Install default_skip_permanent_breakpoint as default method.
1802 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1803 (i386_gdbarch_init): Don't install it.
1804 * infrun.c (resume): Assume there's always a
1805 gdbarch_skip_permanent_breakpoint implementation.
1806 * gdbarch.h, gdbarch.c: Regenerate.
1808 2014-11-11 Daniel Colascione <dancol@dancol.org>
1810 Warn about cross-PID-namespace debugging.
1811 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1812 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1813 * linux-thread-db.c (check_pid_namespace_match): New function.
1814 (thread_db_inferior_created): Call it.
1816 2014-11-10 Doug Evans <xdje42@gmail.com>
1818 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1819 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1821 2014-11-10 Doug Evans <xdje42@gmail.com>
1823 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1825 2014-11-10 Doug Evans <xdje42@gmail.com>
1828 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1829 (lookup_static_symbol): Move definition to new location and rewrite.
1830 (lookup_symbol_in_objfile): New function.
1831 (lookup_symbol_global_iterator_cb): Call it.
1833 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1835 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1837 2014-11-07 Pedro Alves <palves@redhat.com>
1839 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1840 check if we did a "nexti" inside a prologue.
1841 * symtab.c (in_prologue): Delete function.
1842 * symtab.h (in_prologue): Delete declaration.
1844 2014-11-06 Doug Evans <xdje42@gmail.com>
1846 * symtab.h (lookup_global_symbol): Improve function comment.
1848 2014-11-06 Doug Evans <xdje42@gmail.com>
1850 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1851 All callers updated.
1852 * symtab.h (lookup_global_symbol): Update decl.
1853 (lookup_static_symbol): Move decl to better location.
1855 2014-11-06 Doug Evans <xdje42@gmail.com>
1857 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1859 2014-11-06 Doug Evans <xdje42@gmail.com>
1861 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1862 All callers updated.
1863 (lookup_symbol_in_all_objfiles): Renamed from
1864 lookup_symbol_aux_symtabs. All callers updated.
1865 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1866 All callers updated.
1867 (lookup_symbol_in_objfile_symtabs): Renamed from
1868 lookup_symbol_aux_objfile. All callers updated.
1870 2014-11-06 Doug Evans <xdje42@gmail.com>
1872 * symtab.c (lookup_symbol_in_block): Renamed from
1873 lookup_symbol_aux_block. All callers updated.
1875 2014-11-06 Doug Evans <xdje42@gmail.com>
1877 * symtab.c (lookup_static_symbol): Renamed from
1878 lookup_static_symbol_aux. All callers updated.
1879 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1880 All callers updated.
1882 2014-11-06 Doug Evans <xdje42@gmail.com>
1884 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1885 * block.c (block_lookup_symbol): Use it.
1886 * cp-support.c (make_symbol_overload_list_block): Use it.
1887 * symtab.c (iterate_over_symbols): Use it.
1889 2014-11-06 Doug Evans <xdje42@gmail.com>
1891 * symtab.c (lookup_block_symbol): Moved to ...
1892 * block.c (block_lookup_symbol): ... here and renamed.
1893 All callers updated.
1894 * block.h (block_lookup_symbol): Declare.
1895 * symtab.h (lookup_block_symbol): Delete.
1897 2014-11-06 Doug Evans <xdje42@gmail.com>
1899 * ada-lang.c (ada_make_symbol_completion_list): Use
1900 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1901 * symtab.c (lookup_objfile_from_block): Ditto.
1903 2014-11-06 Doug Evans <xdje42@gmail.com>
1905 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1908 2014-11-06 Doug Evans <xdje42@gmail.com>
1910 * objfiles.c (get_objfile_arch): Constify.
1911 * objfiles.h (get_objfile_arch): Update prototype.
1912 * solib.c (solib_global_lookup): Fetch arch from objfile,
1915 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1917 * nios2-tdep.c (wild_insn): Delete.
1918 (profiler_insn, irqentry_insn): Delete.
1919 (nios2_match_sequence): Delete.
1920 (nios2_analyze_prologue): Update comments. Remove matching
1921 of obsolete profiler_insn and irqentry_insn sequences.
1923 2014-11-05 Alan Modra <amodra@gmail.com>
1925 * charset.c (convert_between_encodings): Shrink obstack using
1927 * minsyms.c (install_minimal_symbols): Likewise.
1928 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1929 to char* before doing pointer arithmetic.
1931 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1933 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1935 2014-11-04 Pedro Alves <palves@redhat.com>
1937 * breakpoint.c (breakpoint_thread_match): Delete function.
1938 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1940 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1943 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1944 the method args also under EVAL_SKIP when evaluating method
1945 calls under EVAL_SKIP.
1947 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1949 * dwarf2loc.c (read_pieced_value): Do big endian
1950 processing only if gdb_regnum is not -1.
1951 (write_pieced_value): Ditto.
1953 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1955 * arm-linux-tdep.c (arm_linux_init_abi): Use
1956 info.byte_order_for_code to choose endianity of breakpoint
1957 instructions snippets.
1959 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1961 * arm-tdep.c (extract_arm_insn): Use
1962 gdbarch_byte_order_for_code to read arm instruction.
1964 2014-11-02 Doug Evans <xdje42@gmail.com>
1966 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1968 2014-11-02 Doug Evans <xdje42@gmail.com>
1970 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1971 main_subfile before returning.
1973 2014-10-31 Doug Evans <xdje42@gmail.com>
1975 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1976 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1978 2014-10-31 Doug Evans <xdje42@gmail.com>
1980 * valops.c (value_cast_pointers): Fix whitespace.
1981 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1984 2014-10-30 Doug Evans <dje@google.com>
1986 * NEWS: Mention ability add attributes to gdb.Objfile and
1987 gdb.Progspace objects.
1988 * python/py-objfile.c (objfile_object): New member dict.
1989 (objfpy_dealloc): Py_XDECREF dict.
1990 (objfpy_initialize): Initialize dict.
1991 (objfile_getset): Add __dict__.
1992 (objfile_object_type): Set tp_dictoffset member.
1993 * python/py-progspace.c (progspace_object): New member dict.
1994 (pspy_dealloc): Py_XDECREF dict.
1995 (pspy_initialize): Initialize dict.
1996 (pspace_getset): Add __dict__.
1997 (pspace_object_type): Set tp_dictoffset member.
1999 2014-10-30 Yao Qi <yao@codesourcery.com>
2001 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
2002 replace '\\' with '\\\\'.
2004 2014-10-29 Joel Brobecker <brobecker@adacore.com>
2008 2014-10-29 Pedro Alves <palves@redhat.com>
2011 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
2012 instead of assuming a thread with a stepping range is always
2015 2014-10-29 Pedro Alves <palves@redhat.com>
2018 * event-top.c (change_line_handler): Call
2019 gdb_rl_callback_handler_remove instead of
2020 rl_callback_handler_remove.
2021 (callback_handler_installed): New global.
2022 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2023 (gdb_rl_callback_handler_reinstall): New functions.
2024 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
2025 gdb_rl_callback_handler_install instead of
2026 rl_callback_handler_remove and rl_callback_handler_install.
2027 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
2028 instead of rl_callback_handler_remove.
2029 * event-top.h (gdb_rl_callback_handler_remove)
2030 (gdb_rl_callback_handler_install)
2031 (gdb_rl_callback_handler_reinstall): New declarations.
2032 * infrun.c (reinstall_readline_callback_handler_cleanup): New
2034 (fetch_inferior_event): Install it.
2035 * top.c (gdb_readline_wrapper_line) Call
2036 gdb_rl_callback_handler_remove instead of
2037 rl_callback_handler_remove.
2038 (gdb_readline_wrapper_cleanup): Don't call
2039 rl_callback_handler_install.
2041 2014-10-29 Pedro Alves <palves@redhat.com>
2043 * event-top.c (command_line_handler): Clear the first byte of
2044 linebuffer, when it is first allocated.
2046 2014-10-29 Pedro Alves <palves@redhat.com>
2048 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
2051 2014-10-29 Pedro Alves <palves@redhat.com>
2055 * tui/tui-interp.c (tui_is_toplevel): Delete global.
2056 (tui_allowed_p): Delete function.
2057 * tui/tui.c: Include "interps.h".
2058 (tui_enable): Don't use tui_allowed_p. Error out here with
2059 detailed error messages if the TUI is the top level interpreter,
2060 or if output is not a terminal. Use newterm instead of initscr,
2061 and error out if initializing the terminal fails. Also error out if
2062 the terminal doesn't support cursor addressing.
2063 * tui/tui.h (tui_allowed_p): Delete declaration.
2065 2014-10-29 Joel Brobecker <brobecker@adacore.com>
2067 * arm-tdep.c (arm_skip_stack_protector): Return early if
2068 address loaded by first "ldr" instruction does not have
2069 a corresponding minimal symbol. Update comment.
2071 2014-10-29 Yao Qi <yao@codesourcery.com>
2073 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
2074 loaded address correctly of ldr instruction.
2076 2014-10-28 Pedro Alves <palves@redhat.com>
2079 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
2081 * infrun.c (resume) <stepping breakpoint instruction>: Set the
2082 thread's stepped_breakpoint field. Skip if reverse debugging.
2084 (init_thread_stepping_state, handle_signal_stop): Clear the
2085 thread's stepped_breakpoint field.
2087 2014-10-27 Pedro Alves <palves@redhat.com>
2089 * remote.c (remote_thread_alive): New, factored out from ...
2090 (remote_thread_alive): ... this.
2091 (remote_update_thread_list): Bail out before deleting threads if
2092 the target returned an empty list, and, the current thread has a
2095 2014-10-27 Pedro Alves <palves@redhat.com>
2097 * infrun.c (handle_signal_stop): Also skip handlers when a random
2098 signal arrives while handling a "stepi" or a "nexti". Set the
2099 thread's 'step_after_step_resume_breakpoint' flag.
2101 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
2103 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
2104 (arm_record_ld_st_imm_offset): Reimplement to cover all
2105 load/store cases for ARM opcode 010.
2106 (arm_record_ld_st_multiple): Reimplement to cover all
2107 load/store cases for ARM opcode 100.
2109 2014-10-26 Doug Evans <xdje42@gmail.com>
2111 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
2113 2014-10-26 Doug Evans <xdje42@gmail.com>
2115 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
2116 parameter "kind" to "block_index".
2117 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
2119 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
2121 2014-10-26 Doug Evans <xdje42@gmail.com>
2123 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
2125 2014-10-26 Doug Evans <xdje42@gmail.com>
2127 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
2130 2014-10-26 Doug Evans <xdje42@gmail.com>
2132 * parser-defs.h (block_found): Move decl from here ...
2133 * symtab.h (block_found): ... to here.
2135 2014-10-26 Doug Evans <xdje42@gmail.com>
2137 * symtab.h (struct field_of_this_result): Fix typo in comment.
2138 (lookup_symbol_in_language): Move function comment here.
2139 (lookup_symbol): Improve function comment.
2140 (basic_lookup_symbol_nonlocal): Ditto.
2141 (lookup_symbol_static, lookup_symbol_global): Ditto.
2142 (lookup_symbol_aux_block): Ditto.
2143 (lookup_language_this): Add function comment.
2144 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2146 (lookup_block_symbol): Improve function comment.
2147 (lookup_struct): Fix capitalization in function comment.
2148 (lookup_transparent_type): Add function comment.
2149 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2150 Improve function comment.
2151 (lookup_objfile_from_block): Add function comment.
2152 * symtab.c (lookup_symbol_in_language): Update function comment.
2153 (lookup_symbol, lookup_language_this): Ditto.
2154 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2155 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2156 (basic_lookup_symbol_nonlocal): Ditto.
2157 (lookup_symbol_static, lookup_symbol_global): Ditto.
2158 (lookup_transparent_type, lookup_block_symbol): Ditto.
2160 2014-10-25 Doug Evans <xdje42@gmail.com>
2162 * symtab.c (types_info): Delete forward decl.
2163 (functions_info, variables_info, sources_info): Ditto.
2164 (_initialize_symtab): Rewrite forward decl to use
2165 initialize_file_ftype.
2167 2014-10-25 Doug Evans <xdje42@gmail.com>
2169 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2171 2014-10-25 Doug Evans <xdje42@gmail.com>
2173 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2174 of local var child_die.
2176 2014-10-24 Don Breazeal <donb@codesourcery.com>
2178 * infrun.c (follow_fork_inferior): Update fork message printing
2179 to use target_terminal_ours_for_output instead of
2180 target_terminal_ours, to use _() for all format strings, to print
2181 "vfork" instead of "fork" for vforks, and to add a detach message.
2182 (handle_vfork_child_exec_or_exit): Update message printing to use
2183 target_terminal_ours_for_output instead of target_terminal_ours, to
2184 use _() for all format strings, and to fix some formatting.
2186 2014-10-24 Pedro Alves <palves@redhat.com>
2188 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2189 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2190 * config/vax/vax.mh: Delete.
2191 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2192 obsolete configurations section.
2193 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2194 * vax-nat.c: Delete file.
2196 2014-10-24 Pedro Alves <palves@redhat.com>
2198 * NEWS (Removed targets): Add OS/arch column.
2200 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2202 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2203 on the arg type of a constructor only if it is of reference type.
2205 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2207 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2208 accessors and constants from nios2 opcodes update.
2209 (nios2_get_next_pc): Likewise.
2211 2014-10-19 Doug Evans <xdje42@gmail.com>
2213 * gdbthread.h (set_running): Fix comment.
2214 (set_executing, finish_thread_state): Fix comment.
2216 2014-10-18 Doug Evans <xdje42@gmail.com>
2218 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2220 2014-10-17 Doug Evans <dje@google.com>
2222 * NEWS: Mention new event gdb.clear_objfiles.
2223 * python/py-event.h (emit_clear_objfiles_event): Clear
2224 * python/py-events.h (events_object): New member clear_objfiles.
2225 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2227 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2228 emit clear_objfiles event.
2229 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2231 (emit_clear_objfiles_event): New function.
2232 (clear_objfiles): New event.
2233 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2235 * python/python.c (_initialize_python): Call
2236 gdbpy_initialize_clear_objfiles_event.
2238 2014-10-17 Doug Evans <dje@google.com>
2240 * NEWS: Mention new gdb.Objfile.progspace attribute.
2241 * python/py-objfile.c (objfpy_get_progspace): New function.
2242 (objfile_getset): New entry for "progspace".
2244 2014-10-17 Pedro Alves <palves@redhat.com>
2247 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2248 returns a copy of the input.
2249 (run_command_1, continue_command, step_1, jump_command)
2250 (signal_command, until_command, advance_command, finish_command)
2251 (attach_command): Adjust and install a cleanup to free the
2254 2014-10-17 Pedro Alves <palves@redhat.com>
2257 * infcmd.c (continue_1): If continuing all threads in the
2258 foreground, make sure the inferior's terminal settings are put in
2261 2014-10-17 Pedro Alves <palves@redhat.com>
2264 * annotate.c (annotate_breakpoints_invalid): Use
2265 target_terminal_our_for_output instead of target_terminal_ours.
2266 Give back the terminal to the target.
2267 (annotate_frames_invalid): Likewise.
2269 2014-10-17 Pedro Alves <palves@redhat.com>
2271 * target.c (enum terminal_state): New enum.
2272 (terminal_state): New global.
2273 (target_terminal_init): New function.
2274 (target_terminal_inferior): Skip if inferior already owns the
2276 (target_terminal_ours, target_terminal_ours_for_output): New
2278 * target.h (target_terminal_init): Convert to function prototype.
2279 (target_terminal_ours_for_output): Convert to function prototype
2281 (target_terminal_ours): Convert to function prototype and tweak
2283 * windows-nat.c (do_initial_windows_stuff): Call
2284 target_terminal_init instead of child_terminal_init_with_pgrp.
2286 2014-10-17 Pedro Alves <palves@redhat.com>
2288 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2289 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2290 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2292 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2293 * ada-lang.h [__alpha__ && __osf__]
2294 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2295 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2296 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2298 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2300 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2301 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2302 * configure: Regenerate.
2303 * configure.ac: Remove references to osf.
2304 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2305 section. Remove all other references to osf.
2306 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2307 Remove all other references to osf.
2308 * dec-thread.c: Delete file.
2309 * defs.h (GDB_OSABI_OSF1): Delete.
2310 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2312 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2313 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2315 (unconditionally_kill_inferior)
2316 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2317 * solib-osf.c: Delete file.
2319 2014-10-17 Pedro Alves <palves@redhat.com>
2321 * remote.c (clear_threads_listing_context): Move higher up, out of
2322 the HAVE_LIBEXPAT guard.
2324 2014-10-16 Tristan Gingold <gingold@adacore.com>
2326 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2327 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2330 2014-10-15 Pedro Alves <palves@redhat.com>
2332 * dec-thread.c (dec_thread_count_gdb_threads)
2333 (dec_thread_add_gdb_thread): Delete.
2334 (dec_thread_update_thread_list): Delete.
2335 (dec_thread_find_new_threads): Rename to ...
2336 (dec_thread_update_thread_list): ... this. Delete GDB-size
2337 threads that are no longer found in dec_thread_list.
2338 (resync_thread_list): Delete.
2339 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2342 2014-10-15 Pedro Alves <palves@redhat.com>
2344 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2345 * remote.c (remote_update_thread_list): Skip calling prune_threads
2346 if any thread listing method is supported, and instead walk over
2347 the set of remote threads listed, deleting those that are not
2348 found in GDB's thread list.
2350 2014-10-15 Pedro Alves <palves@redhat.com>
2352 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2353 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2354 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2355 (bsd_uthread_target): Adjust.
2356 * corelow.c (core_open): Adjust.
2357 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2358 (dec_thread_update_thread_list): New function.
2359 (init_dec_thread_ops): Adjust.
2360 * gdbthread.h (prune_threads): New declaration.
2361 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2362 (thread_db_update_thread_list): ... this. Call prune_threads.
2363 (init_thread_db_ops): Adjust.
2364 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2365 (procfs_update_thread_list): ... this. Call prune_threads.
2366 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2368 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2369 (obsd_update_thread_list): ... this. Call prune_threads.
2370 (obsd_add_target): Adjust.
2371 * procfs.c (procfs_target): Adjust.
2372 (procfs_notice_thread): Update comment.
2373 (procfs_find_new_threads): Rename to ...
2374 (procfs_update_thread_list): ... this. Call prune_threads.
2375 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2377 (ravenscar_wait): Adjust.
2378 (ravenscar_find_new_threads): Rename to ...
2379 (ravenscar_update_thread_list): ... this. Call prune_threads.
2380 (init_ravenscar_thread_ops): Adjust.
2381 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2382 (record_btrace_update_thread_list): ... this. Adjust comment.
2383 (init_record_btrace_ops): Adjust.
2384 * remote.c (remote_threads_info): Rename to ...
2385 (remote_update_thread_list): ... this. Call prune_threads.
2386 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2388 * sol-thread.c (check_for_thread_db): Adjust.
2389 (sol_find_new_threads_callback): Rename to ...
2390 (sol_update_thread_list_callback): ... this.
2391 (sol_find_new_threads): Rename to ...
2392 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2393 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2394 * target-delegates.c: Regenerate.
2395 * target.c (target_find_new_threads): Rename to ...
2396 (target_update_thread_list): ... this.
2397 * target.h (struct target_ops): Rename to_find_new_threads field
2398 to to_update_thread_list.
2399 (target_find_new_threads): Rename to ...
2400 (target_update_thread_list): ... this.
2401 * thread.c (prune_threads): Make extern.
2402 (update_thread_list): Adjust.
2404 2014-10-15 Pedro Alves <palves@redhat.com>
2406 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2407 Add describing comment. Return -1 if the qL packet is not
2409 (struct thread_item, thread_item_t): Move higher up in
2410 the file. Add comments.
2411 (struct threads_parsing_context): Move higher up in
2412 the file, add comments, and remote to ...
2413 (struct threads_listing_context): ... this.
2414 (remote_newthread_step): Don't add the thread to GDB's thread
2415 database here. Instead push it to the thread_listing_context
2417 (remote_find_new_threads): Rename to ...
2418 (remote_get_threads_with_ql): ... this. Add target_ops and
2419 targets_listing_context parameters. Pass down context.
2420 (start_thread): Adjust.
2421 (clear_threads_parsing_context): Rename to ...
2422 (clear_threads_listing_context): ... this.
2423 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2424 remote_threads_info.
2425 (remote_get_threads_with_qthreadinfo): Ditto.
2426 (remote_threads_info): Reimplement.
2428 2014-10-15 Pedro Alves <palves@redhat.com>
2430 * infrun.c (resume): Don't force displaced-stepping for all
2431 single-steps on software single-stepping archs.
2433 2014-10-15 Pedro Alves <palves@redhat.com>
2435 * breakpoint.c (single_step_breakpoints): Delete global.
2436 (insert_single_step_breakpoint): Adjust to store the breakpoint
2437 pointer in the current thread.
2438 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2439 (cancel_single_step_breakpoints): Delete functions.
2440 (breakpoint_has_location_inserted_here): Make extern.
2441 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2443 * breakpoint.h (breakpoint_has_location_inserted_here): New
2445 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2446 (cancel_single_step_breakpoints): Remove declarations.
2447 * gdbthread.h (struct thread_control_state)
2448 <single_step_breakpoints>: New field.
2449 (delete_single_step_breakpoints)
2450 (thread_has_single_step_breakpoints_set)
2451 (thread_has_single_step_breakpoint_here): New declarations.
2452 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2453 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2454 (singlestep_pc): Delete globals.
2455 (infrun_thread_ptid_changed): Remove references to removed
2457 (resume_cleanups): Delete the current thread's single-step
2459 (maybe_software_singlestep): Remove references to removed globals.
2460 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2461 delete_single_step_breakpoints.
2462 (init_wait_for_inferior): Remove references to removed globals.
2463 (delete_thread_infrun_breakpoints): Delete the thread's
2464 single-step breakpoints too.
2465 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2466 single-step breakpoints here.
2467 (delete_stopped_threads_single_step_breakpoints): New function.
2468 (adjust_pc_after_break): Adjust to use
2469 thread_has_single_step_breakpoints_set.
2470 (handle_inferior_event): Remove references to removed globals.
2471 Use delete_stopped_threads_single_step_breakpoints.
2472 (handle_signal_stop): Adjust to per-thread single-step
2473 breakpoints. Swap test order to do cheaper tests first.
2474 (switch_back_to_stepped_thread): Extend debug output. Remove
2475 references to removed globals.
2476 * record-full.c (record_full_wait_1): Adjust to per-thread
2477 single-step breakpoints.
2478 * thread.c (delete_single_step_breakpoints)
2479 (thread_has_single_step_breakpoints_set)
2480 (thread_has_single_step_breakpoint_here): New functions.
2481 (clear_thread_inferior_resources): Also delete the thread's
2482 single-step breakpoints.
2484 2014-10-15 Pedro Alves <palves@redhat.com>
2486 * thread.c (delete_thread_breakpoint): New function.
2487 (delete_step_resume_breakpoint)
2488 (delete_exception_resume_breakpoint): Use it.
2489 (delete_at_next_stop): New function.
2490 (clear_thread_inferior_resources): Use delete_at_next_stop.
2492 2014-10-15 Pedro Alves <palves@redhat.com>
2494 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2495 (breakpoint_inserted_here_p): ... here. Remove special case for
2496 software single-step breakpoints.
2497 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2498 (software_breakpoint_inserted_here_p): ... here. Remove special
2499 case for software single-step breakpoints.
2500 (bp_target_info_copy_insertion_state)
2501 (deprecated_insert_raw_breakpoint)
2502 (deprecated_remove_raw_breakpoint): Delete functions.
2503 * breakpoint.h (deprecated_insert_raw_breakpoint)
2504 (deprecated_remove_raw_breakpoint): Remove declarations.
2506 2014-10-15 Pedro Alves <palves@redhat.com>
2509 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2510 Delete array globals.
2511 (single_step_breakpoints): New global.
2512 (breakpoint_xfer_memory): Remove special handling for single-step
2514 (update_breakpoints_after_exec): Delete bp_single_step
2516 (detach_breakpoints): Remove special handling for single-step
2518 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2519 (bpstat_stop_status): Add comment.
2520 (bpstat_what, bptype_string, print_one_breakpoint_location)
2521 (adjust_breakpoint_address, init_bp_location): Handle
2523 (new_single_step_breakpoint): New function.
2524 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2525 handling for single-step breakpoints.
2526 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2527 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2529 (detach_single_step_breakpoints, find_single_step_breakpoint):
2531 (breakpoint_has_location_inserted_here): New function.
2532 (single_step_breakpoint_inserted_here_p): Rewrite.
2533 * breakpoint.h: Remove FIXME.
2534 (enum bptype) <bp_single_step>: New enum value.
2535 (insert_single_step_breakpoint): Update comment.
2536 * infrun.c (resume_cleanups)
2537 (delete_step_thread_step_resume_breakpoint): Remove single-step
2539 (fetch_inferior_event): Install a cleanup that removes infrun
2541 (switch_back_to_stepped_thread) <expect thread advanced also>:
2542 Clear step-over info.
2544 2014-10-15 Pedro Alves <palves@redhat.com>
2546 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2547 (delete_thread_infrun_breakpoints): New function, with parts
2548 salvaged from delete_step_resume_breakpoint_callback.
2549 (delete_step_thread_step_resume_breakpoint): Delete.
2550 (for_each_just_stopped_thread_callback_func): New typedef.
2551 (for_each_just_stopped_thread): New function.
2552 (delete_just_stopped_threads_infrun_breakpoints): New function.
2553 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2554 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2556 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2558 2014-10-15 Pedro Alves <palves@redhat.com>
2560 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2561 trying to step past a non-steppable watchpoint.
2562 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2564 * infrun.c (struct step_over_info): Add new field
2565 'nonsteppable_watchpoint_p' and adjust comments.
2566 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2568 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2569 (stepping_past_nonsteppable_watchpoint): New function.
2570 (step_over_info_valid_p): Also return true if stepping past a
2571 nonsteppable watchpoint.
2572 (proceed): Adjust call to set_step_over_info. Remove reference to
2574 (init_wait_for_inferior): Remove reference to init_infwait_state.
2575 (waiton_ptid): Delete global.
2576 (struct execution_control_state)
2577 <stepped_after_stopped_by_watchpoint>: Delete field.
2578 (wait_for_inferior, fetch_inferior_event): Always pass
2579 minus_one_ptid to target_wait.
2580 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2582 (init_infwait_state): Delete function.
2583 (handle_inferior_event): Remove infwait_state handling.
2584 (handle_signal_stop) <watchpoints handling>: Adjust after
2585 stepped_after_stopped_by_watchpoint removal. Don't remove
2586 breakpoints here nor set infwait_state. Set the thread's
2587 stepping_over_watchpoint flag, and call keep_going instead.
2588 (keep_going): Handle stepping_over_watchpoint. Adjust
2589 set_step_over_info calls.
2590 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2593 2014-10-15 Pedro Alves <palves@redhat.com>
2595 * infrun.c (step_over_info_valid_p): New function.
2596 (resume): Use step_over_info_valid_p instead of checking the
2597 threads's trap_expected flag.
2599 2014-10-15 Doug Evans <dje@google.com>
2600 Walfred Tedeschi <walfred.tedeschi@intel.com>
2603 * python/lib/gdb/__init__.py (packages): Add "printer".
2604 * python/lib/gdb/command/bound_registers.py: Moved to ...
2605 * python/lib/gdb/printer/bound_registers.py: ... here.
2606 Add printer to global set of builtin printers. Rename printer from
2607 "bound" to "mpx_bound128".
2608 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2609 registered as global "builtin" printer.
2610 (add_builtin_pretty_printer): New function.
2611 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2612 gdb/printer/__init__.py.
2614 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2616 * Makefile.in (SFILES): Remove d-support.c.
2617 (COMMON_OBS): Remove d-support.o.
2618 * d-lang.h (d_parse_symbol): Remove declaration.
2619 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2620 * d-support.c: Remove file.
2622 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2624 * gdb/infrun.c (process_event_stop_test): Apply
2625 gdbarch_addr_bits_remove to longjmp resume address.
2627 2014-10-15 Pedro Alves <palves@redhat.com>
2629 * regformats/microblaze.dat: Delete file.
2631 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2633 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2634 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2636 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2638 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2641 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2645 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2646 with qualified args.
2648 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2650 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2651 of the case where the second operand is a pointer.
2652 <BINOP_SUB>: Likewise.
2654 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2656 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2657 only if it is not NULL.
2658 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2659 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2660 (struct probe_ops) <clear_semaphore>: Likewise.
2661 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2663 (stop_tracing): Likewise, for clear_semaphore.
2665 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2667 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2668 using language_c, instead of current_language.
2670 2014-10-13 Doug Evans <dje@google.com>
2672 * python/py-objfile.c (objfpy_initialize): New function.
2673 (objfpy_new, objfile_to_objfile_object): Call it.
2674 * python/py-progspace.c (pspy_initialize): New function.
2675 (pspy_new, pspace_to_pspace_object): Call it.
2677 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2678 Jan Kratochvil <jan.kratochvil@redhat.com>
2680 Fix "save breakpoints" for "catch" command.
2681 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2684 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2686 Fix "save breakpoints" for "disable $bpnum" command.
2687 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2689 2014-10-10 Pedro Alves <palves@redhat.com>
2691 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2692 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2693 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2694 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2696 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2697 * configure.ac: Remove references to IRIX.
2698 * configure.host: Add *-*-irix* to the obsolete hosts section.
2699 Remove all other references to irix.
2700 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2703 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2705 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2706 isn't valid, release the tdesc arch data and return NULL.
2708 2014-10-10 Pedro Alves <palves@redhat.com>
2710 * linux-tdep.c: Include observer.h.
2711 (linux_inferior_data): New global.
2712 (struct linux_info): New structure.
2713 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2714 (get_linux_inferior_data): New functions.
2715 (linux_vsyscall_range): Rename to ...
2716 (linux_vsyscall_range_raw): ... this.
2717 (linux_vsyscall_range): New function; handles caching.
2718 (_initialize_linux_tdep): Register linux_inferior_data. Install
2719 inferior_exit and inferior_appeared observers.
2721 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2722 Pedro Alves <palves@redhat.com>
2725 * solib-svr4.c (svr4_read_so_list): Rename to ...
2726 (svr4_current_sos_1): ... this and change the function comment.
2727 (svr4_current_sos): New function.
2729 2014-10-10 Pedro Alves <palves@redhat.com>
2731 * arch-utils.c (default_vsyscall_range): New function.
2732 * arch-utils.h (default_vsyscall_range): New declaration.
2733 * gdbarch.sh (vsyscall_range): New hook.
2734 * gdbarch.h, gdbarch.c: Regenerate.
2735 * linux-tdep.c (linux_vsyscall_range): New function.
2736 (linux_init_abi): Install linux_vsyscall_range as
2737 vsyscall_range gdbarch hook.
2738 * memrange.c (address_in_mem_range): New function.
2739 * memrange.h (address_in_mem_range): New declaration.
2740 * symfile-mem.c (find_vdso_size): Delete function.
2741 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2743 2014-10-10 Pedro Alves <palves@redhat.com>
2745 * infrun.c (normal_stop): Fix typo in comment.
2747 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2750 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2751 typo when using logical AND to determine instruction type.
2753 2014-10-09 Yao Qi <yao@codesourcery.com>
2755 * infrun.c (handle_signal_stop): Remove local variable
2758 2014-10-08 Stan Shebs <stan@codesourcery.com>
2760 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2762 2014-10-08 Gary Benson <gbenson@redhat.com>
2764 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2766 2014-10-08 Gary Benson <gbenson@redhat.com>
2768 * common/common-defs.h: Include common-exceptions.h.
2769 * exceptions.h: Do not include common-exceptions.h.
2771 2014-10-08 Gary Benson <gbenson@redhat.com>
2773 * common/common-defs.h: Include cleanups.h.
2774 * common/common-exceptions.c: Do not include cleanups.h.
2775 * utils.h: Likewise.
2777 2014-10-08 Gary Benson <gbenson@redhat.com>
2779 * ada-lang.c: Do not include exceptions.h.
2780 * ada-valprint.c: Likewise.
2781 * amd64-tdep.c: Likewise.
2782 * auto-load.c: Likewise.
2783 * block.c: Likewise.
2784 * break-catch-throw.c: Likewise.
2785 * breakpoint.c: Likewise.
2786 * btrace.c: Likewise.
2787 * c-lang.c: Likewise.
2788 * cli/cli-cmds.c: Likewise.
2789 * cli/cli-interp.c: Likewise.
2790 * cli/cli-script.c: Likewise.
2791 * completer.c: Likewise.
2792 * corefile.c: Likewise.
2793 * corelow.c: Likewise.
2794 * cp-abi.c: Likewise.
2795 * cp-support.c: Likewise.
2796 * cp-valprint.c: Likewise.
2797 * darwin-nat.c: Likewise.
2798 * dwarf2-frame-tailcall.c: Likewise.
2799 * dwarf2-frame.c: Likewise.
2800 * dwarf2loc.c: Likewise.
2801 * dwarf2read.c: Likewise.
2803 * event-loop.c: Likewise.
2804 * event-top.c: Likewise.
2805 * f-valprint.c: Likewise.
2806 * frame-unwind.c: Likewise.
2807 * frame.c: Likewise.
2808 * gdbtypes.c: Likewise.
2809 * gnu-v2-abi.c: Likewise.
2810 * gnu-v3-abi.c: Likewise.
2811 * guile/scm-auto-load.c: Likewise.
2812 * guile/scm-breakpoint.c: Likewise.
2813 * guile/scm-cmd.c: Likewise.
2814 * guile/scm-frame.c: Likewise.
2815 * guile/scm-lazy-string.c: Likewise.
2816 * guile/scm-param.c: Likewise.
2817 * guile/scm-symbol.c: Likewise.
2818 * guile/scm-type.c: Likewise.
2819 * hppa-hpux-tdep.c: Likewise.
2820 * i386-tdep.c: Likewise.
2821 * inf-loop.c: Likewise.
2822 * infcall.c: Likewise.
2823 * infcmd.c: Likewise.
2824 * infrun.c: Likewise.
2825 * interps.c: Likewise.
2826 * interps.h: Likewise.
2828 * linespec.c: Likewise.
2829 * linux-nat.c: Likewise.
2830 * linux-thread-db.c: Likewise.
2831 * m32r-rom.c: Likewise.
2833 * memory-map.c: Likewise.
2834 * mi/mi-cmd-break.c: Likewise.
2835 * mi/mi-cmd-stack.c: Likewise.
2836 * mi/mi-interp.c: Likewise.
2837 * mi/mi-main.c: Likewise.
2838 * monitor.c: Likewise.
2839 * nto-procfs.c: Likewise.
2840 * objc-lang.c: Likewise.
2841 * p-valprint.c: Likewise.
2842 * parse.c: Likewise.
2843 * ppc-linux-tdep.c: Likewise.
2844 * printcmd.c: Likewise.
2845 * probe.c: Likewise.
2846 * python/py-auto-load.c: Likewise.
2847 * python/py-breakpoint.c: Likewise.
2848 * python/py-cmd.c: Likewise.
2849 * python/py-finishbreakpoint.c: Likewise.
2850 * python/py-frame.c: Likewise.
2851 * python/py-framefilter.c: Likewise.
2852 * python/py-function.c: Likewise.
2853 * python/py-gdb-readline.c: Likewise.
2854 * python/py-inferior.c: Likewise.
2855 * python/py-infthread.c: Likewise.
2856 * python/py-lazy-string.c: Likewise.
2857 * python/py-linetable.c: Likewise.
2858 * python/py-param.c: Likewise.
2859 * python/py-prettyprint.c: Likewise.
2860 * python/py-symbol.c: Likewise.
2861 * python/py-type.c: Likewise.
2862 * python/py-value.c: Likewise.
2863 * python/python-internal.h: Likewise.
2864 * python/python.c: Likewise.
2865 * record-btrace.c: Likewise.
2866 * record-full.c: Likewise.
2867 * regcache.c: Likewise.
2868 * remote-fileio.c: Likewise.
2869 * remote-mips.c: Likewise.
2870 * remote.c: Likewise.
2871 * rs6000-aix-tdep.c: Likewise.
2872 * rs6000-nat.c: Likewise.
2874 * solib-darwin.c: Likewise.
2875 * solib-dsbt.c: Likewise.
2876 * solib-frv.c: Likewise.
2877 * solib-ia64-hpux.c: Likewise.
2878 * solib-spu.c: Likewise.
2879 * solib-svr4.c: Likewise.
2880 * solib.c: Likewise.
2881 * spu-tdep.c: Likewise.
2882 * stack.c: Likewise.
2883 * stap-probe.c: Likewise.
2884 * symfile-mem.c: Likewise.
2885 * symmisc.c: Likewise.
2886 * target.c: Likewise.
2887 * thread.c: Likewise.
2889 * tracepoint.c: Likewise.
2890 * tui/tui-interp.c: Likewise.
2891 * typeprint.c: Likewise.
2892 * utils.c: Likewise.
2893 * valarith.c: Likewise.
2894 * valops.c: Likewise.
2895 * valprint.c: Likewise.
2896 * value.c: Likewise.
2897 * varobj.c: Likewise.
2898 * windows-nat.c: Likewise.
2899 * xml-support.c: Likewise.
2901 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2903 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2905 (extended_mips16_next_pc): Update accordingly.
2907 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2909 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2911 (micromips_instruction_is_compact_branch): Likewise.
2912 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2913 or a compact jump, reaching a jump delay slot, or seeing a
2914 second non-prologue instruction.
2915 (micromips_scan_prologue): Also terminate scanning upon seeing a
2916 compact branch or jump, or reaching a branch or jump delay slot.
2917 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2918 or jump delay slot, or seeing a second non-prologue instruction.
2919 (mips32_instruction_has_delay_slot): Retain instruction
2920 examination code only, update arguments accordingly and move
2921 instruction fetch pieces to...
2922 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2923 (micromips_instruction_has_delay_slot): Likewise and to...
2924 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2925 (mips16_instruction_has_delay_slot): Likewise and to...
2926 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2927 (mips_single_step_through_delay): Update accordingly.
2928 (mips_adjust_breakpoint_address): Likewise.
2930 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2932 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2933 !mustbe32 also return 1 for 32-bit instructions.
2934 (mips16_instruction_has_delay_slot): Likewise. Add an
2935 explanatory comment.
2937 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2939 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2942 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2944 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2946 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2947 for the breakpoint's address. Don't preinitialize `placed_size'.
2948 (insert_bp_location): Set `reqstd_address' rather than
2950 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2951 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2953 (bkpt_remove_location): Likewise.
2954 (deprecated_insert_raw_breakpoint): Likewise.
2955 (deprecated_remove_raw_breakpoint): Likewise.
2956 (find_single_step_breakpoint): Likewise.
2957 * mem-break.c (default_memory_insert_breakpoint): Use
2958 `reqstd_address' for the breakpoint's address. Don't set
2959 `placed_address' or `placed_size' if breakpoint contents couldn't
2960 have been determined.
2961 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2962 the breakpoint's address.
2963 (remote_insert_hw_breakpoint): Likewise. Don't set
2964 `placed_address' or `placed_size' if breakpoint couldn't have been
2966 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2967 `reqstd_address' for the breakpoint's address.
2968 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2969 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2970 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2971 * microblaze-linux-tdep.c
2972 (microblaze_linux_memory_remove_breakpoint): Likewise.
2973 * monitor.c (monitor_insert_breakpoint): Likewise.
2974 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2975 (procfs_insert_hw_breakpoint): Likewise.
2976 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2977 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2978 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2979 * remote-mips.c (mips_insert_breakpoint): Likewise.
2980 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2982 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2984 * valops.c (value_assign): Check for bit field assignments
2985 before calling architecture-specific register value
2986 conversion functions.
2988 2014-10-03 Pierre Muller <muller@sourceware.org>
2990 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2992 2014-10-02 Pedro Alves <palves@redhat.com>
2994 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2995 threads_are_executing.
2996 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2998 * gdbthread.h (threads_are_executing): Declare.
2999 (handle_signal_stop) <random signals>: Don't print about the
3000 signal here if stopping.
3001 (end_stepping_range): Don't notify observers here.
3002 (normal_stop): Update the thread list. If stopped by a random
3003 signal or a stepping range ended, notify observers.
3004 * thread.c (threads_executing): New global.
3005 (init_thread_list): Clear 'threads_executing'.
3006 (set_executing): Set or clear 'threads_executing'.
3007 (threads_are_executing): New function.
3008 (update_threads_executing): New function.
3009 (update_thread_list): Use it.
3011 2014-10-02 Pedro Alves <palves@redhat.com>
3013 PR breakpoints/17431
3014 * breakpoint.c (update_breakpoints_after_exec): Don't create
3015 overlay, longjmp, std terminate nor exception breakpoints here.
3017 2014-10-02 Pedro Alves <palves@redhat.com>
3019 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
3021 * inferior.c (find_inferior_for_program_space): Give preference to
3022 the current inferior.
3023 * inferior.h (find_inferior_for_program_space): Update comment.
3024 * progspace.c (switch_to_program_space_and_thread): Prefer the
3025 current inferior if it's bound to the program space requested. If
3026 the inferior found doesn't have a PID yet, don't bother looking up
3028 * progspace.h (switch_to_program_space_and_thread): Adjust
3030 * thread.c (any_thread_of_process, any_live_thread_of_process):
3031 Give preference to the current thread.
3033 2014-10-01 Pedro Alves <palves@redhat.com>
3035 * breakpoint.c (insert_bp_location): Error out if inserting a
3036 software breakpoint at a read-only address.
3037 * target.c (memory_xfer_check_region): New function, factored out
3039 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
3041 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
3042 against the memory region attributes.
3044 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
3046 * NEWS: Announce new exit-code field in -list-thread-groups
3048 * inferior.c (exit_inferior_1): Don't clear exit code.
3049 (inferior_appeared): Clear exit code.
3050 * mi/mi-main.c (print_one_inferior): Add printing of the exit
3053 2014-10-01 Pedro Alves <palves@redhat.com>
3055 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
3056 GENERATED" along with emacs/vi read-only markers.
3057 * regformats/aarch64.dat: Regenerate.
3058 * regformats/arm-with-iwmmxt.dat: Regenerate.
3059 * regformats/arm-with-neon.dat: Regenerate.
3060 * regformats/arm-with-vfpv2.dat: Regenerate.
3061 * regformats/arm-with-vfpv3.dat: Regenerate.
3062 * regformats/i386/amd64-avx-linux.dat: Regenerate.
3063 * regformats/i386/amd64-avx.dat: Regenerate.
3064 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
3065 * regformats/i386/amd64-avx512.dat: Regenerate.
3066 * regformats/i386/amd64-linux.dat: Regenerate.
3067 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
3068 * regformats/i386/amd64-mpx.dat: Regenerate.
3069 * regformats/i386/amd64.dat: Regenerate.
3070 * regformats/i386/i386-avx-linux.dat: Regenerate.
3071 * regformats/i386/i386-avx.dat: Regenerate.
3072 * regformats/i386/i386-avx512-linux.dat: Regenerate.
3073 * regformats/i386/i386-avx512.dat: Regenerate.
3074 * regformats/i386/i386-linux.dat: Regenerate.
3075 * regformats/i386/i386-mmx-linux.dat: Regenerate.
3076 * regformats/i386/i386-mmx.dat: Regenerate.
3077 * regformats/i386/i386-mpx-linux.dat: Regenerate.
3078 * regformats/i386/i386-mpx.dat: Regenerate.
3079 * regformats/i386/i386.dat: Regenerate.
3080 * regformats/i386/x32-avx-linux.dat: Regenerate.
3081 * regformats/i386/x32-avx.dat: Regenerate.
3082 * regformats/i386/x32-avx512-linux.dat: Regenerate.
3083 * regformats/i386/x32-avx512.dat: Regenerate.
3084 * regformats/i386/x32-linux.dat: Regenerate.
3085 * regformats/i386/x32.dat: Regenerate.
3086 * regformats/microblaze-with-stack-protect.dat: Regenerate.
3087 * regformats/mips-dsp-linux.dat: Regenerate.
3088 * regformats/mips-linux.dat: Regenerate.
3089 * regformats/mips64-dsp-linux.dat: Regenerate.
3090 * regformats/mips64-linux.dat: Regenerate.
3091 * regformats/nios2-linux.dat: Regenerate.
3092 * regformats/rs6000/powerpc-32.dat: Regenerate.
3093 * regformats/rs6000/powerpc-32l.dat: Regenerate.
3094 * regformats/rs6000/powerpc-64l.dat: Regenerate.
3095 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
3096 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
3097 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
3098 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
3099 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
3100 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
3101 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
3102 * regformats/s390-linux32.dat: Regenerate.
3103 * regformats/s390-linux32v1.dat: Regenerate.
3104 * regformats/s390-linux32v2.dat: Regenerate.
3105 * regformats/s390-linux64.dat: Regenerate.
3106 * regformats/s390-linux64v1.dat: Regenerate.
3107 * regformats/s390-linux64v2.dat: Regenerate.
3108 * regformats/s390-te-linux64.dat: Regenerate.
3109 * regformats/s390x-linux64.dat: Regenerate.
3110 * regformats/s390x-linux64v1.dat: Regenerate.
3111 * regformats/s390x-linux64v2.dat: Regenerate.
3112 * regformats/s390x-te-linux64.dat: Regenerate.
3113 * regformats/tic6x-c62x-linux.dat: Regenerate.
3114 * regformats/tic6x-c62x.dat: Regenerate.
3115 * regformats/tic6x-c64x-linux.dat: Regenerate.
3116 * regformats/tic6x-c64x.dat: Regenerate.
3117 * regformats/tic6x-c64xp-linux.dat: Regenerate.
3118 * regformats/tic6x-c64xp.dat: Regenerate.
3120 2014-10-01 Pedro Alves <palves@redhat.com>
3122 * features/Makefile: Update comments.
3123 (XMLTOC): List all xml files we build C files from.
3124 (clean-cfiles): New rule.
3126 2014-10-01 Pedro Alves <palves@redhat.com>
3128 * features/i386/amd64-avx512-linux.c: Regenerate.
3129 * features/i386/amd64-avx512.c: Regenerate.
3130 * features/i386/x32-avx512-linux.c: Regenerate.
3131 * features/i386/x32-avx512.c: Regenerate.
3133 2014-10-01 Pedro Alves <palves@redhat.com>
3135 * features/Makefile (WHICH): Remove arm-with-m,
3136 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3138 2014-10-01 Pedro Alves <palves@redhat.com>
3140 * features/Makefile (clean): New rule.
3142 2014-10-01 Pedro Alves <palves@redhat.com>
3144 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3145 (zmm14h): Add missing end quotes.
3147 2014-10-01 Pedro Alves <palves@redhat.com>
3149 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3150 * features/aarch64.c: Regenerate.
3152 2014-09-30 Don Breazeal <donb@codesourcery.com>
3154 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3155 code so as to work with follow_fork_inferior.
3156 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3157 (inf_ttrace_create_inferior): Remove reference to
3158 inf_ttrace_vfork_ppid.
3159 (inf_ttrace_attach): Ditto.
3160 (inf_ttrace_detach): Ditto.
3161 (inf_ttrace_kill): Use current_inferior instead of
3162 inf_ttrace_vfork_ppid.
3163 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3164 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3165 inferior away from the parent.
3166 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3168 (follow_fork_inferior): New function.
3169 (follow_inferior_reset_breakpoints): Make function static.
3170 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3171 * linux-nat.c (linux_child_follow_fork): Move target-independent
3172 code to infrun.c:follow_fork_inferior.
3174 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3176 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3177 * gdbarch.c: Regenerate.
3178 * gdbarch.h: Likewise.
3179 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3180 gdbarch method 'regset_from_core_section'.
3181 (get_core_register_section): Remove handling for the case that
3182 regset == NULL and regset_from_core_section is defined.
3183 (get_core_registers): Drop check for deleted method.
3184 * procfs.c (procfs_do_thread_registers): Adjust comment.
3186 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3188 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3189 (linux_nat_make_corefile_notes): Remove.
3190 (linux_target_install_ops): Do not set target method
3191 'make_corefile_notes'.
3192 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3194 (linux_corefile_thread_callback): Instead of args->collect, call
3195 linux_collect_thread_registers.
3196 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3197 NULL unless there is a regset iterator.
3198 (linux_make_corefile_notes_1): Remove.
3199 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3200 by linux_make_corefile_notes.
3201 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3203 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3205 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3206 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3208 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3210 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3212 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3213 (xtensa_iterate_over_regset_sections): New.
3214 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3216 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3218 * vax-tdep.c (vax_regset_from_core_section): Remove.
3219 (vax_iterate_over_regset_sections): New.
3220 (vax_gdbarch_init): Adjust gdbarch initialization.
3222 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3224 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3225 (tilegx_regset_from_core_section): Remove.
3226 (tilegx_iterate_over_regset_sections): New.
3227 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3229 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3231 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3232 (sparc_iterate_over_regset_sections): New.
3233 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3234 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3236 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3237 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3238 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3239 target method 'make_corefile_notes'.
3241 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3243 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3244 'sizeof_gregset' and 'sizeof_fpregset'.
3245 * sh-tdep.c (sh_regset_from_core_section): Remove.
3246 (sh_iterate_over_regset_sections): New.
3247 (sh_gdbarch_init): Adjust gdbarch initialization.
3248 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3250 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3253 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3255 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3256 (score7_linux_iterate_over_regset_sections): New.
3257 (score_gdbarch_init): Adjust gdbarch initialization.
3259 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3261 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3263 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3264 method 'make_corefile_notes'.
3265 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3266 (ppcfbsd_regset_from_core_section): Remove.
3267 (ppcfbsd_iterate_over_regset_sections): New.
3268 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3270 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3271 (ppcnbsd_iterate_over_regset_sections): New.
3272 (ppcnbsd_init_abi): Adjust.
3273 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3274 (ppcobsd_iterate_over_regset_sections): New.
3275 (ppcobsd_init_abi): Adjust.
3276 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3277 (rs6000_aix_iterate_over_regset_sections): New.
3278 (rs6000_aix_init_osabi): Adjust.
3280 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3282 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3283 (nios2_regset_from_core_section): Remove.
3284 (nios2_iterate_over_regset_sections): New.
3285 (nios2_linux_init_abi): Adjust gdbarch initialization.
3287 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3289 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3290 (am33_iterate_over_regset_sections): New.
3291 (am33_linux_init_osabi): Adjust gdbarch initialization.
3293 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3295 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3296 (mips_linux_iterate_over_regset_sections): New.
3297 (mips_linux_init_abi): Adjust gdbarch initialization.
3298 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3299 (mips64obsd_iterate_over_regset_sections): New.
3300 (mips64obsd_init_abi): Adjust.
3301 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3302 (mipsnbsd_iterate_over_regset_sections): New.
3303 (mipsnbsd_init_abi): Adjust.
3305 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3307 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3308 (m88k_iterate_over_regset_sections): New.
3309 (m88k_gdbarch_init): Adjust gdbarch initialization.
3311 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3313 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3314 (ia64_linux_iterate_over_regset_sections): New.
3315 (ia64_linux_init_abi): Adjust gdbarch initialization.
3317 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3319 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3320 (m68kbsd_iterate_over_regset_sections): New.
3321 (m68kbsd_init_abi): Adjust gdbarch initialization.
3322 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3323 (m68k_linux_iterate_over_regset_sections): New.
3324 (m68k_linux_init_abi): Adjust gdbarch initialization.
3326 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3328 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3329 (m32r_linux_regset_from_core_section): Remove.
3330 (m32r_linux_iterate_over_regset_sections): New.
3331 (m32r_linux_init_abi): Adjust gdbarch initialization.
3333 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3335 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3336 (amd64obsd_iterate_over_regset_sections): New.
3337 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3338 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3340 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3341 regset_from_core_section initialization.
3342 * i386-tdep.c (i386_regset_from_core_section): Remove.
3343 (i386_iterate_over_regset_sections): New.
3344 (i386_gdbarch_init): Adjust gdbarch initialization.
3345 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3346 (i386_iterate_over_regset_sections): New prototype.
3347 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3349 (i386obsd_aout_iterate_over_regset_sections): New.
3350 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3351 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3353 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3354 (amd64fbsd_init_abi): Call fbsd_init_abi.
3355 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3356 (i386fbsd4_init_abi): Call fbsd_init_abi.
3357 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3358 target method 'make_corefile_notes'.
3359 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3361 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3363 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3364 (hppa_hpux_iterate_over_regset_sections): New.
3365 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3366 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3367 (hppa_linux_iterate_over_regset_sections): New.
3368 (hppa_linux_init_abi): Adjust.
3369 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3370 (hppanbsd_iterate_over_regset_sections): New.
3371 (hppanbsd_init_abi): Adjust.
3372 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3373 (hppaobsd_iterate_over_regset_sections): New.
3374 (hppaobsd_init_abi): Adjust.
3376 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3378 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3379 (frv_linux_iterate_over_regset_sections): New.
3380 (frv_linux_init_abi): Adjust gdbarch initialization.
3382 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3384 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3385 (armbsd_iterate_over_regset_sections): New prototype.
3386 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3387 (armbsd_iterate_over_regset_sections): New.
3388 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3391 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3393 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3394 (alpha_linux_iterate_over_regset_sections): New.
3395 (alpha_linux_init_abi): Adjust gdbarch initialization.
3396 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3398 (alphanbsd_iterate_over_regset_sections): New prototype.
3400 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3402 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3404 (aarch64_linux_iterate_over_regset_sections): New.
3405 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3407 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3409 * fbsd-tdep.c: New file.
3410 * fbsd-tdep.h: New file.
3411 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3412 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3413 (ALLDEPFILES): Add fbsd-tdep.c.
3415 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3417 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3419 * gdbarch.h: Regenerate.
3420 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3422 (get_core_register_section): Add parameter 'regset' and use it, if
3423 set. Add parameter 'min_size' and verify the bfd section size
3425 (get_core_registers_cb): Add parameter 'regset' and pass it to
3426 get_core_register section. For the "standard" register sections
3427 ".reg" and ".reg2", set an appropriate default for human_name.
3428 (get_core_registers): Don't abort when the gdbarch has an iterator
3429 but no regset_from_core_section. Add NULL/0 for parameters
3430 'regset'/'min_size' in calls to get_core_register_section.
3431 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3432 'regset' and use it instead of calling the
3433 regset_from_core_section gdbarch method.
3434 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3435 * i386-tdep.c (i386_supply_xstateregset)
3436 (i386_collect_xstateregset, i386_xstateregset): Moved to
3438 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3440 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3441 core file support only if the regset iterator hasn't been set.
3442 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3443 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3444 Moved from i386-tdep.c and renamed to *_linux*.
3445 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3446 each callback invocation. Allow any .reg-xstate size when reading
3448 * amd64-tdep.c (amd64_supply_xstateregset)
3449 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3451 (amd64_regset_from_core_section): Remove.
3452 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3453 install an amd64-specific regset_from_core_section gdbarch method.
3454 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3455 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3456 Moved from amd64-tdep.c and renamed to *_linux*.
3457 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3458 to each callback invocation. Allow any .reg-xstate size when
3459 reading from a core file.
3460 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3461 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3462 each callback invocation.
3463 (arm_linux_init_abi): No longer set the regset_from_core_section
3465 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3466 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3467 each callback invocation.
3468 (ppc_linux_init_abi): No longer set the regset_from_core_section
3470 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3471 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3472 (s390_regset_from_core_section): Remove.
3473 (s390_iterate_over_regset_sections): Add regset parameter to each
3474 callback invocation.
3475 (s390_gdbarch_init): No longer set the regset_from_core_section
3476 gdbarch method. Drop initialization of deleted tdep fields.
3478 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3480 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3481 (amd64_linux_iterate_over_regset_sections): New.
3482 (amd64_linux_init_abi_common): Don't install the regset section
3483 list, but the new iterator in gdbarch.
3484 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3485 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3486 (arm_linux_iterate_over_regset_sections): ...here. New function.
3487 (arm_linux_init_abi): Set iterator instead of section list.
3488 * corelow.c (get_core_registers_cb): New function, logic moved
3490 (get_core_registers): ...loop body here. Use new iterator method
3491 instead of walking through the regset section list.
3492 * gdbarch.sh: Remove 'core_regset_sections'. New method
3493 'iterate_over_regset_sections'. New typedef
3494 'iterate_over_regset_sections_cb'.
3495 * gdbarch.c: Regenerate.
3496 * gdbarch.h: Likewise.
3497 * i386-linux-tdep.c (i386_linux_regset_sections)
3498 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3500 (i386_linux_iterate_over_regset_sections): New.
3501 (i386_linux_init_abi): Don't choose a regset section list, but
3502 install new iterator in gdbarch.
3503 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3504 (linux_collect_regset_section_cb): New function, logic moved
3506 (linux_collect_thread_registers): ...loop body here. Use iterator
3507 method instead of walking through list.
3508 (linux_make_corefile_notes_1): Check for presence of iterator
3509 method instead of regset section list.
3510 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3511 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3512 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3513 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3514 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3515 (ppc_linux_init_abi): Don't choose from above regset section
3516 lists, but install new iterator in gdbarch.
3517 * regset.h (struct core_regset_section): Remove.
3518 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3519 have_linux_v1, have_linux_v2, and have_tdb.
3520 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3521 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3522 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3523 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3524 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3525 (s390_iterate_over_regset_sections): ...here. New function. Use
3527 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3528 regset section lists, but install new iterator.
3530 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3532 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3534 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3536 * progspace.c (print_program_space): Don't prune program spaces
3537 before printing them.
3539 2014-09-25 Pedro Alves <palves@redhat.com>
3541 * infrun.c (user_visible_resume_ptid): Don't check
3542 singlestep_breakpoints_inserted_p.
3544 2014-09-25 Pedro Alves <palves@redhat.com>
3546 * breakpoint.c (should_be_inserted): Add debug output.
3548 2014-09-25 Pedro Alves <palves@redhat.com>
3550 * infrun.c (stepping_past_instruction_at)
3551 (clear_exit_convenience_vars): Point at infrun.h instead of
3553 (handle_signal_stop): Fix typo.
3555 2014-09-24 Yao Qi <yao@codesourcery.com>
3557 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3560 2014-09-22 Gary Benson <gbenson@redhat.com>
3562 * target.c (target_stop): Updated comment.
3564 2014-09-22 Gary Benson <gbenson@redhat.com>
3566 * target/target.h (target_stop_ptid): Renamed as...
3567 (target_stop_and_wait): New function. Updated comment.
3569 (target_continue_ptid): Renamed as...
3570 (target_continue_no_signal): New function. Updated comment.
3573 2014-09-22 Pedro Alves <palves@redhat.com>
3575 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3577 * breakpoint.c (enum ugll_insert_mode): New enum.
3578 (always_inserted_mode): Now a plain boolean.
3579 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3580 (breakpoints_always_inserted_mode): Delete.
3581 (breakpoints_should_be_inserted_now): New function.
3582 (insert_breakpoints): Pass UGLL_INSERT to
3583 update_global_location_list instead of calling
3584 insert_breakpoint_locations manually.
3585 (create_solib_event_breakpoint_1): New, factored out from ...
3586 (create_solib_event_breakpoint): ... this.
3587 (create_and_insert_solib_event_breakpoint): Use
3588 create_solib_event_breakpoint_1 instead of calling
3589 insert_breakpoint_locations manually.
3590 (update_global_location_list): Change parameter type from boolean
3591 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3592 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3593 (update_global_location_list_nothrow): Change parameter type from
3594 boolean to enum ugll_insert_mode.
3595 (_initialize_breakpoint): "breakpoint always-inserted" option is
3596 now a boolean command. Update help text.
3597 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3598 (breakpoints_should_be_inserted_now): New declaration.
3599 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3600 Remove breakpoints_always_inserted_mode check.
3601 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3602 * remote.c (remote_start_remote): Likewise.
3604 2014-09-22 Pedro Alves <palves@redhat.com>
3606 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3607 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3608 Instead, pass UGLL_INSERT to update_global_location_list.
3609 (update_global_location_list): Change parameter type from boolean
3610 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3611 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3612 (create_solib_event_breakpoint_1): New, factored out from ...
3613 (create_solib_event_breakpoint): ... this.
3614 (create_and_insert_solib_event_breakpoint): Use
3615 create_solib_event_breakpoint_1 instead of calling
3616 insert_breakpoint_locations manually.
3617 (update_global_location_list): Handle UGLL_INSERT.
3619 2014-09-22 Pedro Alves <palves@redhat.com>
3621 * breakpoint.c (enum ugll_insert_mode): New enum.
3622 (update_global_location_list)
3623 (update_global_location_list_nothrow): Change parameter type from
3624 boolean to enum ugll_insert_mode. All callers adjusted.
3626 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3628 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3629 SystemTap support in GDB.
3631 2014-09-19 Don Breazeal <donb@codesourcery.com>
3633 * linux-nat.c (linux_handle_extended_wait): Call
3634 linux_ptrace_get_extended_event.
3635 (wait_lwp): Call linux_is_extended_waitstatus.
3636 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3637 and linux_is_extended_waitstatus.
3638 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3639 linux_ptrace_get_extended_event.
3640 (linux_ptrace_get_extended_event): New function.
3641 (linux_is_extended_waitstatus): New function.
3642 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3643 (linux_is_extended_waitstatus): New declarations.
3645 2014-09-19 Yao Qi <yao@codesourcery.com>
3647 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3648 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3649 comments. Callers update.
3650 (dwarf_decode_lines): Likewise.
3651 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3652 comments. Skip the line table if 'lowpc' is greater than
3653 'address'. Don't check
3654 dwarf2_per_objfile->has_section_at_zero.
3656 2014-09-18 Doug Evans <dje@google.com>
3658 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3659 * python/py-symtab.c (stpy_get_producer): New function.
3660 (symtab_object_getset): Add "producer" attribute.
3662 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3665 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3666 (do_captured_read_memory_integer): Remove.
3667 (safe_read_memory_integer): Use target_read_memory directly instead
3668 of catching errors in do_captured_read_memory_integer.
3670 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3672 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3675 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3677 * objc-lang.c (find_implementation_from_class): Remove dead code.
3679 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3682 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3683 "fprintf_unfiltered (gdb_stdlog...)".
3685 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3687 PR breakpoints/12526
3688 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3690 * breakpoint.c (watch_command_1): Use these fields to retain
3691 bitfield information.
3692 (extract_bitfield_from_watchpoint_value): New function.
3693 (watchpoint_check): Use it.
3694 (update_watchpoint): Use it. Optimize the address and length of a
3695 HW watchpoint pointing to a bitfield.
3696 * value.h (unpack_value_bitfield): New prototype.
3697 * value.c (unpack_value_bitfield): Make extern.
3699 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3701 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3703 * gnu-nat.c (inf_threads): New function.
3704 * gnu-nat.h (inf_threads_ftype): New typedef.
3705 (inf_threads): New declaration.
3706 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3707 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3708 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3709 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3710 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3711 (i386_gnu_dr_get_control): New functions.
3712 (reg_addr): New structure.
3713 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3714 i386 debugging register hooks.
3715 * NEWS: Mention this.
3717 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3719 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3720 vector data transfer instructions.
3721 (arm_record_coproc_data_proc): Updated.
3723 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3725 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3726 arm_record_exreg_ld_st_insn.
3727 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3730 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3732 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3733 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3734 processing instructions.
3736 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3738 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3739 for advance SIMD struct ld/st insn.
3740 (thumb2_record_decode_insn_handler): Replace stub handler with
3741 thumb2_record_asimd_struct_ld_st.
3743 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3745 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3746 for asimd, vfp and coprocessor insns.
3747 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3748 and coprocessor insns.
3749 (thumb2_record_coproc_insn): New function.
3750 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3752 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3755 2014-09-13 Doug Evans <xdje42@gmail.com>
3757 * NEWS: Mention new "queue-signal" command.
3758 * infcmd.c (queue_signal_command): New function.
3759 (_initialize_infcmd): Add new queue-signal command.
3761 2014-09-13 Doug Evans <xdje42@gmail.com>
3763 * linux-nat.c (wait_lwp): Add debugging printf.
3764 (linux_nat_wait_1): Ditto.
3766 2014-09-12 Pedro Alves <palves@redhat.com>
3768 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3769 (create_and_insert_solib_event_breakpoint): New functions.
3770 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3771 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3772 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3773 (remove_dbx_link_breakpoint): Delete function.
3774 (insert_dbx_link_bpt_in_file): Use
3775 create_and_insert_solib_event_breakpoint instead of
3776 deprecated_insert_raw_breakpoint.
3777 (procfs_wait): Don't check whether we hit __dbx_link here.
3778 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3780 * solib-irix.c (base_breakpoint): Delete global.
3781 (disable_break): Delete function.
3782 (enable_break): Use create_solib_event_breakpoint
3783 instead of deprecated_insert_raw_breakpoint.
3784 (irix_solib_handle_event): New function.
3785 (irix_solib_create_inferior_hook): Don't run the target or disable
3786 the mapping-complete breakpoint here.
3787 (_initialize_irix_solib): Install irix_solib_handle_event as
3788 so_ops->handle_event hook.
3790 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3791 Ulrich Weigand <uweigand@de.ibm.com>
3794 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3795 instead of read_memory_unsigned_integer.
3797 2014-09-12 Gary Benson <gbenson@redhat.com>
3799 * nat/linux-waitpid.c: Include common-defs.h.
3800 [GDBSERVER]: Add FIXME comment.
3801 [!GDBSERVER]: Don't include defs.h or signal.h.
3802 (linux_debug) [!GDBSERVER]: Remove empty block.
3804 2014-09-12 Gary Benson <gbenson@redhat.com>
3806 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3807 Don't include defs.h or server.h.
3809 2014-09-12 Gary Benson <gbenson@redhat.com>
3811 * nat/linux-btrace.c: Include common-defs.h.
3812 Don't include defs.h, server.h or gdbthread.h.
3813 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3815 2014-09-12 Gary Benson <gbenson@redhat.com>
3817 * common/agent.c: Include common-defs.h.
3818 Don't include defs.h or server.h.
3819 * common/buffer.c: Likewise.
3820 * common/common-debug.c: Likewise.
3821 * common/common-utils.c: Likewise.
3822 * common/errors.c: Likewise.
3823 * common/filestuff.c: Likewise.
3824 * common/format.c: Likewise.
3825 * common/gdb_vecs.c: Likewise.
3826 * common/print-utils.c: Likewise.
3827 * common/ptid.c: Likewise.
3828 * common/rsp-low.c: Likewise.
3829 * common/signals.c: Likewise.
3830 * common/vec.c: Likewise.
3831 * common/xml-utils.c: Likewise.
3832 * nat/linux-osdata.c: Likewise.
3833 * nat/linux-procfs.c: Likewise.
3834 * nat/linux-ptrace.c: Likewise.
3835 * nat/mips-linux-watch.c: Likewise.
3836 * target/waitstatus.c: Likewise.
3838 2014-09-12 Tom Tromey <tromey@redhat.com>
3839 Gary Benson <gbenson@redhat.com>
3841 * common/common-regcache.h: New file.
3842 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3843 * regcache.h: Include common-regcache.h.
3844 (regcache_read_pc): Don't declare.
3845 * regcache.c (get_thread_regcache_for_ptid): New function.
3846 * nat/linux-btrace.c: Don't include regcache.h.
3847 Include common-regcache.h.
3848 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3850 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3852 * regcache.h (struct regset): Declare.
3854 2014-09-11 Pedro Alves <palves@redhat.com>
3857 * main.c: Include "infrun.h".
3858 (catch_command_errors, catch_command_errors_const): Wait for the
3859 foreground command to complete.
3860 * top.c (maybe_wait_sync_command_done): New function, factored out
3862 (maybe_wait_sync_command_done): ... here.
3863 * top.h (maybe_wait_sync_command_done): New declaration.
3865 2014-09-11 Tom Tromey <tromey@redhat.com>
3866 Gary Benson <gbenson@redhat.com>
3868 * common/symbol.h: New file.
3869 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3870 * minsyms.c (find_minimal_symbol_address): New function.
3871 * common/agent.c: Include common/symbol.h.
3872 [!GDBSERVER]: Don't include objfiles.h.
3873 (agent_look_up_symbols): Use find_minimal_symbol_address.
3875 2014-09-11 Gary Benson <gbenson@redhat.com>
3877 * target/target.h (target_stop_ptid, target_continue_ptid):
3879 * target.c (target_stop_ptid, target_continue_ptid): New
3881 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3882 (agent_run_command): Always use target_stop_ptid and
3883 target_continue_ptid.
3885 2014-09-11 Tom Tromey <tromey@redhat.com>
3886 Gary Benson <gbenson@redhat.com>
3888 * target/target.h: New file.
3889 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3890 * target.h: Include target/target.h.
3891 (target_read_memory, target_write_memory): Don't declare.
3892 * target.c (target_read_uint32): New function.
3893 * common/agent.c: Include target/target.h.
3894 [!GDBSERVER]: Don't include target.h.
3895 (helper_thread_id): Type changed to uint32_t.
3896 (agent_get_helper_thread_id): Use target_read_uint32.
3897 (agent_run_command): Always use target_read_memory and
3898 target_write_memory.
3899 (agent_capability): Type changed to uint32_t.
3900 (agent_capability_check): Use target_read_uint32.
3902 2014-09-11 Gary Benson <gbenson@redhat.com>
3904 * common/common-debug.h (show_debug_regs): Declare.
3905 * common/common-debug.c (show_debug_regs): Define.
3906 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3907 all uses with show_debug_regs. Replace all uses that considered
3908 debug_hw_points as a multi-value integer with straight boolean
3910 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3911 with show_debug_regs.
3912 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3913 all uses with show_debug_regs.
3914 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3915 uses with show_debug_regs.
3917 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3919 * findvar.c (address_from_register): Handle targets requiring
3920 a special conversion routine even for plain pointer types.
3922 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3924 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3925 (store_register): Do not call exec_one_dummy_insn.
3927 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3929 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3930 dereference it first. Use value_enclosing_type instead of
3932 (ada_array_length): Likewise.
3934 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3936 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3937 Adjust function implementation and documentation accordingly.
3938 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3939 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3940 Update call to ada_value_ptr_subscript.
3942 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3944 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3945 instead of VAL's type.
3947 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3949 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3951 2014-09-09 Doug Evans <xdje42@gmail.com>
3954 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3955 last parameter to pkg-config, not first.
3956 * configure.ac: Pass --with-guile provided pkg-config path to
3957 GDB_GUILE_PROGRAM_NAMES.
3958 * configure: Regenerate.
3960 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3962 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3965 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3967 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3968 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3969 the list of sections determining GDB_OSABI_IRIX.
3971 2014-09-09 James Hogan <james.hogan@imgtec.com>
3973 * MAINTAINERS (Write After Approval): Add "James Hogan".
3975 2014-09-09 James Hogan <james.hogan@imgtec.com>
3977 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3979 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3981 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3983 2014-09-08 Doug Evans <xdje42@gmail.com>
3986 * guile.c: #include <signal.h>.
3987 (_initialize_guile): Block SIGCHLD while initializing Guile.
3989 Replaces the following, which is reverted.
3991 2014-07-26 Doug Evans <xdje42@gmail.com>
3994 * configure.ac: Add check for header gc/gc.h.
3995 Add check for function setenv.
3996 * configure: Regenerate.
3997 * config.in: Regenerate.
3998 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4000 2014-09-08 Doug Evans <xdje42@gmail.com>
4002 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
4003 with named constant. Fix style of pointer comparison.
4004 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
4006 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
4009 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
4010 decide whether we display the command on "show user".
4011 * cli/cli-script.c (show_user_1): Only verify cmdlines after
4012 printing command name.
4013 * cli/cli-decode.h (cli_user_command_p): Declare new function.
4014 * cli/cli-decode.c (cli_user_command_p): Create helper function
4015 to verify whether cmd_list_element is a user-defined command.
4017 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4020 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
4021 Fix goto out of TRY_CATCH.
4023 2014-09-06 Doug Evans <xdje42@gmail.com>
4024 Tom Tromey <tromey@redhat.com>
4027 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
4028 $_any_caller_matches.
4029 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
4030 * python/lib/gdb/function/caller_is.py: New file.
4032 2014-09-06 Doug Evans <xdje42@gmail.com>
4034 * infcmd.c (program_info): Fix typo.
4036 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
4039 * stap-probe.c (stap_parse_single_operand): Delete unused variable
4040 'number'. New variable 'has_digit'. Rewrite code to deal with
4041 subexpressions on SDT probes.
4043 2014-09-04 Pedro Alves <palves@redhat.com>
4045 * c-exp.y (parse_number): Skip handling base-switching prefixes if
4046 the input is only one character long.
4048 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
4051 * f-valprint.c (f_val_print): Specify the correct print option to
4052 use when printing integer values.
4054 2014-09-04 Gary Benson <gbenson@redhat.com>
4056 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
4057 Remove code to cope with LWPs wrapped as PIDs.
4058 Add assertions to ensure no wrapped LWPs are passed.
4060 2014-09-04 Pedro Alves <palves@redhat.com>
4062 * value.c (value_ranges_copy_adjusted): New function, factored out
4064 (value_contents_copy_raw): ... here.
4065 (unpack_value_bits_as_long_1): Rename back to ...
4066 (unpack_bits_as_long): ... this. Remove 'original_value' and
4067 'result' parameters. Change return type to LONGEST.
4068 (unpack_value_bits_as_long): Delete.
4069 (unpack_value_field_as_long_1): Delete.
4070 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
4071 (unpack_value_bitfield): New function.
4072 (value_field_bitfield): Reimplement using unpack_value_bitfield.
4073 (value_fetch_lazy): Use unpack_value_bitfield.
4074 * value.h (unpack_value_bits_as_long): Delete declaration.
4076 2014-09-03 Sasha Smundak <asmundak@google.com>
4078 * python/py-frame.c (frapy_read_register): New function.
4080 2014-09-03 James Hogan <james.hogan@imgtec.com>
4082 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
4083 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
4085 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
4088 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
4090 (add_cmd): Set "completer_handle_brkchars" to NULL.
4091 * cli/cli-decode.h (struct cmd_list_element)
4092 <completer_handle_brkchars>: New field.
4093 * command.h (completer_ftype_void): New typedef.
4094 (set_cmd_completer_handle_brkchars): New prototype.
4095 * completer.c (set_gdb_completion_word_break_characters): New
4097 (complete_line_internal): Call "completer_handle_brkchars"
4098 callback from command.
4099 * completer.h: Include "command.h".
4100 (set_gdb_completion_word_break_characters): New prototype.
4101 * python/py-cmd.c (cmdpy_completer_helper): New function.
4102 (cmdpy_completer_handle_brkchars): New function.
4103 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
4104 (cmdpy_init): Set completer_handle_brkchars to
4105 cmdpy_completer_handle_brkchars.
4107 2014-09-03 Gary Benson <gbenson@redhat.com>
4109 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
4110 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
4111 Loop conditions changed to equivalent form.
4112 (struct x86_debug_reg_state): Updated dr_ref_count comment.
4113 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
4114 ALL_DEBUG_ADDRESS_REGISTERS.
4116 2014-09-03 Joel Brobecker <brobecker@adacore.com>
4118 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4121 2014-09-02 Doug Evans <dje@google.com>
4123 * typeprint.c (find_global_typedef): Fix comment.
4125 2014-09-02 Gary Benson <gbenson@redhat.com>
4127 * i386-nat.h: Renamed as...
4128 * x86-nat.h: New file. All type, function and variable name
4129 prefixes changed from "i386_" to "x86_". All references updated.
4130 * i386-nat.c: Renamed as...
4131 * x86-nat.c: New file. All type, function and variable name
4132 prefixes changed from "i386_" to "x86_". All references updated.
4133 * common/i386-xstate.h: Renamed as...
4134 * common/x86-xstate.h: New file. All type, function and variable
4135 name prefixes changed from "i386_" to "x86_". All references
4137 * nat/i386-cpuid.h: Renamed as...
4138 * nat/x86-cpuid.h: New file. All type, function and variable name
4139 prefixes changed from "i386_" to "x86_". All references updated.
4140 * nat/i386-gcc-cpuid.h: Renamed as...
4141 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4142 name prefixes changed from "i386_" to "x86_". All references
4144 * nat/i386-dregs.h: Renamed as...
4145 * nat/x86-dregs.h: New file. All type, function and variable name
4146 prefixes changed from "i386_" to "x86_". All references updated.
4147 * nat/i386-dregs.c: Renamed as...
4148 * nat/x86-dregs.c: New file. All type, function and variable name
4149 prefixes changed from "i386_" to "x86_". All references updated.
4151 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4153 * varobj.c (_initialize_varobj): Move to the end of file.
4155 2014-08-29 Gary Benson <gbenson@redhat.com>
4157 * common/common-exceptions.h: New file.
4158 * common/common-exceptions.c: Likewise.
4159 * Makefile.in (SFILES): Add common/common-exceptions.c.
4160 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4161 (COMMON_OBS): Add common-exceptions.o.
4162 (common-exceptions.o): New rule.
4163 * exceptions.h (common-exceptions.h): Include.
4164 (gdb_setjmp.h): Do not include.
4165 (return_reason): Moved to common-exceptions.h.
4166 (enum return_reason): Likewise.
4167 (RETURN_MASK): Likewise.
4168 (typedef return_mask): Likewise.
4169 (enum errors): Likewise.
4170 (struct gdb_exception): Likewise.
4171 (exceptions_state_mc_init): Likewise.
4172 (exceptions_state_mc_action_iter): Likewise.
4173 (exceptions_state_mc_action_iter_1): Likewise.
4174 (TRY_CATCH): Likewise.
4175 (throw_exception): Likewise.
4176 (throw_verror): Likewise.
4177 (throw_vquit): Likewise.
4178 (throw_error): Likewise.
4179 (throw_quit): Likewise.
4180 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4181 (enum catcher_action): Likewise.
4182 (struct catcher): Likewise.
4183 (current_catcher): Likewise.
4184 (catcher_list_size): Likewise.
4185 (exceptions_state_mc_init): Likewise.
4186 (catcher_pop): Likewise.
4187 (exceptions_state_mc): Likewise.
4188 (exceptions_state_mc_action_iter): Likewise.
4189 (exceptions_state_mc_action_iter_1): Likewise.
4190 (throw_exception): Likewise.
4191 (exception_messages): Likewise.
4192 (exception_messages_size): Likewise.
4193 (throw_it): Likewise.
4194 (throw_verror): Likewise.
4195 (throw_vquit): Likewise.
4196 (throw_error): Likewise.
4197 (throw_quit): Likewise.
4198 (prepare_to_throw_exception): New function.
4200 2014-08-29 Gary Benson <gbenson@redhat.com>
4202 * common/gdb_setjmp.h: New file.
4203 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4204 * configure.ac: Move sigsetjmp check...
4205 * common/common.m4: ...here.
4206 * configure: Regenerate.
4207 * cp-support.c (SIGJMP_BUF): Delete.
4208 (SIGSETJMP): Likewise.
4209 (SIGLONGJMP): Likewise.
4210 * exceptions.h (gdb_setjmp.h): Include.
4211 (setjmp.h): Do not include.
4212 (EXCEPTIONS_SIGJMP_BUF): Delete.
4213 (EXCEPTIONS_SIGSETJMP): Likewise.
4214 (EXCEPTIONS_SIGLONGJMP): Likewise.
4215 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4217 * exceptions.c: Likewise.
4219 2014-08-29 Gary Benson <gbenson@redhat.com>
4221 * cleanups.h: Moved to...
4222 * common/cleanups.h: New file.
4223 * cleanups.c: Moved to...
4224 * common/cleanups.c: New file. Include common-defs.h and
4225 cleanups.h. Do not include defs.h.
4226 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4227 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4228 (cleanups.o): New rule.
4230 2014-08-29 Gary Benson <gbenson@redhat.com>
4232 * common/errors.h (internal_warning): New declaration.
4233 (internal_vwarning): Likewise.
4234 * common/errors.c (internal_warning): New function.
4235 * utils.h (internal_warning): Don't declare.
4236 (internal_vwarning): Likewise.
4237 * utils.c (internal_warning): Removed.
4239 2014-08-29 Gary Benson <gbenson@redhat.com>
4241 * main.c (captured_main): Use warning during startup.
4242 Prefix startup warning messages with command name.
4244 2014-08-29 Gary Benson <gbenson@redhat.com>
4246 * main.c (captured_main): Handle usage errors with error.
4248 2014-08-29 Gary Benson <gbenson@redhat.com>
4250 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4251 exit pair with a call to error. Wrap the message with _().
4253 2014-08-29 Gary Benson <gbenson@redhat.com>
4255 * main.c (captured_main): Replace a fprintf/exit
4256 pair with a call to error. Wrap the message with _().
4258 2014-08-29 Gary Benson <gbenson@redhat.com>
4260 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4261 pairs with calls to error. Wrap the message with _().
4263 2014-08-29 Gary Benson <gbenson@redhat.com>
4265 * utils.c (vwarning): Protect calls to target_terminal_ours
4268 2014-08-29 Gary Benson <gbenson@redhat.com>
4270 * exceptions.c (print_flush): Protect calls to
4271 target_terminal_ours and wrap_here.
4273 2014-08-29 Gary Benson <gbenson@redhat.com>
4275 * utils.h (filtered_printing_initialized): New declaration.
4276 * utils.c (abort_with_message): New function.
4277 (internal_vproblem): Use abort_with_message for first level
4278 recursive internal problems, and if gdb_stderr is not set up.
4279 Protect calls to target_terminal_ours, begin_line and query.
4281 2014-08-28 Doug Evans <dje@google.com>
4283 * symtab.c (in_prologue): Move definition to better spot.
4284 (skip_prologue_using_sal): Ditto.
4286 2014-08-28 Doug Evans <dje@google.com>
4288 * symtab.c (find_function_start_sal): Move definition to better spot.
4290 2014-08-28 Yao Qi <yao@codesourcery.com>
4292 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4293 found_stack_adjust in forward scan. Remove condition check
4294 on found_stack_adjust which is always true. Indent the code.
4296 2014-08-28 Yao Qi <yao@codesourcery.com>
4298 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4299 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4300 (dwarf_decode_lines): Remove argument
4301 want_line_info. Remove condition check on want_line_info.
4304 2014-08-27 Doug Evans <dje@google.com>
4306 * dwarf2read.c (dwarf_record_line): Fix typo.
4308 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4310 * target.h (struct target_ops::to_terminal_save_ours): Remove
4312 (target_terminal_save_ours): Remove macro.
4313 * target-delegates.c: Regenerate.
4314 * inf-child.c (inf_child_target): Don't set the nonexistent
4315 field to_terminal_save_ours.
4316 * inferior.h (child_terminal_save_ours): Remove declaration.
4317 * terminal.h (gdb_save_tty_state): New declaration.
4318 * inflow.c (child_terminal_save_ours): Rename to ...
4319 (gdb_save_tty_state): ... this.
4320 * tui/tui.c: Include terminal.h.
4321 (tui_enable): Use gdb_save_tty_state instead of
4322 target_terminal_save_ours.
4323 (tui_disable): Likewise.
4325 2014-08-25 Doug Evans <dje@google.com>
4327 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4328 Pass NULL instead of 0 for context pointer.
4330 2014-08-25 Yao Qi <yao@codesourcery.com>
4332 * dwarf2read.c: Fix grammatical error.
4334 2014-08-24 Yao Qi <yao@codesourcery.com>
4336 * dwarf2read.c (scan_partial_symbols): Update comments.
4337 Rename argument 'need_pc' with 'set_addrmap'.
4338 (add_partial_namespace): Rename argument 'need_pc' with
4340 (add_partial_module): Likewise.
4341 (add_partial_subprogram): Likewise. Update comments.
4342 (dwarf2_name): Fix typo.
4344 2014-08-22 Doug Evans <dje@google.com>
4347 * dwarf2read.c (dwarf_record_line_p): New function.
4348 (dwarf_decode_lines_1): Ignore subsequent line number entries
4349 for the same line if any entry had a non-zero discriminator.
4351 2014-08-22 Doug Evans <dje@google.com>
4353 * buildsym.h (record_line_ftype): New typedef.
4354 (record_line): Use it.
4355 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4356 (dwarf_decode_lines_1): Call them.
4358 2014-08-22 Yao Qi <yao@codesourcery.com>
4360 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4361 (ctf_end): Remove code.
4363 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4365 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4366 (linux_make_corefile_notes): call update_thread_list, protected against
4369 2014-08-21 Pedro Alves <palves@redhat.com>
4371 * infcmd.c (attach_command): Remove comment.
4373 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4375 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4376 unsigned LONGEST to ULONGEST.
4378 2014-08-20 Pedro Alves <palves@redhat.com>
4380 * Makefile.in (check-read1): New rule.
4382 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4384 * value.c (value_from_contents_and_address): Strip resolved_type's
4385 typedef layers before checking its TYPE_DATA_LOCATION.
4387 2014-08-20 Pedro Alves <palves@redhat.com>
4389 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4391 2014-08-20 Yao Qi <yao@codesourcery.com>
4393 * amd64-tdep.c (amd64_classify): Add a blank line after the
4394 example. Move "*/" to a new line.
4395 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4396 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4397 * dwarf2read.c (psymtab_include_file_name): Likewise.
4399 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4400 Pedro Alves <palves@redhat.com>
4404 * ada-lang.c (coerce_unspec_val_to_type): Use
4405 value_contents_copy_raw.
4406 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4407 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4408 * cp-valprint.c (cp_print_value_fields): Let the common printing
4409 code handle optimized out values.
4410 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4411 * d-valprint.c (dynamic_array_type): Use
4412 value_bits_any_optimized_out.
4413 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4414 check_any_valid fields.
4415 (check_pieced_value_bits): Delete and inline ...
4416 (check_pieced_synthetic_pointer): ... here.
4417 (check_pieced_value_validity): Delete.
4418 (check_pieced_value_invalid): Delete.
4419 (pieced_value_funcs): Remove check_validity and check_any_valid
4421 (read_pieced_value): Use mark_value_bits_optimized_out.
4422 (write_pieced_value): Switch to use
4423 mark_value_bytes_optimized_out.
4424 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4425 of assuming the whole value is optimized out.
4426 * findvar.c (read_frame_register_value): Remove special handling
4427 of optimized out registers.
4428 (value_from_register): Use mark_value_bytes_optimized_out.
4429 * frame-unwind.c (frame_unwind_got_optimized): Use
4430 mark_value_bytes_optimized_out.
4431 * jv-valprint.c (java_value_print): Adjust.
4432 (java_print_value_fields): Let the common printing code handle
4433 optimized out values.
4434 * mips-tdep.c (mips_print_register): Remove special handling of
4435 optimized out registers.
4436 * opencl-lang.c (lval_func_check_validity): Delete.
4437 (lval_func_check_any_valid): Delete.
4438 (opencl_value_funcs): Remove check_validity and check_any_valid
4440 * p-valprint.c (pascal_object_print_value_fields): Let the common
4441 printing code handle optimized out values.
4442 * stack.c (read_frame_arg): Remove special handling of optimized
4443 out values. Fetch both VAL and ENTRYVAL before comparing
4444 contents. Adjust to value_available_contents_eq rename.
4445 * valprint.c (valprint_check_validity)
4446 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4447 (val_print_array_elements): Adjust.
4448 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4449 (value_bits_any_optimized_out): New function.
4450 (value_entirely_covered_by_range_vector): New function, factored
4451 out from value_entirely_unavailable.
4452 (value_entirely_unavailable): Reimplement.
4453 (value_entirely_optimized_out): New function.
4454 (insert_into_bit_range_vector): New function, factored out from
4455 mark_value_bits_unavailable.
4456 (mark_value_bits_unavailable): Reimplement.
4457 (struct ranges_and_idx): New struct.
4458 (find_first_range_overlap_and_match): New function, factored out
4459 from value_available_contents_bits_eq.
4460 (value_available_contents_bits_eq): Rename to ...
4461 (value_contents_bits_eq): ... this. Check both unavailable
4462 contents and optimized out contents.
4463 (value_available_contents_eq): Rename to ...
4464 (value_contents_eq): ... this.
4465 (allocate_value_lazy): Remove reference to the old optimized_out
4467 (allocate_optimized_out_value): Use
4468 mark_value_bytes_optimized_out.
4469 (require_not_optimized_out): Adjust to check whether the
4470 optimized_out vec is empty.
4471 (ranges_copy_adjusted): New function, factored out from
4472 value_contents_copy_raw.
4473 (value_contents_copy_raw): Also copy the optimized out ranges.
4474 Assert the destination ranges aren't optimized out.
4475 (value_contents_copy): Update comment, remove call to
4476 require_not_optimized_out.
4477 (value_contents_equal): Adjust to check whether the optimized_out
4479 (set_value_optimized_out, value_optimized_out_const): Delete.
4480 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4482 (value_entirely_optimized_out, value_bits_valid): Delete.
4483 (value_copy): Take a VEC copy of the 'optimized_out' field.
4484 (value_primitive_field): Remove special handling of optimized out.
4485 (value_fetch_lazy): Assert that lazy values have no unavailable
4486 regions. Use value_bits_any_optimized_out. Remove some special
4487 handling for optimized out values.
4488 * value.h: Add intro comment about <optimized out> and
4490 (struct lval_funcs): Remove check_validity and check_any_valid
4492 (set_value_optimized_out, value_optimized_out_const): Remove.
4493 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4495 (value_bits_any_optimized_out): New declaration.
4496 (value_bits_valid): Delete declaration.
4497 (value_available_contents_eq): Rename to ...
4498 (value_contents_eq): ... this, and extend comments.
4500 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4502 Fix -fsanitize=address on unreadable inferior strings.
4503 * valprint.c (val_print_string): Fix access before BUFFER.
4505 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4507 * target.c (target_struct_size): Remove.
4508 (target_struct_allocsize): Remove.
4509 (DEFAULT_ALLOCSIZE): Remove.
4510 (target_ops_p): New typedef.
4511 (DEF_VEC_P (target_ops_p)): New vector type.
4512 (target_structs): Change type to VEC (target_ops_p).
4513 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4514 (find_default_run_target): Rewrite for loop following changes to
4517 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4519 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4520 Adjust code accordingly. Adjust function description comment.
4522 2014-08-19 Yao Qi <yao@codesourcery.com>
4524 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4527 2014-08-19 Alan Modra <amodra@gmail.com>
4529 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4530 * config.in: Regenerate.
4531 * configure: Regenerate.
4533 2014-08-19 Tom Tromey <tromey@redhat.com>
4534 Gary Benson <gbenson@redhat.com>
4536 * common/common-debug.h: New file.
4537 * common/common-debug.c: Likewise.
4538 * debug.c: Likewise.
4539 * Makefile.in (SFILES): Add common/common-debug.c.
4540 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4541 (COMMON_OBS): Add common-debug.o and debug.o.
4542 (common-debug.o): New rule.
4543 * common/common-defs.h: Include common-debug.h.
4544 * common/agent.c (debug_agent_printf): New function.
4545 (DEBUG_AGENT): Redefine.
4546 * nat/i386-dregs.c (debug_printf): Undefine.
4548 2014-08-19 Gary Benson <gbenson@redhat.com>
4550 * common/common-defs.h: Include print-utils.h.
4551 * utils.h: Do not include print-utils.h.
4553 2014-08-19 Tom Tromey <tromey@redhat.com>
4554 Gary Benson <gbenson@redhat.com>
4556 * common/common-types.h: New file.
4557 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4558 * common/common-defs.h: Include common-types.h.
4559 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4562 2014-08-19 Tom Tromey <tromey@redhat.com>
4563 Gary Benson <gbenson@redhat.com>
4565 * common/errors.h: New file.
4566 * common/errors.c: Likewise.
4567 * Makefile.in (SFILES): Add common/errors.c.
4568 (HFILES_NO_SRCDIR): Add common/errors.h.
4569 (COMMON_OBS): Add errors.o.
4570 (errors.o): New rule.
4571 * common/common-defs.h: Include errors.h.
4572 * utils.h (perror_with_name, error, verror, warning, vwarning):
4574 * common/common-utils.h: (malloc_failure, internal_error):
4577 2014-08-19 Gary Benson <gbenson@redhat.com>
4579 * utils.c (internal_vproblem): Always print the message.
4581 2014-08-18 Doug Evans <dje@google.com>
4583 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4585 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4587 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4588 Return 0 if TYPE is dynamic.
4589 (print_range): Add handling of dynamic ranges.
4591 2014-08-18 Keven Boell <keven.boell@intel.com>
4592 Joel Brobecker <brobecker@adacore.com>
4594 * gdbtypes.h (struct main_type): Add field "data_location".
4595 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4596 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4597 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4598 a dynamic data location.
4599 (resolve_dynamic_type): Add DW_AT_data_location handling.
4600 (copy_recursive, copy_type): Copy the data_location information
4602 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4603 * value.c (value_from_contents_and_address): Add
4604 DW_AT_data_location handling.
4606 2014-08-18 Keven Boell <keven.boell@intel.com>
4607 Joel Brobecker <brobecker@adacore.com>
4609 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4610 field "get_object_address".
4611 * dwarf2expr.c (execute_stack_op): Add handling for
4612 DW_OP_push_object_address.
4613 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4614 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4615 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4616 (dwarf_expr_get_obj_addr): New function.
4617 (dwarf_expr_ctx_funcs): Add get_object_address field.
4618 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4619 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4620 (dwarf2_evaluate_property): Add parameter "address". Use it.
4621 (needs_get_obj_addr): New function.
4622 (needs_frame_ctx_funcs): Add get_object_address field.
4623 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4624 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4625 (resolve_dynamic_array): Likewise.
4627 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4629 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4630 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4631 fixed value for records and unions for which some GNAT encodings
4634 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4636 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4637 rewrite to avoid "else if" and "else" constructs. Should be
4638 a no-op in practice.
4640 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4642 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4645 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4648 * eval.c: Update all calls to find_overload_match.
4649 * valarith.c: Likewise.
4650 (value_user_defined_cpp_op, value_user_defined_op): New
4651 argument NOSIDE. Update all callers.
4652 * valops.c (find_overload_match): New argument NOSIDE.
4653 * value.h (find_overload_match): Update signature.
4655 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4657 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4658 'items' methods instead of 'iteritems' method on dictionaries.
4660 2014-08-15 Doug Evans <dje@google.com>
4662 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4665 2014-08-15 Doug Evans <dje@google.com>
4667 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4669 2014-08-15 Doug Evans <dje@google.com>
4671 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4673 2014-08-15 Doug Evans <dje@google.com>
4675 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4678 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4680 * dcache.h: Include target.h, to avoid compile time warnings.
4682 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4684 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4685 frame_info" partial declaration.
4686 * gdbarch.h: Regenerate.
4688 2014-08-15 Yao Qi <yao@codesourcery.com>
4690 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4691 Add parameter 'decode_for_pst_p'. Callers update.
4693 2014-08-13 Yao Qi <yao@codesourcery.com>
4696 * configure.ac: Use local variable 'pos'.
4697 * configure: Regenerated.
4699 2014-08-11 Doug Evans <dje@google.com>
4701 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4702 message, it is redundant with "Reading symbols from ..." message.
4704 2014-08-10 Doug Evans <xdje42@gmail.com>
4706 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4708 2014-08-09 Yao Qi <yao@codesourcery.com>
4711 * remote.c (remote_xfer_partial): Remove dead code.
4713 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4715 * ia64-linux-tdep.c: Include "regset.h".
4716 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4717 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4718 (ia64_linux_supply_fpregset): New function.
4719 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4720 (ia64_linux_regset_from_core_section): New function.
4721 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4724 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4726 * m68klinux-tdep.c: Include "regset.h".
4727 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4728 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4729 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4730 (m68k_linux_regset_from_core_section): New function.
4731 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4734 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4736 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4737 function. Move logic to...
4738 (tilegx_linux_regmap): ... this new register map.
4739 (tilegx_linux_regset): Refer to register map, replace supply
4740 method by regcache_supply_regset, and add collect method.
4741 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4742 TILEGX_FIRST_EASY_REGNUM.
4744 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4746 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4747 that calls regcache_supply_regset and handles the EPC register
4748 separately. Move main logic to...
4749 (score7_linux_gregmap): ... this new register map.
4750 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4751 (score7_linux_gregset): Refer to register map. Add collect method.
4752 (score7_linux_regset_from_core_section): Replace
4753 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4754 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4755 (struct regset): Delete unused forward declaraction.
4756 (struct pt_regs): Delete structure definition.
4757 (elf_gregset_t): Delete typedef.
4759 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4761 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4762 (nios2_core_regset): Add collect method.
4764 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4766 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4767 platform-independent and don't write to read-only input buffer.
4768 (m32r_linux_collect_gregset): New function.
4769 (m32r_linux_gregset): Add collect method.
4771 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4773 * hppa-linux-tdep.c (greg_map): Rename to...
4774 (hppa_linux_gregmap): ... this. Also convert to
4775 regcache_map_entry format.
4776 (hppa_linux_supply_regset): Delete function.
4777 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4778 (hppa_linux_fpregmap): ... this new register map.
4779 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4780 register map, replace supply method by regcache_supply_regset, and
4781 add collect method regcache_collect_regset.
4783 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4785 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4786 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4787 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4788 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4789 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4790 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4791 (frv_linux_supply_gregset): Replace main logic by call to
4792 regcache_supply_regset, but keep clearing gr32-gr63.
4793 (frv_linux_supply_fpregset): Delete function.
4794 (frv_linux_gregset): Refer to appropriate register map and add
4795 regcache_collect_regset as the collect method.
4796 (frv_linux_fpregset): Likewise. Also exchange the supply method
4797 by regcache_supply_regset.
4799 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4801 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4802 by call to alpha_supply_int_regs.
4803 (alpha_linux_collect_gregset): New function.
4804 (alpha_linux_supply_fpregset): Replace logic by call to
4805 alpha_supply_fp_regs.
4806 (alpha_linux_collect_fpregset): New function.
4807 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4809 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4811 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4812 by call to regcache_collect_regset.
4813 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4814 instead of aarch64_linux_supply_gregset/_fpregset.
4815 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4816 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4817 header file instead.
4818 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4819 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4820 functions. Move logic to ...
4821 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4823 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4824 refer to new register maps, replace *_regset_from_core by
4825 regcache_supply_regset, and also use regcache_collect_regset.
4826 * aarch64-linux-tdep.h: Include "regset.h".
4827 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4829 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4830 macros, moved from C source file.
4831 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4832 variable declarations.
4834 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4836 * s390-linux-nat.c: Include "regset.h".
4837 (regmap_gregset): Delete macro.
4838 (s390_64_regmap_gregset): New register map for
4839 regcache_supply/_collect_regset.
4840 (s390_64_gregset): New regset.
4841 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4842 (regmap_fpregset): Delete macro.
4843 (s390_native_supply, s390_native_collect): Delete functions.
4844 (supply_gregset, fill_gregset): Replace s390-specific regmap
4845 handling by a call to regcache_supply/_collect_regset.
4846 (supply_fpregset, fill_fpregset): Call regcache_supply/
4847 _collect_regset instead of s390_native_supply/_collect.
4848 (fetch_regset, store_regset): Likewise. Also change the last
4849 parameter to a regset instead of a regmap.
4850 (s390_linux_fetch_inferior_registers)
4851 (390_linux_store_inferior_registers): Adjust last parameter in
4852 calls to fetch_regset and store_regset.
4853 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4854 (s390_gregmap): ... this. Also make static const and convert to
4855 regcache_map_entry format.
4856 (s390x_regmap_gregset): Delete.
4857 (s390_regmap_fpregset): Rename to...
4858 (s390_fpregmap): ... this. Make static const and convert to
4859 regcache_map_entry format.
4860 (s390_regmap_upper, s390_regmap_last_break)
4861 (s390x_regmap_last_break, s390_regmap_system_call)
4862 (s390_regmap_tdb): Likewise.
4863 (s390_supply_regset, s390_collect_regset): Remove functions.
4864 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4866 (s390_gregset, s390_fpregset, s390_upper_regset)
4867 (s390_last_break_regset, s390x_last_break_regset)
4868 (s390_system_call_regset, s390_tdb_regset): Make global and
4869 replace s390_supply/_collect_regset by regcache_supply/
4871 (s390x_gregset): Delete.
4872 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4873 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4874 (s390_regmap_fpregset, s390_regmap_last_break)
4875 (s390x_regmap_last_break, s390_regmap_system_call)
4876 (s390_regmap_tdb): Delete global variable declarations.
4877 (s390_gregset, s390_fpregset, s390_last_break_regset)
4878 (s390x_last_break_regset, s390_system_call_regset)
4879 (s390_tdb_regset): New global variable declarations.
4881 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4883 * regcache.c: Include "regset.h".
4884 (regcache_transfer_regset): New local function.
4885 (regcache_supply_regset, regcache_collect_regset): New functions.
4886 * regcache.h (struct regcache_map_entry): New structure.
4887 (REGCACHE_MAP_SKIP): New enum value.
4888 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4890 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4892 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4893 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4894 (ppc_linux_collect_gregset ): Likewise.
4895 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4896 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4897 (ppc_collect_vrregset): Likewise.
4898 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4901 2014-08-07 Yao Qi <yao@codesourcery.com>
4903 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4904 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4905 * remote.c (remote_read_bytes): Likewise.
4907 2014-08-07 Yao Qi <yao@codesourcery.com>
4909 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4911 2014-08-07 Yao Qi <yao@codesourcery.com>
4914 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4915 TARGET_XFER_OK instead of 0.
4917 2014-08-07 Gary Benson <gbenson@redhat.com>
4919 * common/common-defs.h: Include errno.h.
4920 * defs.h: Do not include errno.h.
4921 * ada-typeprint.c: Likewise.
4922 * c-typeprint.c: Likewise.
4923 * core-regset.c: Likewise.
4924 * corefile.c: Likewise.
4925 * corelow.c: Likewise.
4926 * event-loop.c: Likewise.
4927 * f-typeprint.c: Likewise.
4928 * gnu-nat.c: Likewise.
4929 * go32-nat.c: Likewise.
4930 * i386gnu-nat.c: Likewise.
4931 * m2-typeprint.c: Likewise.
4932 * nat/linux-btrace.c: Likewise.
4933 * p-typeprint.c: Likewise.
4934 * procfs.c: Likewise.
4935 * remote-sim.c: Likewise.
4936 * rs6000-nat.c: Likewise.
4937 * target.c: Likewise.
4938 * typeprint.c: Likewise.
4939 * ui-file.c: Likewise.
4940 * valops.c: Likewise.
4941 * valprint.c: Likewise.
4943 2014-08-07 Gary Benson <gbenson@redhat.com>
4945 * common/common-defs.h: Include string.h.
4946 * aarch64-tdep.c: Do not include string.h.
4947 * ada-exp.y: Likewise.
4948 * ada-lang.c: Likewise.
4949 * ada-lex.l: Likewise.
4950 * ada-typeprint.c: Likewise.
4951 * ada-valprint.c: Likewise.
4952 * aix-thread.c: Likewise.
4953 * alpha-linux-tdep.c: Likewise.
4954 * alpha-mdebug-tdep.c: Likewise.
4955 * alpha-nat.c: Likewise.
4956 * alpha-osf1-tdep.c: Likewise.
4957 * alpha-tdep.c: Likewise.
4958 * alphanbsd-tdep.c: Likewise.
4959 * amd64-dicos-tdep.c: Likewise.
4960 * amd64-linux-tdep.c: Likewise.
4961 * amd64-nat.c: Likewise.
4962 * amd64-sol2-tdep.c: Likewise.
4963 * amd64fbsd-tdep.c: Likewise.
4964 * amd64obsd-tdep.c: Likewise.
4965 * arch-utils.c: Likewise.
4966 * arm-linux-nat.c: Likewise.
4967 * arm-linux-tdep.c: Likewise.
4968 * arm-tdep.c: Likewise.
4969 * arm-wince-tdep.c: Likewise.
4970 * armbsd-tdep.c: Likewise.
4971 * armnbsd-nat.c: Likewise.
4972 * armnbsd-tdep.c: Likewise.
4973 * armobsd-tdep.c: Likewise.
4974 * avr-tdep.c: Likewise.
4975 * ax-gdb.c: Likewise.
4976 * ax-general.c: Likewise.
4977 * bcache.c: Likewise.
4978 * bfin-tdep.c: Likewise.
4979 * breakpoint.c: Likewise.
4980 * build-id.c: Likewise.
4981 * buildsym.c: Likewise.
4982 * c-exp.y: Likewise.
4983 * c-lang.c: Likewise.
4984 * c-typeprint.c: Likewise.
4985 * c-valprint.c: Likewise.
4986 * charset.c: Likewise.
4987 * cli-out.c: Likewise.
4988 * cli/cli-cmds.c: Likewise.
4989 * cli/cli-decode.c: Likewise.
4990 * cli/cli-dump.c: Likewise.
4991 * cli/cli-interp.c: Likewise.
4992 * cli/cli-logging.c: Likewise.
4993 * cli/cli-script.c: Likewise.
4994 * cli/cli-setshow.c: Likewise.
4995 * cli/cli-utils.c: Likewise.
4996 * coffread.c: Likewise.
4997 * common/agent.c: Likewise.
4998 * common/buffer.c: Likewise.
4999 * common/buffer.h: Likewise.
5000 * common/common-utils.c: Likewise.
5001 * common/filestuff.c: Likewise.
5002 * common/filestuff.c: Likewise.
5003 * common/format.c: Likewise.
5004 * common/print-utils.c: Likewise.
5005 * common/rsp-low.c: Likewise.
5006 * common/signals.c: Likewise.
5007 * common/vec.h: Likewise.
5008 * common/xml-utils.c: Likewise.
5009 * core-regset.c: Likewise.
5010 * corefile.c: Likewise.
5011 * corelow.c: Likewise.
5012 * cp-abi.c: Likewise.
5013 * cp-name-parser.y: Likewise.
5014 * cp-support.c: Likewise.
5015 * cp-valprint.c: Likewise.
5016 * cris-tdep.c: Likewise.
5017 * d-exp.y: Likewise.
5018 * darwin-nat.c: Likewise.
5019 * dbxread.c: Likewise.
5020 * dcache.c: Likewise.
5021 * demangle.c: Likewise.
5022 * dicos-tdep.c: Likewise.
5023 * disasm.c: Likewise.
5024 * doublest.c: Likewise.
5025 * dsrec.c: Likewise.
5026 * dummy-frame.c: Likewise.
5027 * dwarf2-frame.c: Likewise.
5028 * dwarf2loc.c: Likewise.
5029 * dwarf2read.c: Likewise.
5030 * elfread.c: Likewise.
5031 * environ.c: Likewise.
5033 * event-loop.c: Likewise.
5034 * exceptions.c: Likewise.
5036 * expprint.c: Likewise.
5037 * f-exp.y: Likewise.
5038 * f-lang.c: Likewise.
5039 * f-typeprint.c: Likewise.
5040 * f-valprint.c: Likewise.
5041 * fbsd-nat.c: Likewise.
5042 * findcmd.c: Likewise.
5043 * findvar.c: Likewise.
5044 * fork-child.c: Likewise.
5045 * frame.c: Likewise.
5046 * frv-linux-tdep.c: Likewise.
5047 * frv-tdep.c: Likewise.
5049 * gdb_bfd.c: Likewise.
5050 * gdbarch.c: Likewise.
5051 * gdbarch.sh: Likewise.
5052 * gdbtypes.c: Likewise.
5053 * gnu-nat.c: Likewise.
5054 * gnu-v2-abi.c: Likewise.
5055 * gnu-v3-abi.c: Likewise.
5056 * go-exp.y: Likewise.
5057 * go-lang.c: Likewise.
5058 * go32-nat.c: Likewise.
5059 * guile/guile.c: Likewise.
5060 * guile/scm-auto-load.c: Likewise.
5061 * hppa-hpux-tdep.c: Likewise.
5062 * hppa-linux-nat.c: Likewise.
5063 * hppanbsd-tdep.c: Likewise.
5064 * hppaobsd-tdep.c: Likewise.
5065 * i386-cygwin-tdep.c: Likewise.
5066 * i386-dicos-tdep.c: Likewise.
5067 * i386-linux-tdep.c: Likewise.
5068 * i386-nto-tdep.c: Likewise.
5069 * i386-sol2-tdep.c: Likewise.
5070 * i386-tdep.c: Likewise.
5071 * i386bsd-tdep.c: Likewise.
5072 * i386gnu-nat.c: Likewise.
5073 * i386nbsd-tdep.c: Likewise.
5074 * i386obsd-tdep.c: Likewise.
5075 * i387-tdep.c: Likewise.
5076 * ia64-libunwind-tdep.c: Likewise.
5077 * ia64-linux-nat.c: Likewise.
5078 * inf-child.c: Likewise.
5079 * inf-ptrace.c: Likewise.
5080 * inf-ttrace.c: Likewise.
5081 * infcall.c: Likewise.
5082 * infcmd.c: Likewise.
5083 * inflow.c: Likewise.
5084 * infrun.c: Likewise.
5085 * interps.c: Likewise.
5086 * iq2000-tdep.c: Likewise.
5087 * irix5-nat.c: Likewise.
5088 * jv-exp.y: Likewise.
5089 * jv-lang.c: Likewise.
5090 * jv-typeprint.c: Likewise.
5091 * jv-valprint.c: Likewise.
5092 * language.c: Likewise.
5093 * linux-fork.c: Likewise.
5094 * linux-nat.c: Likewise.
5095 * lm32-tdep.c: Likewise.
5096 * m2-exp.y: Likewise.
5097 * m2-typeprint.c: Likewise.
5098 * m32c-tdep.c: Likewise.
5099 * m32r-linux-nat.c: Likewise.
5100 * m32r-linux-tdep.c: Likewise.
5101 * m32r-rom.c: Likewise.
5102 * m32r-tdep.c: Likewise.
5103 * m68hc11-tdep.c: Likewise.
5104 * m68k-tdep.c: Likewise.
5105 * m68kbsd-tdep.c: Likewise.
5106 * m68klinux-nat.c: Likewise.
5107 * m68klinux-tdep.c: Likewise.
5108 * m88k-tdep.c: Likewise.
5109 * machoread.c: Likewise.
5110 * macrocmd.c: Likewise.
5112 * mdebugread.c: Likewise.
5113 * mem-break.c: Likewise.
5114 * memattr.c: Likewise.
5115 * memory-map.c: Likewise.
5116 * mep-tdep.c: Likewise.
5117 * mi/mi-cmd-break.c: Likewise.
5118 * mi/mi-cmd-disas.c: Likewise.
5119 * mi/mi-cmd-env.c: Likewise.
5120 * mi/mi-cmd-stack.c: Likewise.
5121 * mi/mi-cmd-var.c: Likewise.
5122 * mi/mi-cmds.c: Likewise.
5123 * mi/mi-console.c: Likewise.
5124 * mi/mi-getopt.c: Likewise.
5125 * mi/mi-interp.c: Likewise.
5126 * mi/mi-main.c: Likewise.
5127 * mi/mi-parse.c: Likewise.
5128 * microblaze-rom.c: Likewise.
5129 * microblaze-tdep.c: Likewise.
5130 * mingw-hdep.c: Likewise.
5131 * minidebug.c: Likewise.
5132 * minsyms.c: Likewise.
5133 * mips-irix-tdep.c: Likewise.
5134 * mips-linux-tdep.c: Likewise.
5135 * mips-tdep.c: Likewise.
5136 * mips64obsd-tdep.c: Likewise.
5137 * mipsnbsd-tdep.c: Likewise.
5138 * mipsread.c: Likewise.
5139 * mn10300-linux-tdep.c: Likewise.
5140 * mn10300-tdep.c: Likewise.
5141 * monitor.c: Likewise.
5142 * moxie-tdep.c: Likewise.
5143 * mt-tdep.c: Likewise.
5144 * nat/linux-btrace.c: Likewise.
5145 * nat/linux-osdata.c: Likewise.
5146 * nat/linux-procfs.c: Likewise.
5147 * nat/linux-ptrace.c: Likewise.
5148 * nat/linux-waitpid.c: Likewise.
5149 * nbsd-tdep.c: Likewise.
5150 * nios2-linux-tdep.c: Likewise.
5151 * nto-procfs.c: Likewise.
5152 * nto-tdep.c: Likewise.
5153 * objc-lang.c: Likewise.
5154 * objfiles.c: Likewise.
5155 * opencl-lang.c: Likewise.
5156 * osabi.c: Likewise.
5157 * osdata.c: Likewise.
5158 * p-exp.y: Likewise.
5159 * p-lang.c: Likewise.
5160 * p-typeprint.c: Likewise.
5161 * parse.c: Likewise.
5162 * posix-hdep.c: Likewise.
5163 * ppc-linux-nat.c: Likewise.
5164 * ppc-sysv-tdep.c: Likewise.
5165 * ppcfbsd-tdep.c: Likewise.
5166 * ppcnbsd-tdep.c: Likewise.
5167 * ppcobsd-tdep.c: Likewise.
5168 * printcmd.c: Likewise.
5169 * procfs.c: Likewise.
5170 * prologue-value.c: Likewise.
5171 * python/py-auto-load.c: Likewise.
5172 * python/py-gdb-readline.c: Likewise.
5173 * ravenscar-thread.c: Likewise.
5174 * regcache.c: Likewise.
5175 * registry.c: Likewise.
5176 * remote-fileio.c: Likewise.
5177 * remote-m32r-sdi.c: Likewise.
5178 * remote-mips.c: Likewise.
5179 * remote-notif.c: Likewise.
5180 * remote-sim.c: Likewise.
5181 * remote.c: Likewise.
5182 * reverse.c: Likewise.
5183 * rs6000-aix-tdep.c: Likewise.
5184 * ser-base.c: Likewise.
5185 * ser-go32.c: Likewise.
5186 * ser-mingw.c: Likewise.
5187 * ser-pipe.c: Likewise.
5188 * ser-tcp.c: Likewise.
5189 * ser-unix.c: Likewise.
5190 * serial.c: Likewise.
5191 * sh-tdep.c: Likewise.
5192 * sh64-tdep.c: Likewise.
5193 * shnbsd-tdep.c: Likewise.
5195 * sol-thread.c: Likewise.
5196 * solib-dsbt.c: Likewise.
5197 * solib-frv.c: Likewise.
5198 * solib-osf.c: Likewise.
5199 * solib-som.c: Likewise.
5200 * solib-spu.c: Likewise.
5201 * solib-target.c: Likewise.
5202 * solib.c: Likewise.
5203 * somread.c: Likewise.
5204 * source.c: Likewise.
5205 * sparc-nat.c: Likewise.
5206 * sparc-sol2-tdep.c: Likewise.
5207 * sparc-tdep.c: Likewise.
5208 * sparc64-tdep.c: Likewise.
5209 * sparc64fbsd-tdep.c: Likewise.
5210 * sparc64nbsd-tdep.c: Likewise.
5211 * sparcnbsd-tdep.c: Likewise.
5212 * spu-linux-nat.c: Likewise.
5213 * spu-multiarch.c: Likewise.
5214 * spu-tdep.c: Likewise.
5215 * stabsread.c: Likewise.
5216 * stack.c: Likewise.
5217 * std-regs.c: Likewise.
5218 * symfile.c: Likewise.
5219 * symmisc.c: Likewise.
5220 * symtab.c: Likewise.
5221 * target.c: Likewise.
5222 * thread.c: Likewise.
5223 * tilegx-linux-nat.c: Likewise.
5224 * tilegx-tdep.c: Likewise.
5226 * tracepoint.c: Likewise.
5227 * tui/tui-command.c: Likewise.
5228 * tui/tui-data.c: Likewise.
5229 * tui/tui-disasm.c: Likewise.
5230 * tui/tui-file.c: Likewise.
5231 * tui/tui-layout.c: Likewise.
5232 * tui/tui-out.c: Likewise.
5233 * tui/tui-regs.c: Likewise.
5234 * tui/tui-source.c: Likewise.
5235 * tui/tui-stack.c: Likewise.
5236 * tui/tui-win.c: Likewise.
5237 * tui/tui-windata.c: Likewise.
5238 * tui/tui-winsource.c: Likewise.
5239 * typeprint.c: Likewise.
5240 * ui-file.c: Likewise.
5241 * ui-out.c: Likewise.
5242 * user-regs.c: Likewise.
5243 * utils.c: Likewise.
5244 * v850-tdep.c: Likewise.
5245 * valarith.c: Likewise.
5246 * valops.c: Likewise.
5247 * valprint.c: Likewise.
5248 * value.c: Likewise.
5249 * varobj.c: Likewise.
5250 * vax-tdep.c: Likewise.
5251 * vaxnbsd-tdep.c: Likewise.
5252 * vaxobsd-tdep.c: Likewise.
5253 * windows-nat.c: Likewise.
5254 * xcoffread.c: Likewise.
5255 * xml-support.c: Likewise.
5256 * xstormy16-tdep.c: Likewise.
5257 * xtensa-linux-nat.c: Likewise.
5259 2014-08-07 Gary Benson <gbenson@redhat.com>
5261 * common/common-defs.h: Include gdb_assert.h.
5262 * aarch64-tdep.c: Do not include gdb_assert.h.
5263 * addrmap.c: Likewise.
5264 * aix-thread.c: Likewise.
5265 * alpha-linux-tdep.c: Likewise.
5266 * alpha-mdebug-tdep.c: Likewise.
5267 * alphanbsd-tdep.c: Likewise.
5268 * amd64-nat.c: Likewise.
5269 * amd64-tdep.c: Likewise.
5270 * amd64bsd-nat.c: Likewise.
5271 * amd64fbsd-nat.c: Likewise.
5272 * amd64fbsd-tdep.c: Likewise.
5273 * amd64nbsd-nat.c: Likewise.
5274 * amd64nbsd-tdep.c: Likewise.
5275 * amd64obsd-nat.c: Likewise.
5276 * amd64obsd-tdep.c: Likewise.
5277 * arch-utils.c: Likewise.
5278 * arm-tdep.c: Likewise.
5279 * armbsd-tdep.c: Likewise.
5281 * bcache.c: Likewise.
5282 * bfin-tdep.c: Likewise.
5283 * blockframe.c: Likewise.
5284 * breakpoint.c: Likewise.
5285 * bsd-kvm.c: Likewise.
5286 * bsd-uthread.c: Likewise.
5287 * buildsym.c: Likewise.
5288 * c-exp.y: Likewise.
5289 * c-lang.c: Likewise.
5290 * charset.c: Likewise.
5291 * cleanups.c: Likewise.
5292 * cli-out.c: Likewise.
5293 * cli/cli-decode.c: Likewise.
5294 * cli/cli-dump.c: Likewise.
5295 * cli/cli-logging.c: Likewise.
5296 * cli/cli-script.c: Likewise.
5297 * cli/cli-utils.c: Likewise.
5298 * coffread.c: Likewise.
5299 * common/common-utils.c: Likewise.
5300 * common/queue.h: Likewise.
5301 * common/signals.c: Likewise.
5302 * common/vec.h: Likewise.
5303 * complaints.c: Likewise.
5304 * completer.c: Likewise.
5305 * corelow.c: Likewise.
5306 * cp-abi.c: Likewise.
5307 * cp-name-parser.y: Likewise.
5308 * cp-namespace.c: Likewise.
5309 * cp-support.c: Likewise.
5310 * cris-tdep.c: Likewise.
5311 * dbxread.c: Likewise.
5312 * dictionary.c: Likewise.
5313 * doublest.c: Likewise.
5314 * dsrec.c: Likewise.
5315 * dummy-frame.c: Likewise.
5316 * dwarf2-frame-tailcall.c: Likewise.
5317 * dwarf2-frame.c: Likewise.
5318 * dwarf2expr.c: Likewise.
5319 * dwarf2loc.c: Likewise.
5320 * dwarf2read.c: Likewise.
5322 * event-loop.c: Likewise.
5323 * exceptions.c: Likewise.
5324 * expprint.c: Likewise.
5325 * f-valprint.c: Likewise.
5326 * fbsd-nat.c: Likewise.
5327 * findvar.c: Likewise.
5328 * frame-unwind.c: Likewise.
5329 * frame.c: Likewise.
5330 * frv-tdep.c: Likewise.
5331 * gcore.c: Likewise.
5332 * gdb-dlfcn.c: Likewise.
5333 * gdb_bfd.c: Likewise.
5334 * gdbarch.c: Likewise.
5335 * gdbarch.sh: Likewise.
5336 * gdbtypes.c: Likewise.
5337 * gnu-nat.c: Likewise.
5338 * gnu-v3-abi.c: Likewise.
5339 * go-lang.c: Likewise.
5340 * guile/scm-exception.c: Likewise.
5341 * guile/scm-gsmob.c: Likewise.
5342 * guile/scm-lazy-string.c: Likewise.
5343 * guile/scm-math.c: Likewise.
5344 * guile/scm-pretty-print.c: Likewise.
5345 * guile/scm-safe-call.c: Likewise.
5346 * guile/scm-utils.c: Likewise.
5347 * guile/scm-value.c: Likewise.
5348 * h8300-tdep.c: Likewise.
5349 * hppa-hpux-nat.c: Likewise.
5350 * hppa-tdep.c: Likewise.
5351 * hppanbsd-tdep.c: Likewise.
5352 * hppaobsd-tdep.c: Likewise.
5353 * i386-darwin-nat.c: Likewise.
5354 * i386-darwin-tdep.c: Likewise.
5355 * i386-nto-tdep.c: Likewise.
5356 * i386-tdep.c: Likewise.
5357 * i386bsd-nat.c: Likewise.
5358 * i386fbsd-tdep.c: Likewise.
5359 * i386gnu-nat.c: Likewise.
5360 * i386nbsd-tdep.c: Likewise.
5361 * i386obsd-tdep.c: Likewise.
5362 * i387-tdep.c: Likewise.
5363 * ia64-libunwind-tdep.c: Likewise.
5364 * ia64-tdep.c: Likewise.
5365 * inf-ptrace.c: Likewise.
5366 * inf-ttrace.c: Likewise.
5367 * infcall.c: Likewise.
5368 * infcmd.c: Likewise.
5369 * infrun.c: Likewise.
5370 * inline-frame.c: Likewise.
5371 * interps.c: Likewise.
5372 * jv-lang.c: Likewise.
5373 * jv-typeprint.c: Likewise.
5374 * linux-fork.c: Likewise.
5375 * linux-nat.c: Likewise.
5376 * linux-thread-db.c: Likewise.
5377 * m32c-tdep.c: Likewise.
5378 * m32r-linux-nat.c: Likewise.
5379 * m32r-tdep.c: Likewise.
5380 * m68k-tdep.c: Likewise.
5381 * m68kbsd-nat.c: Likewise.
5382 * m68kbsd-tdep.c: Likewise.
5383 * m88k-tdep.c: Likewise.
5384 * machoread.c: Likewise.
5385 * macroexp.c: Likewise.
5386 * macrotab.c: Likewise.
5387 * maint.c: Likewise.
5388 * mdebugread.c: Likewise.
5389 * memory-map.c: Likewise.
5390 * mep-tdep.c: Likewise.
5391 * mi/mi-common.c: Likewise.
5392 * microblaze-tdep.c: Likewise.
5393 * mingw-hdep.c: Likewise.
5394 * mips-linux-nat.c: Likewise.
5395 * mips-linux-tdep.c: Likewise.
5396 * mips-tdep.c: Likewise.
5397 * mips64obsd-tdep.c: Likewise.
5398 * mipsnbsd-tdep.c: Likewise.
5399 * mn10300-linux-tdep.c: Likewise.
5400 * mn10300-tdep.c: Likewise.
5401 * moxie-tdep.c: Likewise.
5402 * mt-tdep.c: Likewise.
5403 * nat/linux-btrace.c: Likewise.
5404 * nat/linux-osdata.c: Likewise.
5405 * nat/linux-ptrace.c: Likewise.
5406 * nat/mips-linux-watch.c: Likewise.
5407 * nios2-linux-tdep.c: Likewise.
5408 * nios2-tdep.c: Likewise.
5409 * objc-lang.c: Likewise.
5410 * objfiles.c: Likewise.
5411 * obsd-nat.c: Likewise.
5412 * opencl-lang.c: Likewise.
5413 * osabi.c: Likewise.
5414 * parse.c: Likewise.
5415 * ppc-linux-nat.c: Likewise.
5416 * ppc-sysv-tdep.c: Likewise.
5417 * ppcfbsd-nat.c: Likewise.
5418 * ppcfbsd-tdep.c: Likewise.
5419 * ppcnbsd-nat.c: Likewise.
5420 * ppcnbsd-tdep.c: Likewise.
5421 * ppcobsd-nat.c: Likewise.
5422 * ppcobsd-tdep.c: Likewise.
5423 * printcmd.c: Likewise.
5424 * procfs.c: Likewise.
5425 * prologue-value.c: Likewise.
5426 * psymtab.c: Likewise.
5427 * python/py-lazy-string.c: Likewise.
5428 * python/py-value.c: Likewise.
5429 * regcache.c: Likewise.
5430 * reggroups.c: Likewise.
5431 * registry.c: Likewise.
5432 * remote-sim.c: Likewise.
5433 * remote.c: Likewise.
5434 * rs6000-aix-tdep.c: Likewise.
5435 * rs6000-tdep.c: Likewise.
5436 * s390-linux-tdep.c: Likewise.
5437 * score-tdep.c: Likewise.
5438 * ser-base.c: Likewise.
5439 * ser-mingw.c: Likewise.
5440 * sh-tdep.c: Likewise.
5441 * sh64-tdep.c: Likewise.
5442 * solib-darwin.c: Likewise.
5443 * solib-spu.c: Likewise.
5444 * solib-svr4.c: Likewise.
5445 * source.c: Likewise.
5446 * sparc-nat.c: Likewise.
5447 * sparc-sol2-tdep.c: Likewise.
5448 * sparc-tdep.c: Likewise.
5449 * sparc64-sol2-tdep.c: Likewise.
5450 * sparc64-tdep.c: Likewise.
5451 * sparc64fbsd-tdep.c: Likewise.
5452 * sparc64nbsd-tdep.c: Likewise.
5453 * sparc64obsd-tdep.c: Likewise.
5454 * sparcnbsd-tdep.c: Likewise.
5455 * sparcobsd-tdep.c: Likewise.
5456 * spu-multiarch.c: Likewise.
5457 * spu-tdep.c: Likewise.
5458 * stabsread.c: Likewise.
5459 * stack.c: Likewise.
5460 * symfile.c: Likewise.
5461 * symtab.c: Likewise.
5462 * target-descriptions.c: Likewise.
5463 * target-memory.c: Likewise.
5464 * target.c: Likewise.
5465 * tic6x-linux-tdep.c: Likewise.
5466 * tic6x-tdep.c: Likewise.
5467 * tilegx-linux-nat.c: Likewise.
5468 * tilegx-tdep.c: Likewise.
5470 * tramp-frame.c: Likewise.
5471 * tui/tui-out.c: Likewise.
5472 * tui/tui-winsource.c: Likewise.
5473 * ui-out.c: Likewise.
5474 * user-regs.c: Likewise.
5475 * utils.c: Likewise.
5476 * v850-tdep.c: Likewise.
5477 * valops.c: Likewise.
5478 * value.c: Likewise.
5479 * varobj.c: Likewise.
5480 * vax-nat.c: Likewise.
5481 * xml-syscall.c: Likewise.
5482 * xml-tdesc.c: Likewise.
5483 * xstormy16-tdep.c: Likewise.
5484 * xtensa-linux-nat.c: Likewise.
5485 * xtensa-tdep.c: Likewise.
5487 2014-08-07 Gary Benson <gbenson@redhat.com>
5489 * common/common-defs.h: Include common-utils.h.
5490 * defs.h: Do not include common-utils.h.
5491 * common/gdb_assert.h: Likewise.
5492 * darwin-nat.h: Likewise.
5493 * nat/linux-btrace.c: Likewise.
5494 * target/waitstatus.h: Likewise.
5496 2014-08-07 Gary Benson <gbenson@redhat.com>
5498 * common/common-defs.h: Include ptid.h.
5499 * defs.h: Do not include ptid.h.
5500 * inferior.h: Likewise.
5501 * infrun.h: Likewise.
5502 * nat/linux-btrace.h: Likewise.
5503 * nat/linux-osdata.h: Likewise.
5504 * target/waitstatus.h: Likewise.
5506 2014-08-07 Gary Benson <gbenson@redhat.com>
5508 * common/common-defs.h: Include gdb_locale.h.
5509 * defs.h: Do not include gdb_locale.h.
5511 2014-08-07 Gary Benson <gbenson@redhat.com>
5513 * common/common-defs.h: Include gdb/signals.h.
5514 * defs.h: Do not include gdb/signals.h.
5516 2014-08-07 Gary Benson <gbenson@redhat.com>
5518 * common/common-defs.h: Include pathmax.h.
5519 * defs.h: Do not include pathmax.h.
5521 2014-08-07 Gary Benson <gbenson@redhat.com>
5523 * common/common-defs.h: Include libiberty.h.
5524 * defs.h: Do not include libiberty.h.
5525 * common/queue.h: Likewise.
5526 * cp-name-parser.y: Likewise.
5527 * mi/mi-cmd-catch.c: Likewise.
5528 * python/python.c: Likewise.
5530 2014-08-07 Gary Benson <gbenson@redhat.com>
5532 * common/common-defs.h: Include ansidecl.h.
5533 * defs.h: Do not include ansidecl.h.
5534 * common/buffer.h: Likewise.
5535 * common/common-utils.h: Likewise.
5537 2014-08-07 Gary Benson <gbenson@redhat.com>
5539 * common/common-defs.h: Include stddef.h.
5540 * defs.h: Do not include stddef.h.
5541 * common/common-utils.h: Likewise.
5542 * amd64fbsd-nat.c: Likewise.
5543 * bcache.c: Likewise.
5544 * charset.c: Likewise.
5545 * common/buffer.h: Likewise.
5546 * common/vec.h: Likewise.
5547 * i386bsd-nat.c: Likewise.
5548 * nat/linux-btrace.h: Likewise.
5549 * ppcfbsd-nat.c: Likewise.
5550 * ppcnbsd-tdep.h: Likewise.
5551 * ppcobsd-nat.c: Likewise.
5552 * ppcobsd-tdep.h: Likewise.
5553 * python/py-gdb-readline.c: Likewise.
5555 2014-08-07 Gary Benson <gbenson@redhat.com>
5557 * common/common-defs.h: Include stdarg.h.
5558 * defs.h: Do not include stdarg.h.
5559 * ada-lang.c: Likewise.
5560 * common/common-utils.h: Likewise.
5561 * guile/scm-string.c: Likewise.
5562 * guile/scm-utils.c: Likewise.
5563 * m32c-tdep.c: Likewise.
5565 2014-08-07 Gary Benson <gbenson@redhat.com>
5567 * common/common-defs.h: Include stdlib.h.
5568 * defs.h: Do not include stdlib.h.
5569 * addrmap.c: Likewise.
5570 * bcache.c: Likewise.
5571 * common/buffer.c: Likewise.
5572 * common/common-utils.c: Likewise.
5573 * cp-name-parser.y: Likewise.
5574 * go32-nat.c: Likewise.
5575 * mn10300-linux-tdep.c: Likewise.
5576 * nat/linux-osdata.c: Likewise.
5577 * tui/tui.c: Likewise.
5578 * windows-nat.c: Likewise.
5580 2014-08-07 Gary Benson <gbenson@redhat.com>
5582 * common/common-defs.h: Include stdio.h.
5583 * defs.h: Do not include stdio.h.
5584 * ada-lang.c: Likewise.
5585 * common/buffer.c: Likewise.
5586 * common/common-utils.c: Likewise.
5587 * cp-name-parser.y: Likewise.
5588 * gnu-nat.c: Likewise.
5589 * go32-nat.c: Likewise.
5590 * i386gnu-nat.c: Likewise.
5591 * proc-api.c: Likewise.
5592 * proc-events.c: Likewise.
5593 * proc-flags.c: Likewise.
5594 * proc-why.c: Likewise.
5595 * python/python-internal.h: Likewise.
5596 * target-memory.c: Likewise.
5597 * tui/tui-io.c: Likewise.
5598 * tui/tui.c: Likewise.
5600 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5602 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5603 (scan_dyntag_auxv): Same.
5605 2014-08-06 Yao Qi <yao@codesourcery.com>
5607 * amd64-linux-nat.c: Remove duplicated include
5609 * i386-linux-nat.c: Likewise.
5611 2014-08-06 Yao Qi <yao@codesourcery.com>
5613 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5614 operand" with "Special opcode" in comments.
5616 2014-08-05 Gary Benson <gbenson@redhat.com>
5618 * interps.c (initialize_interps): Remove prototype.
5619 (interpreter_initialized): Remove static global.
5620 (interp_add): Do not call initialize_interps.
5621 (initialize_interps): Remove function.
5623 2014-08-05 Gary Benson <gbenson@redhat.com>
5625 * utils.c (vwarning): Remove spurious va_end.
5627 2014-08-05 Alan Modra <amodra@gmail.com>
5629 * charset.c (convert_between_encodings): Cast result of obstack_base.
5630 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5631 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5632 (read_unwind_info): Use size_t for some locals.
5633 * jit.c (finalize_symtab): Likewise.
5634 * utils.c (hashtab_obstack_allocate): Likewise.
5635 * symmisc.c (print_objfile_statistics): Update format strings.
5637 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5639 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5640 (Changes in GDB 7.8): ... here.
5642 2014-08-04 Tom Tromey <tromey@redhat.com>
5644 * target.c (set_targetdebug): New function.
5645 (initialize_targets): Pass set_targetdebug when creating "set
5648 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5650 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5651 if detecting a variable-sized field that is not the last field.
5652 Fix struct type length computation.
5654 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5656 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5659 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5661 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5662 Remove "+ 8" offset in computation of CHAIN_VMA.
5664 2014-07-31 Doug Evans <dje@google.com>
5666 * inflow.c (child_terminal_inferior): Add comment.
5667 (child_terminal_ours_for_output): Add comment.
5668 (child_terminal_ours): Add comment.
5669 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5670 (linux_nat_terminal_ours): Add comment.
5672 2014-07-31 Gary Benson <gbenson@redhat.com>
5674 * common/btrace-common.h: Do not include defs.h or server.h.
5675 * nat/mips-linux-watch.h: Likewise.
5676 * gdb-dlfcn.h: Do not include defs.h.
5677 * tracefile.h: Likewise.
5679 2014-07-30 Roland McGrath <mcgrathr@google.com>
5681 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5683 2014-07-30 Tom Tromey <tromey@redhat.com>
5685 * bsd-kvm.c (bsd_kvm_open): Constify.
5686 * corelow.c (core_open): Constify.
5687 * ctf.c (ctf_open): Constify.
5688 * dbug-rom.c (dbug_open): Constify.
5689 * exec.c (exec_open): Constify.
5690 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5691 * microblaze-rom.c (picobug_open): Constify.
5692 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5694 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5695 * record-btrace.c (record_btrace_open): Constify.
5696 * record-full.c (record_full_core_open_1, record_full_open_1)
5697 (record_full_open): Constify.
5698 * remote-m32r-sdi.c (m32r_open): Constify.
5699 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5700 (rockhopper_open, lsi_open): Constify.
5701 * remote-sim.c (gdbsim_open): Constify.
5702 * remote.c (remote_open, extended_remote_open, remote_open_1):
5704 * target.h (struct target_ops) <to_open>: Make "arg" const.
5705 * tracefile-tfile.c (tfile_open): Constify.
5707 2014-07-30 Tom Tromey <tromey@redhat.com>
5709 * breakpoint.c (map_breakpoint_numbers): Update.
5710 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5711 (get_number_const): New function.
5712 (get_number): Rewrite using get_number_const.
5713 (init_number_or_range): Make "string" const.
5714 (number_is_in_list): Make "list" const.
5715 * cli/cli-utils.h (get_number_const): Declare.
5716 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5717 (init_number_or_range, number_is_in_list): Update.
5718 * printcmd.c (map_display_numbers): Update.
5719 * value.c (value_from_history_ref): Constify.
5720 * value.h (value_from_history_ref): Update.
5722 2014-07-30 Tom Tromey <tromey@redhat.com>
5724 * corefile.c (hook_type, call_extra_exec_file_hooks)
5725 (specify_exec_file_hook): Constify.
5726 * exec.c (exec_file_attach): Make "filename" const.
5727 * gdbcore.h (deprecated_exec_file_display_hook)
5728 (specify_exec_file_hook, exec_file_attach): Constify.
5729 * main.c (captured_main): Use catch_command_errors_const.
5731 2014-07-30 Tom Tromey <tromey@redhat.com>
5733 * target.c (open_target): New function.
5734 (add_target_with_completer, add_deprecated_target_alias): Use
5735 set_cmd_sfunc, set_cmd_context.
5736 (debug_to_open): Remove.
5737 (setup_target_debug): Update.
5739 2014-07-30 Yao Qi <yao@codesourcery.com>
5741 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5743 * parse.c (exp_iterate): Update comments.
5745 2014-07-30 Gary Benson <gbenson@redhat.com>
5747 * common/common-defs.h: New file.
5748 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5749 * defs.h: Include common-defs.h.
5750 Do not include config.h or build-gnulib/config.h.
5752 2014-07-30 Gary Benson <gbenson@redhat.com>
5754 * common/common-utils.h: Do not include config.h.
5755 * nat/linux-btrace.h: Likewise.
5757 2014-07-30 Gary Benson <gbenson@redhat.com>
5759 * btrace.c: Include defs.h.
5760 * common/ptid.c: Include defs.h or server.h as appropriate.
5761 * nat/mips-linux-watch.c: Likewise.
5763 2014-07-29 Tom Tromey <tromey@redhat.com>
5765 * target.c (target_is_pushed): Simplify.
5767 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5771 2014-07-29 Yao Qi <yao@codesourcery.com>
5774 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5776 2014-07-28 Doug Evans <xdje42@gmail.com>
5779 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5780 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5783 2014-07-28 Will Newton <will.newton@linaro.org>
5785 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5786 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5787 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5788 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5789 (THUMB2_EABI_SYSCALL): Likewise.
5790 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5792 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5793 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5795 2014-07-27 Doug Evans <xdje42@gmail.com>
5797 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5799 2014-07-27 Doug Evans <xdje42@gmail.com>
5801 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5803 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5804 Doug Evans <xdje42@gmail.com>
5807 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5808 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5809 * configure.ac: Try to use guild to compile an scm file, if it fails
5810 then disable guile support.
5811 * configure: Regenerate.
5812 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5814 (GUILE_COMPILED_FILES): New variable.
5815 (GUILE_FILES) Update.
5816 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5817 (stamp-guile): Compile scm files.
5818 * guile/guile.c (boot_guile_support): New function.
5819 (standard_throw_args_p): New function.
5820 (print_standard_throw_error, print_throw_error): New functions.
5821 (handle_boot_error): New function.
5822 (initialize_scheme_side): Rewrite to call boot_guile_support.
5823 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5824 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5826 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5827 Doug Evans <xdje42@gmail.com>
5830 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5831 * guile/lib/gdb/support.scm: New file.
5832 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5833 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5835 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5837 (%assert-type): Ditto, and renamed to assert-type.
5838 (%exception-print-style): Delete.
5840 2014-07-26 Doug Evans <xdje42@gmail.com>
5843 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5844 * configure: Regenerate.
5845 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5847 (PYTHON_FILES): New variable.
5848 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5849 (GUILE_FILES): New variable.
5850 (stamp-python, install-python, uninstall-python): Handle empty
5852 (stamp-guile, install-guile, uninstall-guile): Ditto.
5854 2014-07-26 Doug Evans <xdje42@gmail.com>
5857 * guile/lib/gdb.scm (pretty-printers): Export.
5858 (set-pretty-printers!): Export.
5859 * guile/lib/gdb/printing.scm (gdb module): Update.
5860 (prepend-pretty-printer!, append-pretty-printer!): Update.
5861 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5862 (pretty_printer_list_var): Delete.
5863 (pretty_printer_list): New static global.
5864 (gdbscm_pretty_printers): New function.
5865 (gdbscm_set_pretty_printers_x): New function.
5866 (ppscm_find_pretty_printer_from_gdb): Update.
5867 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5868 (gdbscm_initialize_pretty_printers): Update.
5870 2014-07-26 Doug Evans <xdje42@gmail.com>
5873 * configure.ac: Add check for header gc/gc.h.
5874 Add check for function setenv.
5875 * configure: Regenerate.
5876 * config.in: Regenerate.
5877 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5879 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5881 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5882 variation in gdbarch matching.
5884 2014-07-25 Tom Tromey <tromey@redhat.com>
5886 * exec.c (using_exec_ops): Remove.
5887 (exec_close_1): Update. Remove extraneous block, reindent.
5888 (add_target_sections): Use target_is_pushed.
5890 2014-07-25 Pedro Alves <palves@redhat.com>
5892 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5893 * monitor.c (monitor_create_inferior): Likewise.
5894 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5895 * remote-sim.c (gdbsim_create_inferior): Likewise.
5896 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5897 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5898 * windows-nat.c (do_initial_windows_stuff): Likewise.
5900 2014-07-25 Pedro Alves <palves@redhat.com>
5902 * NEWS: Mention signal passing and "signal" command changes.
5903 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5905 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5907 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5908 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5909 (jump_command): Adjust clear_proceed_status call.
5910 (signal_command): Warn if other thread that are resumed have
5911 signals that will be delivered. Adjust clear_proceed_status call.
5912 (until_next_command, finish_command)
5913 (proceed_after_attach_callback, attach_command_post_wait)
5914 (attach_command): Adjust clear_proceed_status call.
5915 * infrun.c (proceed_after_vfork_done): Likewise.
5916 (proceed_after_attach_callback): Adjust comment.
5917 (clear_proceed_status_thread): Clear stop_signal if not in pass
5919 (clear_proceed_status_callback): Delete.
5920 (clear_proceed_status): New 'step' parameter. Only clear the
5921 proceed status of threads the command being prepared is about to
5923 (proceed): If passed in an explicit signal, override stop_signal
5924 with it. Don't pass the last stop signal to the thread we're
5926 (init_wait_for_inferior): Adjust clear_proceed_status call.
5927 (switch_back_to_stepped_thread): Clear the signal if it should not
5929 * infrun.h (clear_proceed_status): New 'step' parameter.
5930 (user_visible_resume_ptid): Add comment.
5931 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5932 signal is in pass state.
5933 * remote.c (append_pending_thread_resumptions): Likewise.
5934 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5936 2014-07-25 Tom Tromey <tromey@redhat.com>
5938 * target.h (target_stopped_data_address)
5939 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5942 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5944 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5946 (avr_pointer_to_address): Likewise.
5948 2014-07-24 Tom Tromey <tromey@redhat.com>
5950 * monitor.c (compile_pattern): Update.
5951 * target.h (struct target_ops) <to_shortname, to_longname,
5954 2014-07-24 Tom Tromey <tromey@redhat.com>
5956 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5957 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5958 (add_info_alias, add_com): Make "doc" const.
5959 (print_doc_line): Make "str" const.
5960 (delete_cmd): Update.
5961 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5962 (print_doc_line): Update.
5963 * cli/cli-script.c (document_command): Update.
5964 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5965 (add_com, add_info, add_info_alias): Update.
5966 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5967 * python/py-cmd.c (cmdpy_destroyer): Update.
5969 2014-07-24 Tom Tromey <tromey@redhat.com>
5971 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5972 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5973 (help_cmd_list): Constify.
5974 (lookup_cmd): Update.
5975 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5977 (help_cmd_list, apropos_cmd): Update.
5978 * cli/cli-script.c (show_user): Update.
5979 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5980 * cli/cli-setshow.h (cmd_show_list): Update.
5981 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5982 (cmd_show_list): Update.
5983 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5984 * python/py-cmd.c (cmdpy_destroyer): Update.
5986 2014-07-24 Tom Tromey <tromey@redhat.com>
5988 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5989 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5991 * command.h (deprecate_cmd): Update.
5992 * maint.c (maintenance_do_deprecate): Add casts.
5994 2014-07-24 Tom Tromey <tromey@redhat.com>
5996 * cli/cli-decode.c (help_cmd): Make parameter "const".
5997 * cli/cli-decode.h (help_cmd): Update.
5999 2014-07-24 Tom Tromey <tromey@redhat.com>
6001 * stack.c (up_silently_base, down_silently_base): Make argument
6004 2014-07-24 Tom Tromey <tromey@redhat.com>
6006 * solib.c (solib_add): Make "pattern" const.
6007 * solib.h (solib_add): Update.
6009 2014-07-24 Tom Tromey <tromey@redhat.com>
6011 * remote.c (remote_serial_open, print_packet, putpkt)
6012 (putpkt_binary): Constify.
6013 * remote.h (putpkt): Update.
6015 2014-07-24 Tom Tromey <tromey@redhat.com>
6017 * monitor.c (monitor_open): Make "args" const.
6018 * monitor.h (monitor_open): Update.
6020 2014-07-24 Tom Tromey <tromey@redhat.com>
6022 * maint.c (match_bfd_flags): Make "string" const.
6023 (print_bfd_section_info): Remove casts.
6024 (print_objfile_section_info): Make "string" const.
6026 2014-07-24 Tom Tromey <tromey@redhat.com>
6028 * inf-child.c (inf_child_open_target): Make "arg" const.
6029 * inf-child.h (inf_child_open_target): Update.
6031 2014-07-24 Tom Tromey <tromey@redhat.com>
6033 * environ.c (unset_in_environ): Make "var" const.
6034 * environ.h (unset_in_environ): Update.
6036 2014-07-24 Tom Tromey <tromey@redhat.com>
6038 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
6040 (scan_filename_with_cleanup): Likewise.
6041 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
6042 Make arguments const.
6043 (restore_command): Update.
6045 2014-07-24 Pedro Alves <palves@redhat.com>
6047 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
6049 2014-07-24 Tom Tromey <tromey@redhat.com>
6050 Gary Benson <gbenson@redhat.com>
6052 * nat/linux-ptrace.c (additional_flags): New global.
6053 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
6054 additional_flags; don't check GDBSERVER.
6055 (linux_ptrace_set_additional_flags): New function.
6056 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6058 * linux-nat.c (_initialize_linux_nat): Call
6059 linux_ptrace_set_additional_flags.
6061 2014-07-24 Tom Tromey <tromey@redhat.com>
6063 * make-target-delegates (munge_type, write_debugmethod): New
6065 (debug_names): New global.
6066 ($TARGET_DEBUG_PRINTER): New global.
6067 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
6069 Write debug methods. Generate init_debug_target.
6070 * target-debug.h: New file.
6071 * target-delegates.c: Rebuild.
6072 * target.c: Include target-debug.h.
6073 (debug_target): Hoist definition.
6074 (target_kill, target_get_section_table, target_memory_map)
6075 (target_flash_erase, target_flash_done, target_detach)
6076 (target_disconnect, target_wait, target_resume)
6077 (target_pass_signals, target_program_signals, target_follow_fork)
6078 (target_mourn_inferior, target_search_memory)
6079 (target_thread_address_space, target_close)
6080 (target_find_new_threads, target_core_of_thread)
6081 (target_verify_memory, target_insert_mask_watchpoint)
6082 (target_remove_mask_watchpoint): Remove targetdebug code.
6083 (debug_to_post_attach, debug_to_prepare_to_store)
6084 (debug_to_files_info, debug_to_insert_breakpoint)
6085 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
6086 (debug_to_region_ok_for_hw_watchpoint)
6087 (debug_to_can_accel_watchpoint_condition)
6088 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
6089 (debug_to_watchpoint_addr_within_range)
6090 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
6091 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
6092 (debug_to_terminal_init, debug_to_terminal_inferior)
6093 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
6094 (debug_to_terminal_save_ours, debug_to_terminal_info)
6095 (debug_to_load, debug_to_post_startup_inferior)
6096 (debug_to_insert_fork_catchpoint)
6097 (debug_to_remove_fork_catchpoint)
6098 (debug_to_insert_vfork_catchpoint)
6099 (debug_to_remove_vfork_catchpoint)
6100 (debug_to_insert_exec_catchpoint)
6101 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
6102 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
6103 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
6104 (setup_target_debug): Call init_debug_target.
6105 * target.h (TARGET_DEBUG_PRINTER): New macro.
6106 (struct target_ops) <to_resume, to_wait, to_pass_signals,
6107 to_program_signals>: Use TARGET_DEBUG_PRINTER.
6109 2014-07-24 Gary Benson <gbenson@redhat.com>
6111 * exceptions.h (throw_vfatal): Renamed to...
6112 (throw_vquit): New declaration.
6113 (throw_quit): Likewise.
6114 * exceptions.c (throw_vfatal): Renamed to...
6115 (throw_vquit): New function.
6116 (throw_quit): Likewise.
6117 (throw_error): Call throw_verror rather than throw_it.
6118 * utils.h (vfatal): Removed.
6120 * utils.c (vfatal): Removed.
6122 (internal_verror): Replaced call to fatal with call to throw_quit.
6123 (quit): Replaced calls to fatal with calls to throw_quit.
6125 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
6127 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6130 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
6132 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6133 less than zero in conditional expression.
6135 2014-07-23 Tom Tromey <tromey@redhat.com>
6137 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6138 ($INTRO_PART): Don't match whitespace.
6139 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6141 ($METHOD): Add $METHOD_TRAILER.
6143 (scan_target_h): New sub.
6144 Change main loop not to collect state.
6145 * target-delegates.c: Rebuild.
6147 2014-07-23 Gary Benson <gbenson@redhat.com>
6149 * cp-support.c (gdb_demangle): Fix build on systems without
6152 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6154 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6155 for reference entry value target data value.
6157 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6159 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6160 value_available_contents_eq.
6162 2014-07-22 Pedro Alves <palves@redhat.com>
6164 * value.c (allocate_optimized_out_value): Don't mark value as
6167 2014-07-22 Jiong Wang <jiong.wang@arm.com>
6169 * MAINTAINERS (Write After Approval): Update my email address.
6171 2014-07-20 Doug Evans <dje@google.com>
6174 * remote.c (putpkt_binary): Add text to error message.
6176 2014-07-20 Yao Qi <yao@codesourcery.com>
6178 * eval.c: Remove "Chill" from comments.
6179 * gdbtypes.h: Likewise.
6180 * symtab.h: Likewise.
6182 2014-07-20 Yao Qi <yao@codesourcery.com>
6184 * std-operator.def: Update comments to TERNOP_SLICE.
6186 2014-07-20 Yao Qi <yao@codesourcery.com>
6188 * std-operator.def: Remove BINOP_RANGE.
6189 * breakpoint.c (watchpoint_exp_is_const): Update.
6190 * expprint.c (dump_subexp_body_standard): Likewise.
6191 * eval.c (init_array_element): Remove dead code.
6192 (evaluate_subexp_standard): Likewise.
6194 2014-07-20 Yao Qi <yao@codesourcery.com>
6196 * std-operator.def: Remove BINOP_IN.
6197 * breakpoint.c (watchpoint_exp_is_const): Update.
6198 * eval.c (evaluate_subexp_standard): Likewise.
6199 * expprint.c (dump_subexp_body_standard): Likewise.
6201 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6203 * microblaze-tdep.c (microblaze_register_names): Add
6204 the rshr and rslr register names.
6205 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6206 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6207 Use of tdesc_numbered_register. Use of
6208 microblaze_register_g_packet_guesses. Use of
6209 tdesc_use_registers. Use of set_gdbarch_register_type.
6210 (microblaze_register_g_packet_guesses): New.
6211 * microblaze-tdep.h (microblaze_reg_num): Add
6212 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6213 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6214 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6215 * features/microblaze-core.xml: New file.
6216 * features/microblaze-stack-protect.xml: New file.
6217 * features/microblaze-with-stack-protect.c: New file.
6218 * features/microblaze-with-stack-protect.xml: New file.
6219 * features/microblaze.xml: New file.
6220 * features/microblaze.c: New file.
6221 * features/Makefile (microblaze-with-stack-protect): Add
6222 microblaze-with-stack-protect microblaze and microblaze-expedite.
6223 * regformats/microblaze-with-stack-protect.dat: New file.
6224 * regformats/microblaze.dat: New file.
6225 * doc/gdb.texinfo (MicroBlaze Features): Added.
6227 2014-07-18 Tom Tromey <tromey@redhat.com>
6229 * exec.c (exec_ops): Now static.
6230 * exec.h (exec_ops): Don't declare.
6232 2014-07-18 Tom Tromey <tromey@redhat.com>
6234 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6235 to find_target_beneath.
6236 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6237 find_target_beneath.
6238 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6240 2014-07-18 Tom Tromey <tromey@redhat.com>
6243 * utils.c (quit): Use target_supports_terminal_ours.
6244 * target.h (target_supports_terminal_ours): Declare.
6245 * target.c (target_supports_delete_record): Don't check
6246 to_delete_record against NULL.
6247 (target_supports_terminal_ours): New function.
6249 2014-07-18 Tom Tromey <tromey@redhat.com>
6252 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6253 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6254 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6255 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6256 * windows-nat.c (windows_xfer_partial): Always delegate.
6257 * record-btrace.c (record_btrace_xfer_partial): Simplify
6259 (record_btrace_fetch_registers, record_btrace_store_registers)
6260 (record_btrace_prepare_to_store, record_btrace_resume)
6261 (record_btrace_wait, record_btrace_find_new_threads)
6262 (record_btrace_thread_alive): Likewise.
6263 * procfs.c (procfs_xfer_partial): Always delegate.
6264 * corelow.c (core_xfer_partial): Always delegate.
6265 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6267 2014-07-18 Tom Tromey <tromey@redhat.com>
6269 * exec.c (exec_make_note_section): Move earlier.
6271 2014-07-17 Doug Evans <dje@google.com>
6274 * maint.c (count_symtabs_and_blocks): Handle NULL
6275 current_program_space.
6276 (report_command_stats): Check global enabled flag in addition to
6277 recorded enabled flag.
6278 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6280 2014-07-16 Pedro Alves <palves@redhat.com>
6282 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6284 2014-07-16 Tom Tromey <tromey@redhat.com>
6286 * target.h (struct target_ops) <to_delete_record>: Reformat
6289 2014-07-16 Tom Tromey <tromey@redhat.com>
6291 * target-delegates.c: Rebuild.
6293 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6295 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6296 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6297 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6298 (avr_pointer_to_address): Likewise.
6299 (avr_address_class_type_flags): New function.
6300 (avr_address_class_type_flags_to_name): Likewise.
6301 (avr_address_class_name_to_type_flags): Likewise.
6302 (avr_gdbarch_init): Set address_class_type_flags,
6303 address_class_type_flags_to_name and
6304 address_class_name_to_type_flags.
6306 2014-07-15 Pedro Alves <palves@redhat.com>
6308 * linux-nat.c (kill_callback): Save errno and work with saved
6311 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6313 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6315 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6317 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6318 breakpoint support correctly.
6320 2014-07-14 Pedro Alves <palves@redhat.com>
6322 * utils.c (prompt_for_continue): Call target_terminal_ours.
6324 2014-07-14 Pedro Alves <palves@redhat.com>
6326 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6327 catch_errors. Don't re-enable stdin or notify observers where,
6329 (fetch_inferior_event_wrapper): Delete.
6331 2014-07-14 Pedro Alves <palves@redhat.com>
6334 * top.c: Include "inf-loop.h".
6335 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6337 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6339 (gdb_readline_wrapper): Store whether the target is async, and
6342 2014-07-14 Pedro Alves <palves@redhat.com>
6345 * top.c (gdb_readline_wrapper_line): Tweak comment.
6346 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6347 the input handler callback.
6349 2014-07-14 Pedro Alves <palves@redhat.com>
6352 * main.c: Include event-top.h.
6353 (handle_command_errors): New function.
6354 (catch_command_errors, catch_command_errors_const): Use it.
6356 2014-07-14 Pedro Alves <palves@redhat.com>
6358 * exceptions.c (catch_command_errors, catch_command_errors_const):
6360 * exceptions.h (catch_command_errors_ftype)
6361 (catch_command_errors_const_ftype): Moved to main.c.
6362 (catch_command_errors, catch_command_errors_const): Delete
6364 * main.c (catch_command_errors_ftype)
6365 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6366 (catch_command_errors, catch_command_errors_const)): Moved here
6367 from exceptions.c and make static.
6369 2014-07-14 Pedro Alves <palves@redhat.com>
6371 * exceptions.c (print_any_exception): Delete.
6372 (catch_exceptions_with_msg): Use exception_print instead of
6373 print_any_exception.
6374 (catch_errors): Use exception_fprintf instead of
6375 print_any_exception.
6376 (catch_command_errors, catch_command_errors_const): Use
6377 exception_print instead of print_any_exception.
6379 2014-07-14 Pedro Alves <palves@redhat.com>
6381 * infcall.c (run_inferior_call): Set 'sync_execution' while
6382 running the inferior call.
6384 2014-07-14 Pedro Alves <palves@redhat.com>
6386 * value.c (value_contents_equal): Delete function.
6387 * value.h (value_contents_equal): Delete declaration.
6389 2014-07-14 Tom Tromey <tromey@redhat.com>
6392 * gdbtypes.c (is_dynamic_type_internal): New function, from
6394 (is_dynamic_type): Rewrite.
6395 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6396 (resolve_dynamic_struct): Likewise.
6397 (resolve_dynamic_type_internal): New function, from
6398 resolve_dynamic_type.
6399 (resolve_dynamic_type): Rewrite.
6401 2014-07-14 Tom Tromey <tromey@redhat.com>
6403 * target.c (target_require_runnable): Also check record_stratum.
6406 2014-07-11 Yao Qi <yao@codesourcery.com>
6408 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6409 thumb_instruction_restores_sp return true.
6411 2014-07-11 Yao Qi <yao@codesourcery.com>
6413 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6414 (thumb_in_function_epilogue_p): Call
6415 thumb_instruction_restores_sp.
6417 2014-07-11 Yao Qi <yao@codesourcery.com>
6419 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6421 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6423 2014-07-11 Gary Benson <gbenson@redhat.com>
6425 * amd64-linux-nat.c (gdbcore.h): Remove include.
6426 (regset.h): Likewise.
6427 (nat/linux-btrace.h): Likewise.
6428 (btrace.h): Likewise.
6429 (gdb_assert.h): Likewise.
6430 (string.h): Likewise.
6431 (sys/uio.h): Likewise.
6432 (sys/debugreg.h): Likewise.
6433 (sys/syscall.h): Likewise.
6434 (sys/procfs.h): Likewise.
6435 (sys/user.h): Likewise.
6436 (asm/ptrace.h): Likewise.
6437 (i386-nat.h): Likewise.
6438 * i386-linux-nat.c (i386-nat.h): Likewise.
6439 (regset.h): Likewise.
6440 (target.h): Likewise.
6441 (linux-nat.h): Likewise.
6442 (nat/linux-btrace.h): Likewise.
6443 (btrace.h): Likewise.
6444 (gdb_assert.h): Likewise.
6445 (string.h): Likewise.
6446 (sys/uio.h): Likewise.
6447 (sys/user.h): Likewise.
6448 (sys/procfs.h): Likewise.
6449 (sys/reg.h): Likewise.
6450 (sys/debugreg.h): Likewise.
6451 (ORIG_EAX): Remove definition.
6453 2014-07-11 Gary Benson <gbenson@redhat.com>
6455 * i386-linux-nat.h: New file.
6456 * x86-linux-nat.h: Likewise.
6457 * x86-linux-nat.c: Likewise.
6458 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6459 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6460 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6461 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6462 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6463 (PTRACE_SETREGSET): Likewise.
6464 (arch_lwp_info): Now in x86-linux-nat.c.
6465 (have_ptrace_getregset): Now in x86-linux-nat.h.
6466 (x86_linux_dr_get): Now in x86-linux-nat.c.
6467 (x86_linux_dr_set): Likewise.
6468 (x86_linux_dr_get_addr): Likewise.
6469 (x86_linux_dr_get_control): Likewise.
6470 (x86_linux_dr_get_status): Likewise.
6471 (update_debug_registers_callback): Likewise.
6472 (x86_linux_dr_set_control): Likewise.
6473 (x86_linux_dr_set_addr): Likewise.
6474 (x86_linux_prepare_to_resume): Likewise.
6475 (x86_linux_new_thread): Likewise.
6476 (x86_linux_new_fork): Likewise.
6477 (x86_linux_get_thread_area): Likewise.
6478 (super_post_startup_inferior): Likewise.
6479 (x86_linux_child_post_startup_inferior): Likewise.
6480 (AMD64_LINUX_USER64_CS): Likewise.
6481 (AMD64_LINUX_X32_DS): Likewise.
6482 (x86_linux_read_description): Likewise.
6483 (x86_linux_enable_btrace): Likewise.
6484 (x86_linux_disable_btrace): Likewise.
6485 (x86_linux_teardown_btrace): Likewise.
6486 (x86_linux_read_btrace): Likewise.
6487 (x86_linux_create_target): Likewise.
6488 (x86_linux_add_target): Likewise.
6489 * i386-linux-nat.c (x86-linux-nat.h): New include.
6490 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6491 (PTRACE_SETREGSET): Likewise.
6492 (arch_lwp_info): Now in x86-linux-nat.c.
6493 (have_ptrace_getregset): Now in x86-linux-nat.h.
6494 (x86_linux_dr_get): Now in x86-linux-nat.c.
6495 (x86_linux_dr_set): Likewise.
6496 (x86_linux_dr_get_addr): Likewise.
6497 (x86_linux_dr_get_control): Likewise.
6498 (x86_linux_dr_get_status): Likewise.
6499 (update_debug_registers_callback): Likewise.
6500 (x86_linux_dr_set_control): Likewise.
6501 (x86_linux_dr_set_addr): Likewise.
6502 (x86_linux_prepare_to_resume): Likewise.
6503 (x86_linux_new_thread): Likewise.
6504 (x86_linux_new_fork): Likewise.
6505 (x86_linux_get_thread_area): Likewise.
6506 (super_post_startup_inferior): Likewise.
6507 (x86_linux_child_post_startup_inferior): Likewise.
6508 (AMD64_LINUX_USER64_CS): Likewise.
6509 (AMD64_LINUX_X32_DS): Likewise.
6510 (x86_linux_read_description): Likewise.
6511 (x86_linux_enable_btrace): Likewise.
6512 (x86_linux_disable_btrace): Likewise.
6513 (x86_linux_teardown_btrace): Likewise.
6514 (x86_linux_read_btrace): Likewise.
6515 (x86_linux_create_target): Likewise.
6516 (x86_linux_add_target): Likewise.
6518 2014-07-11 Gary Benson <gbenson@redhat.com>
6520 * amd64-linux-nat.c: Comment and whitespace changes.
6521 * i386-linux-nat.c: Comment and whitespace changes.
6523 2014-07-11 Gary Benson <gbenson@redhat.com>
6525 * amd64-linux-nat.c (x86_linux_create_target): New function.
6526 (x86_linux_add_target): Likewise.
6527 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6528 * i386-linux-nat.c (x86_linux_create_target): New function.
6529 (x86_linux_add_target): Likewise.
6530 (_initialize_i386_linux_nat): Delegate to the above new functions.
6532 2014-07-11 Gary Benson <gbenson@redhat.com>
6534 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6535 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6536 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6537 (ps_get_thread_area): Delegate to the above.
6539 2014-07-11 Gary Benson <gbenson@redhat.com>
6541 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6542 x86_linux_read_description. All uses updated. amd64-specific
6543 code conditionalized. Conditionalized i386-specific code added.
6544 Redundant cast removed.
6545 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6546 x86_linux_read_description. All uses updated. i386-specific
6547 code conditionalized. Conditionalized amd64-specific code added.
6548 One sizeof replaced with the actual type it is describing.
6550 2014-07-11 Gary Benson <gbenson@redhat.com>
6552 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6553 x86_linux_dr_get. All uses updated.
6554 (amd64_linux_dr_set): Renamed to
6555 x86_linux_dr_set. All uses updated.
6556 (amd64_linux_dr_get_addr): Renamed to
6557 x86_linux_dr_get_addr. All uses updated.
6558 (amd64_linux_dr_get_control): Renamed to
6559 x86_linux_dr_get_control. All uses updated.
6560 (amd64_linux_dr_get_status): Renamed to
6561 x86_linux_dr_get_status. All uses updated.
6562 (amd64_linux_dr_set_control): Renamed to
6563 x86_linux_dr_set_control. All uses updated.
6564 (amd64_linux_dr_set_addr): Renamed to
6565 x86_linux_dr_set_addr. All uses updated.
6566 (amd64_linux_prepare_to_resume): Renamed to
6567 x86_linux_prepare_to_resume. All uses updated.
6568 (amd64_linux_new_thread): Renamed to
6569 x86_linux_new_thread. All uses updated.
6570 (amd64_linux_new_fork): Renamed to
6571 x86_linux_new_fork. All uses updated.
6572 (amd64_linux_child_post_startup_inferior): Renamed to
6573 x86_linux_child_post_startup_inferior. All uses updated.
6574 (amd64_linux_enable_btrace): Renamed to
6575 x86_linux_enable_btrace. All uses updated.
6576 (amd64_linux_disable_btrace): Renamed to
6577 x86_linux_disable_btrace. All uses updated.
6578 (amd64_linux_teardown_btrace): Renamed to
6579 x86_linux_teardown_btrace. All uses updated.
6580 (amd64_linux_read_btrace): Renamed to
6581 x86_linux_read_btrace. All uses updated.
6582 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6583 x86_linux_dr_get. All uses updated.
6584 (i386_linux_dr_set): Renamed to
6585 x86_linux_dr_set. All uses updated.
6586 (i386_linux_dr_get_addr): Renamed to
6587 x86_linux_dr_get_addr. All uses updated.
6588 (i386_linux_dr_get_control): Renamed to
6589 x86_linux_dr_get_control. All uses updated.
6590 (i386_linux_dr_get_status): Renamed to
6591 x86_linux_dr_get_status. All uses updated.
6592 (i386_linux_dr_set_control): Renamed to
6593 x86_linux_dr_set_control. All uses updated.
6594 (i386_linux_dr_set_addr): Renamed to
6595 x86_linux_dr_set_addr. All uses updated.
6596 (i386_linux_prepare_to_resume): Renamed to
6597 x86_linux_prepare_to_resume. All uses updated.
6598 (i386_linux_new_thread): Renamed to
6599 x86_linux_new_thread. All uses updated.
6600 (i386_linux_new_fork): Renamed to
6601 x86_linux_new_fork. All uses updated.
6602 (i386_linux_child_post_startup_inferior): Renamed to
6603 x86_linux_child_post_startup_inferior. All uses updated.
6604 (i386_linux_enable_btrace): Renamed to
6605 x86_linux_enable_btrace. All uses updated.
6606 (i386_linux_disable_btrace): Renamed to
6607 x86_linux_disable_btrace. All uses updated.
6608 (i386_linux_teardown_btrace): Renamed to
6609 x86_linux_teardown_btrace. All uses updated.
6610 (i386_linux_read_btrace): Renamed to
6611 x86_linux_read_btrace. All uses updated.
6613 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6615 * remote.c (extended_remote_post_attach): New function.
6616 (init_extended_remote_ops): Install it as to_post_attach method.
6618 2014-07-09 Pedro Alves <palves@redhat.com>
6620 * infcmd.c (attach_command_post_wait): Don't call
6621 target_terminal_inferior here.
6622 (attach_command): Call it here instead.
6624 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6626 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6628 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6629 from varobj.c, with additional checks.
6630 (c_varobj_ops): Fill in is_path_expr_parent field.
6631 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6632 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6634 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6636 (varobj_default_is_path_expr_parent): New function.
6637 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6638 (varobj_default_is_path_expr_parent): Declare new function.
6640 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6642 * infcmd.c (finish_backward): Turn internal error into normal error.
6644 2014-07-07 Pedro Alves <palves@redhat.com>
6647 * remote.c (async_handle_remote_sigint)
6648 (async_handle_remote_sigint_twice): Call
6649 gdb_call_async_signal_handler instead of
6650 mark_async_signal_handler.
6652 2014-07-07 Tom Tromey <tromey@redhat.com>
6654 * target-delegates.c: Rebuild.
6655 * target.c (target_info_record): Remove.
6656 * record.c (info_record_command): Unconditionally call
6658 * target.h (struct target_ops) <to_info_record>: Use
6659 TARGET_DEFAULT_IGNORE.
6660 (target_info_record): Remove.
6662 2014-07-07 Tom Tromey <tromey@redhat.com>
6664 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6665 TARGET_DEFAULT_NORETURN.
6666 * target.c (generic_tls_error): New function.
6667 (target_translate_tls_address): Don't search target stack.
6668 * target-delegates.c: Rebuild.
6669 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6671 * linux-thread-db.c (thread_db_get_thread_local_address):
6672 Unconditionally call beneath target.
6674 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6676 * cli/cli-logging.c (pop_output_files): Assign targerr to
6679 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6681 * MAINTAINERS (Write After Approval): Update my email address.
6683 2014-07-02 Gary Benson <gbenson@redhat.com>
6685 * proc-service.c (ps_xfer_memory): Update comment.
6686 (ps_pstop): Remove unused function.
6687 (ps_pcontinue): Likewise.
6688 (ps_lstop): Likewise.
6689 (ps_lcontinue): Likewise.
6690 (ps_lgetxregsize): Likewise.
6691 (ps_lgetxregs): Likewise.
6692 (ps_lsetxregs): Likewise.
6693 (ps_plog): Likewise.
6694 (ps_ptread): Likewise.
6695 (ps_ptwrite): Likewise.
6697 2014-07-01 Mark Wielaard <mjw@redhat.com>
6699 * dwarf2read.c (add_array_cv_type): New function.
6700 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6701 (read_tag_volatile_type): Likewise.
6703 2014-07-01 Tom Tromey <tromey@redhat.com>
6705 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6706 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6707 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6708 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6709 * command.h (cmd_cfunc_ftype): Move earlier.
6710 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6711 (add_com, add_info): Use cmd_cfunc_ftype.
6713 2014-06-30 Tom Tromey <tromey@redhat.com>
6715 * symtab.c (operator_chars): Make parameters and return type
6717 (file_matches): Make "files" const.
6718 (struct search_symbols_data) <files>: Now const.
6719 (search_symbols): Make "regexp" and "files" parameters const.
6721 (symtab_symbol_info): Remove cast.
6722 (rbreak_command): Update.
6723 * symtab.h (search_symbols): Update.
6725 2014-06-27 Yao Qi <yao@codesourcery.com>
6727 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6728 Change parameter type to 'struct thread_info *'. Caller
6730 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6732 * dummy-frame.c (struct dummy_frame_id): New.
6733 (dummy_frame_id_eq): New function.
6734 (struct dummy_frame) <id>: Change its type to 'struct
6736 (dummy_frame_push): Add parameter ptid and save it in
6738 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6740 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6742 (lookup_dummy_frame): Change parameter type to 'struct
6743 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6744 instead of frame_id_eq.
6745 (dummy_frame_pop): Add parameter ptid. Callers updated.
6746 Update comments. Compose dummy_frame_id and pass it to
6748 (dummy_frame_discard): Add parameter ptid.
6749 (dummy_frame_sniffer): Compose dummy_frame_id and call
6750 dummy_frame_id_eq instead of frame_id_eq.
6751 (fprint_dummy_frames): Print ptid.
6752 * dummy-frame.h: Remove comments.
6753 (dummy_frame_push): Add ptid in declaration.
6754 (dummy_frame_pop, dummy_frame_discard): Likewise.
6756 2014-06-26 Tom Tromey <tromey@redhat.com>
6758 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6759 * command.h (error_no_arg): Update.
6761 2014-06-26 Tom Tromey <tromey@redhat.com>
6763 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6764 (do_show_command): Make "arg" const.
6765 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6767 2014-06-26 Tom Tromey <tromey@redhat.com>
6769 * record-full.c (record_full_get_bookmark): Make "args" const.
6770 (record_full_goto_bookmark): Make "raw_bookmark" const.
6771 * record.c (record_goto): New function.
6772 (cmd_record_goto): Use it. Now static.
6773 * record.h (record_goto): Declare.
6774 (cmd_record_goto): Remove declaration.
6775 * target-delegates.c: Rebuild.
6776 * target.h (struct target_ops) <to_get_bookmark,
6777 to_goto_bookmark>: Make parameter const.
6779 2014-06-26 Tom Tromey <tromey@redhat.com>
6781 * defs.h (generic_load): Update.
6782 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6783 * monitor.c (monitor_load): Make "args" const.
6784 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6785 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6787 (mips_load): Make "file" const.
6788 * remote-sim.c (gdbsim_load): Make "args" const.
6789 * remote.c (remote_load): Make "name" const.
6790 * symfile.c (generic_load): Make "args" const.
6791 * target-delegates.c: Rebuild.
6792 * target.c (target_load): Make "arg" const.
6793 (debug_to_load): Make "args" const.
6794 * target.h (struct target_ops) <to_load>: Make parameter const.
6795 (target_load): Update.
6797 2014-06-26 Tom Tromey <tromey@redhat.com>
6800 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6801 (dwarf2_physname, read_partial_die)
6802 (guess_partial_die_structure_name, fixup_partial_die)
6803 (guess_full_die_structure_name, anonymous_struct_prefix)
6804 (dwarf2_name): Use per-BFD obstack.
6806 2014-06-26 Yao Qi <yao@codesourcery.com>
6808 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6809 dummyframe and this_id into inner block below.
6811 2014-06-26 Yao Qi <yao@codesourcery.com>
6813 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6814 with "signal_pass[0]" in the initialization of signal_pass.
6816 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6818 * record-btrace.c (record_btrace_generating_corefile)
6819 (record_btrace_prepare_to_generate_core)
6820 (record_btrace_done_generating_core): New.
6821 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6822 (record_btrace_store_registers, record_btrace_prepare_to_store):
6823 Forward request when generating a core file.
6824 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6825 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6826 to_done_generating_core.
6828 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6830 * target.h (target_ops) <to_prepare_to_generate_core>
6831 <to_done_generating_core>: New.
6832 (target_prepare_to_generate_core, target_done_generating_core): New.
6833 * target.c (target_prepare_to_generate_core)
6834 (target_done_generating_core): New.
6835 * target-delegates.c: Regenerate.
6836 * gcore.c: (write_gcore_file): Rename to ...
6837 (write_gcore_file_1): ...this.
6838 (write_gcore_file): Call target_prepare_to_generate_core
6839 and target_done_generating_core.
6841 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6843 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6844 * gcore.c (write_gcore_file): Free memory returned from
6845 make_corefile_notes.
6846 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6847 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6849 2014-06-24 Yao Qi <yao@codesourcery.com>
6851 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6852 (arm_linux_init_abi): Set skip_trampoline_code with
6853 gdbarch_skip_trampoline_code instead of
6854 find_solib_trampoline_target.
6856 2014-06-24 Yao Qi <yao@codesourcery.com>
6858 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6859 arm_skip_bx_reg returns non-zero.
6861 2014-06-24 Yao Qi <yao@codesourcery.com>
6863 * arm-tdep.c (arm_skip_bx_reg): New function.
6864 (arm_skip_stub): Call arm_skip_bx_reg.
6866 2014-06-23 Don Breazeal <donb@codesourcery.com>
6868 * MAINTAINERS: Add myself as write-after-approval maintainer.
6870 2014-06-23 Pedro Alves <palves@redhat.com>
6872 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6873 DR_CONTROL before setting DR0..DR3.
6874 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6875 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6876 bits of DR_CONTROL related to the debug register slot being
6877 disabled. If all slots are vacant, clear local slowdown as well,
6878 and assert DR_CONTROL is 0.
6880 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6882 * python/lib/gdb/command/xmethods.py
6883 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6884 current progspace only if the string "progspace" matches LOCUS_RE.
6886 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6888 Fix --with-system-readline with readline-6.3 patch 5.
6889 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6890 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6893 2014-06-20 Tom Tromey <tromey@redhat.com>
6895 * dwarf2read.c (dw2_get_real_path): Use correct type in
6897 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6899 2014-06-20 Gary Benson <gbenson@redhat.com>
6901 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6902 * common/glibc_thread_db.h: Likewise.
6903 * common/i386-cpuid.h: Likewise.
6904 * common/i386-gcc-cpuid.h: Likewise.
6905 * common/linux-btrace.h: Likewise.
6906 * common/linux-osdata.h: Likewise.
6907 * common/linux-procfs.h: Likewise.
6908 * common/linux-ptrace.h: Likewise.
6909 * common/mips-linux-watch.h: Likewise.
6910 * common/linux-btrace.c: Moved to nat.
6911 * common/linux-osdata.c: Likewise.
6912 * common/linux-procfs.c: Likewise.
6913 * common/linux-ptrace.c: Likewise.
6914 * common/mips-linux-watch.c: Likewise.
6915 * nat/gdb_thread_db.h: Moved from common.
6916 * nat/glibc_thread_db.h: Likewise.
6917 * nat/i386-cpuid.h: Likewise.
6918 * nat/i386-gcc-cpuid.h: Likewise.
6919 * nat/linux-btrace.c: Likewise.
6920 * nat/linux-btrace.h: Likewise.
6921 * nat/linux-osdata.c: Likewise.
6922 * nat/linux-osdata.h: Likewise.
6923 * nat/linux-procfs.c: Likewise.
6924 * nat/linux-procfs.h: Likewise.
6925 * nat/linux-ptrace.c: Likewise.
6926 * nat/linux-ptrace.h: Likewise.
6927 * nat/mips-linux-watch.c: Likewise.
6928 * nat/mips-linux-watch.h: Likewise.
6929 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6930 (object file files): Reordered.
6931 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6932 of glibc_thread_db.h.
6934 2014-06-20 Gary Benson <gbenson@redhat.com>
6936 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6937 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6938 (i386_dr_low): Likewise.
6939 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6940 (i386_dr_low_set_addr): Likewise.
6941 (i386_dr_low_get_addr): Likewise.
6942 (i386_dr_low_can_set_control): Likewise.
6943 (i386_dr_low_set_control): Likewise.
6944 (i386_dr_low_get_control): Likewise.
6945 (i386_dr_low_get_status): Likewise.
6946 (i386_get_debug_register_length): Likewise.
6947 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6948 (i386_dr_low): Likewise.
6949 * nat/i386-dregs.c (i386-low.h): Remove include.
6950 (i386-nat.h): Likewise.
6951 (nat/i386-dregs.h): New include.
6952 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6953 (i386_dr_low_set_addr): Likewise.
6954 (i386_dr_low_get_addr): Likewise.
6955 (i386_dr_low_can_set_control): Likewise.
6956 (i386_dr_low_set_control): Likewise.
6957 (i386_dr_low_get_control): Likewise.
6958 (i386_dr_low_get_status): Likewise.
6959 (i386_get_debug_register_length): Likewise.
6960 (debug_hw_points): Likewise.
6962 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6964 * Makefile.in (SFILES): Add d-exp.y.
6965 (YYFILES): Add d-exp.c.
6966 (YYOBJ): Add d-exp.o.
6967 (local-maintainer-clean): Delete d-exp.c.
6968 * d-exp.y: New file.
6969 * d-lang.h (d_parse): New declaration.
6970 (d_error): New declaration.
6971 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6972 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6973 PREC_ORDER operators.
6974 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6976 2014-06-19 Yao Qi <yao@codesourcery.com>
6978 * gdbthread.h (any_running): Remove the declaration.
6979 * thread.c (any_running): Remove.
6981 2014-06-19 Yao Qi <yao@codesourcery.com>
6983 * gdbthread.h (struct thread_info) <state>: Change its type to
6984 'enum thread_state'. Update comments.
6986 2014-06-19 Pedro Alves <palves@redhat.com>
6988 * gdbthread.h (ALL_THREADS): Delete.
6989 (ALL_NON_EXITED_THREADS): New macro.
6990 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6991 instead of ALL_THREADS.
6992 * infrun.c (find_thread_needs_step_over)
6993 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6994 instead of ALL_THREADS.
6995 * record-btrace.c (record_btrace_open)
6996 (record_btrace_stop_recording, record_btrace_close)
6997 (record_btrace_is_replaying, record_btrace_resume)
6998 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6999 * remote.c (append_pending_thread_resumptions): Likewise.
7000 * thread.c (thread_apply_all_command): Likewise.
7002 2014-06-19 Gary Benson <gbenson@redhat.com>
7004 * i386-nat.c (i386_stopped_by_watchpoint):
7005 Use i386_dr_stopped_by_watchpoint.
7006 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
7007 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
7009 2014-06-19 Gary Benson <gbenson@redhat.com>
7011 * nat/i386-dregs.c: New file.
7012 * Makefile.in (i386-dregs.o): New rule.
7013 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
7014 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
7015 * config/i386/darwin.mh (NATDEPFILES): Likewise.
7016 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7017 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
7018 * config/i386/go32.mh (NATDEPFILES): Likewise.
7019 * config/i386/linux.mh (NATDEPFILES): Likewise.
7020 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7021 * config/i386/mingw.mh (NATDEPFILES): Likewise.
7022 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
7023 * i386-nat.h (debug_hw_points): New declaration.
7024 * i386-nat.c (breakpoint.h): Remove include.
7025 (command.h): Likewise.
7026 (target.h): Likewise.
7027 (gdb_assert.h): Likewise.
7028 (debug_hw_points): Made nonstatic.
7029 (debug_printf): Now in i386-dregs.c.
7030 (TARGET_HAS_DR_LEN_8): Likewise.
7031 (DR_CONTROL_SHIFT): Likewise.
7032 (DR_CONTROL_SIZE): Likewise.
7033 (DR_RW_EXECUTE): Likewise.
7034 (DR_RW_WRITE): Likewise.
7035 (DR_RW_READ): Likewise.
7036 (DR_RW_IORW): Likewise.
7037 (DR_LEN_1): Likewise.
7038 (DR_LEN_2): Likewise.
7039 (DR_LEN_4): Likewise.
7040 (DR_LEN_8): Likewise.
7041 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7042 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7043 (DR_ENABLE_SIZE): Likewise.
7044 (DR_LOCAL_SLOWDOWN): Likewise.
7045 (DR_GLOBAL_SLOWDOWN): Likewise.
7046 (DR_CONTROL_RESERVED): Likewise.
7047 (I386_DR_CONTROL_MASK): Likewise.
7048 (I386_DR_VACANT): Likewise.
7049 (I386_DR_LOCAL_ENABLE): Likewise.
7050 (I386_DR_GLOBAL_ENABLE): Likewise.
7051 (I386_DR_DISABLE): Likewise.
7052 (I386_DR_SET_RW_LEN): Likewise.
7053 (I386_DR_GET_RW_LEN): Likewise.
7054 (I386_DR_WATCH_HIT): Likewise.
7055 (i386_wp_op_t): Likewise.
7056 (i386_show_dr): Likewise.
7057 (i386_length_and_rw_bits): Likewise.
7058 (i386_insert_aligned_watchpoint): Likewise.
7059 (i386_remove_aligned_watchpoint): Likewise.
7060 (i386_handle_nonaligned_watchpoint): Likewise.
7061 (i386_update_inferior_debug_regs): Likewise.
7062 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
7063 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
7064 (i386_region_ok_for_watchpoint):
7065 Use i386_dr_region_ok_for_watchpoint.
7066 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
7068 2014-06-19 Gary Benson <gbenson@redhat.com>
7070 * i386-nat.c (i386_insert_hw_breakpoint): Use
7071 i386_insert_watchpoint.
7072 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
7074 2014-06-19 Gary Benson <gbenson@redhat.com>
7076 * i386-nat.c (i386_dr_show): Renamed to
7077 i386_show_dr and made static. All uses updated.
7078 (i386_dr_length_and_rw_bits): Renamed to
7079 i386_length_and_rw_bits and made static.
7081 (i386_dr_insert_aligned_watchpoint): Renamed to
7082 i386_insert_aligned_watchpoint and made static.
7084 (i386_dr_remove_aligned_watchpoint): Renamed to
7085 i386_remove_aligned_watchpoint and made static.
7087 (i386_dr_update_inferior_debug_regs): Renamed to
7088 i386_update_inferior_debug_regs and made static.
7090 * nat/i386-dregs.h (i386_dr_show): Removed.
7091 (i386_dr_length_and_rw_bits): Likewise.
7092 (i386_dr_insert_aligned_watchpoint): Likewise.
7093 (i386_dr_remove_aligned_watchpoint): Likewise.
7094 (i386_dr_update_inferior_debug_regs): Likewise.
7096 2014-06-19 Gary Benson <gbenson@redhat.com>
7098 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
7099 * configure: Regenerate.
7100 * config.in: Likewise.
7101 * main.c (signal.h): New include.
7102 (setup_alternate_signal_stack): New function.
7103 (captured_main): Call the above.
7104 * cp-support.c (signal.h): New include.
7105 (catch_demangler_crashes): New flag.
7106 (SIGJMP_BUF): New define.
7107 (SIGSETJMP): Likewise.
7108 (SIGLONGJMP): Likewise.
7109 (gdb_demangle_jmp_buf): New static global.
7110 (gdb_demangle_attempt_core_dump): Likewise.
7111 (gdb_demangle_signal_handler): New function.
7112 (gdb_demangle): If catch_demangler_crashes is set, install the
7113 above signal handler before calling bfd_demangle, and restore
7114 the original signal handler afterwards. Display the offending
7115 symbol and call demangler_warning the first time a segmentation
7117 (_initialize_cp_support): New maint set/show command.
7119 2014-06-19 Gary Benson <gbenson@redhat.com>
7121 * utils.h (resource_limit_kind): New enum.
7122 (can_dump_core): New declaration.
7123 (warn_cant_dump_core): Likewise.
7124 (dump_core): Likewise.
7125 * utils.c (dump_core): Made nonstatic. Added new
7126 parameter "limit_kind".
7127 (can_dump_core): Made nonstatic. Moved printing code to...
7128 (warn_cant_dump_core): New function.
7129 (can_dump_core_warn): Likewise.
7130 (internal_vproblem): Replace calls to can_dump_core with
7131 calls to can_dump_core_warn. Supply new argument to each.
7133 2014-06-19 Gary Benson <gbenson@redhat.com>
7135 * utils.h (demangler_vwarning): New declaration.
7136 (demangler_warning): Likewise.
7137 * utils.c (struct internal_problem)
7138 <user_settable_should_quit>: New field.
7139 <user_settable_should_dump_core>: Likewise
7140 (internal_error_problem): Add values for above new fields.
7141 (internal_warning_problem): Likewise.
7142 (demangler_warning_problem): New static global.
7143 (demangler_vwarning): New function.
7144 (demangler_warning): Likewise.
7145 (add_internal_problem_command): Selectively add commands.
7146 (_initialize_utils): New internal problem command.
7147 * maint.c (maintenance_demangler_warning): New function.
7148 (_initialize_maint_cmds): New command.
7150 2014-06-18 Tom Tromey <tromey@redhat.com>
7152 * f-valprint.c (info_common_command_for_block): Update.
7153 * symtab.h (struct general_symbol_info) <common_block>: Now
7156 2014-06-18 Tom Tromey <tromey@redhat.com>
7158 * symtab.h (struct symtab) <blockvector>: Now const.
7159 * ada-lang.c (ada_add_global_exceptions): Update.
7160 * buildsym.c (augment_type_symtab): Update.
7161 * dwarf2read.c (dw2_lookup_symbol): Update.
7162 * jit.c (finalize_symtab): Update.
7163 * jv-lang.c (add_class_symtab_symbol): Update.
7164 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7166 * objfiles.c (objfile_relocate1): Update.
7167 * psymtab.c (lookup_symbol_aux_psymtabs)
7168 (maintenance_check_psymtabs): Update.
7169 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7171 * spu-tdep.c (spu_catch_start): Update.
7172 * symmisc.c (dump_symtab_1): Update.
7173 * symtab.c (lookup_global_symbol_from_objfile)
7174 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7175 (basic_lookup_transparent_type_quick)
7176 (basic_lookup_transparent_type, find_pc_sect_symtab)
7177 (find_pc_sect_line, search_symbols): Update.
7178 * block.c (find_block_in_blockvector): Make "bl" const.
7179 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7181 (blockvector_contains_pc): Make "bv" const.
7182 (block_for_pc_sect): Update.
7183 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7184 (blockvector_contains_pc): Update.
7185 * breakpoint.c (resolve_sal_pc): Update.
7186 * inline-frame.c (block_starting_point_at): Update.
7188 2014-06-18 Tom Tromey <tromey@redhat.com>
7190 * completer.c (complete_line): Make "line_buffer" const.
7191 * completer.h (complete_line): Update.
7193 2014-06-18 Tom Tromey <tromey@redhat.com>
7195 * symtab.c (add_macro_name): Remove unneeded cast.
7197 2014-06-18 Tom Tromey <tromey@redhat.com>
7199 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7200 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7202 2014-06-18 Tom Tromey <tromey@redhat.com>
7204 * probe.c (info_probes_for_ops): Make "arg" const.
7205 * probe.h (info_probes_for_ops): Update.
7207 2014-06-18 Tom Tromey <tromey@redhat.com>
7209 * varobj.c (varobj_create): Update.
7210 * valops.c (value_of_this): Update.
7211 * tracepoint.c (add_local_symbols, scope_info): Update.
7212 * symtab.h (struct general_symbol_info) <block>: Now const.
7213 * symtab.c (skip_prologue_sal)
7214 (default_make_symbol_completion_list_break_on)
7215 (skip_prologue_using_sal): Update.
7216 * stack.h (iterate_over_block_locals)
7217 (iterate_over_block_local_vars): Update.
7218 * stack.c (print_frame_args): Update.
7219 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7221 (get_selected_block): Make return type const.
7222 * python/py-frame.c (frapy_block): Update.
7223 * python/py-block.c (gdbpy_block_for_pc): Update.
7224 * p-exp.y (%union) <bval>: Now const.
7225 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7226 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7227 * m2-exp.y (%union) <bval>: Now const.
7228 * linespec.c (get_current_search_block): Make return type const.
7229 (create_sals_line_offset, find_label_symbols): Update.
7230 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7232 (block_starting_point_at): Make "block" const.
7233 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7234 (check_exception_resume): Update.
7235 * guile/scm-frame.c (gdbscm_frame_block): Update.
7236 * guile/scm-block.c (gdbscm_lookup_block): Update.
7237 * frame.h (get_frame_block): Update.
7238 (get_selected_block): Make return type const.
7239 * frame.c (frame_id_inner): Update.
7240 * f-valprint.c (info_common_command_for_block)
7241 (info_common_command): Update.
7242 * dwarf2loc.c (dwarf2_find_location_expression)
7243 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7244 (locexpr_describe_location_piece): Update.
7245 * c-exp.y (%union) <bval>: Now const.
7246 * breakpoint.c (resolve_sal_pc): Update.
7247 * blockframe.c (get_frame_block):Make return type const.
7248 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7249 (block_innermost_frame): Update.
7250 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7251 (block_for_pc, block_for_pc_sect): Update.
7252 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7254 (block_for_pc_sect, block_for_pc): Make return type const.
7255 * ax-gdb.c (gen_expr): Update.
7256 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7257 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7258 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7259 (ada_read_var_value): Update.
7260 * ada-exp.y (struct name_info) <block>: Now const.
7262 (block_lookup): Constify.
7264 2014-06-18 Gary Benson <gbenson@redhat.com>
7266 * nat/i386-dregs.h: New file.
7267 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7268 * i386-nat.h (i386-dregs.h): New include.
7269 (DR_FIRSTADDR): Now in i386-dregs.h.
7270 (DR_LASTADDR): Likewise.
7271 (DR_NADDR): Likewise.
7272 (DR_STATUS): Likewise.
7273 (DR_CONTROL): Likewise.
7274 (i386_debug_reg_state): Likewise.
7275 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7277 2014-06-18 Don Breazeal <donb@codesourcery.com>
7279 * breakpoint.c (set_longjmp_breakpoint): Call
7280 momentary_breakpoint_from_master with additional argument.
7281 (set_longjmp_breakpoint_for_call_dummy): Call
7282 momentary_breakpoint_from_master with additional argument.
7283 (set_std_terminate_breakpoint): Call
7284 momentary_breakpoint_from_master with additional argument.
7285 (momentary_breakpoint_from_master): Add argument to function
7286 definition and use it to initialize structure member flag.
7287 (clone_momentary_breakpoint): Call
7288 momentary_breakpoint_from_master with additional argument.
7289 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7290 member flags set in momentary_breakpoint_from_master.
7292 2014-06-18 Gary Benson <gbenson@redhat.com>
7294 * i386-nat.c (i386_show_dr): Renamed to
7295 i386_dr_show and made nonstatic. All uses updated.
7296 (i386_length_and_rw_bits): Renamed to
7297 i386_dr_length_and_rw_bits and made nonstatic.
7299 (i386_insert_aligned_watchpoint): Renamed to
7300 i386_dr_insert_aligned_watchpoint and made nonstatic.
7302 (i386_remove_aligned_watchpoint): Renamed to
7303 i386_dr_remove_aligned_watchpoint and made nonstatic.
7305 (i386_update_inferior_debug_regs): Renamed to
7306 i386_dr_update_inferior_debug_regs and made nonstatic.
7309 2014-06-18 Gary Benson <gbenson@redhat.com>
7311 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7312 (i386_dr_low_can_set_control): Likewise.
7313 (i386_dr_low_set_addr): Likewise.
7314 (i386_dr_low_set_control): Likewise.
7315 (i386_dr_low_get_addr): Likewise.
7316 (i386_dr_low_get_status): Likewise.
7317 (i386_dr_low_get_control): Likewise.
7318 (i386_insert_aligned_watchpoint): Use new macros.
7319 (i386_update_inferior_debug_regs): Likewise.
7320 (i386_stopped_data_address): Likewise.
7322 2014-06-18 Gary Benson <gbenson@redhat.com>
7324 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7325 New parameter. All uses updated.
7327 2014-06-18 Gary Benson <gbenson@redhat.com>
7329 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7332 2014-06-18 Gary Benson <gbenson@redhat.com>
7334 * i386-nat.c (debug_printf): New macro.
7335 (i386_get_debug_register_length): Likewise.
7336 (TARGET_HAS_DR_LEN_8): Use above macro.
7337 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7338 and printf_unfiltered. Use phex to format values.
7340 2014-06-18 Gary Benson <gbenson@redhat.com>
7342 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7345 2014-06-18 Gary Benson <gbenson@redhat.com>
7347 * i386-nat.c: Comment changes.
7349 2014-06-18 Gary Benson <gbenson@redhat.com>
7351 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7353 2014-06-18 Gary Benson <gbenson@redhat.com>
7355 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7356 (i386_insert_aligned_watchpoint): Likewise.
7357 (i386_remove_aligned_watchpoint): Likewise.
7358 (i386_handle_nonaligned_watchpoint): Likewise.
7360 2014-06-18 Gary Benson <gbenson@redhat.com>
7362 * i386-nat.c: Whitespace changes.
7364 2014-06-17 Samuel Bronson <naesten@gmail.com>
7366 * MAINTAINERS: Update Roland McGrath's email address.
7367 Thanks to Sergio Durigan Junior for pointing out that he left
7368 Red Hat a while ago, and giving me a current address.
7370 2014-06-17 Tom Tromey <tromey@redhat.com>
7372 * utils.h (savestring): Remove declaration.
7374 2014-06-17 Tom Tromey <tromey@redhat.com>
7376 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7378 2014-06-16 Keith Seitz <keiths@redhat.com>
7381 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7382 to update the varobj if inferior_ptid is null_ptid.
7384 2014-06-16 Tom Tromey <tromey@redhat.com>
7386 * target.h (struct target_ops) <to_info_proc>: Make parameter
7388 (target_info_proc): Update.
7389 * target.c (target_info_proc): Make "args" const.
7390 * procfs.c (procfs_info_proc): Update.
7391 * linux-tdep.c (linux_info_proc): Update.
7392 (linux_core_info_proc_mappings): Make "args" const.
7393 (linux_core_info_proc): Update.
7394 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7395 * gdbarch.c: Rebuild.
7396 * gdbarch.h: Rebuild.
7397 * corelow.c (core_info_proc): Update.
7399 2014-06-16 Tom Tromey <tromey@redhat.com>
7401 * target.h (struct target_ops) <to_disconnect>: Make parameter
7403 (target_disconnect): Update.
7404 * target.c (target_disconnect): Make "args" const.
7405 * target-delegates.c: Rebuild.
7406 * remote.c (remote_disconnect): Update.
7407 * record.h (record_disconnect): Update.
7408 * record.c (record_disconnect): Update.
7409 * inf-child.c (inf_child_disconnect): Update.
7411 2014-06-16 Tom Tromey <tromey@redhat.com>
7413 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7414 * target.c (debug_to_rcmd, default_rcmd): Update.
7415 * target-delegates.c: Rebuild.
7416 * remote.c (remote_rcmd): Update.
7417 * monitor.c (monitor_rcmd): Update.
7419 2014-06-16 Pedro Alves <palves@redhat.com>
7421 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7422 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7423 have OBJF_SHARED set.
7424 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7425 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7426 instead of OBJF_USERLOADED.
7427 * objfiles.h (OBJF_SHARED): Update comment.
7428 (userloaded_objfile_contains_address_p): Rename to ...
7429 (shared_objfile_contains_address_p): ... this, and update
7431 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7433 (remove_symbol_file_command): Skip objfiles that don't have
7436 2014-06-16 Tom Tromey <tromey@redhat.com>
7438 * minsyms.h (prim_record_minimal_symbol)
7439 (prim_record_minimal_symbol_and_info): Update comments.
7441 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7443 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7444 or --without-guile, according to how GDB was built.
7446 2014-06-13 Tom Tromey <tromey@redhat.com>
7448 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7450 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7452 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7454 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7455 help_list.Pass all_commands, not -1, to help_list.
7456 * cli/cli-dump.c (dump_command, append_command)
7457 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7458 (binary_dump_command, binary_append_command): Pass all_commands,
7459 not -1, to help_list.
7460 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7462 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7464 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7466 * top.c (set_history): Pass all_commands, not -1, to help_list.
7467 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7468 all_commands, not -1, to help_list.
7469 * symfile.c (overlay_command): Pass all_commands, not -1, to
7471 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7473 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7475 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7477 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7478 not -1, to help_list.
7479 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7480 not -1, to help_list.
7481 * maint.c (maintenance_command, maintenance_info_command)
7482 (maintenance_print_command, maintenance_set_cmd): Pass
7483 all_commands, not -1, to help_list.
7484 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7486 * language.c (set_check): Pass all_commands, not -1, to help_list.
7487 * infcmd.c (unset_command): Pass all_commands, not -1, to
7489 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7491 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7493 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7495 * breakpoint.c (save_command): Pass all_commands, not -1, to
7497 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7498 all_commands, not -1, to help_list.
7500 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7502 * regcache.c (struct register_to_invalidate): New structure.
7503 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7505 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7507 2014-06-12 Yao Qi <yao@codesourcery.com>
7509 * varobj.c (varobj_get_num_children): Call
7510 varobj_is_dynamic_p.
7511 (varobj_list_children): Likewise.
7512 (varobj_update): Likewise. Update comments.
7514 2014-06-12 Yao Qi <yao@codesourcery.com>
7516 * varobj.c (varobj_pretty_printed_p): Rename to ...
7517 (varobj_is_dynamic_p): ... this. New function.
7518 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7519 (varobj_is_dynamic_p): Declare.
7520 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7521 (mi_print_value_p, varobj_update_one): Likewise.
7523 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7524 Yao Qi <yao@codesourcery.com>
7526 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7527 (varobj_get_iterator): Wrap up code for pretty-printer by
7528 "#if HAVE_PYTHON" and "#endif".
7529 (update_dynamic_varobj_children): Likewise.
7531 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7532 Yao Qi <yao@codesourcery.com>
7534 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7535 gdb_python_initialized is false. Move some code from varobj.c.
7536 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7537 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7538 (struct varobj_item): Moved to varobj-iter.h".
7539 (varobj_clear_saved_item): New function.
7540 (update_dynamic_varobj_children): Move python-related code to
7542 (free_variable): Call varobj_clear_saved_item and
7545 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7546 Yao Qi <yao@codesourcery.com>
7548 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7549 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7550 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7551 (py-varobj.o): New rule.
7552 * python/py-varobj.c: New file.
7553 * python/python-internal.h (py_varobj_get_iterator): Declare.
7554 * varobj-iter.h: New file.
7555 * varobj.c: Include "varobj-iter.h"
7556 (struct varobj) <child_iter>: Change its type from "PyObject *"
7557 to "struct varobj_iter *".
7558 <saved_item>: Likewise.
7559 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7560 [HAVE_PYTHON] (varobj_get_iterator): New function.
7561 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7562 python-specific code to python/py-varobj.c.
7563 (install_visualizer): Call varobj_iter_delete instead of
7565 * varobj.h (varobj_ensure_python_env): Declare.
7567 2014-06-12 Yao Qi <yao@codesourcery.com>
7569 * varobj.c (struct varobj_item): New structure.
7570 (create_child_with_value): Update declaration.
7571 (varobj_add_child): Replace arguments 'name' and 'value' with
7572 'item'. All callers updated.
7573 (install_dynamic_child): Likewise.
7574 (update_dynamic_varobj_children): Likewise.
7575 (varobj_add_child): Likewise.
7576 (create_child_with_value): Likewise.
7578 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7580 * NEWS: Create a new section for the next release branch.
7581 Rename the section of the current branch, now that it has
7584 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7586 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7587 * version.in: Bump version to 7.8.50.DATE-cvs.
7589 2014-06-11 Pedro Alves <palves@redhat.com>
7592 * ser-mingw.c (net_windows_socket_check_pending): New function.
7593 (net_windows_select_thread): Ignore spurious wakeups. Use
7594 net_windows_socket_check_pending.
7595 (net_windows_wait_handle): Check for pending events with
7596 ioctlsocket, through net_windows_socket_check_pending, instead of
7597 checking the socket's event.
7599 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7601 * python/python-internal.h (gdb_PyObject_GetAttrString)
7602 (gdb_PyObject_HasAttrString): New inline function definitions.
7603 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7604 char * of the second argument to PyObject_GetAttrString.
7606 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7608 * serial.c (serial_write): Fix index of character to be printed
7609 in call to serial_logchar when serial debug traces are enabled.
7611 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7613 * gdbtypes (resolve_dynamic_range): Add function description.
7615 2014-06-09 Pedro Alves <palves@redhat.com>
7617 * linux-nat.c (linux_child_follow_fork): Initialize status with
7618 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7619 inner block. Only pass the signal to PTRACE_DETACH if in pass
7622 2014-06-09 Gary Benson <gbenson@redhat.com>
7624 * common/signals.c (gdb_signal_from_host): Reorder to separate
7625 the always-available ANSI-standard signals from the signals that
7627 (do_gdb_signal_to_host): Likewise.
7628 * proc-events.c (signal_table): Likewise.
7630 2014-06-08 Hui Zhu <hui@codesourcery.com>
7632 * common/linux-ptrace.c (linux_disable_event_reporting): New
7634 * common/linux-ptrace.h (linux_disable_event_reporting): New
7636 * linux-nat.c (linux_child_follow_fork): Do a single step before
7639 2014-06-07 Keith Seitz <keiths@redhat.com>
7643 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7644 from symbol_matches_domain in symtab.c. All local callers
7645 of symbol_matches_domain updated.
7646 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7647 search STRUCT_DOMAIN.
7648 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7649 independently. standard_lookup will do that automatically.
7650 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7651 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7652 (cp_lookup_symbol_in_namespace): Likewise.
7653 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7654 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7655 may return a STRUCT_DOMAIN match.
7656 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7657 * cp-support.c: Include language.h.
7658 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7660 * psymtab.c (match_partial_symbol): Compare the requested
7661 domain with the symbol's domain directly.
7662 (lookup_partial_symbol): Likewise.
7663 * symtab.c (lookup_symbol_in_language): Explain when/why
7664 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7665 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7666 appropriate languages.
7667 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7668 and moved to ada-lang.c
7669 (lookup_block_symbol): Explain that this function only returns
7670 symbol matching the requested DOMAIN.
7671 Compare the requested domain with the symbol's domain directly.
7672 (iterate_over_symbols): Compare the requested domain with the
7673 symbol's domain directly.
7674 * symtab.h (symbol_matches_domain): Remove.
7676 2014-06-06 Doug Evans <xdje42@gmail.com>
7678 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7679 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7680 (gdbscm_guile_version_is_at_least): Declare.
7681 (gdbscm_scm_string_to_int): Declare.
7682 * guile/guile.c (gdbscm_guile_major_version): New global.
7683 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7684 (guile_datadir): New static global.
7685 (gdbscm_guile_data_directory): New function.
7686 (initialize_scheme_side): Update.
7687 (misc_guile_functions): Add guile-data-directory.
7688 (initialize_gdb_module): Fetch guile version number.
7689 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7690 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7691 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7692 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7694 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7695 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7696 * guile/scm-value.c (gdbscm_value_to_string): Only call
7697 scm_port_conversion_strategy if Guile version >= 2.0.6.
7699 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7701 * main.c (print_gdb_help): Add -q and --silent.
7703 2014-06-06 Gary Benson <gbenson@redhat.com>
7705 * common/signals.c: Remove preprocessor conditionals for
7706 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7707 SIGSEGV and SIGTERM.
7708 * proc-events.c: Likewise.
7710 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7712 * symfile.c (symfile_free_objfile): Remove restriction to
7714 * symfile-mem.c (symbol_file_add_from_memory): Call
7715 add_target_sections_of_objfile.
7717 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7719 * guile/scm-value.c (gdbscm_history_append_x): Use
7720 'vlscm_get_value_smob_arg_unsafe' instead of
7721 'vlscm_scm_to_value'.
7723 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7726 * utils.c (printchar): Don't escape at all if quoter is NUL.
7727 Update function documentation to clarify effect of parameter
7729 * remote.c (escape_buffer): Pass '\\' as the quoter to
7730 fputstrn_unfiltered.
7731 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7732 generate the output.
7733 (mi_solib_unloaded): Same.
7735 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7737 * development.sh: Delete.
7738 * Makefile.in (config.status): Adjust dependency on development.sh.
7739 * configure.ac: Adjust development.sh source call.
7740 * configure: Regenerate.
7742 2014-06-04 Doug Evans <xdje42@gmail.com>
7744 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7745 is_scheme_bkpt, spec.
7746 (bpscm_make_breakpoint_smob): Initialize new members.
7747 (gdbscm_create_breakpoint_x): Split into two ...
7748 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7749 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7750 (scheme_function breakpoint_functions): Update.
7751 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7752 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7753 register-breakpoint!.
7755 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7758 * mem-break.c (z_type_supported): Return zero if
7759 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7761 2014-06-04 Tom Tromey <tromey@redhat.com>
7763 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7764 value_from_contents_and_address_unresolved.
7765 (ada_template_to_fixed_record_type_1): Likewise.
7766 (ada_which_variant_applies): Likewise.
7767 * value.h (value_from_contents_and_address_unresolved): Declare.
7768 * value.c (value_from_contents_and_address_unresolved): New
7770 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7771 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7772 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7774 2014-06-04 Tom Tromey <tromey@redhat.com>
7776 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7778 2014-06-04 Tom Tromey <tromey@redhat.com>
7780 * procfs.c (procfs_attach): Make "args" const.
7781 * windows-nat.c (windows_attach): Make "args" const.
7782 * nto-procfs.c (procfs_attach): Make "args" const.
7783 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7784 * go32-nat.c (go32_attach): Make "args" const.
7785 * gnu-nat.c (gnu_attach): Make "args" const.
7786 * darwin-nat.c (darwin_attach): Make "args" const.
7787 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7788 * linux-nat.c (linux_nat_attach): Make "args" const.
7789 * remote.c (extended_remote_attach_1, extended_remote_attach):
7791 * target.h (struct target_ops) <to_attach>: Make "args" const.
7792 (find_default_attach): Likewise.
7793 * utils.c (parse_pid_to_attach): Make "args" const.
7794 * utils.h (parse_pid_to_attach): Update.
7796 2014-06-04 Tom Tromey <tromey@redhat.com>
7798 * target-delegates.c: Rebuild.
7799 * target.c (default_thread_address_space): New function.
7800 (target_thread_address_space): Simplify.
7801 * target.h (struct target_ops) <to_thread_address_space>: Add
7802 TARGET_DEFAULT_FUNC.
7804 2014-06-04 Doug Evans <xdje42@gmail.com>
7806 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7808 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7810 * record-btrace.c: Include event-loop.h and inf-loop.h.
7811 (record_btrace_resume_exec_dir)
7812 (record_btrace_async_inferior_event_handler)
7813 (record_btrace_handle_async_inferior_event): New.
7814 (record_btrace_open): Create async event handler.
7815 (record_btrace_close): Delete async event handler.
7816 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7817 Mark async event handler.
7818 (record_btrace_execution_direction): New.
7819 (init_record_btrace_ops): Initialize to_execution_direction.
7821 2014-06-03 Doug Evans <xdje42@gmail.com>
7823 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7824 (gdbscm_make_parameter): Ditto.
7826 2014-06-03 Doug Evans <dje@google.com>
7828 * exec.c (exec_close_1): Call clear_section_table instead of
7829 resize_section_table.
7830 (clear_section_table): New function.
7831 (resize_section_table): Make static. Rename arg num_added to
7833 * exec.h (clear_section_table): Declare.
7834 (resize_section_table): Delete.
7835 * progspace.c (release_program_space): Call clear_section_table
7836 instead of resize_section_table.
7838 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7840 * NEWS (Python Scripting): Add entry about the new xmethods
7843 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7845 * python/py-xmethods.c: New file.
7846 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7847 (objfpy_dealloc): XDECREF on the new xmethods field.
7848 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7850 (objfpy_get_xmethods): New function.
7851 (objfile_getset): New entry 'xmethods'.
7852 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7853 (pspy_dealloc): XDECREF on the new xmethods field.
7854 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7856 (pspy_get_xmethods): New function.
7857 (pspace_getset): New entry 'xmethods'.
7858 * python/python-internal.h: Add declarations for new functions.
7859 * python/python.c (_initialize_python): Invoke
7860 gdbpy_initialize_xmethods.
7861 * python/lib/gdb/__init__.py (xmethods): New
7863 * python/lib/gdb/xmethod.py: New file.
7864 * python/lib/gdb/command/xmethods.py: New file.
7866 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7868 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7869 best match method returned by find_overload_match is an xmethod.
7870 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7871 the best matching operator returned by find_overload_match is an
7873 * valops.c: #include "extension.h".
7874 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7875 Return void. The list of matching source methods is returned in
7876 "fn_list" and a vector of matching debug method workers is
7877 returned in "xm_worker_vec". Update all callers.
7878 (value_find_oload_method_list): Likewise.
7879 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7880 non-NULL, then the index of the best matching method in this
7881 vector is returned. Update all callers.
7882 (find_overload_match): Include xmethods while performing overload
7885 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7887 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7888 * extension-priv.h (struct extension_language_ops): Add the
7890 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7891 get_matching_xmethod_workers, get_xmethod_argtypes,
7892 invoke_xmethod, free_xmethod_worker,
7893 free_xmethod_worker_vec): New functions.
7894 * extension.h: #include "common/vec.h".
7895 New function declarations.
7896 (struct xmethod_worker): New struct.
7897 (VEC (xmethod_worker_ptr)): New vector type.
7898 (xmethod_worker_ptr): New typedef.
7899 (xmethod_worker_vec): Likewise.
7900 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7902 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7903 (struct builtin_type): New field "xmethod".
7904 * valarith.c (value_ptradd): Assert that the value argument is not
7906 * valops.c (value_must_coerce_to_target): Return 0 for
7907 lval_xcallable values.
7908 * value.c (struct value): New field XM_WORKER in the field
7910 (value_address, value_raw_address): Return 0 for lval_xcallable
7912 (set_value_address): Assert that the value is not an
7914 (value_free): Free the associated xmethod worker when freeing
7915 lval_xcallable values.
7916 (set_value_component_location): Assert that the WHOLE value is not
7918 (value_of_xmethod, call_xmethod): New functions.
7919 * value.h: Declare "struct xmethod_worker".
7920 Declare new functions value_of_xmethod, call_xmethod.
7922 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7923 Pedro Alves <palves@redhat.com>
7925 PR breakpoints/17000
7926 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7927 New function, extracted from software_breakpoint_inserted_here_p.
7928 (software_breakpoint_inserted_here_p): Replace factored out code
7929 by call to find_non_raw_software_breakpoint_inserted_here.
7930 (bp_target_info_copy_insertion_state): New function.
7931 (bkpt_insert_location): Handle the case of a single-step
7932 breakpoint already inserted at the same address.
7933 (bkpt_remove_location): Handle the case of a single-step
7934 breakpoint still inserted at the same address.
7935 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7936 breakpoint already inserted at the same address.
7937 (deprecated_remove_raw_breakpoint): Handle the case of a
7938 non-raw breakpoint still inserted at the same address.
7939 (find_single_step_breakpoint): New function, extracted from
7940 single_step_breakpoint_inserted_here_p.
7941 (find_single_step_breakpoint): New function,
7942 factored out from single_step_breakpoint_inserted_here_p.
7943 (single_step_breakpoint_inserted_here_p): Reimplement.
7945 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7947 Pushed by Joel Brobecker <brobecker@adacore.com>
7948 * source.c (show_substitute_path_command): Fix display of matching
7951 2014-06-03 Gary Benson <gbenson@redhat.com>
7953 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7955 2014-06-02 Doug Evans <xdje42@gmail.com>
7957 Add parameter support for Guile.
7958 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7959 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7960 (scm-param.o): New rule.
7961 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7962 (gdbscm_misc_error): Declare.
7963 (gdbscm_canonicalize_command_name): Declare.
7964 (gdbscm_scm_to_host_string): Declare.
7965 (gdbscm_scm_from_host_string): Declare.
7966 (gdbscm_initialize_parameters): Declare.
7967 * guile/guile.c (initialize_gdb_module): Call
7968 gdbscm_initialize_parameters.
7969 * guile/lib/gdb.scm: Export parameter symbols.
7970 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7971 cmdscm_canonicalize_name and made public. All callers updated.
7972 * guile/scm-exception.c (gdbscm_misc_error): New function.
7973 * guile/scm-param.c: New file.
7974 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7975 (gdbscm_scm_to_host_string): New function.
7976 (gdbscm_scm_from_host_string): New function.
7977 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7979 2014-06-02 Doug Evans <xdje42@gmail.com>
7981 Add command support for Guile.
7982 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7983 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7984 (scm-cmd.o): New rule.
7985 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7986 (gdbscm_user_error_p): Declare.
7987 (gdbscm_parse_command_name): Declare.
7988 (gdbscm_valid_command_class_p): Declare.
7989 (gdbscm_initialize_commands): Declare.
7990 * guile/guile.c (initialize_gdb_module): Call
7991 gdbscm_initialize_commands.
7992 * guile/lib/gdb.scm: Export command symbols.
7993 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7994 (throw-user-error): New function.
7995 * guile/scm-cmd.c: New file.
7996 * guile/scm-exception.c (user_error_symbol): New static global.
7997 (gdbscm_user_error_p): New function.
7998 (gdbscm_initialize_exceptions): Set user_error_symbol.
7999 * scm-utils.c (gdbscm_gc_xstrdup): New function.
8001 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
8003 * top.c (command_loop): Handle comments here...
8004 (command_line_input): ... not here.
8006 2014-06-02 Doug Evans <xdje42@gmail.com>
8008 Add progspace support for Guile.
8009 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
8010 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
8011 (scm-progspace.o): New rule.
8012 * guile/guile-internal.h (pspace_smob): New typedef.
8013 (psscm_pspace_smob_pretty_printers): Declare.
8014 (psscm_pspace_smob_from_pspace): Declare.
8015 (psscm_scm_from_pspace): Declare.
8016 * guile/guile.c (initialize_gdb_module): Call
8017 gdbscm_initialize_pspaces.
8018 * guile/lib/gdb.scm: Export progspace symbols.
8019 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
8021 (append-pretty-printer!): Ditto.
8022 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
8024 * guile/scm-progspace.c: New file.
8026 2014-06-03 Alan Modra <amodra@gmail.com>
8028 * ppc64-tdep.c (ppc64_standard_linkage8): New.
8029 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
8031 2014-06-02 Doug Evans <dje@google.com>
8033 Add support for skeletonless type units.
8034 * dwarf2read.c (struct dwarf2_per_objfile): New member
8035 n_allocated_type_units.
8036 (struct dwarf2_per_objfile) <tu_stats>: New member
8037 nr_all_type_units_reallocs.
8038 (create_signatured_type_table_from_index): Initialize
8039 n_allocated_type_units
8040 (create_all_type_units): Ditto.
8041 (add_type_unit): Move up in file. New arg slot.
8042 All callers updated. Increase space for all_type_units more
8044 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
8045 (lookup_dwo_signatured_type): Handle skeletonless TUs.
8046 (lookup_dwp_signatured_type): Ditto.
8047 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
8048 All callers updated.
8049 (build_type_psymtabs_1): Leave type_unit_groups as
8050 NULL if no TUs present.
8051 (print_tu_stats): New function.
8052 (process_skeletonless_type_unit): New function.
8053 (process_dwo_file_for_skeletonless_type_units): New
8055 (process_skeletonless_type_units): New function.
8056 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
8057 Call print tu_stats if debugging enabled.
8059 2014-06-02 Pedro Alves <palves@redhat.com>
8061 * breakpoint.c (build_target_command_list): Don't build a command
8062 list if we have any duplicate location that isn't a dprintf.
8064 2014-06-02 Pedro Alves <palves@redhat.com>
8066 * breakpoint.c (dprintf_breakpoint_hit): New function.
8067 (initialize_breakpoint_ops): Install it as dprintf's
8068 breakpoint_hit method.
8070 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8072 * source.c (substitute_path_rule_matches): Simplify using
8073 filename_ncmp instead of FILENAME_CMP.
8075 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8077 * source.c (substitute_path_rule_matches): Remove trailing spaces.
8079 2014-06-01 Ludovic Courtès <ludo@gnu.org>
8081 * configure.ac: When Guile is available, check for the
8082 availability of 'scm_new_smob'.
8083 * configure, config.h.in: Regenerate.
8084 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
8087 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8089 * frame.c (struct frame_info): Add stop_string field.
8090 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
8091 (get_prev_frame_always): Old content moved into
8092 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
8093 TRY_CATCH, handle MEMORY_ERROR exceptions.
8094 (frame_stop_reason_string): New function definition.
8095 * frame.h (unwind_stop_reason_to_string): Extend comment to
8096 mention frame_stop_reason_string.
8097 (frame_stop_reason_string): New function declaration.
8098 * stack.c (frame_info): Switch to frame_stop_reason_string.
8099 (backtrace_command_1): Switch to frame_stop_reason_string.
8100 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
8101 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
8102 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
8104 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8106 * frame.c (frame_stop_reason_string): Rename to ...
8107 (unwind_stop_reason_to_string): this.
8108 * frame.h (frame_stop_reason_string): Rename to ...
8109 (unwind_stop_reason_to_string): this.
8110 * stack.c (frame_info): Update call to frame_stop_reason_string.
8111 (backtrace_command_1): Likewise.
8112 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
8113 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
8115 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8117 * frame.c (remove_prev_frame): New function.
8118 (get_prev_frame_if_no_cycle): Create / discard cleanup using
8121 2014-05-29 Pedro Alves <palves@redhat.com>
8123 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
8124 and make it const. When a single-step decays to a continue,
8125 clear 'step', not 'hw_step'. Pass whether the caller wanted
8126 to step to user_visible_resume_ptid, not what we ask the
8129 2014-05-29 Pedro Alves <palves@redhat.com>
8131 * infrun.c (process_event_stop_test, handle_step_into_function)
8132 (handle_step_into_function_backward): Adjust.
8133 Don't set the even thread's stop_step and call stop_waiting before
8134 calling end_stepping_range. Instead do that ...
8135 (end_stepping_range): ... here. Take an ecs pointer parameter.
8137 2014-05-29 Pedro Alves <palves@redhat.com>
8139 * infrun.c (stop_stepping): Rename to ...
8140 (stop_waiting): ... this.
8141 (proceed): Update comment.
8142 (process_event_stop_test, handle_inferior_event)
8143 (handle_signal_stop, handle_step_into_function)
8144 (handle_step_into_function_backward): Update.
8146 2014-05-29 Pedro Alves <palves@redhat.com>
8148 * infcall.c (run_inferior_call): Don't check whether the current
8149 thread is running after the proceed call.
8151 2014-05-29 Pedro Alves <palves@redhat.com>
8152 Tom Tromey <tromey@redhat.com>
8154 * NEWS: Mention "maint set target-async", "set mi-async", and that
8155 background execution commands are now always available.
8156 * target.h (target_async_permitted): Update comment.
8157 * target.c (target_async_permitted, target_async_permitted_1):
8159 (set_target_async_command): Rename to ...
8160 (maint_set_target_async_command): ... this.
8161 (show_target_async_command): Rename to ...
8162 (maint_show_target_async_command): ... this.
8163 (_initialize_target): Adjust.
8164 * infcmd.c (prepare_execution_command): Make extern.
8165 * inferior.h (prepare_execution_command): Declare.
8166 * infrun.c (set_observer_mode): Leave target async alone.
8167 * mi/mi-interp.c (mi_interpreter_init): Install
8168 mi_on_sync_execution_done as sync_execution_done observer.
8169 (mi_on_sync_execution_done): New function.
8170 (mi_execute_command_input_handler): Don't print the prompt if we
8171 just started a synchronous command with an async target.
8172 (mi_on_resume): Check sync_execution before printing prompt.
8173 * mi/mi-main.h (mi_async_p): Declare.
8174 * mi/mi-main.c: Include gdbcmd.h.
8175 (mi_async_p): New function.
8176 (mi_async, mi_async_1): New globals.
8177 (set_mi_async_command, show_mi_async_command, mi_async): New
8179 (exec_continue): Call prepare_execution_command.
8180 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8181 (mi_execute_async_cli_command): Use mi_async_p.
8182 (_initialize_mi_main): Install "set mi-async". Make
8183 "target-async" a deprecated alias.
8185 2014-05-29 Pedro Alves <palves@redhat.com>
8187 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8188 (_initialize_cli_interp): Adjust.
8189 * event-loop.c: Include "observer.h".
8190 (start_event_loop): Notify 'command_error' observers instead of
8191 calling display_gdb_prompt. Remove FIXME comment.
8192 * event-top.c (display_gdb_prompt): Remove call into the
8194 * inf-loop.c: Include "observer.h".
8195 (inferior_event_handler): Notify 'command_error' observers instead
8196 of calling display_gdb_prompt.
8197 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8198 observers instead of calling display_gdb_prompt.
8199 * interps.c (interp_set): Don't call display_gdb_prompt.
8200 (current_interp_display_prompt_p): Delete.
8201 * interps.h (interp_prompt_p): Delete declaration.
8202 (interp_prompt_p_ftype): Delete.
8203 (struct interp_procs) <prompt_proc_p>: Delete field.
8204 (current_interp_display_prompt_p): Delete declaration.
8205 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8206 (_initialize_mi_interp): Adjust.
8207 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8208 'command_error' observers.
8209 (tui_on_sync_execution_done, tui_on_command_error): New
8211 (tui_display_prompt_p): Delete.
8212 (_initialize_tui_interp): Adjust.
8214 2014-05-29 Pedro Alves <palves@redhat.com>
8217 * cli/cli-interp.c: Include infrun.h and observer.h.
8218 (cli_uiout, cli_interp): New globals.
8219 (cli_on_signal_received, cli_on_end_stepping_range)
8220 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8222 (cli_interpreter_init): Install them as 'end_stepping_range',
8223 'signal_received' 'signal_exited', 'exited' and 'no_history'
8225 (_initialize_cli_interp): Remove cli_interp local.
8226 * infrun.c (handle_inferior_event): Call the several stop reason
8227 observers instead of printing the stop reason directly.
8228 (end_stepping_range): New function.
8229 (print_end_stepping_range_reason, print_signal_exited_reason)
8230 (print_exited_reason, print_signal_received_reason)
8231 (print_no_history_reason): Make static, and add an uiout
8232 parameter. Print to that instead of to CURRENT_UIOUT.
8233 * infrun.h (print_end_stepping_range_reason)
8234 (print_signal_exited_reason, print_exited_reason)
8235 (print_signal_received_reason print_no_history_reason): New
8237 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8239 <cli_uiout>: New field.
8240 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8241 uiout for CLI output. Install 'signal_received',
8242 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8244 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8245 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8246 (mi_on_no_history): New functions.
8247 (ui_out_free_cleanup): Delete function.
8248 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8249 instead use the one already stored in the MI interpreter data.
8250 (mi_ui_out): Adjust.
8251 * tui/tui-interp.c: Include infrun.h and observer.h.
8252 (tui_interp): New global.
8253 (tui_on_signal_received, tui_on_end_stepping_range)
8254 (tui_on_signal_exited, tui_on_exited)
8255 (tui_on_no_history): New functions.
8256 (tui_init): Install them as 'end_stepping_range',
8257 'signal_received' 'signal_exited', 'exited' and 'no_history'
8259 (_initialize_tui_interp): Delete tui_interp local.
8261 2014-05-29 Pedro Alves <palves@redhat.com>
8264 * linux-nat.c (linux_nat_resume_callback): Rename the second
8265 parameter to 'except'. Skip LP if it points to EXCEPT.
8266 (linux_nat_resume): Don't mark the event lwp as not stopped
8267 before resuming sibling lwps. Instead ask
8268 linux_nat_resume_callback to skip the event lwp. Mark it as not
8269 stopped after actually resuming it.
8270 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8272 (wait_lwp): Mark the lwp as stopped here.
8273 (stop_wait_callback): Mark the lwp as not stopped right after
8274 resuming it. Don't mark lwps as stopped here.
8275 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8276 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8278 2014-05-29 Pedro Alves <palves@redhat.com>
8281 * infrun.c (resume): Determine how much to resume depending on
8282 whether the caller wanted a step, not whether we can hardware step
8283 the target. Mark all threads that we intend to run as running,
8284 unless we're calling an inferior function.
8285 (normal_stop): If the thread is running an infcall, don't finish
8287 * target.c (target_resume): Don't mark threads as running here.
8289 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8291 * serial.c (_initialize_serial): Remove support for
8292 the "set remotebaud" and "show remotebaud" commands.
8293 * NEWS: Add entry documenting the removal of that command.
8295 2014-05-28 Yao Qi <yao@codesourcery.com>
8297 * charset.c: Fix typo in comments.
8299 2014-05-27 Gary Benson <gbenson@redhat.com>
8301 * utils.c (internal_vproblem): Prompt for a bug report.
8303 2014-05-26 Andy Wingo <wingo@igalia.com>
8305 * guile/scm-arch.c (arscm_mark_arch_smob):
8306 * guile/scm-block.c (bkscm_mark_block_smob)
8307 (bkscm_mark_block_syms_progress_smob):
8308 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8309 * guile/scm-exception.c (exscm_mark_exception_smob):
8310 * guile/scm-frame.c (frscm_mark_frame_smob):
8311 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8312 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8313 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8314 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8315 (ppscm_mark_pretty_printer_worker_smob):
8316 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8317 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8318 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8319 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8321 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8324 2014-05-26 Andy Wingo <wingo@igalia.com>
8325 Doug Evans <xdje42@gmail.com>
8327 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8328 empty_base_class. All uses updated.
8329 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8330 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8332 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8333 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8334 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8335 (gdbscm_gsmob_has_property_p, add_property_name)
8336 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8337 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8338 (gdb-object-has-property?, gdb-object-properties): Remove.
8339 (gdb-object-kind): Renamed from gsmob-kind.
8341 2014-05-26 Andy Wingo <wingo@igalia.com>
8343 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8344 * configure: Regenerate.
8346 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8348 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8350 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8352 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8353 (replay_memory_access_read_only, replay_memory_access_read_write)
8354 (replay_memory_access_types, replay_memory_access)
8355 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8356 (cmd_set_record_btrace, cmd_show_record_btrace)
8357 (cmd_show_replay_memory_access): New.
8358 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8359 (record_btrace_remove_breakpoint): Replace
8360 record_btrace_allow_memory_access with replay_memory_access.
8361 (_initialize_record_btrace): Add commands.
8362 * NEWS: Announce it.
8364 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8366 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8368 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8370 * MAINTAINERS (Write After Approval): Move self back from
8373 2014-05-22 Pedro Alves <palves@redhat.com>
8375 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8376 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8377 (disable_randomization, enum exec_direction_kind)
8378 (execution_direction, stop_registers, start_remote)
8379 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8380 (wait_for_inferior, normal_stop, get_last_target_status)
8381 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8382 (insert_step_resume_breakpoint_at_sal)
8383 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8384 (set_step_info, print_stop_event, signal_stop_state)
8385 (signal_print_state, signal_pass_state, signal_stop_update)
8386 (signal_print_update, signal_pass_update)
8387 (update_signals_program_target, clear_exit_convenience_vars)
8388 (displaced_step_dump_bytes, update_observer_mode)
8389 (signal_catch_update, gdb_signal_from_command): Move
8391 * infrun.h: ... to this new file.
8392 * amd64-tdep.c: Include infrun.h.
8393 * annotate.c: Include infrun.h.
8394 * arch-utils.c: Include infrun.h.
8395 * arm-linux-tdep.c: Include infrun.h.
8396 * arm-tdep.c: Include infrun.h.
8397 * break-catch-sig.c: Include infrun.h.
8398 * breakpoint.c: Include infrun.h.
8399 * common/agent.c: Include infrun.h instead of inferior.h.
8400 * corelow.c: Include infrun.h.
8401 * event-top.c: Include infrun.h.
8402 * go32-nat.c: Include infrun.h.
8403 * i386-tdep.c: Include infrun.h.
8404 * inf-loop.c: Include infrun.h.
8405 * infcall.c: Include infrun.h.
8406 * infcmd.c: Include infrun.h.
8407 * infrun.c: Include infrun.h.
8408 * linux-fork.c: Include infrun.h.
8409 * linux-nat.c: Include infrun.h.
8410 * linux-thread-db.c: Include infrun.h.
8411 * monitor.c: Include infrun.h.
8412 * nto-tdep.c: Include infrun.h.
8413 * procfs.c: Include infrun.h.
8414 * record-btrace.c: Include infrun.h.
8415 * record-full.c: Include infrun.h.
8416 * remote-m32r-sdi.c: Include infrun.h.
8417 * remote-mips.c: Include infrun.h.
8418 * remote-notif.c: Include infrun.h.
8419 * remote-sim.c: Include infrun.h.
8420 * remote.c: Include infrun.h.
8421 * reverse.c: Include infrun.h.
8422 * rs6000-tdep.c: Include infrun.h.
8423 * s390-linux-tdep.c: Include infrun.h.
8424 * solib-irix.c: Include infrun.h.
8425 * solib-osf.c: Include infrun.h.
8426 * solib-svr4.c: Include infrun.h.
8427 * target.c: Include infrun.h.
8428 * top.c: Include infrun.h.
8429 * windows-nat.c: Include infrun.h.
8430 * mi/mi-interp.c: Include infrun.h.
8431 * mi/mi-main.c: Include infrun.h.
8432 * python/py-threadevent.c: Include infrun.h.
8434 2014-05-22 Pedro Alves <palves@redhat.com>
8436 * infrun.c (handle_inferior_event): Store the exit code for
8437 --return-child-result here, instead of ...
8438 (print_exited_reason): ... here.
8440 2014-05-21 Pedro Alves <palves@redhat.com>
8443 * gdbthread.h (struct thread_control_state): New field
8445 * infrun.c (follow_fork): Copy the new thread control field to the
8447 (clear_proceed_status_thread): Clear the new thread control field.
8448 (proceed): Set the new thread control field.
8449 * interps.h (command_interp): Declare.
8450 * interps.c (command_interpreter): New global.
8451 (command_interp): New function.
8452 (interp_exec): Set `command_interpreter' while here.
8453 * cli-out.c (cli_uiout_dtor): New function.
8454 (cli_ui_out_impl): Install it.
8455 * mi/mi-interp.c: Include cli-out.h.
8456 (mi_cmd_interpreter_exec): Add comment.
8457 (restore_current_uiout_cleanup): New function.
8458 (ui_out_free_cleanup): New function.
8459 (mi_on_normal_stop): If finishing an execution command started by
8460 a CLI command, or any kind of breakpoint-like event triggered,
8461 print the stop event to the output (CLI) stream.
8462 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8464 2014-05-21 Pedro Alves <palves@redhat.com>
8466 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8467 current source line having changed.
8468 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8469 * infrun.c (normal_stop): Adjust call to
8470 set_current_sal_from_frame.
8471 * source.c (clear_lines_listed_range): New function.
8472 (set_current_source_symtab_and_line, identify_source_line): Clear
8473 the lines listed range.
8474 (line_info): Handle the first "info line" after the current source
8475 line having changed.
8476 * stack.c (print_stack_frame): Remove center handling.
8477 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8480 2014-05-21 Pedro Alves <palves@redhat.com>
8482 * inf-child.c (inf_child_mourn_inferior): New function.
8483 * inf-child.h (inf_child_mourn_inferior): New declaration.
8484 * darwin-nat.c (darwin_mourn_inferior): Use
8485 inf_child_mourn_inferior.
8486 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8487 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8488 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8489 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8490 * windows-nat.c (windows_mourn_inferior): Likewise.
8492 2014-05-21 Doug Evans <xdje42@gmail.com>
8494 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8496 2014-05-21 Doug Evans <xdje42@gmail.com>
8498 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8499 (gdbscm_out_of_range_error): Ditto.
8500 (gdbscm_memory_error): Ditto.
8501 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8502 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8503 (gdbscm_out_of_range_error): Update.
8504 (gdbscm_memory_error): Update.
8505 (gdbscm_scm_to_target_string_unsafe): Delete.
8507 2014-05-21 Pedro Alves <palves@redhat.com>
8509 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8511 (inf_child_open_target): New function.
8512 (inf_child_open): Use inf_child_open_target to push the target
8513 instead of erroring out.
8514 (inf_child_disconnect, inf_child_close)
8515 (inf_child_maybe_unpush_target): New functions.
8516 (inf_child_target): Install inf_child_disconnect and
8517 inf_child_close. Store a pointer to the returned object.
8518 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8520 * target.c (auto_connect_native_target): New global.
8521 (show_default_run_target): New function.
8522 (find_default_run_target): Return NULL if automatically connecting
8523 to the native target is disabled.
8524 (_initialize_target): Install set/show auto-connect-native-target.
8525 * NEWS: Mention "set auto-connect-native-target", and "target
8527 * linux-nat.c (super_close): New global.
8528 (linux_nat_close): Call super_close.
8529 (linux_nat_add_target): Store a pointer to the base class's
8531 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8532 inf_child_maybe_unpush.
8533 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8535 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8536 the inferior. Use inf_child_maybe_unpush_target.
8537 (inf_ttrace_attach): Don't push the target if it is already
8539 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8540 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8541 after mourning the inferior. Use inf_child_maybe_unpush_target.
8542 (darwin_attach_pid): Don't push the target if it is already
8544 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8545 mourning the inferior. Use inf_child_maybe_unpush_target.
8546 (gnu_detach): Use inf_child_maybe_unpush_target.
8547 * go32-nat.c (go32_create_inferior): Don't push the target if it
8549 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8550 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8551 (procfs_open): Rename to ...
8552 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8553 comments. Can target_preopen before changing node. Call
8554 inf_child_open_target to push the target explicitly.
8555 (procfs_attach): Don't push the target if it is already pushed.
8556 (procfs_detach): Use inf_child_maybe_unpush_target.
8557 (procfs_create_inferior): Don't push the target if it is already
8559 (nto_native_ops): New global.
8560 (procfs_open): Reimplement.
8561 (procfs_native_open): New function.
8562 (init_procfs_targets): Install procfs_native_open as to_open of
8563 "target native". Store a pointer to the "native" target in
8565 * procfs.c (procfs_attach): Don't push the target if it is already
8567 (procfs_detach): Use inf_child_maybe_unpush_target.
8568 (procfs_mourn_inferior): Only unpush the target after mourning the
8569 inferior. Use inf_child_maybe_unpush_target.
8570 (procfs_init_inferior): Don't push the target if it is already
8572 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8573 if it is already pushed.
8575 2014-05-21 Pedro Alves <palves@redhat.com>
8577 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8578 and "procfs" targets are now called "native" instead.
8580 2014-05-21 Pedro Alves <palves@redhat.com>
8582 * go32-nat.c (go32_open): Delete.
8583 (go32_target): Don't override the to_open method.
8585 2014-05-21 Pedro Alves <palves@redhat.com>
8587 * nto-procfs.c (procfs_can_run): New function.
8588 (nto_procfs_ops): New global.
8589 (init_procfs_targets): New, based on procfs_target. Install
8590 "target native" in addition to "target procfs".
8591 (_initialize_procfs): Call init_procfs_targets instead of adding
8594 2014-05-21 Pedro Alves <palves@redhat.com>
8596 * windows-nat.c (windows_target): Don't override to_shortname,
8597 to_longname or to_doc.
8599 2014-05-21 Pedro Alves <palves@redhat.com>
8601 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8604 2014-05-21 Pedro Alves <palves@redhat.com>
8606 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8607 to_shortname, to_longname or to_doc.
8609 2014-05-21 Pedro Alves <palves@redhat.com>
8611 * go32-nat.c (go32_target): Don't override to_shortname,
8612 to_longname or to_doc.
8614 2014-05-21 Pedro Alves <palves@redhat.com>
8616 * inf-child.c (inf_child_open): Remove mention of "child".
8617 (inf_child_target): Rename target to "native" instead of "child".
8619 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8621 * Makefile.in (SFILES): Delete "regset.c".
8622 (COMMON_OBS): Delete "regset.o".
8624 * regset.h (regset_alloc): Delete prototype.
8626 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8628 * sparc-linux-tdep.c (sparc32_linux_gregset)
8629 (sparc32_linux_fpregset): New static regset structures.
8630 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8631 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8633 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8634 (sparc64_linux_fpregset): New static regset structures.
8635 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8636 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8637 New static regset structures.
8638 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8639 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8640 New static regset structures.
8641 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8642 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8643 New static regset structures.
8644 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8645 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8646 New static regset structures.
8647 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8649 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8651 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8652 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8653 register maps ("regmaps") from "*regset" to "*regmap". Do this
8654 for all regmap types and variables.
8655 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8656 (sparc32_linux_supply_core_gregset)
8657 (sparc32_linux_collect_core_gregset)
8658 (sparc32_linux_supply_core_fpregset)
8659 (sparc32_linux_collect_core_fpregset): Likewise.
8660 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8661 (sparc_gregmap, sparc_fpregmap): ... these.
8662 (sparc_supply_gregset, sparc_collect_gregset)
8663 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8664 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8665 (_initialize_sparc_nat): Rename regmaps.
8666 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8667 (sparc_gregmap, sparc_fpregmap): ... these.
8668 (sparc_supply_gregset, sparc_collect_gregset)
8669 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8670 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8672 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8673 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8675 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8677 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8678 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8679 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8681 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8682 (sparc32_bsd_fpregset): Rename to...
8683 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8684 (sparc32_bsd_fpregmap): ... these.
8685 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8686 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8687 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8688 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8689 (struct sparc_gregmap, struct sparc_fpregmap)
8690 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8691 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8692 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8693 (sparc32_supply_regset, sparc32_collect_gregset)
8694 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8696 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8697 (sparc64_linux_ptrace_gregmap): ... this.
8698 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8699 (_initialize_sparc64_linux_nat): Rename regmaps.
8700 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8701 (sparc64_linux_core_gregmap): ... this.
8702 (sparc64_linux_supply_core_gregset)
8703 (sparc64_linux_collect_core_gregset)
8704 (sparc64_linux_supply_core_fpregset)
8705 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8706 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8707 (sparc64_sol2_fpregset): Rename to...
8708 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8709 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8710 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8712 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8713 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8714 (sparc64_bsd_fpregset): Rename to...
8715 (struct sparc_gregmap, sparc64_sol2_gregmap)
8716 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8717 (sparc64_bsd_fpregmap): ... these.
8718 (sparc64_supply_gregset, sparc64_collect_gregset)
8719 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8721 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8722 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8723 (sparc64fbsd_gregmap): ... this.
8724 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8725 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8727 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8728 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8729 (sparc64nbsd_collect_fpregset): Likewise.
8730 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8731 (sparc64nbsd_gregmap): ... this.
8732 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8734 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8735 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8736 (sparc64obsd_gregmap): ... this.
8737 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8739 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8740 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8741 (sparc32nbsd_gregmap): ... this.
8742 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8745 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8747 * score-tdep.c (score7_linux_gregset): New static regset
8749 (score7_linux_regset_from_core_section): Remove dynamic regset
8751 (score_gdbarch_init): Drop allocation of tdep structure.
8752 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8754 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8756 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8758 (am33_regset_from_core_section): Remove dynamic regset
8761 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8763 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8764 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8766 (mips_linux_regset_from_core_section): Remove dynamic regset
8768 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8769 'gregset64', 'fpregset', and 'fpregset64'.
8770 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8771 deleted tdep fields.
8773 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8775 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8777 (amd64_regset_from_core_section): Remove dynamic regset
8779 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8781 (amd64obsd_regset_from_core_section): Remove dynamic regset
8783 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8785 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8786 x86-common regset supply function.
8787 * i386-tdep.c (i386_collect_gregset): Make static.
8788 (i386_gregset): New global regset structure.
8789 (i386_fpregset, i386_xstateregset): New static regset structures.
8790 (i386_regset_from_core_section): Remove dynamic regset
8792 (i386_gdbarch_init): Remove initialization of tdep fields
8793 'gregset', 'fpregset', and 'xstateregset'.
8794 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8795 'fpregset', and 'xstateregset'.
8796 (i386_collect_gregset): Remove prototype.
8797 (i386_gregset): New declaration.
8798 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8800 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8803 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8805 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8806 (arm_linux_vfpregset): New static regset structures.
8807 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8809 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8810 and 'vfpregset' fields.
8812 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8814 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8815 (aarch64_linux_fpregset): New static regset structures.
8816 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8817 of regset structures.
8818 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8821 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8823 * regset.h (struct regset): Remove gdbarch field.
8824 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8825 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8826 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8828 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8829 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8830 (ppc32_linux_vsxregset): Likewise.
8831 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8832 via the regcache instead of the regset.
8833 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8834 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8835 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8836 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8839 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8841 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8842 Constify structures.
8843 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8844 (alphanbsd_aout_gregset): Likewise.
8845 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8846 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8848 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8849 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8851 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8852 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8853 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8854 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8855 * m88k-tdep.c (m88k_gregset): Likewise.
8856 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8857 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8858 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8859 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8860 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8861 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8862 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8863 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8864 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8866 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8867 * sh-tdep.h (sh_corefile_gregset): Likewise.
8868 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8869 * vax-tdep.c (vax_gregset): Likewise.
8871 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8873 Fix TLS access for -static -pthread.
8874 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8875 (try_thread_db_load_1): Initialize it.
8876 (thread_db_get_thread_local_address): Call it if LM is zero.
8877 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8878 * target.h (struct target_ops) (to_get_thread_local_address): Add
8879 load_module_addr comment.
8881 2014-05-21 Pedro Alves <palves@redhat.com>
8883 * dcache.c (dcache_read_memory_partial): If reading the cache line
8884 fails, fallback to reading just the memory the caller wanted.
8886 2014-05-20 Doug Evans <dje@google.com>
8888 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8889 instead of get_current_arch.
8891 2014-05-20 Pedro Alves <palves@redhat.com>
8893 * NEWS: Mention that compare-sections now works with all targets.
8895 * remote.c (PACKET_qCRC): New enum value.
8896 (remote_verify_memory): Don't send qCRC if the target has no
8897 execution. Use packet_support/packet_ok. If the target doesn't
8898 support the qCRC packet, fallback to a deep memory copy.
8899 (compare_sections_command): Say "target image" instead of "remote
8901 (_initialize_remote): Add PACKET_qCRC to the list of config
8902 packets that have no associated command. Extend comment.
8903 * target.c (simple_verify_memory, default_verify_memory): New
8905 * target.h (struct target_ops) <to_verify_memory>: Default to
8906 default_verify_memory.
8907 (simple_verify_memory): New declaration.
8908 * target-delegates.c: Regenerate.
8910 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8912 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8914 2014-05-20 Hui Zhu <hui@codesourcery.com>
8915 Yao Qi <yao@codesourcery.com>
8918 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8919 and change address of sp and pc.
8921 2014-05-19 Tom Tromey <tromey@redhat.com>
8923 * gdbtypes.c (rank_function): Use XNEWVEC.
8924 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8926 2014-05-19 Doug Evans <dje@google.com>
8928 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8929 build_type_unit_groups and moved closer to only caller. Remove
8930 arguments. All references updated. Remove outdated .gdb_index
8932 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8933 build_type_psymtabs_1.
8935 2014-05-19 Doug Evans <dje@google.com>
8937 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8938 n_type_unit_groups, all_type_unit_groups. All uses removed.
8939 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8940 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8941 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8942 (add_type_unit_group_to_table): Delete.
8944 2014-05-19 Doug Evans <dje@google.com>
8946 * eval.c (evaluate_subexp_standard): Add some comments.
8948 2014-05-17 Doug Evans <xdje42@gmail.com>
8950 * progspace.c (remove_program_space): Delete, unused.
8951 * progspace.h (remove_program_space): Ditto.
8953 2014-05-17 Doug Evans <xdje42@gmail.com>
8955 * inferior.c (prune_inferiors): Fix comment.
8956 (remove_inferior_command): Call prune_program_spaces.
8958 2014-05-16 Doug Evans <dje@google.com>
8960 New command line option -D.
8962 * main.c (set_gdb_data_directory): New function.
8963 (captured_main): Recognize -D. Flag error for --data-directory "".
8964 Call set_gdb_data_directory.
8965 (print_gdb_help): Print --data-directory, -D.
8966 * main.h (set_gdb_data_directory): Declare.
8967 * top.c (staged_gdb_datadir): New static global.
8968 (set_gdb_datadir): Call set_gdb_data_directory
8969 (show_gdb_datadir): New function.
8970 (init_main): Update init of data-directory parameter.
8972 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8974 Import the "dirfd" gnulib module.
8975 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8976 * gnulib/aclocal.m4: Update.
8977 * gnulib/config.in: Update.
8978 * gnulib/configure: Update.
8979 * gnulib/import/Makefile.am: Update.
8980 * gnulib/import/Makefile.in: Update.
8981 * gnulib/import/dirfd.c: New.
8982 * gnulib/import/m4/dirfd.m4: New.
8983 * gnulib/import/m4/gnulib-cache.m4: Update.
8984 * gnulib/import/m4/gnulib-comp.m4: Update.
8986 2014-05-16 Pierre Muller <muller@sourceware.org>
8987 Yao Qi <yao@codesourcery.com>
8989 * valprint.c (print_wchar): Move the code on checking whether
8990 W is a printable wide char to the default branch of switch
8991 statement below. Call wchar_printable instead of gdb_iswprint.
8993 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8995 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8996 ldr.w and ldrd instructions.
8998 2014-05-15 Doug Evans <dje@google.com>
9000 * dwarf2read.c (read_structure_type): Delete outdated comments.
9002 2014-05-14 Tom Tromey <tromey@redhat.com>
9004 * macrocmd.c (print_macro_definition): Reindent.
9006 2014-05-13 Doug Evans <xdje42@gmail.com>
9008 * python/py-cmd.c (cmdpy_completer): Add comment.
9009 (completers): Make const.
9011 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
9013 * infrun.c (resume): Remove should_resume (unused). Move up
9014 declaration of resume_ptid.
9016 2014-05-13 Tom Tromey <tromey@redhat.com>
9018 * language.h (unop_type_check): Remove.
9019 (binop_type_check): Don't declare.
9021 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
9023 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
9024 call to regcache_raw_collect.
9026 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9028 * mi/mi-console.c (mi_console_raw_packet): Use the value from
9029 mi_console->quote as the quoting character.
9031 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9033 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
9035 2014-04-29 Tom Tromey <tromey@redhat.com>
9037 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
9038 "show debug varobj".
9040 2014-05-07 Kyle McMartin <kyle@redhat.com>
9042 Pushed by Joel Brobecker <brobecker@adacore.com>.
9043 * aarch64-tdep.c (aarch64_software_single_step): New function.
9044 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
9045 with aarch64_software_single_step.
9047 2014-05-05 Joel Brobecker <brobecker@adacore.com>
9051 2014-05-05 Keith Seitz <keiths@redhat.com>
9053 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
9054 variable or history value is successfully parsed.
9056 2014-05-05 Yao Qi <yao@codesourcery.com>
9057 Pedro Alves <palves@redhat.com>
9059 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
9060 address of blocks that intersects the requested range. Trim
9061 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
9063 * ctf.c (ctf_xfer_partial): Likewise.
9065 2014-05-05 Yao Qi <yao@codesourcery.com>
9067 * printcmd.c (display_command): Remove the check to
9068 target_has_execution.
9070 2014-05-03 Mark Kettenis <kettenis@gnu.org>
9072 * ppcobsd-nat.c: Include "obsd-nat.h".
9073 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
9075 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9077 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9079 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
9080 and 16-bit signed and unsigned arguments. Update comment.
9081 (stap_parse_probe_arguments): Extend code to handle such
9082 arguments. Use warning instead of complaint to notify about
9083 unrecognized bitness.
9085 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9087 PR breakpoints/16889
9088 * stap-probe.c (stap_parse_probe_arguments): Simplify
9089 check for non-prefixed probes (i.e., probes whose
9090 arguments do not start with "N@"). Always set the
9091 argument type to a sane value.
9093 2014-05-01 David Taylor <dtaylor@emc.com>
9095 * remote.c (compare_sections_command): Add -r option to compare
9096 all loadable read-only sections.
9098 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
9100 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
9101 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
9103 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
9104 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
9105 Remove unused CORE_ADDR argument. Update all callers.
9107 2014-04-29 Pedro Alves <palves@redhat.com>
9109 * remote.c (struct packet_config) <detect>: Extend comment.
9110 (add_packet_config_cmd): Don't set the config's detect or support
9112 (init_all_packet_configs): Also initialize the config's 'detect'
9114 (reset_all_packet_configs_support): New function.
9115 (remote_open_1): Call reset_all_packet_configs_support instead of
9116 init_all_packet_configs.
9117 (_initialize_remote): Initialize all packet configs. Assert that
9118 all packets have an associated command, except a few known
9121 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9123 * dwarf2read.c (read_subrange_type): Handle dynamic
9124 DW_AT_lower_bound attributes.
9126 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9128 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
9129 dynamic bounds before computing its upper bound.
9130 (ada_discrete_type_low_bound): Same as above with the lower bound.
9132 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9134 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9135 range types. Adjust the array handling implementation to
9136 take advantage of this change.
9137 (resolve_dynamic_range): New function, mostly extracted from
9138 resolve_dynamic_bounds.
9139 (resolve_dynamic_array): New function, mostly extracted from
9140 resolve_dynamic_bounds.
9141 (resolve_dynamic_bounds): Delete.
9142 (resolve_dynamic_type): Reimplement. Add handling of
9143 TYPE_CODE_RANGE types.
9145 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9147 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9148 handling of parallel ___XA types.
9150 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9152 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9153 unnecessary second call to static_unwrap_type.
9155 2014-04-27 Hui Zhu <hui@codesourcery.com>
9157 * stack.c (print_frame_info): Call do_gdb_disassembly with
9158 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9160 2014-04-26 Doug Evans <xdje42@gmail.com>
9162 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9164 2014-04-25 Pedro Alves <palves@redhat.com>
9167 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9168 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9169 and newline from built string.
9170 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9171 (linux_ptrace_attach_fail_reason): ... this.
9172 * linux-nat.c (linux_nat_attach): Adjust to use
9173 linux_ptrace_attach_fail_reason.
9175 2014-04-25 Pedro Alves <palves@redhat.com>
9177 * remote.c (struct remote_state): Remove multi_process_aware,
9178 non_stop_aware, cond_tracepoints, cond_breakpoints,
9179 breakpoint_commands, fast_tracepoints, static_tracepoints,
9180 install_in_trace, disconnected_tracing,
9181 enable_disable_tracepoints, string_tracing, and
9182 augmented_libraries_svr4_read fields.
9183 (remote_multi_process_p): Move further below in the file.
9184 (struct packet_config): Add comments.
9185 (update_packet_config): Delete function.
9186 (show_packet_config_cmd): Use packet_config_support.
9187 (add_packet_config_cmd): Use NULL as set callback.
9188 (packet_ok): "set remote foo-packet"-style commands no longer
9189 change config->supported -- adjust.
9190 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9191 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9192 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9193 (PACKET_QNonStop, PACKET_multiprocess_feature)
9194 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9195 (PACKET_DisconnectedTracing_feature)
9196 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9197 (set_remote_protocol_packet_cmd): Delete function.
9198 (packet_config_support, packet_support): New functions.
9199 (set_remote_protocol_Z_packet_cmd): Don't call
9200 update_packet_config.
9201 (remote_query_attached, remote_pass_signals)
9202 (remote_program_signals, remote_threads_info)
9203 (remote_threads_extra_info, remote_start_remote): Use
9205 (remote_start_remote): Use packet_config_support and
9207 (init_all_packet_configs): Set all packets to unknown support,
9208 instead of calling update_packet_config.
9209 (remote_check_symbols): Use packet_support.
9210 (remote_supported_packet): Unconditionally set the packet config's
9212 (remote_multi_process_feature, remote_non_stop_feature)
9213 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9214 (remote_breakpoint_commands_feature)
9215 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9216 (remote_install_in_trace_feature)
9217 (remote_disconnected_tracing_feature)
9218 (remote_enable_disable_tracepoint_feature)
9219 (remote_string_tracing_feature)
9220 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9221 (remote_protocol_features): Adjust to use remote_supported_packet
9222 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9223 "ConditionalTracepoints", "ConditionalBreakpoints",
9224 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9225 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9226 "EnableDisableTracepoints", and "tracenz".
9227 (remote_query_supported): Use packet_support.
9228 (remote_open_1): Adjust.
9229 (extended_remote_attach_1): Use packet_support. Switch on the
9230 result of packet_ok instead of checking whether the packet ended
9232 (remote_vcont_resume): Use packet_support.
9233 (remote_resume, remote_stop_ns, fetch_register_using_p)
9234 (remote_prepare_to_store, store_register_using_P)
9235 (check_binary_download, remote_write_bytes): Use packet_support.
9236 (remote_vkill): Use packet_support. Switch on the result of
9237 packet_ok instead of checking whether the packet ended up
9239 (extended_remote_supports_disable_randomization): Use
9241 (extended_remote_run): Switch on the result of packet_ok instead
9242 of checking whether the packet ended up disabled.
9243 (remote_insert_breakpoint, remote_remove_breakpoint)
9244 (remote_insert_watchpoint, remote_remove_watchpoint)
9245 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9247 (remote_search_memory): Use packet_config_support.
9248 (remote_get_thread_local_address, remote_get_tib_address)
9249 (remote_hostio_send_command, remote_can_execute_reverse): Use
9251 (remote_supports_cond_tracepoints)
9252 (remote_supports_cond_breakpoints)
9253 (remote_supports_fast_tracepoints)
9254 (remote_supports_static_tracepoints)
9255 (remote_supports_install_in_trace)
9256 (remote_supports_enable_disable_tracepoint)
9257 (remote_supports_string_tracing)
9258 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9259 the packet config says the feature is enabled or disabled.
9260 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9261 (remote_get_trace_status): Use packet_support.
9262 (remote_set_disconnected_tracing): Adjust to check whether the
9263 feature is enabled with packet_support.
9264 (remote_set_trace_buffer_size, remote_use_agent)
9265 (remote_can_use_agent, remote_supports_btrace): Use
9267 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9268 Use packet_config_support.
9269 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9270 the packet config says the feature is enabled or disabled.
9271 (set_range_stepping): Use packet_support.
9273 2014-04-25 Tom Tromey <tromey@redhat.com>
9275 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9278 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9280 * NEWS: Mention support for C99 variable length arrays.
9282 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9284 * ada-lang.c (standard_exc): Expand introductory comment.
9286 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9287 Walfred Tedeschi <walfred.tedeschi@intel.com>
9289 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9291 (amd64_linux_read_description): Add code to handle AVX512 xstate
9292 mask and return respective tdesc.
9293 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9294 and features/i386/x32-avx512-linux.c.
9295 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9296 (amd64_linux_core_read_description): Add code to handle AVX512
9297 xstate mask and return respective tdesc.
9298 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9299 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9301 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9302 (tdesc_amd64_avx512_linux): New prototype.
9303 (tdesc_x32_avx512_linux): Likewise.
9304 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9305 features/i386/x32-avx512.c.
9306 (amd64_ymm_avx512_names): New register names for pseudo
9308 (amd64_ymmh_avx512_names): New register names for raw registers
9310 (amd64_k_names): New register names for K registers.
9311 (amd64_zmmh_names): New register names for ZMM raw registers.
9312 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9313 (amd64_xmm_avx512_names): New register names for XMM16-31
9315 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9317 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9318 if feature is present.
9319 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9320 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9321 (AMD64_NUM_REGS): Adjust to new number of registers.
9322 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9323 registers supplied via XSTATE by AVX512 registers.
9324 (i386_linux_read_description): Add case for AVX512.
9325 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9326 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9327 (i386_linux_core_read_description): Add case for AVX512.
9328 (i386_linux_init_abi): Install supported register note section
9330 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9332 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9333 registers to be number of zmm7h + 1.
9334 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9335 * i386-tdep.c: Include features/i386/i386-avx512.c.
9336 (i386_zmm_names): Add ZMM pseudo register names array.
9337 (i386_zmmh_names): Add ZMM raw register names array.
9338 (i386_k_names): Add K raw register names array.
9339 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9340 registers. AVX512 has 16 more ZMM registers than there are YMM
9342 (i386_zmmh_regnum_p): Add function to look up register number of
9344 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9345 (i386_k_regnum_p): Likewise for K raw registers.
9346 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9347 registers added by AVX512.
9348 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9349 registers added by AVX512.
9350 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9352 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9353 (i386_pseudo_register_name): Add ZMM pseudo registers.
9354 (i386_zmm_type): Construct and return vector registers type for ZMM
9356 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9357 ZMM0-31 pseudo registers and K registers.
9358 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9359 and YMM16-31 registers from register cache.
9360 (i386_pseudo_register_write): Add code to write K, ZMM and
9362 (i386_register_reggroup_p): Add code to include/exclude AVX512
9363 registers in/from respective register groups.
9364 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9365 registers if feature is present in xcr0.
9366 (i386_gdbarch_init): Add code to initialize AVX512 feature
9367 variables in tdep structure, wire in pseudo registers and call
9368 initialize_tdesc_i386_avx512.
9369 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9371 (i386_regnum): Add AVX512 registers.
9372 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9373 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9374 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9375 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9377 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9378 (i386_ymm_avx512_regnum_p): Likewise.
9379 (i386_k_regnum_p): Likewise.
9380 (i386_zmm_regnum_p): Likewise.
9381 (i386_zmmh_regnum_p): Likewise.
9382 * i387-tdep.c : Update year in copyright notice.
9383 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9385 (XSAVE_YMM_AVX512_ADDR): New macro.
9386 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9388 (XSAVE_XMM_AVX512_ADDR): New macro.
9389 (xsave_avx512_k_offset): New table for K register offsets in
9391 (XSAVE_AVX512_K_ADDR): New macro.
9392 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9394 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9395 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9397 (i387_collect_xsave): Add code to collect AVX512 registers from
9399 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9400 of XMM16-31 registers.
9401 (I387_NUM_K_REGS): New define for number of K registers.
9402 (I387_K0_REGNUM): New define for K0 register number.
9403 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9404 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9405 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9407 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9408 (I387_XMM16_REGNUM): New define for XMM16 register number.
9409 (I387_YMM0_REGNUM): New define for YMM0 register number.
9410 (I387_KEND_REGNUM): New define for last K register number.
9411 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9412 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9414 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9416 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9418 * features/Makefile: Add AVX512 related files.
9419 * features/i386/32bit-avx512.xml: New file.
9420 * features/i386/64bit-avx512.xml: Likewise.
9421 * features/i386/amd64-avx512-linux.c: Likewise.
9422 * features/i386/amd64-avx512-linux.xml: Likewise.
9423 * features/i386/amd64-avx512.c: Likewise.
9424 * features/i386/amd64-avx512.xml: Likewise.
9425 * features/i386/i386-avx512-linux.c: Likewise.
9426 * features/i386/i386-avx512-linux.xml: Likewise.
9427 * features/i386/i386-avx512.c: Likewise.
9428 * features/i386/i386-avx512.xml: Likewise.
9429 * features/i386/x32-avx512-linux.c: Likewise.
9430 * features/i386/x32-avx512-linux.xml: Likewise.
9431 * features/i386/x32-avx512.c: Likewise.
9432 * features/i386/x32-avx512.xml: Likewise.
9433 * regformats/i386/amd64-avx512-linux.dat: New file.
9434 * regformats/i386/amd64-avx512.dat: Likewise.
9435 * regformats/i386/i386-avx512-linux.dat: Likewise.
9436 * regformats/i386/i386-avx512.dat: Likewise.
9437 * regformats/i386/x32-avx512-linux.dat: Likewise.
9438 * regformats/i386/x32-avx512.dat: Likewise.
9439 * NEWS: Add note about new support for AVX512.
9442 2014-04-23 Pedro Alves <palves@redhat.com>
9444 * breakpoint.c (insert_bp_location): Tolerate errors if the
9445 breakpoint is set in a user-loaded objfile.
9446 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9447 location is marked shlib_disabled. If the breakpoint is set in a
9448 user-loaded objfile is a GDB-side memory breakpoint, validate it
9449 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9450 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9452 * mem-break.c (memory_validate_breakpoint): New function.
9453 * objfiles.c (userloaded_objfile_contains_address_p): New
9455 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9456 * target.h (memory_validate_breakpoint): New declaration.
9458 2014-04-23 Pedro Alves <palves@redhat.com>
9460 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9461 the breakpoint is set in a shared library, only suppress
9462 errors for software breakpoints, not hardware breakpoints.
9464 2014-04-22 Pedro Alves <palves@redhat.com>
9466 * infrun.c (schedlock_applies): New function, factored out from
9467 find_thread_needs_step_over.
9468 (find_thread_needs_step_over): Use it.
9469 (switch_back_to_stepped_thread): Always clear trap_expected if the
9470 step over is finished. Return early if scheduler locking applies.
9471 Look for the stepping thread and a potential step-over thread with
9473 (currently_stepping_or_nexting_callback): Delete.
9475 2014-04-22 Nick Clifton <nickc@redhat.com>
9477 * NEWS: Mention that ARM sim now supports tracing.
9479 2014-04-22 Yao Qi <yao@codesourcery.com>
9481 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9483 * tracefile.c (tracefile_fetch_registers): ... it. New
9485 * tracefile.h (tracefile_fetch_registers): Declare.
9486 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9487 tracefile_fetch_registers.
9489 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9492 * windows-nat.c (thread_rec): Don't display a warning when
9493 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9494 fails for any reason, set th->suspended to -1, so that we don't
9495 try to resume such a thread. Also, don't return NULL in these
9496 cases, to avoid completely ruin the session due to "PC register is
9497 not available" error.
9498 (do_windows_fetch_inferior_registers): Check errors in
9499 GetThreadContext call.
9500 (windows_continue): Accept an additional argument KILLED; if not
9501 zero, ignore errors in the SetThreadContext call, since the
9502 inferior was killed and is shutting down.
9503 (windows_resume, get_windows_debug_event)
9504 (windows_create_inferior, windows_mourn_inferior)
9505 (windows_kill_inferior): All callers of windows_continue changed
9506 to adjust to its new calling sequence.
9508 2014-04-19 Yao Qi <yao@codesourcery.com>
9510 * ctf.c (ctf_open): Call post_create_inferior.
9512 2014-04-19 Yao Qi <yao@codesourcery.com>
9514 * ctf.c (handle_id): New static variable.
9515 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9516 value. Get the declaration of event "register" and get length
9517 of field "contents".
9519 2014-04-19 Yao Qi <yao@codesourcery.com>
9521 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9523 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9525 * valops.c (oload_method_static): Remove unnecessary argument
9526 METHOD. Update all callers.
9528 2014-04-18 Pedro alves <palves@redhat.com>
9529 Tom Tromey <tromey@redhat.com>
9532 * frame.c (get_prev_frame_1): Rename to ...
9533 (get_prev_frame_always): ... this, and make extern. Adjust.
9534 (skip_artificial_frames): Use get_prev_frame_always.
9535 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9536 (get_frame_unwind_stop_reason): Adjust to rename.
9537 * frame.h (get_prev_frame_always): Declare.
9538 * inline-frame.c: Include frame.h.
9539 (inline_frame_this_id): Use get_prev_frame_always.
9541 2014-04-18 Tristan Gingold <gingold@adacore.com>
9543 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9544 code by using bfd_mach_o_get_base_address.
9546 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9548 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9549 (spu_ax_pseudo_register_collect): New function.
9550 (spu_ax_pseudo_register_push_stack): Likewise.
9551 (spu_dwarf_reg_to_regnum): Likewise.
9552 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9554 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9556 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9557 Replace FRAME argument with FRAME_ID.
9558 * gdbarch.c, gdbarch.h: Regenerate.
9559 * findvar.c (default_value_from_register): Add GDBARCH argument;
9560 replace FRAME by FRAME_ID. No longer call get_frame_id.
9561 (value_from_register): Update call to gdbarch_value_from_register.
9562 * value.h (default_value_from_register): Update prototype.
9563 * s390-linux-tdep.c (s390_value_from_register): Update interface
9564 and call to default_value_from_register.
9565 * spu-tdep.c (spu_value_from_register): Likewise.
9567 * findvar.c (address_from_register): Remove TYPE argument.
9568 Do not call value_from_register; use gdbarch_value_from_register
9569 with null_frame_id instead.
9570 * value.h (address_from_register): Update prototype.
9571 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9572 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9573 address_from_register interface change.
9575 2014-04-17 Yao Qi <yao@codesourcery.com>
9577 * gdbtypes.h: Update comments to link to types and macros'
9580 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9582 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9584 2014-04-16 Keith Seitz <keiths@redhat.com>
9587 * dwarf2read.c (skip_one_die): Check that all relative-offset
9588 sibling DIEs fall within range of the current reader's buffer.
9589 (read_partial_die): Likewise.
9591 2014-04-16 Keith Seitz <keiths@redhat.com>
9594 * cp-namespace.c (lookup_symbol_file): If the type name of
9595 `this' is NULL, return immediately.
9597 2014-04-14 Keith Seitz <keiths@redhat.com>
9600 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9601 from symbol_matches_domain in symtab.c. All local callers
9602 of symbol_matches_domain updated.
9603 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9604 search STRUCT_DOMAIN.
9605 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9606 independently. standard_lookup will do that automatically.
9607 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9608 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9609 (cp_lookup_symbol_in_namespace): Likewise.
9610 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9611 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9612 may return a STRUCT_DOMAIN match.
9613 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9614 * cp-support.c: Include language.h.
9615 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9617 * psymtab.c (match_partial_symbol): Compare the requested
9618 domain with the symbol's domain directly.
9619 (lookup_partial_symbol): Likewise.
9620 * symtab.c (lookup_symbol_in_language): Explain when/why
9621 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9622 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9623 appropriate languages.
9624 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9625 and moved to ada-lang.c
9626 (lookup_block_symbol): Explain that this function only returns
9627 symbol matching the requested DOMAIN.
9628 Compare the requested domain with the symbol's domain directly.
9629 (iterate_over_symbols): Compare the requested domain with the
9630 symbol's domain directly.
9631 * symtab.h (symbol_matches_domain): Remove.
9633 2014-04-14 Tom Tromey <tromey@redhat.com>
9636 * c-exp.y (type_aggregate_p): New function.
9637 (qualified_name, classify_inner_name): Use it.
9638 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9639 and TYPE_TARGET_TYPE of an enum type.
9640 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9642 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9643 handle TYPE_DECLARED_CLASS.
9644 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9646 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9647 * valops.c (enum_constant_from_type): New function.
9648 (value_aggregate_elt): Use it.
9649 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9652 2014-04-14 Tom Tromey <tromey@redhat.com>
9654 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9655 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9657 * value.h (value_aggregate_elt): Update.
9659 2014-04-14 Tom Tromey <tromey@redhat.com>
9661 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9663 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9665 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9666 (evaluate_subexp_standard): Pass noside argument.
9667 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9668 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9669 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9670 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9671 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9673 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9675 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9676 points to a constant blob.
9678 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9680 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9681 property and store it as the high bound and flag the range accordingly.
9682 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9683 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9684 * gdbtypes.h (enum range_flags): New enum.
9685 (struct range_bounds): Add flags member.
9687 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9689 * c-typeprint.c (c_type_print_varspec_suffix): Added
9690 check for not yet resolved high bound. If unresolved, print
9691 "variable length" string to the console instead of random
9694 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9696 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9698 (ada_template_to_fixed_record_type_1): Likewise.
9699 (ada_to_fixed_type_1): Likewise.
9700 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9701 (cp_print_value): Likewise.
9702 * d-valprint.c (dynamic_array_type): Likewise.
9703 * findvar.c (address_of_variable): Likewise.
9704 * jv-valprint.c (java_value_print): Likewise.
9705 * valops.c (value_ind): Likewise.
9706 * value.c (coerce_ref): Likewise.
9708 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9710 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9711 value and retrieve the dynamic type size.
9713 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9715 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9716 passed to sizeof is dynamic evaluate the argument to compute the length.
9718 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9719 Joel Brobecker <brobecker@adacore.com>
9721 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9722 (dwarf2_evaluate_property): New function.
9723 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9724 * dwarf2read.c (attr_to_dynamic_prop): New function.
9725 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9727 * gdbtypes.c: Include dwarf2loc.h.
9728 (is_dynamic_type): New function.
9729 (resolve_dynamic_type): New function.
9730 (resolve_dynamic_bounds): New function.
9731 (get_type_length): New function.
9732 (check_typedef): Use get_type_length to compute type length.
9733 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9734 (TYPE_LOW_BOUND_KIND): New macro.
9735 (is_dynamic_type): New function prototype.
9736 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9737 to resolve dynamic properties of the type. Update comment.
9738 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9740 2014-04-14 Richard Henderson <rth@redhat.com>
9742 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9744 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9745 Doug Evans <xdje42@gmail.com>
9747 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9748 dereference TYPE_CODE_REF values.
9750 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9752 Revert the following changes due to regressions:
9754 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9755 (dwarf2_evaluate_property): New function.
9756 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9757 * dwarf2read.c (attr_to_dynamic_prop): New function.
9758 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9760 * gdbtypes.c: Include dwarf2loc.h.
9761 (is_dynamic_type): New function.
9762 (resolve_dynamic_type): New function.
9763 (resolve_dynamic_bounds): New function.
9764 (get_type_length): New function.
9765 (check_typedef): Use get_type_length to compute type length.
9766 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9767 (TYPE_LOW_BOUND_KIND): New macro.
9768 (is_dynamic_type): New function prototype.
9769 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9770 to resolve dynamic properties of the type. Update comment.
9771 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9773 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9774 passed to sizeof is dynamic evaluate the argument to compute the length.
9776 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9777 value and retrieve the dynamic type size.
9779 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9780 (ada_template_to_fixed_record_type_1): Likewise.
9781 (ada_to_fixed_type_1): Likewise.
9782 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9783 (cp_print_value): Likewise.
9784 * d-valprint.c (dynamic_array_type): Likewise.
9785 * eval.c (evaluate_subexp_with_coercion): Likewise.
9786 * findvar.c (address_of_variable): Likewise.
9787 * jv-valprint.c (java_value_print): Likewise.
9788 * valops.c (value_ind): Likewise.
9789 * value.c (coerce_ref): Likewise.
9791 * c-typeprint.c (c_type_print_varspec_suffix): Added
9792 check for not yet resolved high bound. If unresolved, print
9793 "variable length" string to the console instead of random
9796 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9797 property and store it as the high bound and flag the range accordingly.
9798 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9799 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9800 * gdbtypes.h (enum range_flags): New enum.
9801 (struct range_bounds): Add flags member.
9803 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9804 points to a constant blob.
9806 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9807 (evaluate_subexp_standard): Pass noside argument.
9808 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9809 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9810 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9811 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9812 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9814 2014-04-11 Keith Seitz <keiths@redhat.com>
9817 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9818 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9821 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9823 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9824 (evaluate_subexp_standard): Pass noside argument.
9825 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9826 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9827 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9828 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9829 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9831 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9833 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9834 points to a constant blob.
9836 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9838 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9839 property and store it as the high bound and flag the range accordingly.
9840 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9841 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9842 * gdbtypes.h (enum range_flags): New enum.
9843 (struct range_bounds): Add flags member.
9845 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9847 * c-typeprint.c (c_type_print_varspec_suffix): Added
9848 check for not yet resolved high bound. If unresolved, print
9849 "variable length" string to the console instead of random
9852 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9854 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9855 (ada_template_to_fixed_record_type_1): Likewise.
9856 (ada_to_fixed_type_1): Likewise.
9857 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9858 (cp_print_value): Likewise.
9859 * d-valprint.c (dynamic_array_type): Likewise.
9860 * eval.c (evaluate_subexp_with_coercion): Likewise.
9861 * findvar.c (address_of_variable): Likewise.
9862 * jv-valprint.c (java_value_print): Likewise.
9863 * valops.c (value_ind): Likewise.
9864 * value.c (coerce_ref): Likewise.
9866 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9868 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9869 value and retrieve the dynamic type size.
9871 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9873 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9874 passed to sizeof is dynamic evaluate the argument to compute the length.
9876 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9878 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9879 (dwarf2_evaluate_property): New function.
9880 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9881 * dwarf2read.c (attr_to_dynamic_prop): New function.
9882 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9884 * gdbtypes.c: Include dwarf2loc.h.
9885 (is_dynamic_type): New function.
9886 (resolve_dynamic_type): New function.
9887 (resolve_dynamic_bounds): New function.
9888 (get_type_length): New function.
9889 (check_typedef): Use get_type_length to compute type length.
9890 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9891 (TYPE_LOW_BOUND_KIND): New macro.
9892 (is_dynamic_type): New function prototype.
9893 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9894 to resolve dynamic properties of the type. Update comment.
9895 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9897 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9899 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9900 declaring high/low bounds and change uses accordingly. Call
9901 create_range_type instead of create_static_range_type.
9902 * gdbtypes.c (create_range_type): New function.
9903 (create_range_type): Convert bounds into struct bound_prop and pass
9904 them to create_range_type.
9905 * gdbtypes.h (struct bound_prop): New struct.
9906 (create_range_type): New function prototype.
9907 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9908 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9909 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9911 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9913 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9915 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9916 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9917 * ada-lang.c: All uses of create_range_type updated.
9918 * coffread.c: All uses of create_range_type updated.
9919 * dwarf2read.c: All uses of create_range_type updated.
9920 * f-exp.y: All uses of create_range_type updated.
9921 * m2-valprint.c: All uses of create_range_type updated.
9922 * mdebugread.c: All uses of create_range_type updated.
9923 * stabsread.c: All uses of create_range_type updated.
9924 * valops.c: All uses of create_range_type updated.
9925 * valprint.c: All uses of create_range_type updated.
9927 2014-04-10 Pedro Alves <palves@redhat.com>
9929 * breakpoint.c (single_step_breakpoints)
9930 (single_step_gdbarch): Move up in the file.
9931 (one_breakpoint_xfer_memory): New function, factored out from ...
9932 (breakpoint_xfer_memory): ... here. Also process single-step
9935 2014-04-09 Tristan Gingold <gingold@adacore.com>
9937 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9939 (darwin_decode_exception_message): Free port only after use.
9941 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9943 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9944 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9945 when setting the size of call_length.
9947 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9949 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9950 dereference TYPE_CODE_REF values.
9952 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9954 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9955 end of warning message.
9957 2014-04-03 Doug Evans <dje@google.com>
9959 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9960 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9962 2014-04-02 Alan Modra <amodra@gmail.com>
9964 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9965 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9966 (struct symbol_file_add_from_memory_args): Add size field.
9967 (find_vdso_size): New function.
9968 (add_vsyscall_page): Attempt to find vdso size.
9970 2014-04-01 Doug Evans <dje@google.com>
9972 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9974 2014-04-01 Tristan Gingold <gingold@adacore.com>
9976 * darwin-nat.c (darwin_encode_reply): Add prototype.
9977 (darwin_decode_exception_message): Reply to unknown inferiors.
9978 (darwin_decode_message): Handle message by id. Ignore message
9979 to unknown inferior.
9980 (darwin_wait): Discard unknown messages, add debug trace.
9982 2014-03-31 Doug Evans <dje@google.com>
9984 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9987 2014-03-31 Doug Evans <dje@google.com>
9989 New option "set print symbol-loading".
9991 * solib.c (solib_read_symbols): Only print symbol loading messages
9993 (solib_add): If symbol loading is in "brief" mode, notify user
9994 symbols are being loaded.
9995 (reload_shared_libraries_1): Ditto.
9996 * symfile.c (print_symbol_loading_off): New static global.
9997 (print_symbol_loading_brief): New static global.
9998 (print_symbol_loading_full): New static global.
9999 (print_symbol_loading_enums): New static global.
10000 (print_symbol_loading): New static global.
10001 (print_symbol_loading_p): New function.
10002 (symbol_file_add_with_addrs): Only print symbol loading messages
10004 (_initialize_symfile): Register "print symbol-loading" set/show
10006 * symfile.h (print_symbol_loading_p): Declare.
10008 2014-03-30 Doug Evans <xdje42@gmail.com>
10010 * infrun.c (set_last_target_status): New function.
10011 (handle_inferior_event): Call it.
10013 2014-03-30 Doug Evans <xdje42@gmail.com>
10015 * inferior.h (enum stop_kind): Improve comment.
10017 2014-03-28 Joel Brobecker <brobecker@adacore.com>
10019 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
10020 a reference, strip the reference layer before calling
10021 the lang_ops value_has_mutated callback.
10023 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
10025 Remove some globals from our parser.
10026 * language.c (unk_lang_parser): Add "struct parser_state"
10028 * language.h (struct language_defn) <la_parser>: Likewise.
10029 * parse.c (expout, expout_size, expout_ptr): Remove variables.
10030 (initialize_expout): Add "struct parser_state" argument.
10031 Rewrite function to use the parser state.
10032 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
10033 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
10034 write_exp_elt_longcst, write_exp_elt_dblcst,
10035 write_exp_elt_decfloatcst, write_exp_elt_type,
10036 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10037 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
10038 write_dollar_variable): Likewise.
10039 (parse_exp_in_context_1): Use parser state.
10040 (insert_type_address_space): Add "struct parser_state" argument.
10042 (increase_expout_size): New function.
10043 * parser-defs.h: Forward declare "struct language_defn" and
10044 "struct parser_state".
10045 (expout, expout_size, expout_ptr): Remove extern declarations.
10046 (parse_gdbarch, parse_language): Rewrite macro declarations to
10047 accept the parser state.
10048 (struct parser_state): New struct.
10049 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
10050 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
10051 write_exp_elt_decfloatcst, write_exp_elt_type,
10052 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10053 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
10054 write_exp_msymbol, write_dollar_variable,
10055 mark_struct_expression, insert_type_address_space): Add "struct
10056 parser_state" argument.
10057 (increase_expout_size): New function.
10058 * utils.c (do_clear_parser_state): New function.
10059 (make_cleanup_clear_parser_state): Likewise.
10060 * utils.h (make_cleanup_clear_parser_state): New function
10062 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
10063 Update calls to write_exp* in order to pass the parser state.
10064 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
10065 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
10066 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10067 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
10068 * stap-probe.c (stap_parse_register_operand): Likewise.
10069 (stap_parse_single_operand): Likewise.
10070 (stap_parse_argument_1): Likewise.
10071 (stap_parse_argument): Use parser state.
10072 * stap-probe.h: Include "parser-defs.h".
10073 (struct stap_parse_info) <pstate>: New field.
10074 * c-exp.y (parse_type): Rewrite to use parser state.
10075 (yyparse): Redefine to c_parse_internal.
10076 (pstate): New global variable.
10077 (parse_number): Add "struct parser_state" argument.
10078 (write_destructor_name): Likewise.
10079 (type_exp): Update calls to write_exp* and similars in order to
10081 (exp1, exp, variable, qualified_name, space_identifier,
10082 typename, typebase): Likewise.
10083 (write_destructor_name, parse_number, lex_one_token,
10084 classify_name, classify_inner_name, c_parse): Add "struct
10085 parser_state" argument. Update function to use parser state.
10086 * c-lang.h: Forward declare "struct parser_state".
10087 (c_parse): Add "struct parser_state" argument.
10088 * ada-exp.y (parse_type): Rewrite macro to use parser state.
10089 (yyparse): Redefine macro to ada_parse_internal.
10090 (pstate): New variable.
10091 (write_int, write_object_renaming, write_var_or_type,
10092 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
10093 type_int, type_long, type_long_long, type_float, type_double,
10094 type_long_double, type_char, type_boolean, type_system_address):
10095 Add "struct parser_state" argument.
10096 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
10097 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
10098 var_or_type, aggregate, aggregate_component_list,
10099 positional_list, others, component_group,
10100 component_associations): Update calls to write_exp* and similar
10101 functions in order to use parser state.
10102 (ada_parse, write_var_from_sym, write_int,
10103 write_exp_op_with_string, write_object_renaming,
10104 find_primitive_type, write_selectors, write_ambiguous_var,
10105 write_var_or_type, write_name_assoc, type_int, type_long,
10106 type_long_long, type_float, type_double, type_long_double,
10107 type_char, type_boolean, type_system_address): Add "struct
10108 parser_state" argument. Adjust function to use parser state.
10109 * ada-lang.c (parse): Likewise.
10110 * ada-lang.h: Forward declare "struct parser_state".
10111 (ada_parse): Add "struct parser_state" argument.
10112 * ada-lex.l (processInt, processReal): Likewise. Adjust all
10113 calls to both functions.
10114 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
10116 (yyparse): Redefine macro to f_parse_internal.
10117 (pstate): New variable.
10118 (parse_number): Add "struct parser_state" argument.
10119 (type_exp, exp, subrange, typebase): Update calls to write_exp*
10120 and similars in order to use parser state.
10121 (parse_number): Adjust code to use parser state.
10123 (f_parse): New function.
10124 * f-lang.h: Forward declare "struct parser_state".
10125 (f_parse): Add "struct parser_state" argument.
10126 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
10128 (yyparse): Redefine macro for java_parse_internal.
10129 (pstate): New variable.
10130 (push_expression_name, push_expression_name, insert_exp): Add
10131 "struct parser_state" argument.
10132 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10133 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10134 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10135 PostIncrementExpression, PostDecrementExpression,
10136 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10137 UnaryExpressionNotPlusMinus, CastExpression,
10138 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10139 RelationalExpression, EqualityExpression, AndExpression,
10140 ExclusiveOrExpression, InclusiveOrExpression,
10141 ConditionalAndExpression, ConditionalOrExpression,
10142 ConditionalExpression, Assignment, LeftHandSide): Update
10143 calls to write_exp* and similars in order to use parser state.
10144 (parse_number): Ajust code to use parser state.
10146 (java_parse): New function.
10147 (push_variable): Add "struct parser_state" argument. Adjust
10148 code to user parser state.
10149 (push_fieldnames, push_qualified_expression_name,
10150 push_expression_name, insert_exp): Likewise.
10151 * jv-lang.h: Forward declare "struct parser_state".
10152 (java_parse): Add "struct parser_state" argument.
10153 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10155 (yyparse): Redefine macro to m2_parse_internal.
10156 (pstate): New variable.
10157 (type_exp, exp, fblock, variable, type): Update calls to
10158 write_exp* and similars to use parser state.
10160 (m2_parse): New function.
10161 * m2-lang.h: Forward declare "struct parser_state".
10162 (m2_parse): Add "struct parser_state" argument.
10163 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10164 * objc-lang.h: Forward declare "struct parser_state".
10165 (end_msglist): Add "struct parser_state" argument.
10166 * p-exp.y (parse_type): Rewrite macro to use parser state.
10167 (yyparse): Redefine macro to pascal_parse_internal.
10168 (pstate): New variable.
10169 (parse_number): Add "struct parser_state" argument.
10170 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10171 write_exp* and similars in order to use parser state.
10172 (parse_number, yylex): Adjust code to use parser state.
10173 (pascal_parse): New function.
10174 * p-lang.h: Forward declare "struct parser_state".
10175 (pascal_parse): Add "struct parser_state" argument.
10176 * go-exp.y (parse_type): Rewrite macro to use parser state.
10177 (yyparse): Redefine macro to go_parse_internal.
10178 (pstate): New variable.
10179 (parse_number): Add "struct parser_state" argument.
10180 (type_exp, exp1, exp, variable, type): Update calls to
10181 write_exp* and similars in order to use parser state.
10182 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10183 to use parser state.
10184 (go_parse): Likewise.
10185 * go-lang.h: Forward declare "struct parser_state".
10186 (go_parse): Add "struct parser_state" argument.
10188 2014-03-27 Doug Evans <dje@google.com>
10190 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10192 2014-03-27 Doug Evans <dje@google.com>
10194 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10195 Remove argument abbrev_section. All callers updated.
10197 2014-03-27 Doug Evans <dje@google.com>
10199 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10200 addr_base, ranges_base.
10202 2014-03-26 Keith Seitz <keiths@redhat.com>
10204 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10205 types, not VAR_DOMAIN.
10207 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10209 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10211 * features/nios2-linux.c: Regenerated.
10212 * features/nios2.c: Regenerated.
10214 2014-03-25 Pedro Alves <palves@redhat.com>
10216 * cli/cli-script.c (script_from_file): Force the interpreter to
10219 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10221 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10222 small stack allocation.
10224 2014-03-24 Tristan Gingold <gingold@adacore.com>
10226 * darwin-nat.c (exc_server): Remove unused prototype.
10227 (darwin_dump_message): Correctly display data on x86_64.
10228 (darwin_encode_reply): Fix style.
10229 Add comments and fix indentation.
10231 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10233 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10235 2014-03-22 Doug Evans <xdje42@gmail.com>
10237 * infcmd.c: Whitespace fixes.
10238 (interrupt_command): Merge two function comments into one.
10240 2014-03-22 Doug Evans <xdje42@gmail.com>
10242 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10245 2014-03-22 Yao Qi <yao@codesourcery.com>
10247 * remote.c (target_read_live_memory): Remove.
10248 (memory_xfer_live_readonly_partial): Rename it to
10249 remote_xfer_live_readonly_partial. Remove argument 'object'.
10250 All callers updated. Call remote_read_bytes_1
10251 instead of target_read_live_memory.
10252 * tracepoint.c (set_traceframe_number): Remove.
10253 (make_cleanup_restore_traceframe_number): Likewise .
10254 * tracepoint.h (set_traceframe_number): Remove declaration.
10255 (make_cleanup_restore_traceframe_number): Likewise.
10257 2014-03-22 Yao Qi <yao@codesourcery.com>
10259 * remote.c (remote_read_bytes): Move code on reading from the
10261 (remote_read_bytes_1): ... here. New function.
10263 2014-03-22 Yao Qi <yao@codesourcery.com>
10265 * ctf.c (ctf_xfer_partial): Check the return value of
10266 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10267 return TARGET_XFER_UNAVAILABLE.
10268 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10269 * target.c (target_read_live_memory): Move it to remote.c.
10270 (memory_xfer_live_readonly_partial): Likewise.
10271 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10272 * remote.c (target_read_live_memory): Moved from target.c.
10273 (memory_xfer_live_readonly_partial): Likewise.
10274 (remote_read_bytes): Factored out from
10275 memory_xfer_partial_1.
10277 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10279 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10282 2014-03-21 Pedro Alves <palves@redhat.com>
10284 * infrun.c (normal_stop): Extend comment.
10286 2014-03-21 Hui Zhu <hui@codesourcery.com>
10287 Pedro Alves <palves@redhat.com>
10289 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10291 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10292 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10293 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10295 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10297 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10298 `z' formatted output modifier.
10300 2014-03-20 Tom Tromey <tromey@redhat.com>
10301 Sergio Durigan Junior <sergiodj@redhat.com>
10303 * probe.c (parse_probes): Turn assert into an ordinary error.
10304 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10305 exceptions when parsing probes. Rearrange the code for clarity.
10307 2014-03-20 Tom Tromey <tromey@redhat.com>
10310 * top.c (execute_command): Only dispatch events if the command
10311 started the target.
10313 2014-03-20 Tom Tromey <tromey@redhat.com>
10316 * infcall.c: Include event-top.h.
10317 (run_inferior_call): Call async_disable_stdin if needed.
10319 2014-03-20 Pedro Alves <palves@redhat.com>
10321 * infrun.c (prepare_to_proceed): Delete.
10322 (thread_still_needs_step_over): New function.
10323 (find_thread_needs_step_over): New function.
10324 (proceed): If the current thread needs a step-over, set its
10325 steping_over_breakpoint flag. Adjust to use
10326 find_thread_needs_step_over instead of prepare_to_proceed.
10327 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10328 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10330 (switch_back_to_stepped_thread): Step over breakpoints of all
10331 threads not the stepping thread, before switching back to the
10334 2014-03-20 Pedro Alves <palves@redhat.com>
10336 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10338 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10339 * infrun.c (saved_singlestep_ptid)
10340 (stepping_past_singlestep_breakpoint): Delete.
10341 (resume): Remove stepping_past_singlestep_breakpoint handling.
10342 (proceed): Store the prev_pc of the stepping thread too.
10343 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10345 (enum infwait_states): Delete infwait_thread_hop_state.
10346 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10348 (handle_inferior_event): Adjust.
10349 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10350 handling and the thread-hop code. Before removing single-step
10351 breakpoints, check whether the thread hit a single-step breakpoint
10352 of another thread. If it did, the trap is not a random signal.
10353 (switch_back_to_stepped_thread): If the event thread hit a
10354 single-step breakpoint, unblock it before switching to the
10355 stepping thread. Handle the case of the stepped thread having
10357 (keep_going): Handle the case of the current thread moving past a
10358 single-step breakpoint.
10360 2014-03-20 Pedro Alves <palves@redhat.com>
10362 PR breakpoints/7143
10363 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10364 are being stepped over.
10365 (breakpoint_address_match): Make extern.
10366 * breakpoint.h (breakpoint_address_match): New declaration.
10367 * inferior.h (stepping_past_instruction_at): New declaration.
10368 * infrun.c (struct step_over_info): New type.
10369 (step_over_info): New global.
10370 (set_step_over_info, clear_step_over_info)
10371 (stepping_past_instruction_at): New functions.
10372 (handle_inferior_event): Clear the step-over info when
10373 trap_expected is cleared.
10374 (resume): Remove now stale comment.
10375 (clear_proceed_status): Clear step-over info.
10376 (proceed): Adjust step-over handling to set or clear the step-over
10377 info instead of removing all breakpoints.
10378 (handle_signal_stop): When setting up a thread-hop, don't remove
10380 (stop_stepping): Clear step-over info.
10381 (keep_going): Adjust step-over handling to set or clear step-over
10382 info and then always inserting breakpoints, instead of removing
10383 all breakpoints when stepping over one.
10385 2014-03-20 Pedro Alves <palves@redhat.com>
10387 * infrun.c (previous_inferior_ptid): Adjust comment.
10388 (deferred_step_ptid): Delete.
10389 (infrun_thread_ptid_changed, prepare_to_proceed)
10390 (init_wait_for_inferior): Adjust.
10391 (handle_signal_stop): Delete deferred_step_ptid handling.
10393 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10396 * defs.h (sync_quit_force_run): New declaration.
10397 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10398 * event-top.c (async_sigterm_handler): New declaration.
10399 (async_sigterm_token): New variable.
10400 (async_init_signals): Create also async_sigterm_token.
10401 (async_sigterm_handler): New function.
10402 (sync_quit_force_run): New variable.
10403 (handle_sigterm): Replace quit_force call by other calls.
10404 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10406 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10408 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10409 offset into SPE pseudo registers.
10411 2014-03-18 Pedro Alves <palves@redhat.com>
10414 * inferior.h (print_stop_event): Declare.
10415 * infrun.c (print_stop_event): New, factored out from ...
10416 (normal_stop): ... this.
10417 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10418 of bpstat_print/print_stack_frame.
10420 2014-03-17 Tom Tromey <tromey@redhat.com>
10422 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10424 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10426 * ada-lang.c (decode_constrained_packed_array): Perform a
10427 minimal coercion for reference with coerce_ref instead of
10430 2014-03-17 Tristan Gingold <gingold@adacore.com>
10432 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10433 (darwin_solib_create_inferior_hook): Emit a warning if version
10436 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10438 * python/py-value.c (get_field_flag): Cast flag_name argument to
10439 PyObject_GetAttrString to support Python 2.4.
10441 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10443 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10444 (Global Maintainers): Remove Jan Kratochvil.
10446 2014-03-14 Pedro Alves <palves@redhat.com>
10448 * inferior.h (terminal_ours_for_output): Rename to ...
10449 (child_terminal_ours_for_output): ... this.
10450 (terminal_save_ours): Rename to ...
10451 (child_terminal_save_ours): ... this.
10452 (terminal_ours): Rename to ...
10453 (child_terminal_ours): ... this.
10454 (terminal_inferior): Rename to ...
10455 (child_terminal_inferior): ... this.
10456 (terminal_init_inferior): Rename to ...
10457 (child_terminal_init_inferior): ... this.
10458 (terminal_init_inferior_with_pgrp): Rename to ...
10459 (child_terminal_init_inferior_with_pgrp): ... this.
10460 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10461 (child_terminal_init_with_pgrp): ... this.
10462 (terminal_save_ours): Rename to ...
10463 (child_terminal_save_ours): ... this.
10464 (terminal_init_inferior): Rename to ...
10465 (child_terminal_init): ... this. Adjust.
10466 (terminal_inferior): Rename to ...
10467 (child_terminal_inferior): ... this.
10468 (terminal_ours_for_output): Rename to ...
10469 (child_terminal_ours_for_output): ... this. Adjust.
10470 (terminal_ours): Rename to ...
10471 (child_terminal_ours): ... this.
10472 (terminal_ours_1): Rename to ...
10473 (child_terminal_ours_1): ... this. Adjust.
10474 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10475 * windows-nat.c (do_initial_windows_stuff): Adjust.
10476 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10477 (gnu_terminal_init): ... this. Adjust.
10478 (gnu_target): Adjust.
10479 * inf-child.c (inf_child_target): Adjust.
10481 2014-03-13 Doug Evans <xdje42@gmail.com>
10484 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10487 2014-03-13 Doug Evans <xdje42@gmail.com>
10489 * value.c (record_latest_value): Call release_value_or_incref
10490 instead of release_value.
10492 2014-03-13 Pedro Alves <palves@redhat.com>
10494 * procfs.c (procfs_target): Don't override to_shortname,
10495 to_longname or to_doc.
10497 2014-03-13 Pedro Alves <palves@redhat.com>
10499 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10500 Unix in user visible strings.
10502 2014-03-12 Stan Shebs <stan@codesourcery.com>
10504 * gdbtypes.h: Annotate comments for Doxygen, add a page
10505 block comment with some general info.
10507 2014-03-12 Pedro Alves <palves@redhat.com>
10509 * infcmd.c (prepare_execution_command): New function, factored out
10510 from several execution commands.
10511 (run_command_1, continue_command, step_1, jump_command)
10512 (signal_command, until_command, advance_command, finish_command)
10513 (attach_command): Use prepare_execution_command.
10515 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10517 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10518 (MAX_BPTS): Define.
10519 (MAX_WPTS): Define.
10520 (struct arm_linux_thread_points): Removed.
10521 (struct arm_linux_process_info): New.
10522 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10523 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10524 (arm_linux_find_breakpoints_by_tid): Removed.
10525 (struct arch_lwp_info): New.
10526 (arm_linux_find_process_pid): New functions.
10527 (arm_linux_add_process): New functions.
10528 (arm_linux_process_info_get): New functions.
10529 (arm_linux_forget_process): New function.
10530 (arm_linux_get_debug_reg_state): New function.
10531 (struct update_registers_data): New.
10532 (update_registers_callback): New function.
10533 (arm_linux_insert_hw_breakpoint1): Updated.
10534 (arm_linux_remove_hw_breakpoint1): Updated.
10535 (arm_linux_insert_hw_breakpoint): Updated.
10536 (arm_linux_remove_hw_breakpoint): Updated.
10537 (arm_linux_insert_watchpoint): Updated.
10538 (arm_linux_remove_watchpoint): Updated.
10539 (arm_linux_new_thread): Updated.
10540 (arm_linux_prepare_to_resume): New function.
10541 (arm_linux_new_fork): New function.
10542 (_initialize_arm_linux_nat): Updated.
10544 2014-03-12 Pedro Alves <palves@redhat.com>
10546 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10548 2014-03-12 Tom Tromey <tromey@redhat.com>
10550 * inf-child.c (return_zero): New function.
10551 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10552 * aix-thread.c (aix_thread_inferior_created): New function.
10553 (aix_thread_attach): Remove.
10554 (init_aix_thread_ops): Don't set to_attach.
10555 (_initialize_aix_thread): Register inferior_created observer.
10556 * corelow.c (init_core_ops): Don't set to_attach or
10557 to_create_inferior.
10558 * exec.c (init_exec_ops): Don't set to_attach or
10559 to_create_inferior.
10560 * infcmd.c (run_command_1): Use find_run_target. Make direct
10562 (attach_command): Use find_attach_target. Make direct target
10564 * record-btrace.c (init_record_btrace_ops): Don't set
10565 to_create_inferior.
10566 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10568 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10569 set to_create_inferior.
10570 * target.c (complete_target_initialization): Add assertion.
10571 (target_create_inferior): Remove.
10572 (find_default_attach, find_default_create_inferior): Remove.
10573 (find_attach_target, find_run_target): New functions.
10574 (find_default_is_async_p, find_default_can_async_p)
10575 (target_supports_non_stop, target_attach): Remove.
10576 (init_dummy_target): Don't set to_create_inferior or
10577 to_supports_non_stop.
10578 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10579 TARGET_DEFAULT_FUNC.
10580 <to_create_inferior>: Add comment.
10581 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10582 TARGET_DEFAULT_RETURN.
10583 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10584 (find_attach_target, find_run_target): Declare.
10585 (target_create_inferior): Remove.
10586 (target_has_execution_1): Update comment.
10587 (target_supports_non_stop): Remove.
10588 * target-delegates.c: Rebuild.
10590 2014-03-12 Pedro Alves <palves@redhat.com>
10592 * inf-child.h: Update comment to not mention Unix.
10594 2014-03-12 Pedro Alves <palves@redhat.com>
10596 * inf-child.c: Update top comment to not mention Unix. Add
10597 generic comment describing how this target is meant to be used.
10598 (inf_child_post_attach, inf_child_post_startup_inferior)
10599 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10602 2014-03-12 Pedro Alves <palves@redhat.com>
10604 * nto-procfs.c: Include inf-child.h.
10605 (procfs_ops): Delete global.
10606 (procfs_can_run): Delete method.
10607 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10608 target pointer instead of referencing procfs_ops.
10609 (procfs_prepare_to_store): Delete.
10610 (init_procfs_ops): Delete function.
10611 (procfs_target): New function, based on init_procfs_ops, but
10612 inherit inf_child_target.
10613 (_initialize_procfs): Use procfs_target.
10615 2014-03-12 Pedro Alves <palves@redhat.com>
10617 * windows-nat.c: Include inf-child.h.
10618 (windows_ops): Delete global.
10619 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10621 (init_windows_ops): Delete function.
10622 (windows_target): New function, based on init_windows_ops, but
10623 inherit inf_child_target.
10624 (_initialize_windows_nat): Use windows_target. Install x86
10625 specific target methods here.
10627 2014-03-10 Doug Evans <xdje42@gmail.com>
10629 * guile/guile.c (call_initialize_gdb_module): New function.
10630 (initialize_guile): Replace call to scm_init_guile with call to
10633 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10635 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10636 in call to TYPE_CODE macro.
10638 2014-03-10 Jerome Guitton <guitton@adacore.com>
10640 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10641 Resolve tagged types to full view.
10643 2014-03-10 Hui Zhu <hui@codesourcery.com>
10645 * target.h (target_insert_breakpoint): Remove "hardware" from its
10648 2014-03-07 Doug Evans <dje@google.com>
10650 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10652 2014-03-07 Doug Evans <dje@google.com>
10654 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10655 Remove unused local comp_dir_attr. Assert exactly one of
10656 stub_comp_unit_die, stub_comp_dir is non-NULL.
10658 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10660 * target.h (complete_target_initialization, add_target):
10663 2014-03-07 Pedro Alves <palves@redhat.com>
10665 * go32-nat.c: Include inf-child.h.
10666 (go32_ops): Delete global.
10667 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10669 (go32_create_inferior): Push the passed in target pointer instead
10670 of referencing go32_ops.
10671 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10672 (go32_target): New function, based on init_go32_ops, but inherit
10674 (_initialize_go32_nat): Use go32_target. Move parts of
10675 init_go32_ops here.
10677 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10679 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10680 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10681 SYMBOL_VALUE_ADDRESS.
10682 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10684 2014-03-06 Yao Qi <yao@codesourcery.com>
10686 * breakpoint.c (get_tracepoint_by_number): Remove argument
10687 optional_p. All callers updated. Adjust comments. Update
10689 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10691 2014-03-06 Yao Qi <yao@codesourcery.com>
10693 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10694 early if get_number returns zero. Use 'p' instead of 'args'.
10696 2014-03-06 Yao Qi <yao@codesourcery.com>
10698 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10701 2014-03-06 Yao Qi <yao@codesourcery.com>
10703 PR breakpoints/16508
10704 * tracepoint.c (check_trace_running): New function.
10705 (trace_find_command): Move code to check_trace_running and
10706 call check_trace_running.
10707 (trace_find_pc_command): Likewise.
10708 (trace_find_tracepoint_command): Likewise.
10709 (trace_find_line_command): Likewise.
10710 (trace_find_range_command): Likewise.
10711 * tracepoint.h (check_trace_running): Likewise.
10712 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10714 2014-03-06 Yao Qi <yao@codesourcery.com>
10716 * target.h (struct target_ops) <to_traceframe_info>: Use
10717 TARGET_DEFAULT_NORETURN (tcomplain ()).
10718 * target-delegates.c: Regenerated.
10720 2014-03-05 Pedro Alves <palves@redhat.com>
10723 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10724 void. Update comment.
10725 (dcache_xfer_memory): Delete.
10726 (dcache_read_memory_partial): New, based on the read bits of
10727 dcache_xfer_memory.
10728 (dcache_update): Add status parameter. Use ULONGEST for len, and
10729 adjust. Discard cache lines if the reason for the update was
10731 * dcache.h (dcache_xfer_memory): Delete declaration.
10732 (dcache_read_memory_partial): New declaration.
10733 (dcache_update): Update prototype.
10734 * target.c (raw_memory_xfer_partial): Update the dcache here.
10735 (memory_xfer_partial_1): Don't handle dcache writes here.
10737 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10739 * remote-sim.c (gdbsim_load): Add const to prog.
10741 2014-03-03 Tom Tromey <tromey@redhat.com>
10743 * elfread.c (probe_key): Change to bfd_data.
10744 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10745 now per-BFD, not per-objfile.
10746 * stap-probe.c (stap_probe_destroy): Update comment.
10747 (handle_stap_probe): Allocate on the per-BFD obstack.
10749 2014-03-03 Tom Tromey <tromey@redhat.com>
10751 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10752 * breakpoint.c (create_longjmp_master_breakpoint): Use
10754 (add_location_to_breakpoint, bkpt_probe_insert_location)
10755 (bkpt_probe_remove_location): Update.
10756 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10757 * elfread.c (elf_symfile_relocate_probe): Remove.
10758 (elf_probe_fns): Update.
10759 (insert_exception_resume_breakpoint): Change type of "probe"
10760 parameter to bound_probe.
10761 (check_exception_resume): Update.
10762 * objfiles.c (objfile_relocate1): Don't relocate probes.
10763 * probe.c (bound_probe_s): New typedef.
10764 (parse_probes): Use get_probe_address. Set sal's objfile.
10765 (find_probe_by_pc): Return a bound_probe.
10766 (collect_probes): Return a VEC(bound_probe_s).
10767 (compare_probes): Update.
10768 (gen_ui_out_table_header_info): Change type of "probes"
10770 (info_probes_for_ops): Update.
10771 (get_probe_address): New function.
10772 (probe_safe_evaluate_at_pc): Update.
10773 * probe.h (struct probe_ops) <get_probe_address>: New field.
10774 <set_semaphore, clear_semaphore>: Add objfile parameter.
10775 (struct probe) <objfile>: Remove field.
10777 <address>: Update comment.
10778 (struct bound_probe): New.
10779 (find_probe_by_pc): Return a bound_probe.
10780 (get_probe_address): Declare.
10781 * solib-svr4.c (struct probe_and_action) <address>: New field.
10782 (hash_probe_and_action, equal_probe_and_action): Update.
10783 (register_solib_event_probe): Add address parameter.
10784 (solib_event_probe_at): Update.
10785 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10787 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10788 (stap_get_probe_address): New function.
10789 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10790 (compile_probe_arg): Update.
10791 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10793 (handle_stap_probe): Don't relocate the probe.
10794 (stap_relocate): Remove.
10795 (stap_gen_info_probes_table_values): Update.
10796 (stap_probe_ops): Remove stap_relocate.
10797 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10798 (debug_sym_probe_fns): Update.
10799 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10800 * symtab.c (init_sal): Use memset.
10801 * symtab.h (struct symtab_and_line) <objfile>: New field.
10802 * tracepoint.c (start_tracing, stop_tracing): Update.
10804 2014-03-03 Tom Tromey <tromey@redhat.com>
10806 * probe.h (parse_probes, find_probe_by_pc)
10807 (find_probes_in_objfile): Fix comments.
10809 2014-03-02 Doug Evans <xdje42@gmail.com>
10811 * infrun.c (handle_signal_stop): Replace test for
10812 TARGET_WAITKIND_STOPPED with an assert.
10814 2014-03-02 Doug Evans <xdje42@gmail.com>
10816 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10818 2014-03-02 Doug Evans <xdje42@gmail.com>
10820 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10822 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10824 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10826 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10828 * i386obsd-nat.c: Include "obsd-nat.h".
10829 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10831 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10833 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10835 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10837 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10839 * mips64obsd-nat.c: Include "obsd-nath".
10840 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10842 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10844 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10846 * amd64obsd-nat.c: Include "obsd-nat,h.
10847 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10849 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10851 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10853 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10854 (find_overload_match): Update call to find_oload_champ.
10855 (find_oload_champ_namespace_loop): Likewise
10857 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10859 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10861 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10862 * config/sparc/obsd64.mh: New file.
10863 * sparc64obsd-nat.c: New file.
10865 * obsd-nat.h: New file.
10866 * obsd-nat.c: New file.
10867 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10868 (ALLDEPFILES): Add obsd-nat.c.
10870 2014-02-28 Tom Tromey <tromey@redhat.com>
10872 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10873 * cli-out.h (cli_ui_out_impl): Now const.
10874 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10875 * ui-out.c (struct ui_out) <impl>: Now const.
10876 (default_ui_out_impl): Now const.
10877 (ui_out_new): Make 'impl' parameter const.
10878 * ui-out.h (ui_out_new): Update.
10880 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10882 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10884 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10886 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10888 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10890 Additional PR 8882 fix.
10891 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10893 2014-02-27 Pedro Alves <palves@redhat.com>
10895 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10898 2014-02-27 Pedro Alves <palves@redhat.com>
10901 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10902 * nat/linux-waitpid.c: Include string.h.
10903 (status_to_str): Moved here and made extern.
10904 * nat/linux-waitpid.h (status_to_str): New declaration.
10906 2014-02-27 Hui Zhu <hui@codesourcery.com>
10909 * infrun.c (ptid_match): Move ...
10910 * common/ptid.c (ptid_match): ... here.
10911 * inferior.h (ptid_match): Move ...
10912 * common/ptid.h (ptid_match): ... here.
10914 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10916 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10917 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10920 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10922 * obsd-tdep.c (obsd_auxv_parse): New function.
10923 (obsd_init_abi): Set auxv_parse.
10925 * gdbarch.sh (auxv_parse): New.
10926 * gdbarch.h: Regenerated.
10927 * gdbarch.c: Regenerated.
10928 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10930 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10932 * guile/scm-value.c (gdbscm_history_append_x): New function.
10933 (value_functions): Add it.
10935 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10937 * dwarf2read.c (attr_value_as_address): New function.
10938 (dwarf2_find_base_address, read_call_site_scope): Use
10939 attr_value_as_address in place of DW_ADDR.
10940 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10941 the low and high addresses. Slight rework of the handling
10942 of the high pc being a constant form, and limit it to
10943 DWARF verson 4 or higher.
10944 (dwarf2_record_block_ranges): Likewise.
10945 (read_partial_die): Likewise.
10946 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10948 2014-02-26 Tom Tromey <tromey@redhat.com>
10950 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10952 2014-02-26 Tom Tromey <tromey@redhat.com>
10954 * elfread.c (elf_read_minimal_symbols): Return early if
10955 minimal symbols have already been read. Add "ei" parameter.
10956 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10957 * minsyms.c (prim_record_minimal_symbol_full): Update.
10958 * objfiles.h (struct objstats) <n_minsyms>: Move...
10959 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10960 * symmisc.c (print_objfile_statistics): Update.
10962 2014-02-26 Tom Tromey <tromey@redhat.com>
10964 * elfread.c (elf_read_minimal_symbols): New function, from
10966 (elf_symfile_read): Call it.
10968 2014-02-26 Tom Tromey <tromey@redhat.com>
10970 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10971 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10972 (lookup_minimal_symbol_solib_trampoline)
10973 (lookup_minimal_symbol_by_pc_section_1)
10974 (lookup_minimal_symbol_and_objfile): Update.
10975 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10976 Don't allocate a minimal symbol if minsyms have already been read.
10977 (build_minimal_symbol_hash_tables): Update.
10978 (install_minimal_symbols): Do nothing if minsyms already read.
10979 Use the per-BFD obstack.
10980 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10981 * objfiles.c (allocate_objfile): Call
10982 terminate_minimal_symbol_table later.
10983 (have_minimal_symbols): Update.
10984 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10985 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10986 Move from struct objfile.
10987 <minsyms_read>: New field.
10988 (struct objfile) <msymbols, minimal_symbol_count,
10989 msymbol_hash, msymbol_demangled_hash>: Move.
10990 (ALL_OBJFILE_MSYMBOLS): Update.
10991 * symfile.c (read_symbols): Set minsyms_read.
10992 (reread_symbols): Update.
10993 * symmisc.c (dump_objfile, dump_msymbols): Update.
10995 2014-02-26 Tom Tromey <tromey@redhat.com>
10997 * minsyms.c (msymbols_sort): Remove.
10998 * minsyms.h (msymbols_sort): Remove.
10999 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
11000 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
11001 * elfread.c (elf_symtab_read): Don't add section offsets.
11002 * xcoffread.c (record_minimal_symbol): Don't add section offset
11003 to minimal symbol address.
11004 * somread.c (text_offset, data_offset): Remove.
11005 (som_symtab_read): Don't add section offsets to minimal symbol
11007 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
11008 Don't add section offsets to minimal symbols.
11009 * coffread.c (coff_symtab_read): Don't add section offsets
11010 to minimal symbol addresses.
11011 * machoread.c (macho_symtab_add_minsym): Don't add section offset
11012 to minimal symbol addresses.
11013 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
11014 section offset to minimal symbol addresses.
11015 * mdebugread.c (parse_partial_symbols): Don't add section
11016 offset to minimal symbol addresses.
11017 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
11018 offset to minimal symbol addresses.
11020 2014-02-26 Tom Tromey <tromey@redhat.com>
11022 * ada-lang.c (ada_main_name): Update.
11023 (ada_add_standard_exceptions): Update.
11024 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11025 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11026 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
11027 * auxv.c (ld_so_xfer_auxv): Update.
11028 * avr-tdep.c (avr_scan_prologue): Update.
11029 * ax-gdb.c (gen_var_ref): Update.
11030 * blockframe.c (get_pc_function_start)
11031 (find_pc_partial_function_gnu_ifunc): Update.
11032 * breakpoint.c (create_overlay_event_breakpoint)
11033 (create_longjmp_master_breakpoint)
11034 (create_std_terminate_master_breakpoint)
11035 (create_exception_master_breakpoint): Update.
11036 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11037 * c-valprint.c (c_val_print): Update.
11038 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11039 * common/agent.c (agent_look_up_symbols): Update.
11040 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11041 * dwarf2loc.c (call_site_to_target_addr): Update.
11042 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
11043 * elfread.c (elf_gnu_ifunc_record_cache)
11044 (elf_gnu_ifunc_resolve_by_got): Update.
11045 * findvar.c (default_read_var_value): Update.
11046 * frame.c (inside_main_func): Update.
11047 * frv-tdep.c (frv_frame_this_id): Update.
11048 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11049 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11051 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
11052 (hppa_hpux_find_dummy_bpaddr): Update.
11053 * hppa-tdep.c (hppa_symbol_address): Update.
11054 * infcmd.c (until_next_command): Update.
11055 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
11057 * linespec.c (minsym_found, add_minsym): Update.
11058 * linux-nat.c (get_signo): Update.
11059 * linux-thread-db.c (inferior_has_bug): Update.
11060 * m32c-tdep.c (m32c_return_value)
11061 (m32c_m16c_address_to_pointer): Update.
11062 * m32r-tdep.c (m32r_frame_this_id): Update.
11063 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11064 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11065 * maint.c (maintenance_translate_address): Update.
11066 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
11067 (frob_address): New function.
11068 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
11069 frob_address. Rename parameter to "pc_in".
11070 (compare_minimal_symbols, compact_minimal_symbols): Use raw
11072 (find_solib_trampoline_target, minimal_symbol_upper_bound):
11074 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11075 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
11076 * objc-lang.c (find_objc_msgsend): Update.
11077 * objfiles.c (objfile_relocate1): Update.
11078 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11079 * p-valprint.c (pascal_val_print): Update.
11080 * parse.c (write_exp_msymbol): Update.
11081 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
11082 (ppc_elfv2_skip_entrypoint): Update.
11083 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11084 * printcmd.c (build_address_symbolic, msym_info)
11085 (address_info): Update.
11086 * proc-service.c (ps_pglobal_lookup): Update.
11087 * psymtab.c (find_pc_sect_psymtab_closer)
11088 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
11089 Change msymbol parameter to bound_minimal_symbol.
11090 * ravenscar-thread.c (get_running_thread_id): Update.
11091 * remote.c (remote_check_symbols): Update.
11092 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
11094 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11095 * solib-dsbt.c (lm_base): Update.
11096 * solib-frv.c (lm_base, main_got): Update.
11097 * solib-irix.c (locate_base): Update.
11098 * solib-som.c (som_solib_create_inferior_hook)
11099 (link_map_start): Update.
11100 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
11101 * solib-svr4.c (elf_locate_base, enable_break): Update.
11102 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11103 (flush_ea_cache): Update.
11104 * stabsread.c (define_symbol, scan_file_globals): Update.
11105 * stack.c (find_frame_funname): Update.
11106 * symfile-debug.c (debug_qf_expand_symtabs_matching)
11107 (debug_qf_find_pc_sect_symtab): Update.
11108 * symfile.c (simple_read_overlay_table)
11109 (simple_overlay_update): Update.
11110 * symfile.h (struct quick_symbol_functions)
11111 <find_pc_sect_symtab>: Change type of msymbol to
11112 bound_minimal_symbol.
11113 * symmisc.c (dump_msymbols): Update.
11114 * symtab.c (find_pc_sect_symtab_via_partial)
11115 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
11116 (search_symbols, print_msymbol_info): Update.
11117 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
11118 (MSYMBOL_VALUE_ADDRESS): Redefine.
11119 (BMSYMBOL_VALUE_ADDRESS): New macro.
11120 * tracepoint.c (scope_info): Update.
11121 * tui/tui-disasm.c (tui_find_disassembly_address)
11122 (tui_get_begin_asm_address): Update.
11123 * valops.c (find_function_in_inferior): Update.
11124 * value.c (value_static_field, value_fn_field): Update.
11126 2014-02-26 Tom Tromey <tromey@redhat.com>
11128 * ada-lang.c (ada_update_initial_language): Update.
11129 (ada_main_name, ada_has_this_exception_support): Update.
11130 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11131 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11132 * arm-tdep.c (arm_skip_stub): Update.
11133 * auxv.c (ld_so_xfer_auxv): Update.
11134 * avr-tdep.c (avr_scan_prologue): Update.
11135 * ax-gdb.c (gen_var_ref): Update.
11136 * breakpoint.c (struct breakpoint_objfile_data)
11137 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11138 type to bound_minimal_symbol.
11139 (create_overlay_event_breakpoint)
11140 (create_longjmp_master_breakpoint)
11141 (create_std_terminate_master_breakpoint)
11142 (create_exception_master_breakpoint): Update.
11143 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11144 * c-exp.y (classify_name): Update.
11145 * coffread.c (coff_symfile_read): Update.
11146 * common/agent.c (agent_look_up_symbols): Update.
11147 * d-lang.c (d_main_name): Update.
11148 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11149 * dec-thread.c (enable_dec_thread): Update.
11150 * dwarf2loc.c (call_site_to_target_addr): Update.
11151 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11152 * eval.c (evaluate_subexp_standard): Update.
11153 * findvar.c (struct minsym_lookup_data) <result>: Change type
11154 to bound_minimal_symbol.
11156 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11157 * frame.c (inside_main_func): Update.
11158 * frv-tdep.c (frv_frame_this_id): Update.
11159 * gcore.c (call_target_sbrk): Update.
11160 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11161 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11163 * go-lang.c (go_main_name): Update.
11164 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11165 (hppa_hpux_find_import_stub_for_addr): Update.
11166 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11167 Update. Change return type.
11168 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11170 * jit.c (jit_breakpoint_re_set_internal): Update.
11171 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11173 * linux-nat.c (get_signo): Update.
11174 * linux-thread-db.c (inferior_has_bug): Update
11175 * m32c-tdep.c (m32c_return_value)
11176 (m32c_m16c_address_to_pointer): Update.
11177 * m32r-tdep.c (m32r_frame_this_id): Update.
11178 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11179 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11180 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11181 lookup_minimal_symbol. Change return type.
11182 (lookup_minimal_symbol): Remove.
11183 (lookup_bound_minimal_symbol): Update.
11184 (lookup_minimal_symbol_text): Change return type.
11185 (lookup_minimal_symbol_solib_trampoline): Change return type.
11186 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11187 (lookup_minimal_symbol_solib_trampoline): Change return type.
11188 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11189 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11190 (value_nsstring, find_imps): Update.
11191 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11192 * p-lang.c (pascal_main_name): Update.
11193 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11194 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11195 * proc-service.c (ps_pglobal_lookup): Update.
11196 * ravenscar-thread.c (get_running_thread_msymbol): Change
11198 (has_ravenscar_runtime, get_running_thread_id): Update.
11199 * remote.c (remote_check_symbols): Update.
11200 * sol-thread.c (ps_pglobal_lookup): Update.
11201 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11202 * solib-dsbt.c (lm_base): Update.
11203 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11205 * solib-irix.c (locate_base): Update.
11206 * solib-som.c (som_solib_create_inferior_hook)
11207 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11209 * solib-spu.c (spu_enable_break): Update.
11210 * solib-svr4.c (elf_locate_base, enable_break): Update.
11211 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11212 (flush_ea_cache): Update.
11213 * stabsread.c (define_symbol): Update.
11214 * symfile.c (simple_read_overlay_table): Update.
11215 * symtab.c (find_pc_sect_line): Update.
11216 * tracepoint.c (scope_info): Update.
11217 * tui-disasm.c (tui_get_begin_asm_address): Update.
11218 * value.c (value_static_field): Update.
11220 2014-02-26 Tom Tromey <tromey@redhat.com>
11222 * minsyms.c (prim_record_minimal_symbol_full): Use
11223 SET_MSYMBOL_VALUE_ADDRESS.
11224 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11225 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11226 SET_MSYMBOL_VALUE_ADDRESS.
11227 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11228 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11230 2014-02-26 Tom Tromey <tromey@redhat.com>
11232 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11233 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11234 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11235 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11236 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11237 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11238 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11239 * ada-lang.c (ada_main_name): Update.
11240 (ada_lookup_simple_minsym): Update.
11241 (ada_make_symbol_completion_list): Update.
11242 (ada_add_standard_exceptions): Update.
11243 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11244 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11245 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11246 * arm-tdep.c (skip_prologue_function): Update.
11247 (arm_skip_stack_protector, arm_skip_stub): Update.
11248 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11249 (arm_wince_skip_main_prologue): Update.
11250 * auxv.c (ld_so_xfer_auxv): Update.
11251 * avr-tdep.c (avr_scan_prologue): Update.
11252 * ax-gdb.c (gen_var_ref): Update.
11253 * block.c (call_site_for_pc): Update.
11254 * blockframe.c (get_pc_function_start): Update.
11255 (find_pc_partial_function_gnu_ifunc): Update.
11256 * breakpoint.c (create_overlay_event_breakpoint): Update.
11257 (create_longjmp_master_breakpoint): Update.
11258 (create_std_terminate_master_breakpoint): Update.
11259 (create_exception_master_breakpoint): Update.
11260 (resolve_sal_pc): Update.
11261 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11262 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11264 * c-valprint.c (c_val_print): Update.
11265 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11266 * coffread.c (coff_symfile_read): Update.
11267 * common/agent.c (agent_look_up_symbols): Update.
11268 * dbxread.c (find_stab_function_addr): Update.
11269 (end_psymtab): Update.
11270 * dwarf2loc.c (call_site_to_target_addr): Update.
11271 (func_verify_no_selftailcall): Update.
11272 (tailcall_dump): Update.
11273 (call_site_find_chain_1): Update.
11274 (dwarf_expr_reg_to_entry_parameter): Update.
11275 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11276 (elf_gnu_ifunc_resolve_by_got): Update.
11277 * f-valprint.c (info_common_command): Update.
11278 * findvar.c (read_var_value): Update.
11279 * frame.c (get_prev_frame_1): Update.
11280 (inside_main_func): Update.
11281 * frv-tdep.c (frv_skip_main_prologue): Update.
11282 (frv_frame_this_id): Update.
11283 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11284 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11285 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11286 (gnuv3_skip_trampoline): Update.
11287 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11288 (hppa64_hpux_in_solib_call_trampoline): Update.
11289 (hppa_hpux_skip_trampoline_code): Update.
11290 (hppa64_hpux_search_dummy_call_sequence): Update.
11291 (hppa_hpux_find_import_stub_for_addr): Update.
11292 (hppa_hpux_find_dummy_bpaddr): Update.
11293 * hppa-tdep.c (hppa_symbol_address)
11294 (hppa_lookup_stub_minimal_symbol): Update.
11295 * i386-tdep.c (i386_skip_main_prologue): Update.
11296 (i386_pe_skip_trampoline_code): Update.
11297 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11298 * infcall.c (get_function_name): Update.
11299 * infcmd.c (until_next_command): Update.
11300 * jit.c (jit_breakpoint_re_set_internal): Update.
11301 (jit_inferior_init): Update.
11302 * linespec.c (minsym_found): Update.
11303 (add_minsym): Update.
11304 * linux-fork.c (info_checkpoints_command): Update.
11305 * linux-nat.c (get_signo): Update.
11306 * linux-thread-db.c (inferior_has_bug): Update.
11307 * m32c-tdep.c (m32c_return_value): Update.
11308 (m32c_m16c_address_to_pointer): Update.
11309 (m32c_m16c_pointer_to_address): Update.
11310 * m32r-tdep.c (m32r_frame_this_id): Update.
11311 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11312 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11313 * maint.c (maintenance_translate_address): Update.
11314 * minsyms.c (add_minsym_to_hash_table): Update.
11315 (add_minsym_to_demangled_hash_table): Update.
11316 (msymbol_objfile): Update.
11317 (lookup_minimal_symbol): Update.
11318 (iterate_over_minimal_symbols): Update.
11319 (lookup_minimal_symbol_text): Update.
11320 (lookup_minimal_symbol_by_pc_name): Update.
11321 (lookup_minimal_symbol_solib_trampoline): Update.
11322 (lookup_minimal_symbol_by_pc_section_1): Update.
11323 (lookup_minimal_symbol_and_objfile): Update.
11324 (prim_record_minimal_symbol_full): Update.
11325 (compare_minimal_symbols): Update.
11326 (compact_minimal_symbols): Update.
11327 (build_minimal_symbol_hash_tables): Update.
11328 (install_minimal_symbols): Update.
11329 (terminate_minimal_symbol_table): Update.
11330 (find_solib_trampoline_target): Update.
11331 (minimal_symbol_upper_bound): Update.
11332 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11333 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11334 (mips_skip_pic_trampoline_code): Update.
11335 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11336 * objc-lang.c (selectors_info): Update.
11337 (classes_info): Update.
11338 (find_methods): Update.
11339 (find_imps): Update.
11340 (find_objc_msgsend): Update.
11341 * objfiles.c (objfile_relocate1): Update.
11342 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11343 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11344 * p-valprint.c (pascal_val_print): Update.
11345 * parse.c (write_exp_msymbol): Update.
11346 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11347 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11348 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11349 * printcmd.c (build_address_symbolic): Update.
11350 (sym_info): Update.
11351 (address_info): Update.
11352 * proc-service.c (ps_pglobal_lookup): Update.
11353 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11354 (find_pc_sect_psymtab): Update.
11355 * python/py-framefilter.c (py_print_frame): Update.
11356 * ravenscar-thread.c (get_running_thread_id): Update.
11357 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11359 * remote.c (remote_check_symbols): Update.
11360 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11361 (rs6000_skip_trampoline_code): Update.
11362 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11363 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11364 * solib-dsbt.c (lm_base): Update.
11365 * solib-frv.c (lm_base): Update.
11366 (main_got): Update.
11367 * solib-irix.c (locate_base): Update.
11368 * solib-som.c (som_solib_create_inferior_hook): Update.
11369 (som_solib_desire_dynamic_linker_symbols): Update.
11370 (link_map_start): Update.
11371 * solib-spu.c (spu_enable_break): Update.
11372 (ocl_enable_break): Update.
11373 * solib-svr4.c (elf_locate_base): Update.
11374 (enable_break): Update.
11375 * spu-tdep.c (spu_get_overlay_table): Update.
11376 (spu_catch_start): Update.
11377 (flush_ea_cache): Update.
11378 * stabsread.c (define_symbol): Update.
11379 (scan_file_globals): Update.
11380 * stack.c (find_frame_funname): Update.
11381 (frame_info): Update.
11382 * symfile.c (simple_read_overlay_table): Update.
11383 (simple_overlay_update): Update.
11384 * symmisc.c (dump_msymbols): Update.
11385 * symtab.c (fixup_section): Update.
11386 (find_pc_sect_line): Update.
11387 (skip_prologue_sal): Update.
11388 (search_symbols): Update.
11389 (print_msymbol_info): Update.
11390 (rbreak_command): Update.
11391 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11392 (completion_list_objc_symbol): Update.
11393 (default_make_symbol_completion_list_break_on): Update.
11394 * tracepoint.c (scope_info): Update.
11395 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11396 (tui_get_begin_asm_address): Update.
11397 * valops.c (find_function_in_inferior): Update.
11398 * value.c (value_static_field): Update.
11399 (value_fn_field): Update.
11401 2014-02-26 Tom Tromey <tromey@redhat.com>
11403 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11404 bound minimal symbols. Move code that knows about minsym
11406 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11408 * minsyms.h (minimal_symbol_upper_bound): Declare.
11409 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11410 minimal_symbol_upper_bound.
11412 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11414 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11415 Use the type's name if its basic type does not have a tag.
11417 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11419 * dwarf2read.c (read_subrange_type): Add comment.
11421 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11423 * dwarf2read.c (update_enumeration_type_from_children): New
11424 function, mostly extracted from process_structure_scope.
11425 (read_enumeration_type): Call update_enumeration_type_from_children.
11426 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11427 and flag_flag_enum fields.
11429 2014-02-26 Pedro Alves <palves@redhat.com>
11431 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11432 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11433 to_xfer_partial method.
11435 2014-02-26 Pedro Alves <palves@redhat.com>
11437 * target.c (complete_target_initialization): Don't install
11438 default_xfer_partial as to_xfer_partial hook.
11439 (nomemory): Delete.
11440 (update_current_target): Don't INHERIT nor de_fault
11441 deprecated_xfer_memory. Delete de_fault macro.
11442 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11443 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11444 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11447 2014-02-26 Pedro Alves <palves@redhat.com>
11449 * go32-nat.c (my_write_child): New function.
11450 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11451 (go32_xfer_partial): New function.
11452 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11453 Instead install a to_xfer_partial hook.
11455 2014-02-26 Pedro Alves <palves@redhat.com>
11457 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11458 to_xfer_partial helper. Rewrite.
11459 (procfs_xfer_partial): New function.
11460 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11461 Install a to_xfer_partial hook.
11463 2014-02-26 Pedro Alves <palves@redhat.com>
11465 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11466 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11467 (m32r_xfer_partial): New function.
11468 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11469 Install a to_xfer_partial hook.
11471 2014-02-26 Pedro Alves <palves@redhat.com>
11473 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11475 (mips_xfer_partial): New function.
11476 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11477 hook. Install a to_xfer_partial hook.
11479 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11481 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11482 * gdbtypes.c (create_array_type_with_stride): New function,
11483 renaming create_array_type, but with an added parameter
11484 called "bit_stride".
11485 (create_array_type): Re-implement using
11486 create_array_type_with_stride.
11487 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11488 and DW_AT_bit_stride attributes.
11490 2014-02-26 Pedro Alves <palves@redhat.com>
11492 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11493 task-specific breakpoints.
11495 2014-02-25 Pedro Alves <palves@redhat.com>
11497 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11498 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11500 2014-02-25 Stan Shebs <stan@codesourcery.com>
11502 * defs.h: Annotate comments for Doxygen.
11504 2014-02-25 Tom Tromey <tromey@redhat.com>
11506 * target.h (target_ignore): Don't declare.
11507 * target.c (target_ignore): Remove.
11509 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11512 * auto-load.c (auto_load_objfile_script_1): Change filename to
11515 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11517 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11518 documentation. Adjust prototype to match the target_ops
11519 to_xfer_partial method. Adjust implementation accordingly.
11521 2014-02-25 Hui Zhu <hui@codesourcery.com>
11523 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11524 to_traceframe_info.
11526 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11528 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11529 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11530 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11531 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11532 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11533 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11534 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11535 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11537 (rl78_register_type): Use a data pointer type for SP and
11538 new pseudo registers mentioned above. Use a 16 bit integer
11539 type for all other register pairs.
11540 (rl78_register_name, rl78_g10_register_name): Update for
11541 new pseudo registers.
11542 (rl78_pseudo_register_read): Likewise.
11543 (rl78_pseudo_register_write): Likewise.
11544 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11545 to the newly added pseudo registers.
11547 2014-02-24 Doug Evans <dje@google.com>
11549 * value.c (record_latest_value): Fix comment.
11550 * printcmd.c (print_command_1): Remove code to handle -1 return from
11551 record_latest_value.
11553 2014-02-24 Pedro Alves <palves@redhat.com>
11555 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11556 deprecated_xfer_memory hook.
11557 (procfs_xfer_partial): Call procfs_xfer_memory instead
11558 of the deprecated_xfer_memory target hook.
11559 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11562 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11564 * windows-nat.c (windows_xfer_shared_libraries): Return
11565 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11566 requested object is TARGET_OBJECT_LIBRARIES.
11568 2014-02-24 Yao Qi <yao@codesourcery.com>
11570 * target.h (enum target_xfer_status)
11571 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11572 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11574 * corefile.c (memory_error_message): User updated.
11575 * exec.c (section_table_read_available_memory): Likewise.
11576 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11577 * target.c (target_xfer_status_to_string): Likewise.
11578 (raw_memory_xfer_partial): Likewise.
11579 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11580 * valops.c (read_value_memory): Likewise.
11581 * exec.h: Update comments.
11583 2014-02-24 Yao Qi <yao@codesourcery.com>
11585 * target.c (target_xfer_status_to_string): Rename argument err
11587 * target.h (target_xfer_status_to_string): Update declaration.
11588 Replace target_xfer_error_to_string with
11589 target_xfer_status_to_string in comment.
11591 2014-02-24 Yao Qi <yao@codesourcery.com>
11593 * mips-linux-nat.c (super_close): Update its type.
11594 (mips_linux_close): Pass 'self' to super_close.
11596 2014-02-24 Yao Qi <yao@codesourcery.com>
11598 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11599 * corefile.c (read_memory): Adjusted.
11600 * target.c (target_write_with_progress): Adjusted.
11602 2014-02-23 Yao Qi <yao@codesourcery.com>
11604 Revert two patches:
11606 2013-10-25 Yao Qi <yao@codesourcery.com>
11608 * remote.c (remote_traceframe_info): Return early if
11609 traceframe is not selected.
11611 2013-07-19 Yao Qi <yao@codesourcery.com>
11613 * target.c (update_current_target): Change the default action
11614 of 'to_traceframe_info' from tcomplain to return_zero.
11615 * target.h (struct target_ops) <to_traceframe_info>: Add more
11618 2014-02-23 Yao Qi <yao@codesourcery.com>
11620 * valops.c (read_value_memory): Rewrite it. Call
11621 target_xfer_partial in a loop.
11622 * exec.h (section_table_available_memory): Remove declaration.
11623 Move comments to ...
11624 * exec.c (section_table_available_memory): ... here. Make it
11627 2014-02-23 Yao Qi <yao@codesourcery.com>
11629 * exec.c (section_table_read_available_memory): New function.
11630 * exec.h (section_table_read_available_memory): Declare.
11631 * ctf.c (ctf_xfer_partial): Call
11632 section_table_read_available_memory.
11633 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11635 2014-02-23 Yao Qi <yao@codesourcery.com>
11637 * ctf.c (ctf_xfer_partial): Move code to ...
11638 * exec.c (exec_read_partial_read_only): ... it. New function.
11639 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11640 * tracefile.c: Include "exec.h".
11641 * exec.h (exec_read_partial_read_only): Declare.
11643 2014-02-23 Yao Qi <yao@codesourcery.com>
11645 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11646 (tfile_has_memory): Remove.
11647 (init_tfile_ops): Don't set fields to_has_all_memory and
11648 to_has_memory of tfile_ops.
11649 * tracefile.c (tracefile_has_all_memory): New function.
11650 (tracefile_has_memory): New function.
11651 (init_tracefile_ops): Initialize fields to_has_all_memory and
11652 to_has_memory of 'ops'.
11654 2014-02-23 Yao Qi <yao@codesourcery.com>
11656 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11657 (ctf_thread_alive, ctf_get_trace_status): Remove.
11658 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11659 init_tracefile_ops.
11660 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11661 (tfile_has_stack, tfile_has_registers): Remove.
11662 (tfile_thread_alive): Remove.
11663 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11664 init_tracefile_ops.
11665 * tracefile.c (tracefile_has_stack): New function.
11666 (tracefile_has_registers): New function.
11667 (tracefile_thread_alive): New function.
11668 (tracefile_get_trace_status): New function.
11669 (init_tracefile_ops): New function.
11670 * tracefile.h (init_tracefile_ops): Declare.
11672 2014-02-23 Yao Qi <yao@codesourcery.com>
11674 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11675 (O_LARGEFILE): Likewise.
11676 (tfile_ops): Likewise.
11677 (TRACE_HEADER_SIZE): Likewise.
11678 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11679 (cur_data_size): Likewise.
11680 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11681 (tfile_close, tfile_files_info): Likewise.
11682 (tfile_get_trace_status): Likewise.
11683 (tfile_get_tracepoint_status): Likewise.
11684 (tfile_get_traceframe_address): Likewise.
11685 (tfile_trace_find, match_blocktype): Likewise.
11686 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11687 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11688 (tfile_get_trace_state_variable_value): Likewise.
11689 (tfile_has_all_memory, tfile_has_memory): Likewise.
11690 (tfile_has_stack, tfile_has_registers): Likewise.
11691 (tfile_thread_alive, build_traceframe_info): Likewise.
11692 (tfile_traceframe_info, init_tfile_ops): Likewise.
11693 (_initialize_tracepoint): Don't call init_tfile_ops
11694 and add_target_with_completer.
11695 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11696 exec.h, completer.h and filenames.h.
11697 (_initialize_tracefile_tfile): New function.
11699 2014-02-23 Yao Qi <yao@codesourcery.com>
11701 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11703 (HFILES_NO_SRCDIR): Add tracefile.h.
11704 * ctf.c: Include "tracefile.h".
11705 * tracefile.h: New file.
11706 * tracefile.c: New file
11707 * tracefile-tfile.c: New file.
11708 * tracepoint.c: Include "tracefile.h".
11709 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11710 (stop_reason_names): Add const.
11711 (trace_file_writer_xfree): Move it to tracefile.c.
11712 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11713 (trace_save_ctf): Likewise.
11714 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11715 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11716 (tfile_write_header, tfile_write_regblock_type): Likewise.
11717 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11718 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11719 (tfile_write_raw_data, tfile_end): Likewise.
11720 (tfile_trace_file_writer_new): Likewise.
11721 (free_uploaded_tp): Make it extern.
11722 (free_uploaded_tsv): Make it extern.
11723 (_initialize_tracepoint): Move code to register command 'tsave'
11725 * tracepoint.h (stop_reason_names): Declare.
11726 (struct trace_frame_write_ops): Move it to tracefile.h.
11727 (struct trace_file_write_ops): Likewise.
11728 (struct trace_file_writer): Likewise.
11729 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11731 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11734 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11736 (get_cores_used_by_process): New parameter num_cores, use it.
11737 (linux_xfer_osdata_processes): Pass num_cores to it.
11738 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11741 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11743 * target.c (memory_xfer_partial): Fix length arg in call to
11744 breakpoint_xfer_memory.
11746 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11749 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11750 number comes after the + or - signs. Adjust length of register
11751 name to be extracted.
11753 2014-02-20 Tom Tromey <tromey@redhat.com>
11755 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11756 (ada_varobj_ops): Mark "extern".
11758 2014-02-20 Tom Tromey <tromey@redhat.com>
11760 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11762 2014-02-20 Doug Evans <xdje42@gmail.com>
11764 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11765 All callers updated.
11766 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11767 All callers updated.
11768 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11769 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11771 2014-02-20 lin zuojian <manjian2006@gmail.com>
11772 Joel Brobecker <brobecker@adacore.com>
11773 Doug Evans <xdje42@gmail.com>
11776 * dwarf2read.c (struct die_info): New member in_process.
11777 (reset_die_in_process): New function.
11778 (process_die): Set it at the start, reset when returning.
11779 (inherit_abstract_dies): Only call process_die if origin_child_die
11780 not already being processed.
11782 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11784 * windows-nat.c (handle_unload_dll): Add function documentation.
11785 (do_initial_windows_stuff): Add comment explaining why we wait
11786 until after inferior initialization has finished before
11787 processing all DLLs.
11789 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11791 * windows-nat.c (get_module_name): Delete.
11792 (windows_get_exec_module_filename): New function, mostly
11793 inspired from get_module_name.
11794 (windows_pid_to_exec_file): Replace call to get_module_name
11795 by call to windows_get_exec_module_filename.
11797 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11799 * windows-nat.c (handle_load_dll): Rewrite this function's
11800 introductory comment. Remove code using get_module_name
11801 to get the DLL's name.
11803 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11805 * windows-nat.c (get_windows_debug_event): Ignore
11806 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11807 if windows_initialization_done == 0.
11808 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11809 Adjust implementation to always load all DLLs.
11810 (do_initial_windows_stuff): Replace call to
11811 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11813 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11815 * windows-nat.c (_initialize_windows_nat): Deprecate the
11816 "dll-symbols" command. Turn the "add-shared-symbol-files"
11817 and "assf" aliases into commands, and deprecate them as well.
11818 * NEWS: Add entry explaining that "dll-symbols" and its two
11819 aliases are now deprecated.
11821 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11823 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11824 new-line in debug string. Remove trailing spaces.
11826 2014-02-19 Stan Shebs <stan@codesourcery.com>
11828 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11830 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11832 * NEWS: Add entry for the new feature
11833 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11836 2014-02-19 Stan Shebs <stan@codesourcery.com>
11838 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11840 2014-02-19 Pedro Alves <palves@redhat.com>
11842 * common/ptid.h (struct ptid): Mention that process_stratum
11843 targets should prefer ptid.lwp.
11845 2014-02-19 Pedro Alves <palves@redhat.com>
11847 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11848 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11849 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11850 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11851 store remote thread ids rather than ptid.tid.
11852 (_initialize_remote): Adjust.
11854 2014-02-19 Tom Tromey <tromey@redhat.com>
11856 * target.c (target_get_unwinder): Rewrite.
11857 (target_get_tailcall_unwinder): Rewrite.
11858 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11859 (record_btrace_to_get_tailcall_unwinder): New function.
11860 (init_record_btrace_ops): Update.
11861 * target.h (struct target_ops) <to_get_unwinder,
11862 to_get_tailcall_unwinder>: Now function pointers. Use
11863 TARGET_DEFAULT_RETURN.
11865 2014-02-19 Tom Tromey <tromey@redhat.com>
11867 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11869 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11871 2014-02-19 Tom Tromey <tromey@redhat.com>
11873 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11875 * target-delegates.c: Rebuild.
11876 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11877 TARGET_DEFAULT_FUNC.
11878 * target.c (default_target_decr_pc_after_break): Rename from
11879 forward_target_decr_pc_after_break. Simplify.
11880 (target_decr_pc_after_break): Rely on delegation.
11882 2014-02-19 Tom Tromey <tromey@redhat.com>
11884 * target.c (update_current_target): Do not INHERIT to_doc or
11885 to_magic. Do not de_fault to_open or to_close.
11887 2014-02-19 Tom Tromey <tromey@redhat.com>
11889 * gcore.h (objfile_find_memory_regions): Declare.
11890 * gcore.c (objfile_find_memory_regions): No longer static. Add
11892 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11893 * exec.c: Include gcore.h.
11894 (exec_set_find_memory_regions): Remove.
11895 (exec_find_memory_regions): Remove.
11896 (exec_do_find_memory_regions): Remove.
11897 (init_exec_ops): Update.
11898 * defs.h (exec_set_find_memory_regions): Remove.
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11902 * target-delegates.c: Rebuild.
11903 * target.h (struct target_ops) <to_extra_thread_info,
11904 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11905 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11906 not 0, in TARGET_DEFAULT_RETURN.
11908 2014-02-19 Tom Tromey <tromey@redhat.com>
11910 * target.c (complete_target_initialization): Remove casts. Use
11911 return_zero_has_execution.
11912 (return_zero): Add "ignore" argument.
11913 (return_zero_has_execution): New function.
11914 (init_dummy_target): Remove casts. Use
11915 return_zero_has_execution.
11917 2014-02-19 Tom Tromey <tromey@redhat.com>
11919 * target.c (update_current_target): Update comments. Do not
11920 INHERIT to_stratum.
11922 2014-02-19 Tom Tromey <tromey@redhat.com>
11924 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11926 * corelow.c (core_read_description): Delegate when needed.
11927 * remote.c (remote_read_description): Delegate when needed.
11928 * target-delegates.c: Rebuild.
11929 * target.c (target_read_description): Rewrite.
11930 * target.h (struct target_ops) <to_read_description>: Update
11931 comment. Use TARGET_DEFAULT_RETURN.
11933 2014-02-19 Tom Tromey <tromey@redhat.com>
11935 * target-delegates.c: Rebuild.
11936 * target.c (update_current_target): Don't inherit or default
11938 (find_default_run_target): Check against delegate_can_run.
11939 * target.h (struct target_ops) <to_can_run>: Use
11940 TARGET_DEFAULT_RETURN.
11942 2014-02-19 Tom Tromey <tromey@redhat.com>
11944 * target-delegates.c: Rebuild.
11945 * target.c (target_disconnect): Unconditionally delegate.
11946 * target.h (struct target_ops) <to_disconnect>: Use
11947 TARGET_DEFAULT_NORETURN.
11949 2014-02-19 Tom Tromey <tromey@redhat.com>
11951 * record.c (record_stop): Unconditionally delegate.
11952 * target-delegates.c: Rebuild.
11953 * target.c (target_stop_recording): Unconditionally delegate.
11954 * target.h (struct target_ops) <to_stop_recording>: Use
11955 TARGET_DEFAULT_IGNORE.
11957 2014-02-19 Tom Tromey <tromey@redhat.com>
11959 * target-delegates.c: Rebuild.
11960 * target.c (target_enable_btrace): Unconditionally delegate.
11961 * target.h (struct target_ops) <to_enable_btrace>: Use
11962 TARGET_DEFAULT_NORETURN.
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11966 * target-delegates.c: Rebuild.
11967 * target.c (target_read_btrace): Unconditionally delegate.
11968 * target.h (struct target_ops) <to_read_btrace>: Use
11969 TARGET_DEFAULT_NORETURN.
11971 2014-02-19 Tom Tromey <tromey@redhat.com>
11973 * target-delegates.c: Rebuild.
11974 * target.c (target_teardown_btrace): Unconditionally delegate.
11975 * target.h (struct target_ops) <to_teardown_btrace>: Use
11976 TARGET_DEFAULT_NORETURN.
11978 2014-02-19 Tom Tromey <tromey@redhat.com>
11980 * target-delegates.c: Rebuild.
11981 * target.c (target_disable_btrace): Unconditionally delegate.
11982 * target.h (struct target_ops) <to_disable_btrace>: Use
11983 TARGET_DEFAULT_NORETURN.
11985 2014-02-19 Tom Tromey <tromey@redhat.com>
11987 * target-delegates.c: Rebuild.
11988 * target.c (default_search_memory): New function.
11989 (simple_search_memory): Update comment.
11990 (target_search_memory): Unconditionally delegate.
11991 * target.h (struct target_ops) <to_search_memory>: Use
11992 TARGET_DEFAULT_FUNC.
11994 2014-02-19 Tom Tromey <tromey@redhat.com>
11996 * auxv.c (default_auxv_parse): No longer static.
11997 (target_auxv_parse): Unconditionally delegate.
11998 * auxv.h (default_auxv_parse): Declare.
11999 * target-delegates.c: Rebuild.
12000 * target.c: Include auxv.h.
12001 * target.h (struct target_ops) <to_auxv_parse>: Use
12002 TARGET_DEFAULT_FUNC.
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target-delegates.c: Rebuild.
12007 * target.c (target_memory_map): Unconditionally delegate.
12008 * target.h (struct target_ops) <to_memory_map>: Use
12009 TARGET_DEFAULT_RETURN.
12011 2014-02-19 Tom Tromey <tromey@redhat.com>
12013 * target-delegates.c: Rebuild.
12014 * target.c (target_thread_alive): Unconditionally delegate.
12015 * target.h (struct target_ops) <to_thread_alive>: Use
12016 TARGET_DEFAULT_RETURN.
12018 2014-02-19 Tom Tromey <tromey@redhat.com>
12020 * target-delegates.c: Rebuild.
12021 * target.c (target_save_record): Unconditionally delegate.
12022 * target.h (struct target_ops) <to_save_record>: Use
12023 TARGET_DEFAULT_NORETURN.
12025 2014-02-19 Tom Tromey <tromey@redhat.com>
12027 * target-delegates.c: Rebuild.
12028 * target.c (target_delete_record): Unconditionally delegate.
12029 * target.h (struct target_ops) <to_delete_record>: Use
12030 TARGET_DEFAULT_NORETURN.
12032 2014-02-19 Tom Tromey <tromey@redhat.com>
12034 * target-delegates.c: Rebuild.
12035 * target.c (target_record_is_replaying): Unconditionally
12037 * target.h (struct target_ops) <to_record_is_replaying>: Use
12038 TARGET_DEFAULT_RETURN.
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12042 * target-delegates.c: Rebuild.
12043 * target.c (target_goto_record_begin): Unconditionally delegate.
12044 * target.h (struct target_ops) <to_goto_record_begin>: Use
12045 TARGET_DEFAULT_NORETURN.
12047 2014-02-19 Tom Tromey <tromey@redhat.com>
12049 * target-delegates.c: Rebuild.
12050 * target.c (target_goto_record_end): Unconditionally delegate.
12051 * target.h (struct target_ops) <to_goto_record_end>: Use
12052 TARGET_DEFAULT_NORETURN.
12054 2014-02-19 Tom Tromey <tromey@redhat.com>
12056 * target-delegates.c: Rebuild.
12057 * target.c (target_goto_record): Unconditionally delegate.
12058 * target.h (struct target_ops) <to_goto_record>: Use
12059 TARGET_DEFAULT_NORETURN.
12061 2014-02-19 Tom Tromey <tromey@redhat.com>
12063 * target-delegates.c: Rebuild.
12064 * target.c (target_insn_history): Unconditionally delegate.
12065 * target.h (struct target_ops) <to_insn_history>: Use
12066 TARGET_DEFAULT_NORETURN.
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12070 * target-delegates.c: Rebuild.
12071 * target.c (target_insn_history_from): Unconditionally delegate.
12072 * target.h (struct target_ops) <to_insn_history_from>: Use
12073 TARGET_DEFAULT_NORETURN.
12075 2014-02-19 Tom Tromey <tromey@redhat.com>
12077 * target-delegates.c: Rebuild.
12078 * target.c (target_insn_history_range): Unconditionally delegate.
12079 * target.h (struct target_ops) <to_insn_history_range>: Use
12080 TARGET_DEFAULT_NORETURN.
12082 2014-02-19 Tom Tromey <tromey@redhat.com>
12084 * target-delegates.c: Rebuild.
12085 * target.c (target_call_history): Unconditionally delegate.
12086 * target.h (struct target_ops) <to_call_history>: Use
12087 TARGET_DEFAULT_NORETURN.
12089 2014-02-19 Tom Tromey <tromey@redhat.com>
12091 * target-delegates.c: Rebuild.
12092 * target.c (target_call_history_from): Unconditionally delegate.
12093 * target.h (struct target_ops) <to_call_history_from>: Use
12094 TARGET_DEFAULT_NORETURN.
12096 2014-02-19 Tom Tromey <tromey@redhat.com>
12098 * target-delegates.c: Rebuild.
12099 * target.c (target_call_history_range): Unconditionally delegate.
12100 * target.h (struct target_ops) <to_call_history_range>: Use
12101 TARGET_DEFAULT_NORETURN.
12103 2014-02-19 Tom Tromey <tromey@redhat.com>
12105 * target-delegates.c: Rebuild.
12106 * target.c (target_verify_memory): Unconditionally delegate.
12107 * target.h (struct target_ops) <to_verify_memory>: Use
12108 TARGET_DEFAULT_NORETURN.
12110 2014-02-19 Tom Tromey <tromey@redhat.com>
12112 * target-delegates.c: Rebuild.
12113 * target.c (target_core_of_thread): Unconditionally delegate.
12114 * target.h (struct target_ops) <to_core_of_thread>: Use
12115 TARGET_DEFAULT_RETURN.
12117 2014-02-19 Tom Tromey <tromey@redhat.com>
12119 * target-delegates.c: Rebuild.
12120 * target.c (target_flash_done): Unconditionally delegate.
12121 * target.h (struct target_ops) <to_flash_done>: Use
12122 TARGET_DEFAULT_NORETURN.
12124 2014-02-19 Tom Tromey <tromey@redhat.com>
12126 * target-delegates.c: Rebuild.
12127 * target.c (target_flash_erase): Unconditionally delegate.
12128 * target.h (struct target_ops) <to_flash_erase>: Use
12129 TARGET_DEFAULT_NORETURN.
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12133 * target-delegates.c: Rebuild.
12134 * target.c (target_get_section_table): Unconditionally delegate.
12135 * target.h (struct target_ops) <to_get_section_table>: Use
12136 TARGET_DEFAULT_RETURN.
12138 2014-02-19 Tom Tromey <tromey@redhat.com>
12140 * target-delegates.c: Rebuild.
12141 * target.c (target_pid_to_str): Unconditionally delegate.
12142 (init_dummy_target): Don't initialize to_pid_to_str.
12143 (default_pid_to_str): Rename from dummy_pid_to_str.
12144 * target.h (struct target_ops) <to_pid_to_str>: Use
12145 TARGET_DEFAULT_FUNC.
12147 2014-02-19 Tom Tromey <tromey@redhat.com>
12149 * target-delegates.c: Rebuild.
12150 * target.c (target_find_new_threads): Unconditionally delegate.
12151 * target.h (struct target_ops) <to_find_new_threads>: Use
12152 TARGET_DEFAULT_RETURN.
12154 2014-02-19 Tom Tromey <tromey@redhat.com>
12156 * target-delegates.c: Rebuild.
12157 * target.c (target_program_signals): Unconditionally delegate.
12158 * target.h (struct target_ops) <to_program_signals>: Use
12159 TARGET_DEFAULT_IGNORE.
12161 2014-02-19 Tom Tromey <tromey@redhat.com>
12163 * target-delegates.c: Rebuild.
12164 * target.c (target_pass_signals): Unconditionally delegate.
12165 * target.h (struct target_ops) <to_pass_signals>: Use
12166 TARGET_DEFAULT_IGNORE.
12168 2014-02-19 Tom Tromey <tromey@redhat.com>
12170 * target-delegates.c: Rebuild.
12171 * target.c (default_mourn_inferior): New function.
12172 (target_mourn_inferior): Unconditionally delegate.
12173 * target.h (struct target_ops) <to_mourn_inferior>: Use
12174 TARGET_DEFAULT_FUNC.
12176 2014-02-19 Tom Tromey <tromey@redhat.com>
12178 * target-delegates.c: Rebuild.
12179 * target.c (default_follow_fork): New function.
12180 (target_follow_fork): Unconditionally delegate.
12181 * target.h (struct target_ops) <to_follow_fork>: Use
12182 TARGET_DEFAULT_FUNC.
12184 2014-02-19 Tom Tromey <tromey@redhat.com>
12186 * target-delegates.c: Rebuild.
12187 * target.c (target_kill): Unconditionally delegate.
12188 * target.h (struct target_ops) <to_kill>: Use
12189 TARGET_DEFAULT_NORETURN.
12191 2014-02-19 Tom Tromey <tromey@redhat.com>
12193 * target-delegates.c: Rebuild.
12194 * target.c (target_masked_watch_num_registers): Unconditionally
12196 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12197 Use TARGET_DEFAULT_RETURN.
12199 2014-02-19 Tom Tromey <tromey@redhat.com>
12201 * target-delegates.c: Rebuild.
12202 * target.c (target_remove_mask_watchpoint): Unconditionally
12204 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12205 TARGET_DEFAULT_RETURN.
12207 2014-02-19 Tom Tromey <tromey@redhat.com>
12209 * target-delegates.c: Rebuild.
12210 * target.c (target_insert_mask_watchpoint): Unconditionally
12212 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12213 TARGET_DEFAULT_RETURN.
12215 2014-02-19 Tom Tromey <tromey@redhat.com>
12217 * target-delegates.c: Rebuild.
12218 * target.c (target_ranged_break_num_registers): Unconditionally
12220 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12221 Use TARGET_DEFAULT_RETURN.
12223 2014-02-19 Tom Tromey <tromey@redhat.com>
12225 * target-delegates.c: Rebuild.
12226 * target.c (target_fetch_registers): Unconditionally delegate.
12227 * target.h (struct target_ops) <to_fetch_registers>: Use
12228 TARGET_DEFAULT_NORETURN.
12230 2014-02-19 Tom Tromey <tromey@redhat.com>
12232 * target-delegates.c: Rebuild.
12233 * target.c (update_current_target): Don't inherit or default
12235 * target.h (struct target_ops) <to_stop>: Use
12236 TARGET_DEFAULT_IGNORE.
12238 2014-02-19 Tom Tromey <tromey@redhat.com>
12240 * target-delegates.c: Rebuild.
12241 * target.c (update_current_target): Don't inherit or default
12242 to_can_run_breakpoint_commands.
12243 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12244 Use TARGET_DEFAULT_RETURN.
12246 2014-02-19 Tom Tromey <tromey@redhat.com>
12248 * target-delegates.c: Rebuild.
12249 * target.c (update_current_target): Don't inherit or default
12250 to_supports_evaluation_of_breakpoint_conditions.
12251 * target.h (struct target_ops)
12252 <to_supports_evaluation_of_breakpoint_conditions>: Use
12253 TARGET_DEFAULT_RETURN.
12255 2014-02-19 Tom Tromey <tromey@redhat.com>
12257 * target-delegates.c: Rebuild.
12258 * target.c (update_current_target): Don't inherit or default
12259 to_augmented_libraries_svr4_read.
12260 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12261 Use TARGET_DEFAULT_RETURN.
12263 2014-02-19 Tom Tromey <tromey@redhat.com>
12265 * target-delegates.c: Rebuild.
12266 * target.c (update_current_target): Don't inherit or default
12268 * target.h (struct target_ops) <to_can_use_agent>: Use
12269 TARGET_DEFAULT_RETURN.
12271 2014-02-19 Tom Tromey <tromey@redhat.com>
12273 * target-delegates.c: Rebuild.
12274 * target.c (update_current_target): Don't inherit or default
12276 * target.h (struct target_ops) <to_use_agent>: Use
12277 TARGET_DEFAULT_NORETURN.
12279 2014-02-19 Tom Tromey <tromey@redhat.com>
12281 * target-delegates.c: Rebuild.
12282 * target.c (update_current_target): Don't inherit or default
12283 to_traceframe_info.
12284 (return_null): Remove.
12285 * target.h (struct target_ops) <to_traceframe_info>: Use
12286 TARGET_DEFAULT_RETURN.
12288 2014-02-19 Tom Tromey <tromey@redhat.com>
12290 * target-delegates.c: Rebuild.
12291 * target.c (update_current_target): Don't inherit or default
12292 to_static_tracepoint_markers_by_strid.
12293 * target.h (struct target_ops)
12294 <to_static_tracepoint_markers_by_strid>: Use
12295 TARGET_DEFAULT_NORETURN.
12297 2014-02-19 Tom Tromey <tromey@redhat.com>
12299 * target-delegates.c: Rebuild.
12300 * target.c (update_current_target): Don't inherit or default
12301 to_static_tracepoint_marker_at.
12302 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12303 Use TARGET_DEFAULT_RETURN.
12305 2014-02-19 Tom Tromey <tromey@redhat.com>
12307 * target-delegates.c: Rebuild.
12308 * target.c (update_current_target): Don't inherit or default
12309 to_set_permissions.
12310 * target.h (struct target_ops) <to_set_permissions>: Use
12311 TARGET_DEFAULT_IGNORE.
12313 2014-02-19 Tom Tromey <tromey@redhat.com>
12315 * target-delegates.c: Rebuild.
12316 * target.c (update_current_target): Don't inherit or default
12317 to_get_tib_address.
12318 * target.h (struct target_ops) <to_get_tib_address>: Use
12319 TARGET_DEFAULT_NORETURN.
12321 2014-02-19 Tom Tromey <tromey@redhat.com>
12323 * target-delegates.c: Rebuild.
12324 * target.c (update_current_target): Don't inherit or default
12325 to_set_trace_notes.
12326 * target.h (struct target_ops) <to_set_trace_notes>: Use
12327 TARGET_DEFAULT_RETURN.
12329 2014-02-19 Tom Tromey <tromey@redhat.com>
12331 * target-delegates.c: Rebuild.
12332 * target.c (update_current_target): Don't initialize
12333 to_set_trace_buffer_size.
12334 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12335 TARGET_DEFAULT_IGNORE.
12337 2014-02-19 Tom Tromey <tromey@redhat.com>
12339 * target-delegates.c: Rebuild.
12340 * target.c (update_current_target): Don't inherit or default
12341 to_set_circular_trace_buffer.
12342 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12343 TARGET_DEFAULT_IGNORE.
12345 2014-02-19 Tom Tromey <tromey@redhat.com>
12347 * target-delegates.c: Rebuild.
12348 * target.c (update_current_target): Don't inherit or default
12349 to_set_disconnected_tracing.
12350 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12351 TARGET_DEFAULT_IGNORE.
12353 2014-02-19 Tom Tromey <tromey@redhat.com>
12355 * target-delegates.c: Rebuild.
12356 * target.c (update_current_target): Don't inherit or default
12357 to_get_min_fast_tracepoint_insn_len.
12358 (return_minus_one): Remove.
12359 * target.h (struct target_ops)
12360 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12362 2014-02-19 Tom Tromey <tromey@redhat.com>
12364 * target-delegates.c: Rebuild.
12365 * target.c (update_current_target): Don't inherit or default
12366 to_get_raw_trace_data.
12367 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12368 TARGET_DEFAULT_NORETURN.
12370 2014-02-19 Tom Tromey <tromey@redhat.com>
12372 * target-delegates.c: Rebuild.
12373 * target.c (update_current_target): Don't inherit or default
12374 to_upload_trace_state_variables.
12375 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12376 Use TARGET_DEFAULT_RETURN.
12378 2014-02-19 Tom Tromey <tromey@redhat.com>
12380 * target-delegates.c: Rebuild.
12381 * target.c (update_current_target): Don't inherit or default
12382 to_upload_tracepoints.
12383 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12384 TARGET_DEFAULT_RETURN.
12386 2014-02-19 Tom Tromey <tromey@redhat.com>
12388 * target-delegates.c: Rebuild.
12389 * target.c (update_current_target): Don't inherit or default
12390 to_save_trace_data.
12391 * target.h (struct target_ops) <to_save_trace_data>: Use
12392 TARGET_DEFAULT_NORETURN.
12394 2014-02-19 Tom Tromey <tromey@redhat.com>
12396 * target-delegates.c: Rebuild.
12397 * target.c (update_current_target): Don't inherit or default
12398 to_get_trace_state_variable_value.
12399 * target.h (struct target_ops)
12400 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12402 2014-02-19 Tom Tromey <tromey@redhat.com>
12404 * target-delegates.c: Rebuild.
12405 * target.c (update_current_target): Don't inherit or default
12407 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12409 2014-02-19 Tom Tromey <tromey@redhat.com>
12411 * target-delegates.c: Rebuild.
12412 * target.c (update_current_target): Don't inherit or default
12414 * target.h (struct target_ops) <to_trace_stop>: Use
12415 TARGET_DEFAULT_NORETURN.
12417 2014-02-19 Tom Tromey <tromey@redhat.com>
12419 * target-delegates.c: Rebuild.
12420 * target.c (update_current_target): Don't inherit or default
12421 to_get_tracepoint_status.
12422 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12423 TARGET_DEFAULT_NORETURN.
12425 2014-02-19 Tom Tromey <tromey@redhat.com>
12427 * target-delegates.c: Rebuild.
12428 * target.c (update_current_target): Don't inherit or default
12429 to_get_trace_status.
12430 * target.h (struct target_ops) <to_get_trace_status>: Use
12431 TARGET_DEFAULT_RETURN.
12433 2014-02-19 Tom Tromey <tromey@redhat.com>
12435 * target-delegates.c: Rebuild.
12436 * target.c (update_current_target): Don't inherit or default
12438 * target.h (struct target_ops) <to_trace_start>: Use
12439 TARGET_DEFAULT_NORETURN.
12441 2014-02-19 Tom Tromey <tromey@redhat.com>
12443 * target-delegates.c: Rebuild.
12444 * target.c (update_current_target): Don't inherit or default
12445 to_trace_set_readonly_regions.
12446 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12447 Use TARGET_DEFAULT_NORETURN.
12449 2014-02-19 Tom Tromey <tromey@redhat.com>
12451 * target-delegates.c: Rebuild.
12452 * target.c (update_current_target): Don't inherit or default
12453 to_disable_tracepoint.
12454 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12455 TARGET_DEFAULT_NORETURN.
12457 2014-02-19 Tom Tromey <tromey@redhat.com>
12459 * target-delegates.c: Rebuild.
12460 * target.c (update_current_target): Don't inherit or default
12461 to_enable_tracepoint.
12462 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12463 TARGET_DEFAULT_NORETURN.
12465 2014-02-19 Tom Tromey <tromey@redhat.com>
12467 * target-delegates.c: Rebuild.
12468 * target.c (update_current_target): Don't inherit or default
12469 to_download_trace_state_variable.
12470 * target.h (struct target_ops) <to_download_trace_state_variable>:
12471 Use TARGET_DEFAULT_NORETURN.
12473 2014-02-19 Tom Tromey <tromey@redhat.com>
12475 * target-delegates.c: Rebuild.
12476 * target.c (update_current_target): Don't inherit or default
12477 to_can_download_tracepoint.
12478 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12479 TARGET_DEFAULT_RETURN.
12481 2014-02-19 Tom Tromey <tromey@redhat.com>
12483 * target-delegates.c: Rebuild.
12484 * target.c (update_current_target): Don't inherit or default
12485 to_download_tracepoint.
12486 * target.h (struct target_ops) <to_download_tracepoint>: Use
12487 TARGET_DEFAULT_NORETURN.
12489 2014-02-19 Tom Tromey <tromey@redhat.com>
12491 * target-delegates.c: Rebuild.
12492 * target.c (update_current_target): Don't inherit or default
12494 * target.h (struct target_ops) <to_trace_init>: Use
12495 TARGET_DEFAULT_RETURN.
12497 2014-02-19 Tom Tromey <tromey@redhat.com>
12499 * target-delegates.c: Rebuild.
12500 * target.c (update_current_target): Don't inherit or default
12501 to_supports_string_tracing.
12502 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12503 TARGET_DEFAULT_RETURN.
12505 2014-02-19 Tom Tromey <tromey@redhat.com>
12507 * target-delegates.c: Rebuild.
12508 * target.c (update_current_target): Don't inherit or default
12509 to_supports_enable_disable_tracepoint.
12510 * target.h (struct target_ops)
12511 <to_supports_enable_disable_tracepoint>: Use
12512 TARGET_DEFAULT_RETURN.
12514 2014-02-19 Tom Tromey <tromey@redhat.com>
12516 * target-delegates.c: Rebuild.
12517 * target.c (update_current_target): Don't inherit or default
12518 to_supports_multi_process.
12519 * target.h (struct target_ops) <to_supports_multi_process>: Use
12520 TARGET_DEFAULT_RETURN.
12522 2014-02-19 Tom Tromey <tromey@redhat.com>
12524 * target-delegates.c: Rebuild.
12525 * target.c (update_current_target): Don't inherit or default
12526 to_get_ada_task_ptid.
12527 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12528 TARGET_DEFAULT_FUNC.
12530 2014-02-19 Tom Tromey <tromey@redhat.com>
12532 * target-delegates.c: Rebuild.
12533 * target.c (update_current_target): Don't inherit or default
12534 to_thread_architecture.
12535 * target.h (struct target_ops) <to_thread_architecture>: Use
12536 TARGET_DEFAULT_FUNC.
12538 2014-02-19 Tom Tromey <tromey@redhat.com>
12540 * target-delegates.c: Rebuild.
12541 * target.c (update_current_target): Don't inherit or default
12542 to_execution_direction.
12543 * target.h (struct target_ops) <to_execution_direction>: Use
12544 TARGET_DEFAULT_FUNC.
12546 2014-02-19 Tom Tromey <tromey@redhat.com>
12548 * target-delegates.c: Rebuild.
12549 * target.c (update_current_target): Don't inherit or default
12550 to_can_execute_reverse.
12551 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12552 TARGET_DEFAULT_RETURN.
12553 (target_can_execute_reverse): Unconditionally delegate.
12555 2014-02-19 Tom Tromey <tromey@redhat.com>
12557 * target-delegates.c: Rebuild.
12558 * target.c (update_current_target): Don't inherit or default
12560 (dummy_goto_bookmark): Remove.
12561 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12562 * target.h (struct target_ops) <to_goto_bookmark>: Use
12563 TARGET_DEFAULT_NORETURN.
12565 2014-02-19 Tom Tromey <tromey@redhat.com>
12567 * target-delegates.c: Rebuild.
12568 * target.c (update_current_target): Don't inherit or default
12570 (dummy_get_bookmark): Remove.
12571 (init_dummy_target): Don't inherit or default to_get_bookmark.
12572 * target.h (struct target_ops) <to_get_bookmark>: Use
12573 TARGET_DEFAULT_NORETURN
12575 2014-02-19 Tom Tromey <tromey@redhat.com>
12577 * target-delegates.c: Rebuild.
12578 * target.c (update_current_target): Don't inherit or default
12579 to_make_corefile_notes.
12580 (init_dummy_target): Don't initialize to_make_corefile_notes.
12581 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12582 TARGET_DEFAULT_FUNC.
12584 2014-02-19 Tom Tromey <tromey@redhat.com>
12586 * target-delegates.c: Rebuild.
12587 * target.c (update_current_target): Don't inherit or default
12588 to_find_memory_regions.
12589 (init_dummy_target): Don't initialize to_find_memory_regions.
12590 * target.h (struct target_ops) <to_find_memory_regions>: Use
12591 TARGET_DEFAULT_FUNC.
12593 2014-02-19 Tom Tromey <tromey@redhat.com>
12595 * target-delegates.c: Rebuild.
12596 * target.c (update_current_target): Don't inherit or default
12598 * target.h (struct target_ops) <to_log_command>: Use
12599 TARGET_DEFAULT_IGNORE.
12600 (target_log_command): Unconditionally delegate.
12602 2014-02-19 Tom Tromey <tromey@redhat.com>
12604 * target-delegates.c: Rebuild.
12605 * target.c (update_current_target): Don't inherit or default
12606 to_pid_to_exec_file.
12607 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12608 TARGET_DEFAULT_RETURN.
12610 2014-02-19 Tom Tromey <tromey@redhat.com>
12612 * target-delegates.c: Rebuild.
12613 * target.c (update_current_target): Don't inherit or default
12615 (target_thread_name): Unconditionally delegate.
12616 * target.h (struct target_ops) <to_thread_name>: Use
12617 TARGET_DEFAULT_RETURN.
12619 2014-02-19 Tom Tromey <tromey@redhat.com>
12621 * target-delegates.c: Rebuild.
12622 * target.c (update_current_target): Don't inherit or default
12623 to_extra_thread_info.
12624 * target.h (struct target_ops) <to_extra_thread_info>: Use
12625 TARGET_DEFAULT_RETURN.
12627 2014-02-19 Tom Tromey <tromey@redhat.com>
12629 * target-delegates.c: Rebuild.
12630 * target.c (update_current_target): Don't inherit or default
12632 * target.h (struct target_ops) <to_has_exited>: Use
12633 TARGET_DEFAULT_RETURN..
12635 2014-02-19 Tom Tromey <tromey@redhat.com>
12637 * target-delegates.c: Rebuild.
12638 * target.c (update_current_target): Don't inherit or default
12639 to_set_syscall_catchpoint.
12640 (return_one): Remove.
12641 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12642 TARGET_DEFAULT_RETURN.
12644 2014-02-19 Tom Tromey <tromey@redhat.com>
12646 * target-delegates.c: Rebuild.
12647 * target.c (update_current_target): Don't inherit or default
12648 to_insert_exec_catchpoint.
12649 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12650 TARGET_DEFAULT_RETURN.
12652 2014-01-08 Tom Tromey <tromey@redhat.com>
12654 * target-delegates.c: Rebuild.
12655 * target.c (update_current_target): Don't inherit or default
12656 to_insert_exec_catchpoint.
12657 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12658 TARGET_DEFAULT_RETURN.
12660 2014-02-19 Tom Tromey <tromey@redhat.com>
12662 * target-delegates.c: Rebuild.
12663 * target.c (update_current_target): Don't inherit or default
12664 to_remove_vfork_catchpoint.
12665 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12666 TARGET_DEFAULT_RETURN.
12668 2014-02-19 Tom Tromey <tromey@redhat.com>
12670 * target-delegates.c: Rebuild.
12671 * target.c (update_current_target): Don't inherit or default
12672 to_insert_vfork_catchpoint.
12673 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12674 TARGET_DEFAULT_RETURN.
12676 2014-02-19 Tom Tromey <tromey@redhat.com>
12678 * target-delegates.c: Rebuild.
12679 * target.c (update_current_target): Don't inherit or default
12680 to_remove_fork_catchpoint.
12681 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12682 TARGET_DEFAULT_RETURN.
12684 2014-02-19 Tom Tromey <tromey@redhat.com>
12686 * target-delegates.c: Rebuild.
12687 * target.c (update_current_target): Don't inherit or default
12688 to_insert_fork_catchpoint.
12689 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12690 TARGET_DEFAULT_RETURN.
12692 2014-02-19 Tom Tromey <tromey@redhat.com>
12694 * target-delegates.c: Rebuild.
12695 * target.c (update_current_target): Don't inherit or default
12696 to_post_startup_inferior.
12697 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12698 TARGET_DEFAULT_IGNORE.
12700 2014-02-19 Tom Tromey <tromey@redhat.com>
12702 * target-delegates.c: Rebuild.
12703 * target.c (update_current_target): Don't inherit or default
12705 * target.h (struct target_ops) <to_load>: Use
12706 TARGET_DEFAULT_NORETURN.
12708 2014-02-19 Tom Tromey <tromey@redhat.com>
12710 * target-delegates.c: Rebuild.
12711 * target.c (update_current_target): Don't inherit or default
12713 * target.h (struct target_ops) <to_terminal_info>: Use
12714 TARGET_DEFAULT_FUNC.
12716 2014-02-19 Tom Tromey <tromey@redhat.com>
12718 * target-delegates.c: Rebuild.
12719 * target.c (update_current_target): Don't inherit or default
12720 to_terminal_save_ours.
12721 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12722 TARGET_DEFAULT_IGNORE.
12724 2014-02-19 Tom Tromey <tromey@redhat.com>
12726 * target-delegates.c: Rebuild.
12727 * target.c (update_current_target): Don't inherit or default
12729 * target.h (struct target_ops) <to_terminal_ours>: Use
12730 TARGET_DEFAULT_IGNORE.
12732 2014-02-19 Tom Tromey <tromey@redhat.com>
12734 * target-delegates.c: Rebuild.
12735 * target.c (update_current_target): Don't inherit or default
12736 to_terminal_ours_for_output.
12737 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12738 TARGET_DEFAULT_IGNORE.
12740 2014-02-19 Tom Tromey <tromey@redhat.com>
12742 * target-delegates.c: Rebuild.
12743 * target.c (update_current_target): Don't inherit or default
12744 to_terminal_inferior.
12745 * target.h (struct target_ops) <to_terminal_inferior>: Use
12746 TARGET_DEFAULT_IGNORE.
12748 2014-02-19 Tom Tromey <tromey@redhat.com>
12750 * target-delegates.c: Rebuild.
12751 * target.c (update_current_target): Don't inherit or default
12753 * target.h (struct target_ops) <to_terminal_init>: Use
12754 TARGET_DEFAULT_IGNORE.
12756 2014-02-19 Tom Tromey <tromey@redhat.com>
12758 * target-delegates.c: Rebuild.
12759 * target.c (update_current_target): Don't inherit or default
12760 to_can_accel_watchpoint_condition.
12761 * target.h (struct target_ops)
12762 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12764 2014-02-19 Tom Tromey <tromey@redhat.com>
12766 * target-delegates.c: Rebuild.
12767 * target.c (update_current_target): Don't inherit or default
12768 to_region_ok_for_hw_watchpoint.
12769 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12770 Use TARGET_DEFAULT_FUNC.
12772 2014-02-19 Tom Tromey <tromey@redhat.com>
12774 * target-delegates.c: Rebuild.
12775 * target.c (update_current_target): Don't inherit or default
12776 to_watchpoint_addr_within_range.
12777 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12778 Use TARGET_DEFAULT_FUNC.
12780 2014-02-19 Tom Tromey <tromey@redhat.com>
12782 * target-delegates.c: Rebuild.
12783 * target.c (update_current_target): Don't inherit or default
12784 to_remove_watchpoint.
12785 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12786 TARGET_DEFAULT_NORETURN.
12788 2014-02-19 Tom Tromey <tromey@redhat.com>
12790 * target-delegates.c: Rebuild.
12791 * target.c (update_current_target): Don't inherit or default
12792 to_insert_watchpoint.
12793 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12794 TARGET_DEFAULT_RETURN.
12796 2014-02-19 Tom Tromey <tromey@redhat.com>
12798 * target-delegates.c: Rebuild.
12799 * target.c (update_current_target): Don't inherit or default
12800 to_remove_hw_breakpoint.
12801 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12802 TARGET_DEFAULT_RETURN.
12804 2014-02-19 Tom Tromey <tromey@redhat.com>
12806 * target-delegates.c: Rebuild.
12807 * target.c (update_current_target): Don't inherit or default
12808 to_insert_hw_breakpoint.
12809 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12810 TARGET_DEFAULT_RETURN.
12812 2014-02-19 Tom Tromey <tromey@redhat.com>
12814 * target-delegates.c: Rebuild.
12815 * target.c (update_current_target): Don't inherit or default
12816 to_can_use_hw_breakpoint.
12817 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12818 TARGET_DEFAULT_RETURN.
12820 2014-02-19 Tom Tromey <tromey@redhat.com>
12822 * target-delegates.c: Rebuild.
12823 * target.c (update_current_target): Don't inherit or default
12825 * target.h (struct target_ops) <to_files_info>: Use
12826 TARGET_DEFAULT_IGNORE.
12828 2014-02-19 Tom Tromey <tromey@redhat.com>
12830 * target-delegates.c: Rebuild.
12831 * target.c (update_current_target): Don't inherit or default
12833 * target.h (struct target_ops) <to_store>: Use
12834 TARGET_DEFAULT_NORETURN.
12836 2014-02-19 Tom Tromey <tromey@redhat.com>
12838 * target-delegates.c: Rebuild.
12839 * target.c (update_current_target): Don't inherit or default
12841 * target.h (struct target_ops) <to_post_attach>: Use
12842 TARGET_DEFAULT_IGNORE.
12844 2014-02-19 Tom Tromey <tromey@redhat.com>
12846 * target-delegates.c: Rebuild.
12847 * target.c (update_current_target): Don't inherit or default
12849 (default_rcmd): New function.
12850 (do_monitor_command): Unconditionally delegate.
12851 * target.h (struct target_ops) <to_rmcd>: Use
12852 TARGET_DEFAULT_FUNC.
12854 2014-02-19 Tom Tromey <tromey@redhat.com>
12856 * target-delegates.c: Rebuild.
12857 * target.c (init_dummy_target): Don't initialize to_attach.
12858 (target_attach): Unconditionally delegate.
12859 * target.h (struct target_ops) <to_attach>: Use
12860 TARGET_DEFAULT_FUNC.
12862 2014-02-19 Tom Tromey <tromey@redhat.com>
12864 * target-delegates.c: Rebuild.
12865 * target.c (target_detach): Unconditionally delegate.
12866 (init_dummy_target): Don't initialize to_detach.
12867 * target.h (struct target_ops) <to_detach>: Use
12868 TARGET_DEFAULT_IGNORE.
12870 2014-02-19 Tom Tromey <tromey@redhat.com>
12872 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12874 (target_augmented_libraries_svr4_read): Add argument.
12875 * target.c (update_current_target): Update.
12876 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12879 2014-02-19 Tom Tromey <tromey@redhat.com>
12881 * target.h (struct target_ops) <to_call_history_range>: Add
12883 * target.c (target_call_history_range): Add argument.
12884 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12886 (record_btrace_call_history_from): Update.
12888 2014-02-19 Tom Tromey <tromey@redhat.com>
12890 * target.h (struct target_ops) <to_call_history_from>: Add
12892 * target.c (target_call_history_from): Add argument.
12893 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12896 2014-02-19 Tom Tromey <tromey@redhat.com>
12898 * target.h (struct target_ops) <to_call_history>: Add argument.
12899 * target.c (target_call_history): Add argument.
12900 * record-btrace.c (record_btrace_call_history): Add 'self'
12903 2014-02-19 Tom Tromey <tromey@redhat.com>
12905 * target.h (struct target_ops) <to_insn_history_range>: Add
12907 * target.c (target_insn_history_range): Add argument.
12908 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12910 (record_btrace_insn_history_from): Update.
12912 2014-02-19 Tom Tromey <tromey@redhat.com>
12914 * target.h (struct target_ops) <to_insn_history_from>: Add
12916 * target.c (target_insn_history_from): Add argument.
12917 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12920 2014-02-19 Tom Tromey <tromey@redhat.com>
12922 * target.h (struct target_ops) <to_insn_history>: Add argument.
12923 * target.c (target_insn_history): Add argument.
12924 * record-btrace.c (record_btrace_insn_history): Add 'self'
12927 2014-02-19 Tom Tromey <tromey@redhat.com>
12929 * target.h (struct target_ops) <to_goto_record>: Add argument.
12930 * target.c (target_goto_record): Add argument.
12931 * record-full.c (record_full_goto): Add 'self' argument.
12932 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12934 2014-02-19 Tom Tromey <tromey@redhat.com>
12936 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12937 * target.c (target_goto_record_end): Add argument.
12938 * record-full.c (record_full_goto_end): Add 'self' argument.
12939 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12941 2014-02-19 Tom Tromey <tromey@redhat.com>
12943 * target.h (struct target_ops) <to_goto_record_begin>: Add
12945 * target.c (target_goto_record_begin): Add argument.
12946 * record-full.c (record_full_goto_begin): Add 'self' argument.
12947 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12950 2014-02-19 Tom Tromey <tromey@redhat.com>
12952 * target.h (struct target_ops) <to_record_is_replaying>: Add
12954 * target.c (target_record_is_replaying): Add argument.
12955 * record-full.c (record_full_is_replaying): Add 'self' argument.
12956 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12958 (record_btrace_xfer_partial, record_btrace_store_registers)
12959 (record_btrace_prepare_to_store, record_btrace_resume)
12960 (record_btrace_wait, record_btrace_decr_pc_after_break)
12961 (record_btrace_find_new_threads, record_btrace_thread_alive):
12964 2014-02-19 Tom Tromey <tromey@redhat.com>
12966 * target.h (struct target_ops) <to_delete_record>: Add argument.
12967 * target.c (target_delete_record): Add argument.
12968 * record-full.c (record_full_delete): Add 'self' argument.
12970 2014-02-19 Tom Tromey <tromey@redhat.com>
12972 * target.h (struct target_ops) <to_save_record>: Add argument.
12973 * target.c (target_save_record): Add argument.
12974 * record-full.c (record_full_save): Add 'self' argument.
12975 (record_full_save): Add 'self' argument.
12977 2014-02-19 Tom Tromey <tromey@redhat.com>
12979 * target.h (struct target_ops) <to_info_record>: Add argument.
12980 * target.c (target_info_record): Add argument.
12981 * record.c (info_record_command): Add argument.
12982 * record-full.c (record_full_info): Add 'self' argument.
12983 * record-btrace.c (record_btrace_info): Add 'self' argument.
12985 2014-02-19 Tom Tromey <tromey@redhat.com>
12987 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12988 * target.c (target_stop_recording): Add argument.
12989 * record.c (record_stop): Add argument.
12990 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12993 2014-02-19 Tom Tromey <tromey@redhat.com>
12995 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12996 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12997 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12999 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
13000 (_initialize_amd64_linux_nat): Use it.
13001 * i386-linux-nat.c (i386_linux_read_btrace): New function.
13002 (_initialize_i386_linux_nat): Use it.
13004 2014-02-19 Tom Tromey <tromey@redhat.com>
13006 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
13007 * target.c (target_teardown_btrace): Add argument.
13008 * remote.c (remote_teardown_btrace): Add 'self' argument.
13009 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
13011 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
13014 2014-02-19 Tom Tromey <tromey@redhat.com>
13016 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
13017 * target.c (target_disable_btrace): Add argument.
13018 * remote.c (remote_disable_btrace): Add 'self' argument.
13019 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
13021 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
13024 2014-02-19 Tom Tromey <tromey@redhat.com>
13026 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
13027 * target.c (target_enable_btrace): Add argument.
13028 * remote.c (remote_enable_btrace): Add 'self' argument.
13029 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
13031 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
13034 2014-02-19 Tom Tromey <tromey@redhat.com>
13036 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
13037 (target_can_use_agent): Add argument.
13038 * target.c (update_current_target): Update.
13039 * remote.c (remote_can_use_agent): Add 'self' argument.
13040 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
13042 2014-02-19 Tom Tromey <tromey@redhat.com>
13044 * target.h (struct target_ops) <to_use_agent>: Add argument.
13045 (target_use_agent): Add argument.
13046 * target.c (update_current_target): Update.
13047 * remote.c (remote_use_agent): Add 'self' argument.
13048 * inf-child.c (inf_child_use_agent): Add 'self' argument.
13050 2014-02-19 Tom Tromey <tromey@redhat.com>
13052 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
13053 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
13054 (target_traceframe_info): Add argument.
13055 * target.c (update_current_target): Update.
13056 * remote.c (remote_traceframe_info): Add 'self' argument.
13057 * ctf.c (ctf_traceframe_info): Add 'self' argument.
13059 2014-02-19 Tom Tromey <tromey@redhat.com>
13061 * target.h (target_static_tracepoint_markers_by_strid): Add
13063 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
13065 * target.c (update_current_target): Update.
13066 * remote.c (struct target_ops)
13067 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13068 * linux-nat.c (struct target_ops)
13069 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13071 2014-02-19 Tom Tromey <tromey@redhat.com>
13073 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
13075 (target_static_tracepoint_marker_at): Add argument.
13076 * target.c (update_current_target): Update.
13077 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
13080 2014-02-19 Tom Tromey <tromey@redhat.com>
13082 * target.h (struct target_ops) <to_set_permissions>: Add argument.
13083 (target_set_permissions): Add argument.
13084 * target.c (update_current_target): Update.
13085 * remote.c (remote_set_permissions): Add 'self' argument.
13086 (remote_start_remote): Update.
13088 2014-02-19 Tom Tromey <tromey@redhat.com>
13090 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
13091 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
13092 (target_get_tib_address): Add argument.
13093 * target.c (update_current_target): Update.
13094 * remote.c (remote_get_tib_address): Add 'self' argument.
13096 2014-02-19 Tom Tromey <tromey@redhat.com>
13098 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
13099 (target_set_trace_notes): Add argument.
13100 * target.c (update_current_target): Update.
13101 * remote.c (remote_set_trace_notes): Add 'self' argument.
13103 2014-02-19 Tom Tromey <tromey@redhat.com>
13105 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
13107 (target_set_trace_buffer_size): Add argument.
13108 * target.c (update_current_target): Update.
13109 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
13111 2014-02-19 Tom Tromey <tromey@redhat.com>
13113 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
13115 (target_set_circular_trace_buffer): Add argument.
13116 * target.c (update_current_target): Update.
13117 * remote.c (remote_set_circular_trace_buffer): Add 'self'
13120 2014-02-19 Tom Tromey <tromey@redhat.com>
13122 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
13124 (target_set_disconnected_tracing): Add argument.
13125 * target.c (update_current_target): Update.
13126 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
13128 2014-02-19 Tom Tromey <tromey@redhat.com>
13130 * target.h (struct target_ops)
13131 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13132 (target_get_min_fast_tracepoint_insn_len): Add argument.
13133 * target.c (update_current_target): Update.
13134 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13137 2014-02-19 Tom Tromey <tromey@redhat.com>
13139 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13141 (target_get_raw_trace_data): Add argument.
13142 * target.c (update_current_target): Update.
13143 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13145 2014-02-19 Tom Tromey <tromey@redhat.com>
13147 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13149 (target_upload_trace_state_variables): Add argument.
13150 * target.c (update_current_target): Update.
13151 * remote.c (remote_upload_trace_state_variables): Add 'self'
13153 (remote_start_remote): Update.
13155 2014-02-19 Tom Tromey <tromey@redhat.com>
13157 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13159 (target_upload_tracepoints): Add argument.
13160 * target.c (update_current_target): Update.
13161 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13162 (remote_start_remote): Update.
13164 2014-02-19 Tom Tromey <tromey@redhat.com>
13166 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13167 (target_save_trace_data): Add argument.
13168 * target.c (update_current_target): Update.
13169 * remote.c (remote_save_trace_data): Add 'self' argument.
13171 2014-02-19 Tom Tromey <tromey@redhat.com>
13173 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13175 * target.h (struct target_ops)
13176 <to_get_trace_state_variable_value>: Add argument.
13177 (target_get_trace_state_variable_value): Add argument.
13178 * target.c (update_current_target): Update.
13179 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13181 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13183 2014-02-19 Tom Tromey <tromey@redhat.com>
13185 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13186 * target.h (struct target_ops) <to_trace_find>: Add argument.
13187 (target_trace_find): Add argument.
13188 * target.c (update_current_target): Update.
13189 * remote.c (remote_trace_find): Add 'self' argument.
13190 * ctf.c (ctf_trace_find): Add 'self' argument.
13192 2014-02-19 Tom Tromey <tromey@redhat.com>
13194 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13195 (target_trace_stop): Add argument.
13196 * target.c (update_current_target): Update.
13197 * remote.c (remote_trace_stop): Add 'self' argument.
13199 2014-02-19 Tom Tromey <tromey@redhat.com>
13201 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13202 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13204 (target_get_tracepoint_status): Add argument.
13205 * target.c (update_current_target): Update.
13206 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13208 2014-02-19 Tom Tromey <tromey@redhat.com>
13210 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13211 * target.h (struct target_ops) <to_get_trace_status>: Add
13213 (target_get_trace_status): Add argument.
13214 * target.c (update_current_target): Update.
13215 * remote.c (remote_get_trace_status): Add 'self' argument.
13216 (remote_start_remote, remote_can_download_tracepoint): Update.
13217 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13219 2014-02-19 Tom Tromey <tromey@redhat.com>
13221 * target.h (struct target_ops) <to_trace_start>: Add argument.
13222 (target_trace_start): Add argument.
13223 * target.c (update_current_target): Update.
13224 * remote.c (remote_trace_start): Add 'self' argument.
13226 2014-02-19 Tom Tromey <tromey@redhat.com>
13228 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13230 (target_trace_set_readonly_regions): Add argument.
13231 * target.c (update_current_target): Update.
13232 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13235 2014-02-19 Tom Tromey <tromey@redhat.com>
13237 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13239 (target_disable_tracepoint): Add argument.
13240 * target.c (update_current_target): Update.
13241 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13243 2014-02-19 Tom Tromey <tromey@redhat.com>
13245 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13247 (target_enable_tracepoint): Add argument.
13248 * target.c (update_current_target): Update.
13249 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13251 2014-02-19 Tom Tromey <tromey@redhat.com>
13253 * target.h (struct target_ops) <to_download_trace_state_variable>:
13255 (target_download_trace_state_variable): Add argument.
13256 * target.c (update_current_target): Update.
13257 * remote.c (remote_download_trace_state_variable): Add 'self'
13260 2014-02-19 Tom Tromey <tromey@redhat.com>
13262 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13264 (target_can_download_tracepoint): Add argument.
13265 * target.c (update_current_target): Update.
13266 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13268 2014-02-19 Tom Tromey <tromey@redhat.com>
13270 * target.h (struct target_ops) <to_download_tracepoint>: Add
13272 (target_download_tracepoint): Add argument.
13273 * target.c (update_current_target): Update.
13274 * remote.c (remote_download_tracepoint): Add 'self' argument.
13276 2014-02-19 Tom Tromey <tromey@redhat.com>
13278 * target.h (struct target_ops) <to_trace_init>: Add argument.
13279 (target_trace_init): Add argument.
13280 * target.c (update_current_target): Update.
13281 * remote.c (remote_trace_init): Add 'self' argument.
13283 2014-02-19 Tom Tromey <tromey@redhat.com>
13285 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13286 * target.c (target_fileio_readlink): Add argument.
13287 * remote.c (remote_hostio_readlink): Add 'self' argument.
13288 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13290 2014-02-19 Tom Tromey <tromey@redhat.com>
13292 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13293 * target.c (target_fileio_unlink): Add argument.
13294 * remote.c (remote_hostio_unlink): Add 'self' argument.
13295 (remote_file_delete): Update.
13296 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13298 2014-02-19 Tom Tromey <tromey@redhat.com>
13300 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13301 * target.c (target_fileio_close): Add argument.
13302 * remote.c (remote_hostio_close): Add 'self' argument.
13303 (remote_hostio_close_cleanup): Update.
13304 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13306 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13308 2014-02-19 Tom Tromey <tromey@redhat.com>
13310 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13311 * target.c (target_fileio_pread): Add argument.
13312 * remote.c (remote_hostio_pread): Add 'self' argument.
13313 (remote_bfd_iovec_pread, remote_file_get): Update.
13314 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13316 2014-02-19 Tom Tromey <tromey@redhat.com>
13318 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13319 * target.c (target_fileio_pwrite): Add argument.
13320 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13321 (remote_file_put): Update.
13322 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13324 2014-02-19 Tom Tromey <tromey@redhat.com>
13326 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13327 * target.c (target_fileio_open): Add argument.
13328 * remote.c (remote_hostio_open): Add 'self' argument.
13329 (remote_bfd_iovec_open): Add 'self' argument.
13330 (remote_file_put): Add 'self' argument.
13331 (remote_file_get): Add 'self' argument.
13332 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13334 2014-02-19 Tom Tromey <tromey@redhat.com>
13336 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13338 (target_can_run_breakpoint_commands): Add argument.
13339 * target.c (update_current_target): Update.
13340 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13342 (remote_insert_breakpoint): Add 'self' argument.
13343 (remote_insert_hw_breakpoint): Add 'self' argument.
13344 (remote_can_run_breakpoint_commands): Add 'self' argument.
13346 2014-02-19 Tom Tromey <tromey@redhat.com>
13348 * target.h (struct target_ops)
13349 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13350 (target_supports_evaluation_of_breakpoint_conditions): Add
13352 * target.c (update_current_target): Update.
13353 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13355 (remote_insert_breakpoint): Add 'self' argument.
13356 (remote_insert_hw_breakpoint): Add 'self' argument.
13357 (remote_supports_cond_breakpoints): Add 'self' argument.
13359 2014-02-19 Tom Tromey <tromey@redhat.com>
13361 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13363 (target_supports_string_tracing): Add argument.
13364 * target.c (update_current_target): Update.
13365 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13367 2014-02-19 Tom Tromey <tromey@redhat.com>
13369 * target.h (struct target_ops)
13370 <to_supports_disable_randomization>: Add argument.
13371 * target.c (find_default_supports_disable_randomization): Add
13373 (target_supports_disable_randomization): Add argument.
13374 (find_default_supports_disable_randomization): Add 'self'
13376 * remote.c (extended_remote_supports_disable_randomization): Add
13378 (remote_supports_disable_randomization): Add 'self' argument.
13379 (extended_remote_create_inferior): Update.
13380 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13383 2014-02-19 Tom Tromey <tromey@redhat.com>
13385 * target.h (struct target_ops)
13386 <to_supports_enable_disable_tracepoint>: Add argument.
13387 (target_supports_enable_disable_tracepoint): Add argument.
13388 * target.c (update_current_target): Update.
13389 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13392 2014-02-19 Tom Tromey <tromey@redhat.com>
13394 * target.h (struct target_ops) <to_supports_multi_process>: Add
13396 (target_supports_multi_process): Add argument.
13397 * target.c (update_current_target): Update.
13398 * remote.c (remote_supports_multi_process): Add 'self' argument.
13399 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13401 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13404 2014-02-19 Tom Tromey <tromey@redhat.com>
13406 * target.h (struct target_ops) <to_execution_direction>: Add
13408 (target_execution_direction): Add argument.
13409 * target.c (default_execution_direction): Add 'self' argument.
13410 * record-full.c (record_full_execution_direction): Add 'self'
13413 2014-02-19 Tom Tromey <tromey@redhat.com>
13415 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13417 (target_can_execute_reverse): Add argument.
13418 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13419 * record-full.c (record_full_can_execute_reverse): Add 'self'
13421 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13424 2014-02-19 Tom Tromey <tromey@redhat.com>
13426 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13427 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13429 (target_get_ada_task_ptid): Add argument.
13430 * target.c (update_current_target): Update.
13431 (default_get_ada_task_ptid): Add 'self' argument.
13432 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13433 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13434 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13436 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13438 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13440 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13442 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13443 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13446 2014-02-19 Tom Tromey <tromey@redhat.com>
13448 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13449 (target_goto_bookmark): Add argument.
13450 * target.c (dummy_goto_bookmark): Add 'self' argument.
13451 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13453 2014-02-19 Tom Tromey <tromey@redhat.com>
13455 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13456 (target_get_bookmark): Add argument.
13457 * target.c (dummy_get_bookmark): Add 'self' argument.
13458 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13460 2014-02-19 Tom Tromey <tromey@redhat.com>
13462 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13464 (target_make_corefile_notes): Add argument.
13465 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13466 * procfs.c (procfs_make_note_section): Add 'self' argument.
13467 (procfs_make_note_section): Add 'self' argument.
13468 (procfs_make_note_section): Add 'self' argument.
13469 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13471 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13472 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13473 * exec.c (exec_make_note_section): Add 'self' argument.
13474 (exec_make_note_section): Add 'self' argument.
13476 2014-02-19 Tom Tromey <tromey@redhat.com>
13478 * target.h (struct target_ops) <to_find_memory_regions>: Add
13480 (target_find_memory_regions): Add argument.
13481 * target.c (dummy_find_memory_regions): Add 'self' argument.
13482 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13483 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13484 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13485 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13486 * exec. (exec_do_find_memory_regions): New global.
13487 (exec_set_find_memory_regions): Rewrite.
13488 (exec_find_memory_regions): New function.
13489 (init_exec_ops): Use exec_find_memory_regions.
13491 2014-02-19 Tom Tromey <tromey@redhat.com>
13493 * target.h (struct target_ops) <to_supports_non_stop>: Add
13495 * target.c (find_default_supports_non_stop): Add argument.
13496 (target_supports_non_stop): Add argument.
13497 (find_default_supports_non_stop): Add 'self' argument.
13498 * remote.c (remote_supports_non_stop): Add 'self' argument.
13499 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13501 2014-02-19 Tom Tromey <tromey@redhat.com>
13503 * target.h (struct target_ops) <to_log_command>: Add argument.
13504 (target_log_command): Add argument.
13505 * serial.h (serial_log_command): Add 'self' argument.
13506 * serial.c (serial_log_command): Add 'self' argument.
13508 2014-02-19 Tom Tromey <tromey@redhat.com>
13510 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13511 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13513 (target_pid_to_exec_file): Add argument.
13514 * target.c (debug_to_pid_to_exec_file): Add argument.
13515 (update_current_target): Update.
13516 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13517 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13518 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13519 (linux_handle_extended_wait): Update.
13520 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13521 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13522 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13523 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13525 2014-02-19 Tom Tromey <tromey@redhat.com>
13527 * target.h (struct target_ops) <to_rcmd>: Add argument.
13528 (target_rcmd): Add argument.
13529 * target.c (debug_to_rcmd): Add argument.
13530 (update_current_target, do_monitor_command): Update.
13531 * remote.c (remote_rcmd): Add 'self' argument.
13532 * monitor.c (monitor_rcmd): Add 'self' argument.
13534 2014-02-19 Tom Tromey <tromey@redhat.com>
13536 * windows-nat.c (windows_stop): Add 'self' argument.
13537 * target.h (struct target_ops) <to_stop>: Add argument.
13538 * target.c (target_stop): Add argument.
13539 (debug_to_stop): Add argument.
13540 (update_current_target): Update.
13541 * remote.c (remote_stop): Add 'self' argument.
13542 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13543 (gdbsim_cntrl_c): Update.
13544 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13545 * procfs.c (procfs_stop): Add 'self' argument.
13546 * nto-procfs.c (procfs_stop): Add 'self' argument.
13547 * monitor.c (monitor_stop): Add 'self' argument.
13548 (monitor_open): Update.
13549 * linux-nat.c (linux_nat_stop): Add argument.
13550 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13551 * gnu-nat.c (gnu_stop): Add 'self' argument.
13552 * darwin-nat.c (darwin_stop): Add 'self' argument.
13554 2014-02-19 Tom Tromey <tromey@redhat.com>
13556 * target.h (struct target_ops) <to_thread_name>: Add argument.
13557 * target.c (target_thread_name): Add argument.
13558 (update_current_target): Update.
13559 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13561 2014-02-19 Tom Tromey <tromey@redhat.com>
13563 * target.h (struct target_ops) <to_extra_thread_info>: Add
13565 (target_extra_thread_info): Add argument.
13566 * target.c (update_current_target): Update.
13567 * remote.c (remote_threads_extra_info): Add 'self' argument.
13568 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13570 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13571 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13572 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13574 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13576 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13578 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13581 2014-02-19 Tom Tromey <tromey@redhat.com>
13583 * target.h (struct target_ops) <to_program_signals>: Add argument.
13584 * target.c (target_program_signals): Add argument.
13585 * remote.c (remote_program_signals): Add 'self' argument.
13587 2014-02-19 Tom Tromey <tromey@redhat.com>
13589 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13590 * target.c (target_pass_signals): Add argument.
13591 * remote.c (remote_pass_signals): Add 'self' argument.
13592 (remote_start_remote): Update.
13593 * procfs.c (procfs_pass_signals): Add 'self' argument.
13594 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13595 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13596 (linux_nat_create_inferior, linux_nat_attach): Update.
13598 2014-02-19 Tom Tromey <tromey@redhat.com>
13600 * windows-nat.c (windows_can_run): Add 'self' argument.
13601 * target.h (struct target_ops) <to_can_run>: Add argument.
13602 (target_can_run): Add argument.
13603 * target.c (debug_to_can_run): Add argument.
13604 (update_current_target): Update.
13605 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13606 * inf-child.c (inf_child_can_run): Add 'self' argument.
13607 * go32-nat.c (go32_can_run): Add 'self' argument.
13609 2014-02-19 Tom Tromey <tromey@redhat.com>
13611 * target.h (struct target_ops) <to_has_exited>: Add argument.
13612 (target_has_exited): Add argument.
13613 * target.c (debug_to_has_exited): Add argument.
13614 (update_current_target): Update.
13616 2014-02-19 Tom Tromey <tromey@redhat.com>
13618 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13620 (target_set_syscall_catchpoint): Add argument.
13621 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13623 * target.c (update_current_target): Update.
13625 2014-02-19 Tom Tromey <tromey@redhat.com>
13627 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13629 (target_remove_exec_catchpoint): Add argument.
13630 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13631 (update_current_target): Update.
13632 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13635 2014-02-19 Tom Tromey <tromey@redhat.com>
13637 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13639 (target_insert_exec_catchpoint): Add argument.
13640 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13641 (update_current_target): Update.
13642 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13645 2014-02-19 Tom Tromey <tromey@redhat.com>
13647 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13649 (target_remove_vfork_catchpoint): Add argument.
13650 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13651 (update_current_target): Update.
13652 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13655 2014-02-19 Tom Tromey <tromey@redhat.com>
13657 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13659 (target_insert_vfork_catchpoint): Add argument.
13660 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13661 (update_current_target): Update.
13662 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13665 2014-02-19 Tom Tromey <tromey@redhat.com>
13667 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13669 (target_remove_fork_catchpoint): Add argument.
13670 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13671 (update_current_target): Update.
13672 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13675 2014-02-19 Tom Tromey <tromey@redhat.com>
13677 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13679 (target_insert_fork_catchpoint): Add argument.
13680 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13681 (update_current_target): Update.
13682 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13685 2014-02-19 Tom Tromey <tromey@redhat.com>
13687 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13689 (target_post_startup_inferior): Add argument.
13690 * target.c (debug_to_post_startup_inferior): Add argument.
13691 (update_current_target): Update.
13692 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13694 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13696 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13698 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13700 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13702 (super_post_startup_inferior): Likewise.
13703 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13705 (super_post_startup_inferior): Likewise.
13706 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13707 Add 'self' argument.
13708 (super_post_startup_inferior): Likewise.
13710 2014-02-19 Tom Tromey <tromey@redhat.com>
13712 * target.h (struct target_ops) <to_load>: Add argument.
13713 * target.c (target_load): Add argument.
13714 (debug_to_load): Add argument.
13715 (update_current_target): Update.
13716 * remote.c (remote_load): Add 'self' argument.
13717 * remote-sim.c (gdbsim_load): Add 'self' argument.
13718 * remote-mips.c (mips_load): Add 'self' argument.
13719 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13720 * monitor.c (monitor_load): Add 'self' argument.
13721 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13723 2014-02-19 Tom Tromey <tromey@redhat.com>
13725 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13726 (target_terminal_info): Add argument.
13727 * target.c (debug_to_terminal_info): Add argument.
13728 (default_terminal_info): Likewise.
13729 * inflow.c (child_terminal_info): Add 'self' argument.
13730 * inferior.h (child_terminal_info): Add 'self' argument.
13731 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13733 2014-02-19 Tom Tromey <tromey@redhat.com>
13735 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13737 (target_terminal_save_ours): Add argument.
13738 * target.c (debug_to_terminal_save_ours): Add argument.
13739 (update_current_target): Update.
13740 * inflow.c (terminal_save_ours): Add 'self' argument.
13741 * inferior.h (terminal_save_ours): Add 'self' argument.
13743 2014-02-19 Tom Tromey <tromey@redhat.com>
13745 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13746 (target_terminal_ours): Add argument.
13747 * target.c (debug_to_terminal_ours): Add argument.
13748 (update_current_target): Update.
13749 * remote.c (remote_terminal_ours): Add 'self' argument.
13750 (remote_close): Update.
13751 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13752 * inflow.c (terminal_ours): Add 'self' argument.
13753 * inferior.h (terminal_ours): Add 'self' argument.
13754 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13756 2014-02-19 Pedro Alves <palves@redhat.com>
13757 Tom Tromey <tromey@redhat.com>
13759 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13761 (target_terminal_ours_for_output): Add argument.
13762 * target.c (debug_to_terminal_ours_for_output): Add argument.
13763 (update_current_target): Update.
13764 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13765 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13766 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13768 2014-02-19 Tom Tromey <tromey@redhat.com>
13770 * target.h (struct target_ops) <to_terminal_inferior>: Add
13772 * target.c (target_terminal_inferior): Add argument.
13773 (update_current_target): Update.
13774 * remote.c (remote_terminal_inferior): Add 'self' argument.
13775 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13776 * inflow.c (terminal_inferior): Add 'self' argument.
13777 * inferior.h (terminal_inferior): Add 'self' argument.
13778 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13779 (go32_terminal_inferior): Add 'self' argument.
13781 2014-02-19 Tom Tromey <tromey@redhat.com>
13783 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13784 (target_terminal_init): Add argument.
13785 * target.c (debug_to_terminal_init): Add argument.
13786 (update_current_target): Update.
13787 * inflow.c (terminal_init_inferior): Add 'self' argument.
13788 * inferior.h (terminal_init_inferior): Add 'self' argument.
13789 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13790 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13792 2014-02-19 Tom Tromey <tromey@redhat.com>
13794 * target.h (struct target_ops)
13795 <to_can_accel_watchpoint_condition>: Add argument.
13796 (target_can_accel_watchpoint_condition): Add argument.
13797 * target.c (debug_to_can_accel_watchpoint_condition): Add
13799 (update_current_target): Update.
13800 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13803 2014-02-19 Tom Tromey <tromey@redhat.com>
13805 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13807 (target_region_ok_for_hw_watchpoint): Add argument.
13808 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13809 (default_region_ok_for_hw_watchpoint): Add argument.
13810 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13811 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13813 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13815 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13817 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13819 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13821 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13823 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13824 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13826 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13827 Add 'self' argument.
13829 2014-02-19 Tom Tromey <tromey@redhat.com>
13831 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13833 (target_insert_watchpoint): Add argument.
13834 * target.c (debug_to_insert_watchpoint): Add argument.
13835 (update_current_target): Update.
13836 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13837 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13838 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13839 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13840 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13841 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13843 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13844 (procfs_insert_hw_watchpoint): Add 'self' argument.
13845 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13847 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13849 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13851 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13852 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13854 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13857 2014-02-19 Tom Tromey <tromey@redhat.com>
13859 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13861 (target_remove_watchpoint): Add argument.
13862 * target.c (debug_to_remove_watchpoint): Add argument.
13863 (update_current_target): Update.
13864 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13865 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13866 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13867 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13868 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13869 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13871 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13872 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13874 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13876 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13878 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13879 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13881 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13884 2014-02-19 Tom Tromey <tromey@redhat.com>
13886 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13888 (target_remove_hw_breakpoint): Add argument.
13889 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13890 (update_current_target): Update.
13891 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13892 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13894 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13895 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13897 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13900 2014-02-19 Tom Tromey <tromey@redhat.com>
13902 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13904 (target_insert_hw_breakpoint): Add argument.
13905 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13906 (update_current_target): Update.
13907 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13908 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13910 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13911 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13912 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13914 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13917 2014-02-19 Tom Tromey <tromey@redhat.com>
13919 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13921 (target_can_use_hardware_watchpoint): Add argument.
13922 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13923 (update_current_target): Update.
13924 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13926 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13928 * remote.c (remote_check_watch_resources): Add 'self' argument.
13929 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13930 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13932 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13933 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13935 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13937 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13939 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13941 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13943 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13945 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13946 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13948 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13951 2014-02-19 Tom Tromey <tromey@redhat.com>
13953 * target.h (struct target_ops) <to_post_attach>: Add argument.
13954 (target_post_attach): Add argument.
13955 * target.c (debug_to_post_attach): Add argument.
13956 (update_current_target): Update.
13957 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13958 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13959 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13960 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13961 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13963 2014-02-19 Tom Tromey <tromey@redhat.com>
13965 * windows-nat.c (windows_close): Add 'self' argument.
13966 * tracepoint.c (tfile_close): Add 'self' argument.
13967 * target.h (struct target_ops) <to_close>: Add argument.
13968 * target.c (target_close): Add argument.
13969 (update_current_target): Update.
13970 * remote.c (remote_close): Add 'self' argument.
13971 * remote-sim.c (gdbsim_close): Add 'self' argument.
13972 * remote-mips.c (mips_close): Add 'self' argument.
13973 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13974 * record-full.c (record_full_close): Add 'self' argument.
13975 * record-btrace.c (record_btrace_close): Add 'self' argument.
13976 * monitor.h (monitor_close): Add 'self' argument.
13977 * monitor.c (monitor_close): Add 'self' argument.
13978 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13979 * linux-nat.c (linux_nat_close): Add argument.
13980 * go32-nat.c (go32_close): Add 'self' argument.
13981 * exec.c (exec_close_1): Add 'self' argument.
13982 * ctf.c (ctf_close): Add 'self' argument.
13983 * corelow.c (core_close): Add 'self' argument.
13984 (core_close_cleanup): Update.
13985 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13986 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13988 2014-02-19 Tom Tromey <tromey@redhat.com>
13990 * remote.c (remote_load): New function.
13991 (init_remote_ops): Use it.
13993 2014-02-19 Tom Tromey <tromey@redhat.com>
13995 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13997 * common/linux-btrace.h (linux_supports_btrace): Update.
13998 * remote.c (remote_supports_btrace): Add "self" argument.
13999 * target-delegates.c: Rebuild.
14000 * target.c (target_supports_btrace): Remove.
14001 * target.h (struct target_ops) <to_supports_btrace>: Add
14002 target_ops argument.
14003 (target_supports_btrace): New define.
14005 2014-02-19 Tom Tromey <tromey@redhat.com>
14007 * record-full.c (record_full_beneath_to_resume_ops)
14008 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
14009 (record_full_beneath_to_wait)
14010 (record_full_beneath_to_store_registers_ops)
14011 (record_full_beneath_to_store_registers)
14012 (record_full_beneath_to_xfer_partial_ops)
14013 (record_full_beneath_to_xfer_partial)
14014 (record_full_beneath_to_insert_breakpoint_ops)
14015 (record_full_beneath_to_insert_breakpoint)
14016 (record_full_beneath_to_remove_breakpoint_ops)
14017 (record_full_beneath_to_remove_breakpoint)
14018 (record_full_beneath_to_stopped_by_watchpoint)
14019 (record_full_beneath_to_stopped_data_address)
14020 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
14021 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
14022 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
14023 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
14024 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
14025 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
14026 (tmp_to_stopped_data_address, tmp_to_async): Remove.
14027 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
14028 (record_full_resume, record_full_wait_1)
14029 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
14030 (record_full_store_registers, record_full_xfer_partial)
14031 (record_full_insert_breakpoint, record_full_remove_breakpoint)
14032 (record_full_async, record_full_core_xfer_partial): Use target
14034 * target-delegates.c: Rebuild.
14035 * target.c (current_xfer_partial): Remove.
14036 (update_current_target): Do not INHERIT or de_fault
14037 to_insert_breakpoint, to_remove_breakpoint,
14038 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
14039 to_is_async_p, to_async. Do not set to_xfer_partial field.
14040 (default_xfer_partial): Simplify.
14041 (current_xfer_partial): Remove.
14042 (target_wait, target_resume): Simplify.
14043 (find_default_can_async_p, find_default_is_async_p): Update.
14044 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
14045 to_xfer_partial, to_stopped_by_watchpoint,
14046 to_stopped_data_address.
14047 (target_store_registers): Simplify.
14048 (forward_target_remove_breakpoint)
14049 (forward_target_insert_breakpoint): Remove.
14050 (target_remove_breakpoint, target_insert_breakpoint)
14051 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
14052 * target.h (struct target_ops) <to_resume, to_wait,
14053 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
14054 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
14055 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
14057 (forward_target_remove_breakpoint)
14058 (forward_target_insert_breakpoint): Remove.
14059 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
14061 (record_btrace_insert_breakpoint): Delegate directly.
14063 2014-02-19 Tom Tromey <tromey@redhat.com>
14066 * target-delegates.c: New file.
14067 * target.c: Include target-delegates.c.
14068 (init_dummy_target): Call install_dummy_methods.
14069 (complete_target_initialization): Call install_delegators.
14070 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
14071 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
14072 * make-target-delegates: New file.
14074 2014-02-19 Tom Tromey <tromey@redhat.com>
14076 * record.c (find_record_target): Use find_target_at.
14077 * target.c (find_target_at): New function.
14078 * target.h (find_target_at): Declare.
14080 2014-02-19 Tom Tromey <tromey@redhat.com>
14082 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
14083 Add 'ops' argument.
14084 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
14086 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
14087 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
14089 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
14091 * linux-nat.c (save_sigtrap): Update.
14092 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
14093 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
14094 (linux_nat_close): Update.
14095 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
14097 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
14099 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
14100 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
14101 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
14102 (tmp_to_async): Add 'ops' argument.
14103 (record_full_stopped_by_watchpoint, record_full_async)
14104 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
14106 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
14107 (m32r_stopped_by_watchpoint): Add 'ops' argument.
14108 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
14109 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
14110 (remote_is_async_p, remote_async): Add 'ops' argument.
14111 (remote_stopped_data_address): Update.
14112 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
14113 * target.c (update_current_target)
14114 (find_default_can_async_p, find_default_is_async_p): Update.
14115 (init_dummy_target): Update.
14116 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
14117 * target.h (struct target_ops) <to_stopped_by_watchpoint,
14118 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
14119 (target_can_async_p, target_is_async_p, target_async)
14120 (target_stopped_by_watchpoint): Update.
14122 2014-02-19 Yao Qi <yao@codesourcery.com>
14125 * gdbarch.sh: Remove startup_gdbarch.
14126 * gdbarch.c: Regenerated.
14127 * gdbarch.h: Likewise.
14129 2014-02-17 Kevin Buettner <kevinb@redhat.com>
14131 * rl78-tdep.c (rl78_g10_register_name): New function.
14132 (rl78_return_value): Add g10 support.
14133 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14136 2014-02-17 Doug Evans <xdje42@gmail.com>
14138 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14139 (SUBDIR_GUILE_SRCS): Ditto.
14140 (scm-gsmob.o): Ditto.
14142 2014-02-17 Yao Qi <yao@codesourcery.com>
14144 * gnu-nat.c (ILL_RPC): Declare defined function.
14146 2014-02-17 Yao Qi <yao@codesourcery.com>
14148 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14149 mach_msg_type_number_t.
14150 (gnu_write_inferior): Likewise.
14152 2014-02-17 Yao Qi <yao@codesourcery.com>
14154 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14156 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14157 (inf_validate_procs, inf_signal): Likewise.
14158 (S_exception_raise_request): Likewise.
14159 (do_mach_notify_dead_name): Likewise.
14160 (steal_exc_port): Likewise.
14161 (gnu_read_inferior): Change 'copy_count''s type to
14162 mach_msg_type_number_t.
14163 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14166 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14168 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14169 flag. Adjust all users; in particular...
14170 (gnu_wait): ..., don't decrement its value in here...
14171 (gnu_create_inferior): ..., and instead set the flag in here,
14172 around the startup_inferior call, and call that one with
14173 START_INFERIOR_TRAPS_EXPECTED.
14175 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14176 (ILL_RPC): ... new macro.
14177 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14178 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14179 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14180 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14181 functions with ILL_RPC macro.
14182 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14183 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14184 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14185 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14186 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14187 (S_proc_getlogin_reply, S_proc_getsid_reply)
14188 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14189 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14190 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14191 (S_proc_getnports_reply, S_proc_is_important_reply)
14192 (S_proc_get_code_reply): New stub functions, generated with
14195 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14196 collected the type check structures.
14198 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14200 2014-02-14 Doug Evans <dje@google.com>
14202 * target.c (target_write_partial): Fix result type.
14204 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14206 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14207 the proper offsets to access fpregset_t.
14209 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14211 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14212 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14213 * h8300-tdep.c (setmachinelist): Remove global.
14214 * hppa-tdep.c (hppa_sigtramp): Remove global.
14215 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14216 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14217 * ravenscar-thread.c (update_target_observer): Remove global.
14218 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14220 2014-02-12 Tom Tromey <tromey@redhat.com>
14222 * common/rsp-low.c: Update comments.
14223 * common/rsp-low.h: Update comments.
14225 2014-02-12 Tom Tromey <tromey@redhat.com>
14227 * common/rsp-low.c (convert_ascii_to_int): Remove.
14228 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14230 2014-02-12 Tom Tromey <tromey@redhat.com>
14232 * common/rsp-low.h (unhexify): Don't declare.
14233 * common/rsp-low.c (unhexify): Remove.
14235 2014-02-12 Tom Tromey <tromey@redhat.com>
14237 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14238 * common/rsp-low.c (convert_int_to_ascii): Remove.
14240 2014-02-12 Tom Tromey <tromey@redhat.com>
14242 * common/rsp-low.h (hexify): Don't declare.
14243 * common/rsp-low.c (hexify): Remove.
14245 2014-02-12 Tom Tromey <tromey@redhat.com>
14247 * common/rsp-low.c (hexify): Never take strlen of argument.
14249 2014-02-12 Tom Tromey <tromey@redhat.com>
14251 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14252 * remote.c (extended_remote_run, remote_rcmd)
14253 (remote_download_trace_state_variable, remote_save_trace_data)
14254 (remote_set_trace_notes): Update.
14255 * tracepoint.c (encode_source_string, tfile_write_status)
14256 (tfile_write_uploaded_tsv): Update.
14258 2014-02-12 Tom Tromey <tromey@redhat.com>
14260 * tracepoint.c: Include rsp-low.h.
14261 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14262 * remote.c: Include rsp-low.h.
14263 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14264 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14265 (remote_unescape_input): Move to common/rsp-low.c.
14266 * common/rsp-low.h: New file.
14267 * common/rsp-low.c: New file.
14268 * Makefile.in (SFILES): Add common/rsp-low.c.
14269 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14270 (COMMON_OBS): Add rsp-low.o.
14271 (rsp-low.o): New target.
14273 2014-02-12 Tom Tromey <tromey@redhat.com>
14275 * utils.h: Include print-utils.h.
14276 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14277 (int_string, core_addr_to_string, core_addr_to_string_nz)
14278 (hex_string, hex_string_custom): Don't declare.
14279 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14280 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14281 (hex_string_custom, int_string, core_addr_to_string)
14282 (core_addr_to_string_nz, host_address_to_string): Move to
14283 common/print-utils.c.
14284 * common/print-utils.h: New file.
14285 * common/print-utils.c: New file
14286 * Makefile.in (SFILES): Add common/print-utils.c.
14287 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14288 (COMMON_OBS): Add print-utils.o.
14289 (print-utils.o): New target.
14291 2014-02-12 Tom Tromey <tromey@redhat.com>
14293 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14295 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14297 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14299 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14301 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14302 if a PT_IO ptrace request returns sucessfully but indicates that 0
14303 bytes were transferred.
14305 2014-02-12 Pedro Alves <palves@redhat.com>
14306 Kevin Buettner <kevinb@redhat.com>
14308 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14309 TYPE_INSTANCE_FLAG_CODE_SPACE.
14311 2014-02-12 Pedro Alves <palves@redhat.com>
14313 * h8300-tdep.c (pseudo_from_raw_register)
14314 (raw_from_pseudo_register): New functions.
14315 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14318 2014-02-12 Pedro Alves <palves@redhat.com>
14320 * h8300-tdep.c (h8300_register_sim_regno): New function.
14321 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14322 gdbarch_register_sim_regno hook.
14324 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14326 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14328 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14330 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14332 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14334 * obsd-tdep.h (obsd_init_abi): New prototype.
14335 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14336 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14337 (obsd_init_abi): New functions.
14338 * i386obsd-tdep.c: Include "obsd-tdep.h".
14339 (i386obsd_init_abi): Call obsd_init_abi.
14340 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14341 (amd64obsd_init_abi): Call obsd_init_abi.
14342 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14343 obsd-tdep.c to gdb_target_obs.
14345 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14347 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14348 double float arguments to 16-byte in the argument slots.
14350 2014-02-11 Doug Evans <xdje42@gmail.com>
14352 * configure.ac: Don't crash if pkg-config is not found and guile
14353 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14355 * configure: Regenerate.
14357 2014-02-11 Yao Qi <yao@codesourcery.com>
14359 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14360 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14361 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14362 * gnu-nat.c (gnu_xfer_memory): Likewise.
14363 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14364 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14365 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14366 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14368 2014-02-11 Yao Qi <yao@codesourcery.com>
14370 * target.h (enum target_xfer_error): Rename to ...
14371 (enum target_xfer_status): ... it. New. All users updated.
14372 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14374 (TARGET_XFER_STATUS_ERROR_P): New macro.
14375 (target_xfer_error_to_string): Remove declaration.
14376 (target_xfer_status_to_string): Declare.
14377 (target_xfer_partial_ftype): Adjust it.
14378 (struct target_ops) <to_xfer_partial>: Return
14379 target_xfer_status. Add argument xfered_len. Update
14381 * target.c (target_xfer_error_to_string): Rename to ...
14382 (target_xfer_status_to_string): ... it. New. All callers
14384 (target_read_live_memory): Likewise. Call target_xfer_partial
14385 instead of target_read.
14386 (memory_xfer_live_readonly_partial): Return
14387 target_xfer_status. Add argument xfered_len.
14388 (raw_memory_xfer_partial): Likewise.
14389 (memory_xfer_partial_1): Likewise.
14390 (memory_xfer_partial): Likewise.
14391 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14392 properly. Update debug message.
14393 (default_xfer_partial, current_xfer_partial): Likewise.
14394 (target_write_partial): Likewise.
14395 (target_read_partial): Likewise. All callers updated.
14396 (read_whatever_is_readable): Likewise.
14397 (target_write_with_progress): Likewise.
14398 (target_read_alloc_1): Likewise.
14400 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14401 * auxv.c (procfs_xfer_auxv): Likewise.
14402 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14403 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14404 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14405 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14406 * corefile.c (read_memory): Adjust.
14407 * corelow.c (core_xfer_partial): Likewise.
14408 * ctf.c (ctf_xfer_partial): Likewise.
14409 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14411 (darwin_xfer_partial): Likewise.
14412 * exec.c (section_table_xfer_memory_partial): Likewise. All
14414 (exec_xfer_partial): Likewise.
14415 * exec.h (section_table_xfer_memory_partial): Update
14417 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14419 (gnu_xfer_partial): Likewise.
14420 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14421 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14422 (ia64_hpux_xfer_solib_got): Likewise.
14423 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14424 type of 'partial_len' to ULONGEST.
14425 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14426 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14427 (linux_nat_xfer_partial): Likewise.
14428 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14429 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14430 * monitor.c (monitor_xfer_memory): Likewise.
14431 (monitor_xfer_partial): Likewise.
14432 * procfs.c (procfs_xfer_partial): Likewise.
14433 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14434 * record-full.c (record_full_xfer_partial): Likewise.
14435 (record_full_core_xfer_partial): Likewise.
14436 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14437 (gdbsim_xfer_partial): Likewise.
14438 * remote.c (remote_write_bytes_aux): Likewise. All callers
14440 (remote_write_bytes, remote_read_bytes): Likewise. All
14442 (remote_flash_erase): Likewise. All callers updated.
14443 (remote_write_qxfer): Likewise. All callers updated.
14444 (remote_read_qxfer): Likewise. All callers updated.
14445 (remote_xfer_partial): Likewise.
14446 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14447 (rs6000_xfer_shared_libraries): Likewise.
14448 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14449 (sol_thread_xfer_partial): Likewise.
14450 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14451 (sparc_xfer_partial): Likewise.
14452 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14454 (spu_xfer_partial): Likewise.
14455 * spu-multiarch.c (spu_xfer_partial): Likewise.
14456 * tracepoint.c (tfile_xfer_partial): Likewise.
14457 * windows-nat.c (windows_xfer_memory): Likewise.
14458 (windows_xfer_shared_libraries): Likewise.
14459 (windows_xfer_partial): Likewise.
14460 * valprint.c: Replace 'target_xfer_error' with
14461 'target_xfer_status' in comments.
14463 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14465 Checked in by Joel Brobecker <brobecker@adacore.com>.
14466 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14468 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14470 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14471 function parameters.
14473 2014-02-10 Will Newton <will.newton@linaro.org>
14475 * elfread.c (elf_rel_plt_read): Look for a .got section if
14476 looking up .got.plt fails.
14477 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14478 on address passed to elf_gnu_ifunc_record_cache.
14479 (elf_gnu_ifunc_resolve_addr): Likewise.
14480 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14482 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14484 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14485 (X_RETTURN): New macro.
14486 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14488 * sparc64-tdep.c (sparc64_init_abi): Hook
14489 sparc_in_function_epilogue_p.
14491 2014-02-10 Gary Benson <gbenson@redhat.com>
14493 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14494 Rename name_matcher to symbol_matcher.
14496 2014-02-10 Gary Benson <gbenson@redhat.com>
14498 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14499 Use expand_symtabs_file_matcher_ftype and
14500 expand_symtabs_symbol_matcher_ftype.
14502 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14504 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14505 (struct ada_symbol_cache): New.
14506 (ada_free_symbol_cache): Forward declare.
14507 (struct ada_pspace_data): New.
14508 (ada_pspace_data_handle): New static global.
14509 (get_ada_pspace_data, ada_pspace_data_cleanup)
14510 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14511 (cache_space, cache): Delete, now folded inside struct
14513 (ada_get_symbol_cache): New function.
14514 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14516 (_initialize_ada_language): Remove initialization of cache_space.
14517 Move call to observer_attach_inferior_exit up, grouping it
14518 with the other observer registrations inside this function.
14519 Rename command to be more general. Add call to
14520 register_program_space_data_with_cleanup.
14522 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14524 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14525 ada_new_objfile_observer.
14526 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14527 (_initialize_tasks): Update uses of ada_new_objfile_observer
14528 and ada_tasks_normal_stop_observer.
14530 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14532 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14533 returned by the 'Length attribute to integer.
14535 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14537 * ada-lang.c (_initialize_ada_language): Initialize
14538 cache_space obstack.
14540 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14542 * ada-lang.c (HASH_SIZE): New macro.
14543 (struct cache_entry): New type.
14544 (cache_space, cache): New static globals.
14545 (ada_clear_symbol_cache, find_entry): New functions.
14546 (lookup_cached_symbol, cache_symbol): Implement.
14547 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14548 (_initialize_ada_language): Attach ada_new_objfile_observer
14549 and ada_free_objfile_observer.
14551 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14553 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14554 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14555 struct block * parameter.
14556 (ada_lookup_symbol_list_worker): Constify local variable "block".
14557 Remove cast which is no longer necessary.
14559 2014-02-10 Doug Evans <xdje42@gmail.com>
14561 Add Guile as an extension language.
14562 * NEWS: Mention Guile scripting.
14563 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14564 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14565 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14566 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14567 (CLIBS): Add GUILE_LIBS.
14568 (install-guile): New rule.
14569 (guile.o): New rule.
14570 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14571 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14572 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14573 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14574 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14575 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14576 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14577 * configure.ac: New option --with-guile.
14578 * configure: Regenerate.
14579 * config.in: Regenerate.
14580 * auto-load.c: Remove #include "python/python.h". Add #include
14581 "gdb/section-scripts.h".
14582 (source_section_scripts): Handle Guile scripts.
14583 (_initialize_auto_load): Add name of Guile objfile script to
14584 scripts-directory help text.
14585 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14586 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14587 (struct breakpoint): New member scm_bp_object.
14588 * defs.h (enum command_control_type): New value guile_control.
14589 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14591 (show_user): Update comment.
14592 (_initialize_cli_cmds): Update help text for "show user". Update help
14593 text for max-user-call-depth.
14594 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14596 (multi_line_command_p): Add guile_control.
14597 (print_command_lines): Handle guile_control.
14598 (execute_control_command, recurse_read_control_structure): Ditto.
14599 (process_next_line): Recognize "guile" commands.
14600 * disasm.c (gdb_disassemble_info): Make non-static.
14601 * disasm.h: #include "dis-asm.h".
14602 (struct gdbarch): Add forward decl.
14603 (gdb_disassemble_info): Declare.
14604 * extension.c: #include "guile/guile.h".
14605 (extension_languages): Add guile.
14606 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14607 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14608 * gdbtypes.c (get_unsigned_type_max): New function.
14609 (get_signed_type_minmax): New function.
14610 * gdbtypes.h (get_unsigned_type_max): Declare.
14611 (get_signed_type_minmax): Declare.
14612 * guile/README: New file.
14613 * guile/guile-internal.h: New file.
14614 * guile/guile.c: New file.
14615 * guile/guile.h: New file.
14616 * guile/scm-arch.c: New file.
14617 * guile/scm-auto-load.c: New file.
14618 * guile/scm-block.c: New file.
14619 * guile/scm-breakpoint.c: New file.
14620 * guile/scm-disasm.c: New file.
14621 * guile/scm-exception.c: New file.
14622 * guile/scm-frame.c: New file.
14623 * guile/scm-gsmob.c: New file.
14624 * guile/scm-iterator.c: New file.
14625 * guile/scm-lazy-string.c: New file.
14626 * guile/scm-math.c: New file.
14627 * guile/scm-objfile.c: New file.
14628 * guile/scm-ports.c: New file.
14629 * guile/scm-pretty-print.c: New file.
14630 * guile/scm-safe-call.c: New file.
14631 * guile/scm-string.c: New file.
14632 * guile/scm-symbol.c: New file.
14633 * guile/scm-symtab.c: New file.
14634 * guile/scm-type.c: New file.
14635 * guile/scm-utils.c: New file.
14636 * guile/scm-value.c: New file.
14637 * guile/lib/gdb.scm: New file.
14638 * guile/lib/gdb/boot.scm: New file.
14639 * guile/lib/gdb/experimental.scm: New file.
14640 * guile/lib/gdb/init.scm: New file.
14641 * guile/lib/gdb/iterator.scm: New file.
14642 * guile/lib/gdb/printing.scm: New file.
14643 * guile/lib/gdb/types.scm: New file.
14644 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14645 (VPATH): Add $(GUILE_SRCDIR).
14646 (GUILE_DIR): New variable.
14647 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14648 (all): Add stamp-guile dependency.
14649 (stamp-guile): New rule.
14650 (clean-guile, install-guile, uninstall-guile): New rules.
14651 (install-only): Add install-guile dependency.
14652 (uninstall): Add uninstall-guile dependency.
14653 (clean): Add clean-guile dependency.
14655 2014-02-09 Doug Evans <xdje42@gmail.com>
14657 Revert this patch (which I approved, mea culpa).
14659 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14661 * Makefile.in (all-lib): Remove.
14662 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14664 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14666 Fix Python stack corruption.
14667 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14670 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14672 * Makefile.in (all-lib): Remove.
14673 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14675 2014-02-07 Doug Evans <dje@google.com>
14677 * extension-priv.h (extension_language_script_ops): Add comment.
14678 (extension_language_ops): Add comment.
14679 (active_ext_lang_state): Fix typo in comment.
14681 2014-02-07 Pedro Alves <palves@redhat.com>
14683 PR breakpoints/16292
14684 * infrun.c (handle_signal_stop) <signal arrives while stepping
14685 over a breakpoint>: Switch back to the stepping thread.
14687 2014-02-07 Yao Qi <yao@codesourcery.com>
14689 * target.c (target_xfer_partial): Return zero if LEN is zero.
14691 2014-02-07 Yao Qi <yao@codesourcery.com>
14693 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14694 (ld_so_xfer_auxv): Likewise.
14695 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14696 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14697 * corelow.c (core_xfer_partial): Likewise.
14698 * ctf.c (ctf_xfer_partial): Likewise.
14699 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14700 (darwin_xfer_partial): Likewise.
14701 * exec.c (exec_xfer_partial): Likewise.
14702 * gnu-nat.c (gnu_xfer_partial): Likewise.
14703 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14704 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14705 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14706 * linux-nat.c (linux_xfer_siginfo): Likewise.
14707 (linux_proc_xfer_spu): Likewise.
14708 * procfs.c (procfs_xfer_partial): Likewise.
14709 * record-full.c (record_full_xfer_partial): Likewise.
14710 (record_full_core_xfer_partial): Likewise.
14711 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14712 * remote.c (remote_write_qxfer): Likewise.
14713 (remote_write_qxfer, remote_read_qxfer): Likewise.
14714 (remote_xfer_partial): Likewise.
14715 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14716 (rs6000_xfer_shared_libraries): Likewise.
14717 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14718 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14719 (spu_xfer_partial): Likewise.
14720 * target.c (memory_xfer_partial_1): Likewise.
14721 * tracepoint.c (tfile_xfer_partial): Likewise.
14722 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14723 (windows_xfer_partial): Likewise.
14725 2014-02-07 Yao Qi <yao@codesourcery.com>
14727 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14729 (core_xfer_shared_libraries_aix): Likewise.
14730 * gdbarch.c, gdbarch.h: Regenerated.
14731 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14732 ULONGEST. Change 'len_avail' type to ULONGEST.
14733 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14734 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14736 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14738 2014-02-07 Yao Qi <yao@codesourcery.com>
14740 * corefile.c (memory_error): Get 'exception' from ERR and pass
14741 'exception' to throw_error.
14743 2014-02-06 Doug Evans <xdje42@gmail.com>
14745 * configure.ac (libpython checking): Remove all but python.o from
14746 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14747 * configure: Regenerate.
14749 * Makefile.in (SFILES): Add extension.c.
14750 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14751 (COMMON_OBS): Add extension.o.
14752 * extension.h: New file.
14753 * extension-priv.h: New file.
14754 * extension.c: New file.
14756 * python/python-internal.h: #include "extension.h".
14757 (gdbpy_auto_load_enabled): Declare.
14758 (gdbpy_apply_val_pretty_printer): Declare.
14759 (gdbpy_apply_frame_filter): Declare.
14760 (gdbpy_preserve_values): Declare.
14761 (gdbpy_breakpoint_cond_says_stop): Declare.
14762 (gdbpy_breakpoint_has_cond): Declare.
14763 (void source_python_script_for_objfile): Delete.
14764 * python/python.c: #include "extension-priv.h".
14765 Delete inclusion of "observer.h".
14766 (extension_language_python): Moved here and renamed from
14767 script_language_python in py-auto-load.c.
14768 Redefined to be of type extension_language_defn.
14769 (python_extension_script_ops): New global.
14770 (python_extension_ops): New global.
14771 (struct python_env): New member previous_active.
14772 (restore_python_env): Call restore_active_ext_lang.
14773 (ensure_python_env): Call set_active_ext_lang.
14774 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14776 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14778 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14780 (gdbpy_eval_from_control_command): Renamed from
14781 eval_python_from_control_command, made static. New arg extlang.
14782 (gdbpy_source_script) Renamed from source_python_script, made static.
14784 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14785 result to int. New arg extlang.
14786 (gdbpy_source_objfile_script): Renamed from
14787 source_python_script_for_objfile, made static. New arg extlang.
14788 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14789 static. New args extlang, extlang_printers. Change result type to
14791 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14792 static. New arg extlang. Rename arg printers to extlang_printers
14793 and change type to ext_lang_type_printers *.
14794 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14795 static. Replace argument arg with extlang, extlang_printers.
14796 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14797 (!HAVE_PYTHON, source_python_script): Delete.
14798 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14799 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14800 (!HAVE_PYTHON, start_type_printers): Delete.
14801 (!HAVE_PYTHON, apply_type_printers): Delete.
14802 (!HAVE_PYTHON, free_type_printers): Delete.
14803 (_initialize_python): Delete call to observer_attach_before_prompt.
14804 (finalize_python): Set/restore active extension language.
14805 (gdbpy_finish_initialization) Renamed from
14806 finish_python_initialization, made static. New arg extlang.
14807 (gdbpy_initialized): New function.
14808 * python/python.h: #include "extension.h". Delete #include
14809 "value.h", "mi/mi-cmds.h".
14810 (extension_language_python): Declare.
14811 (GDBPY_AUTO_FILE_NAME): Delete.
14812 (enum py_bt_status): Moved to extension.h and renamed to
14813 ext_lang_bt_status.
14814 (enum frame_filter_flags): Moved to extension.h.
14815 (enum py_frame_args): Moved to extension.h and renamed to
14816 ext_lang_frame_args.
14817 (finish_python_initialization): Delete.
14818 (eval_python_from_control_command): Delete.
14819 (source_python_script): Delete.
14820 (apply_val_pretty_printer): Delete.
14821 (apply_frame_filter): Delete.
14822 (preserve_python_values): Delete.
14823 (gdbpy_script_language_defn): Delete.
14824 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14825 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14827 * auto-load.c: #include "extension.h".
14828 (GDB_AUTO_FILE_NAME): Delete.
14829 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14830 (script_language_gdb): Delete, moved to extension.c and renamed to
14831 extension_language_gdb.
14832 (source_gdb_script_for_objfile): Delete.
14833 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14834 (loaded_script): Change type of language member to
14835 struct extension_language_defn *.
14836 (init_loaded_scripts_info): Initialize
14837 unsupported_script_warning_printed.
14838 (maybe_add_script): Make static. Change type of language arg to
14839 struct extension_language_defn *.
14840 (clear_section_scripts): Reset unsupported_script_warning_printed.
14841 (auto_load_objfile_script_1): Rewrite to use extension language API.
14842 (auto_load_objfile_script): Make public. Remove support-compiled-in
14843 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14844 (source_section_scripts): Rewrite to use extension language API.
14845 (load_auto_scripts_for_objfile): Rewrite to use
14846 auto_load_scripts_for_objfile.
14847 (collect_matching_scripts_data): Change type of language member to
14848 struct extension_language_defn *.
14849 (auto_load_info_scripts): Change type of language arg to
14850 struct extension_language_defn *.
14851 (unsupported_script_warning_print): New function.
14852 (script_not_found_warning_print): Make static.
14853 (_initialize_auto_load): Rewrite construction of scripts-directory
14855 * auto-load.h (struct objfile): Add forward decl.
14856 (struct script_language): Delete.
14857 (struct auto_load_pspace_info): Add forward decl.
14858 (struct extension_language_defn): Add forward decl.
14859 (maybe_add_script): Delete.
14860 (auto_load_objfile_script): Declare.
14861 (script_not_found_warning_print): Delete.
14862 (auto_load_info_scripts): Update prototype.
14863 (auto_load_gdb_scripts_enabled): Declare.
14864 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14865 auto_load_python_scripts_enabled and made public.
14866 (script_language_python): Delete, moved to python.c.
14867 (gdbpy_script_language_defn): Delete.
14868 (info_auto_load_python_scripts): Update to use
14869 extension_language_python.
14871 * breakpoint.c (condition_command): Replace call to
14872 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14873 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14874 with call to breakpoint_ext_lang_cond_says_stop.
14875 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14876 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14877 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14878 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14880 (local_setattro): Print name of extension language with existing
14883 * valprint.c (val_print, value_print): Update to call
14884 apply_ext_lang_val_pretty_printer.
14885 * cp-valprint.c (cp_print_value): Update call to
14886 apply_ext_lang_val_pretty_printer.
14887 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14888 (gdbpy_apply_val_pretty_printer): Renamed from
14889 apply_val_pretty_printer. New arg extlang.
14890 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14892 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14893 extension language API.
14894 * cli/cli-script.c (execute_control_command): Update to call
14895 eval_ext_lang_from_control_command.
14897 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14898 enum ext_lang_bt_status values. Update call to
14899 apply_ext_lang_frame_filter.
14900 (mi_cmd_stack_list_locals): Ditto.
14901 (mi_cmd_stack_list_args): Ditto.
14902 (mi_cmd_stack_list_variables): Ditto.
14903 * mi/mi-main.c: Delete #include "python/python-internal.h".
14904 Add #include "extension.h".
14905 (mi_cmd_list_features): Replace reference to python internal variable
14906 gdb_python_initialized with call to ext_lang_initialized_p.
14908 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14909 Update to use enum ext_lang_frame_args. Update to call
14910 apply_ext_lang_frame_filter.
14911 * python/py-framefilter.c (extract_sym): Update to use enum
14912 ext_lang_bt_status.
14913 (extract_value, py_print_type, py_print_value): Ditto.
14914 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14915 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14916 (py_print_frame): Ditto.
14917 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14918 New arg extlang. Update to use enum ext_lang_bt_status.
14920 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14921 finish_python_initialization. Replace with call to
14922 finish_ext_lang_initialization.
14924 * typeprint.c (do_free_global_table): Update to call
14925 free_ext_lang_type_printers.
14926 (create_global_typedef_table): Update to call
14927 start_ext_lang_type_printers.
14928 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14929 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14930 (type_print_options): Change type of global_printers from "void *"
14931 to "struct ext_lang_type_printers *".
14933 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14934 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14935 (gdbpy_preserve_values): Renamed from preserve_python_values.
14937 (!HAVE_PYTHON, preserve_python_values): Delete.
14939 * utils.c (quit_flag): Delete, moved to extension.c.
14940 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14943 * eval.c: Delete #include "python/python.h".
14944 * main.c: Delete #include "python/python.h".
14946 * defs.h: Update comment.
14948 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14952 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14954 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14957 2014-02-05 Yao Qi <yao@codesourcery.com>
14959 * remote.c (remote_pass_signals): Remove local 'buf' and use
14961 (remote_program_signals): Likewise.
14963 2014-02-05 Yao Qi <yao@codesourcery.com>
14965 * ctf.c: Include "inferior.h" and "gdbthread.h".
14966 (CTF_PID): A new macro.
14967 (ctf_open): Call inferior_appeared and add_thread_silent.
14968 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14969 (ctf_thread_alive): New function.
14970 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14972 2014-02-05 Yao Qi <yao@codesourcery.com>
14976 2013-05-24 Yao Qi <yao@codesourcery.com>
14978 * tracepoint.c (TFILE_PID): Remove.
14979 (tfile_open): Don't add thread and inferior.
14980 (tfile_close): Don't set 'inferior_ptid'. Don't call
14981 exit_inferior_silent.
14982 (tfile_thread_alive): Remove.
14983 (init_tfile_ops): Don't set field 'to_thread_alive' of
14986 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14988 * remote.c (remote_start_remote): Call remote_check_symbols even
14989 if only symbol-file (not file) has been given.
14991 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14993 * gdbarch.sh (skip_entrypoint): New callback.
14994 * gdbarch.c, gdbarch.h: Regenerate.
14995 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14996 * infrun.c (fill_in_stop_func): Likewise.
14997 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14998 (ppc_elfv2_elf_make_msymbol_special): New function.
14999 (ppc_elfv2_skip_entrypoint): Likewise.
15000 (ppc_linux_init_abi): Install them for ELFv2.
15002 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15004 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
15005 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
15006 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
15007 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
15008 structures returned in GPRs.
15010 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15012 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
15013 offset to the stack parameter list for the ELFv2 ABI.
15015 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15017 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
15018 set_gdbarch_convert_from_func_ptr_addr and
15019 set_gdbarch_elf_make_msymbol_special for ELFv1.
15020 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
15021 function descriptors on ELFv1.
15022 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
15023 set up r12 at function entry.
15025 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15027 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
15028 (struct gdbarch_tdep): New member elf_abi.
15030 * rs6000-tdep.c: Include "elf/ppc64.h".
15031 (rs6000_gdbarch_init): Detect ELF ABI version.
15033 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15035 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
15036 within a register pair holding a DFP 128-bit value on little-endian.
15037 (ppc64_sysv_abi_return_value_base): Likewise.
15038 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
15039 (dfp_pseudo_register_write): Likewise.
15041 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15043 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
15044 offset on little-endian when passing _Decimal32.
15045 (ppc64_sysv_abi_return_value_base): Likewise for return values.
15047 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15049 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
15050 of the overlapped FP register within the VSX register on little-
15052 (efpr_pseudo_register_write): Likewise.
15054 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15056 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
15057 offset on little-endian when passing small structures.
15059 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15061 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
15062 (struct ppc64_sysv_argpos): New data structure.
15063 (ppc64_sysv_abi_push_float): Remove.
15064 (ppc64_sysv_abi_push_val): New function.
15065 (ppc64_sysv_abi_push_integer): Likewise.
15066 (ppc64_sysv_abi_push_freg): Likewise.
15067 (ppc64_sysv_abi_push_vreg): Likewise.
15068 (ppc64_sysv_abi_push_param): Likewise.
15069 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
15070 (ppc64_sysv_abi_return_value_base): New function.
15071 (ppc64_sysv_abi_return_value): Refactor to use it.
15073 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15075 * NEWS: Document new target powerpc64le-*-linux*.
15077 2014-02-04 Mark Kettenis <kettenis@gnu.org>
15079 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
15080 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
15082 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
15083 register set used in ELF core dumps. Add floating-point register set.
15085 2014-02-03 Kevin Buettner <kevinb@redhat.com>
15087 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
15088 dwarf2_to_gdb[] table using symbolic constants. Adjust
15089 penultimate entry from number representing the PC register
15090 to symbolic constant representing the MDR register. Add
15091 constant for the PC register to the end of the table.
15093 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15095 * bsd-kvm.c: Include <sys/param.h>
15097 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15099 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
15101 2014-01-31 Joel Brobecker <brobecker@adacore.com>
15103 * ada-lang.h (clear_ada_sym_cache): Delete.
15105 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
15107 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
15109 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
15111 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
15112 the sigreturn register save area only if the syscall is
15115 2014-01-29 Joel Brobecker <brobecker@adacore.com>
15117 * valops.c (value_slice): Minor reformatting.
15119 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
15121 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
15123 2014-01-28 Joel Brobecker <brobecker@adacore.com>
15125 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
15126 New static globals.
15127 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
15128 (ada_ignore_descriptive_types_p): New static global.
15129 (find_parallel_type_by_descriptive_type): Return immediately
15130 if ada_ignore_descriptive_types_p is set.
15131 (_initialize_ada_language): Register new commands "maintenance
15132 set ada", "maintenance show ada", "maintenance set ada
15133 ignore-descriptive-types" and "maintenance show ada
15134 ignore-descriptive-types".
15135 * NEWS: Add entry for new "maint ada set/show
15136 ignore-descriptive-types" commands.
15138 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15140 * record-btrace.c (record_btrace_close): Call btrace_teardown
15143 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15145 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15148 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15150 * ada-typeprint (type_is_full_subrange_of_target_type):
15152 (print_range): Add parameter bounds_prefered_p. If not set,
15153 try printing range types using the name of their base type.
15154 (print_range_type): Add parameter bounds_prefered_p.
15155 Use it in call to print_range.
15156 (print_array_type, ada_print_type): Update calls to print_range
15157 and print_range_type.
15159 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15161 * ada-typeprint.c (print_array_type, print_choices, print_range)
15162 (print_range_bound, print_dynamic_range_bound, print_range_type):
15163 Remove declaration.
15165 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15167 * ada-typeprint.c (print_range): Add missing empty line
15168 after local declaration.
15170 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15172 * ada-valprint.c (print_optional_low_bound): Get index_type's
15173 target type for as long as it is a TYPE_CODE_RANGE.
15175 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15177 * procfs.c (procfs_make_note_section): Remove assertion and
15178 associated comment.
15180 2014-01-24 Yao Qi <yao@codesourcery.com>
15182 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15183 * corelow.c (get_core_siginfo): Likewise.
15185 2014-01-24 Yao Qi <yao@codesourcery.com>
15187 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15188 ULONGEST. Don't check 'len' is negative.
15189 (remote_write_bytes): Change type of 'len' to ULONGEST.
15191 2014-01-23 Tom Tromey <tromey@redhat.com>
15194 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15195 Handle exception from frame.block.
15196 (FrameVars.fetch_frame_locals): Likewise.
15198 2014-01-23 Tom Tromey <tromey@redhat.com>
15201 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15202 on a NULL pointer. Move "goto error" to correct place.
15204 2014-01-23 Tom Tromey <tromey@redhat.com>
15207 * python/py-framefilter.c (apply_frame_filter): Call
15208 ensure_python_env after computing gdbarch.
15210 2014-01-23 Yao Qi <yao@codesourcery.com>
15212 * target.c (raw_memory_xfer_partial): Change argument type
15213 from void * to gdb_byte *.
15214 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15216 2014-01-22 Doug Evans <dje@google.com>
15218 New gdbserver option --debug-format=timestamp.
15219 * NEWS: Mention it.
15221 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15223 * syscalls/s390x-linux.xml: New file.
15224 * syscalls/s390-linux.xml: New file.
15225 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15226 (XML_SYSCALL_FILENAME_S390X): Likewise.
15227 (op_svc): New enum value for SVC opcode.
15228 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15229 (s390_linux_get_syscall_number): New function.
15230 (s390_gdbarch_init): Register '*get_syscall_number' and the
15231 syscall xml file name.
15232 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15233 "s390-linux.xml" and "s390x-linux.xml".
15234 * NEWS: Announce new feature.
15236 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15238 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15240 2014-01-22 Pedro Alves <palves@redhat.com>
15242 * xtensa-config.c: Include defs.h.
15244 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15246 * common/common-utils.h: Add "ARI:" comment beside __func__
15249 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15251 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15252 documentation a bit.
15254 2014-01-21 Roland McGrath <mcgrathr@google.com>
15256 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15257 * configure: Regenerate.
15258 * aclocal.m4: Regenerate.
15259 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15260 New substituted variables.
15261 (install-strip): New target.
15262 (INSTALL_SCRIPT): New substituted variable.
15263 (FLAGS_TO_PASS): Add it.
15264 (install-only): Use $(INSTALL_SCRIPT) rather than
15265 $(INSTALL_PROGRAM) for gcore.
15267 2014-01-20 Tom Tromey <tromey@redhat.com>
15269 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15272 2014-01-20 Tom Tromey <tromey@redhat.com>
15274 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15275 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15276 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15277 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15278 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15279 (struct cmd_list_element) <flags>: Remove.
15280 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15281 doc_allocated>: New fields.
15282 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15284 * maint.c (maintenance_do_deprecate): Update.
15285 * top.c (execute_command): Update.
15287 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15289 * xtensa-linux-nat.c: Include asm/ptrace.h.
15291 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15293 * Makefile.in (SFILES): Add d-support.c.
15294 (COMMON_OBS): Add d-support.o.
15295 * d-lang.h (d_parse_symbol): Add comment, now defined in
15297 * d-lang.c (parse_call_convention)
15298 (parse_attributes, parse_function_types)
15299 (parse_function_args, parse_type, parse_identifier)
15300 (call_convention_p, d_parse_symbol): Move functions to ...
15301 * d-support.c: ... New file.
15303 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15305 * d-lang.h (d_parse_symbol): Add declaration.
15306 * d-lang.c (extract_identifiers)
15307 (extract_type_info): Remove functions.
15308 (parse_call_convention, parse_attributes)
15309 (parse_function_types, parse_function_args)
15310 (parse_type, parse_identifier, call_convention_p)
15311 (d_parse_symbol): New functions.
15312 (d_demangle): Use d_parse_symbol to demangle D symbols.
15314 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15316 * d-lang.h (struct builtin_d_type): New data type.
15317 (builtin_d_type): Add declaration.
15318 * d-lang.c (d_language_arch_info, build_d_types)
15319 (builtin_d_type): New functions.
15320 (enum d_primitive_types): New data type.
15321 (d_language_defn): Change c_language_arch_info to
15322 d_language_arch_info.
15323 (d_type_data): New static variable.
15324 (_initialize_d_language): Initialize d_type_data.
15326 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15328 * d-lang.h (d_main_name): Add declaration.
15329 * d-lang.c (d_main_name): New function.
15330 * symtab.c (find_main_name): Add call to d_main_name.
15332 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15334 * d-lang.c (d_language_defn): Change macro_expansion_c to
15335 macro_expansion_no.
15337 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15339 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15341 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15343 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15344 gdb_exception" declaration.
15345 * remote.c (getpkt_or_notif_sane): Likewise.
15347 2014-01-17 Doug Evans <dje@google.com>
15349 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15350 function, contents of dirnames_to_char_ptr_vec_append moved here.
15351 (delim_string_to_char_ptr_vec): New function.
15352 (dirnames_to_char_ptr_vec_append): Rewrite.
15353 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15355 2014-01-17 Doug Evans <dje@google.com>
15357 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15359 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15360 #include "common-utils.h".
15361 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15362 * common/vec.h (VEC_ASSERT_PASS): Update.
15363 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15364 (MACH_CHECK_ERROR): Update.
15366 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15368 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15370 * gdbarch.h: Regenerate.
15372 2014-01-16 Tom Tromey <tromey@redhat.com>
15374 * value.c (struct value) <regnum>: Move earlier.
15376 2014-01-16 Tom Tromey <tromey@redhat.com>
15378 * remote.c (extended_remote_create_inferior): Rename from
15379 extended_remote_create_inferior_1. Add "ops" argument. Remove
15380 old implementation.
15382 2014-01-16 Pedro Alves <palves@redhat.com>
15384 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15385 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15388 2014-01-16 Doug Evans <dje@google.com>
15390 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15392 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15394 * btrace.h (btrace_thread_flag): New.
15395 (struct btrace_thread_info) <flags>: New.
15396 * record-btrace.c (record_btrace_resume_thread)
15397 (record_btrace_find_thread_to_move, btrace_step_no_history)
15398 (btrace_step_stopped, record_btrace_start_replaying)
15399 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15400 (record_btrace_find_resume_thread): New.
15401 (record_btrace_resume, record_btrace_wait): Extend.
15402 (record_btrace_can_execute_reverse): New.
15403 (record_btrace_open): Fail in non-stop mode.
15404 (record_btrace_set_replay): Split into this, ...
15405 (record_btrace_stop_replaying): ... this, ...
15406 (record_btrace_clear_histories): ... and this.
15407 (init_record_btrace_ops): Init to_can_execute_reverse.
15408 * NEWS: Announce it.
15410 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15412 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15413 (forward_target_decr_pc_after_break)
15414 (target_decr_pc_after_break): New.
15415 * target.c (forward_target_decr_pc_after_break)
15416 (target_decr_pc_after_break): New.
15417 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15418 instead of gdbarch_decr_pc_after_break.
15419 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15420 instead of gdbarch_decr_pc_after_break.
15421 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15422 instead of gdbarch_decr_pc_after_break.
15423 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15424 instead of gdbarch_decr_pc_after_break.
15425 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15426 instead of gdbarch_decr_pc_after_break.
15427 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15428 instead of gdbarch_decr_pc_after_break.
15430 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15432 * btrace.c: Include regcache.h.
15433 (btrace_add_pc): New.
15434 (btrace_enable): Call btrace_add_pc.
15435 (btrace_is_empty): New.
15436 * btrace.h (btrace_is_empty): New.
15437 * record-btrace.c (require_btrace, record_btrace_info): Call
15440 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15442 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15443 Support delta reads.
15444 (linux_disable_btrace): Change return type.
15445 * common/linux-btrace.h (linux_read_btrace): Change parameters
15446 and return type to allow error reporting. Update users.
15447 (linux_disable_btrace): Change return type. Update users.
15448 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15450 (btrace_error): New.
15451 (btrace_block) <begin>: Comment on BEGIN == 0.
15452 * btrace.c (btrace_compute_ftrace): Start from the end of
15454 (btrace_stitch_trace, btrace_clear_history): New.
15455 (btrace_fetch): Read delta trace, return if replaying.
15456 (btrace_clear): Move clear history code to btrace_clear_history.
15457 (parse_xml_btrace): Throw an error if parsing failed.
15458 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15459 and return type to allow error reporting.
15460 (target_read_btrace): Change parameters and return type to allow
15462 * target.c (target_read_btrace): Update.
15463 * remote.c (remote_read_btrace): Support delta reads. Pass
15465 * NEWS: Announce it.
15467 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15469 * record.h (record_btrace_frame_unwind)
15470 (record_btrace_tailcall_frame_unwind): New declarations.
15471 * dwarf2-frame: Include record.h
15472 (dwarf2_frame_cfa): Throw an error for btrace frames.
15473 * record-btrace.c: Include hashtab.h.
15474 (btrace_get_bfun_name): New.
15475 (btrace_call_history): Call btrace_get_bfun_name.
15476 (struct btrace_frame_cache): New.
15478 (bfcache_hash, bfcache_eq, bfcache_new): New.
15479 (btrace_get_frame_function): New.
15480 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15481 (record_btrace_frame_this_id): Compute own id.
15482 (record_btrace_frame_prev_register): Provide PC, throw_error
15483 for all other registers.
15484 (record_btrace_frame_sniffer): Detect btrace frames.
15485 (record_btrace_tailcall_frame_sniffer): New.
15486 (record_btrace_frame_dealloc_cache): New.
15487 (record_btrace_frame_unwind): Add new functions.
15488 (record_btrace_tailcall_frame_unwind): New.
15489 (_initialize_record_btrace): Allocate cache.
15490 * btrace.c (btrace_clear): Call reinit_frame_cache.
15491 * NEWS: Announce it.
15493 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15495 * record-btrace.c (record_btrace_set_replay)
15496 (record_btrace_goto_begin, record_btrace_goto_end)
15497 (record_btrace_goto): New.
15498 (init_record_btrace_ops): Initialize them.
15499 * NEWS: Announce it.
15501 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15503 * record-btrace.c (record_btrace_find_new_threads)
15504 (record_btrace_thread_alive): New.
15505 (init_record_btrace_ops): Initialize to_find_new_threads and
15508 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15510 * record-btrace.c (record_btrace_resume): New.
15511 (record_btrace_wait): New.
15512 (init_record_btrace_ops): Initialize to_wait and to_resume.
15514 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15516 * record-btrace.c (record_btrace_xfer_partial)
15517 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15518 (record_btrace_allow_memory_access): New.
15519 (init_record_btrace_ops): Initialize new methods.
15520 * target.c (raw_memory_xfer_partial): Bail out if target reports
15521 that this memory is not available.
15523 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15525 * target.h (target_ops) <to_insert_breakpoint>
15526 <to_remove_breakpoint>: Add target_ops parameter.
15527 (forward_target_insert_breakpoint): New.
15528 (forward_target_remove_breakpoint): New.
15529 (memory_remove_breakpoint, memory_insert_breakpoint):
15530 Add target_ops parameter.
15531 * target.c (target_insert_breakpoint): Split into this and ...
15532 (forward_target_insert_breakpoint): ... this.
15533 (target_remove_breakpoint): Split into this and ...
15534 (forward_target_remove_breakpoint): ... this.
15535 (debug_to_insert_breakpoint): Add target_ops parameter.
15536 Call forward_target_insert_breakpoint.
15537 (debug_to_remove_breakpoint): Add target_ops parameter.
15538 Call forward_target_remove_breakpoint.
15539 (update_current_target): Do not inherit or default to_insert_breakpoint
15540 and to_remove_breakpoint.
15541 * corelow.c (ignore): Add target_ops parameter.
15542 * exec.c (ignore): Add target_ops parameter.
15543 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15544 Add target_ops parameter.
15545 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15546 Add target_ops parameter.
15547 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15548 Add target_ops parameter.
15549 * record-full.c (record_full_beneath_to_insert_breakpoint)
15550 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15551 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15552 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15553 (record_full_core_remove_breakpoint): Add target_ops parameter.
15555 (record_full_beneath_to_insert_breakpoint_ops)
15556 (record_full_beneath_to_remove_breakpoint_ops)
15557 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15558 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15559 tmp_to_remove_breakpoint_ops,
15560 record_full_beneath_to_insert_breakpoint_ops, and
15561 record_full_beneath_to_remove_breakpoint_ops.
15562 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15563 (m32r_remove_breakpoint): Add target_ops parameter.
15564 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15565 Add target_ops parameter.
15566 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15567 Add target_ops parameter.
15569 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15570 Markus Metzger <markus.t.metzger@intel.com>
15572 * record-btrace.c: Include frame-unwind.h.
15573 (record_btrace_frame_unwind_stop_reason)
15574 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15575 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15577 (init_record_btrace_ops): Install it.
15579 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15581 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15584 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15586 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15589 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15591 * frame-unwind.c: Include target.h.
15592 (frame_unwind_try_unwinder): New function with code from ...
15593 (frame_unwind_find_by_frame): ... here. New variable
15594 unwinder_from_target, call also target_get_unwinder)
15595 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15596 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15597 * target.h (struct target_ops): New fields to_get_unwinder and
15598 to_get_tailcall_unwinder.
15599 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15601 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15603 * record-btrace.c (record_btrace_fetch_registers)
15604 (record_btrace_store_registers)
15605 (record_btrace_to_prepare_to_store): New.
15606 (init_record_btrace_ops): Add the above.
15608 2014-01-16 Tom Tromey <tromey@redhat.com>
15610 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15611 * target.h (struct target_ops) <to_prepare_to_store>: Add
15613 (target_prepare_to_store): Add argument.
15614 * target.c (debug_to_prepare_to_store): Add argument.
15615 (update_current_target): Update.
15616 * remote.c (remote_prepare_to_store): Add 'self' argument.
15617 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15618 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15619 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15620 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15622 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15623 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15624 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15625 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15626 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15628 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15630 * btrace.h (replay) <replay>: New.
15631 (btrace_is_replaying): New.
15632 * btrace.c (btrace_clear): Free replay iterator.
15633 (btrace_is_replaying): New.
15634 * record-btrace.c (record_btrace_is_replaying): New.
15635 (record_btrace_info): Print insn number if replaying.
15636 (record_btrace_insn_history): Start at replay position.
15637 (record_btrace_call_history): Start at replay position.
15638 (init_record_btrace_ops): Init to_record_is_replaying.
15640 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15642 * record-btrace.c (record_btrace_insn_history_range): Include
15644 (record_btrace_insn_history_from): Adjust range.
15645 (record_btrace_call_history_range): Include
15647 (record_btrace_call_history_from): Adjust range.
15648 * NEWS: Announce changes.
15650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15652 * record.h (enum record_print_flag)
15653 <record_print_indent_calls>: New.
15654 * record.c (get_call_history_modifiers): Recognize /c modifier.
15655 (_initialize_record): Document /c modifier.
15656 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15657 Reorder fields. Optionally indent the function name. Update
15659 * NEWS: Announce changes.
15661 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15663 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15665 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15667 * btrace.c (ftrace_new_function): Start counting at one.
15668 * record-btrace.c (record_btrace_info): Adjust number of calls
15670 * NEWS: Announce it.
15672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15674 * record-btrace.c (btrace_call_history_insn_range): Print
15675 insn range as [begin, end].
15677 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15679 * btrace.h (struct btrace_func_link): New.
15680 (enum btrace_function_flag): New.
15681 (struct btrace_inst): Rename to ...
15682 (struct btrace_insn): ...this. Update all users.
15683 (struct btrace_func) <ibegin, iend>: Remove.
15684 (struct btrace_func_link): New.
15685 (struct btrace_func): Rename to ...
15686 (struct btrace_function): ...this. Update all users.
15687 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15688 (number, level, flags>: New.
15689 (struct btrace_insn_iterator): Rename to ...
15690 (struct btrace_insn_history): ...this.
15692 (struct btrace_insn_iterator, btrace_call_iterator): New.
15693 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15694 (struct btrace_target_info) <begin, end, level>
15695 <insn_history, call_history>: New.
15696 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15697 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15698 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15699 (btrace_call_number, btrace_call_begin, btrace_call_end)
15700 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15701 (btrace_find_function_by_number, btrace_set_insn_history)
15702 (btrace_set_call_history): New.
15703 * btrace.c (btrace_init_insn_iterator)
15704 (btrace_init_func_iterator, compute_itrace): Remove.
15705 (ftrace_print_function_name, ftrace_print_filename)
15706 (ftrace_skip_file): Change
15707 parameter to const.
15708 (ftrace_init_func): Remove.
15709 (ftrace_debug): Use new btrace_function fields.
15710 (ftrace_function_switched): Also consider gaining and
15711 losing symbol information).
15712 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15713 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15714 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15716 (ftrace_new_function): Move. Remove debug print.
15717 (ftrace_update_lines, ftrace_update_insns): New.
15718 (ftrace_update_function): Check for call, ret, and jump.
15719 (compute_ftrace): Renamed to ...
15720 (btrace_compute_ftrace): ...this. Rewritten to compute call
15722 (btrace_fetch, btrace_clear): Updated.
15723 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15724 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15725 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15726 (btrace_call_number, btrace_call_begin, btrace_call_end)
15727 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15728 (btrace_find_function_by_number, btrace_set_insn_history)
15729 (btrace_set_call_history): New.
15730 * record-btrace.c (require_btrace): Use new btrace thread
15732 (record_btrace_info, btrace_insn_history)
15733 (record_btrace_insn_history, record_btrace_insn_history_range):
15734 Use new btrace thread info fields and new iterator.
15735 (btrace_func_history_src_line): Rename to ...
15736 (btrace_call_history_src_line): ...this. Use new btrace
15737 thread info fields.
15738 (btrace_func_history): Rename to ...
15739 (btrace_call_history): ...this. Use new btrace thread info
15740 fields and new iterator.
15741 (record_btrace_call_history, record_btrace_call_history_range):
15742 Use new btrace thread info fields and new iterator.
15744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15746 * frame.h (frame_id_build_unavailable_stack_special): New.
15747 * frame.c (frame_id_build_unavailable_stack_special): New.
15749 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15751 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15752 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15753 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15755 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15756 (i386_insn_is_jump, i386_jmp_p): New.
15757 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15758 insn_is_jump to gdbarch.
15759 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15760 * gdbarch.h: Regenerated.
15761 * gdbarch.c: Regenerated.
15762 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15763 (default_insn_is_jump): New.
15764 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15765 (default_insn_is_jump): New.
15767 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15769 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15771 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15772 (btrace_read_type) <btrace_read_new>: Change to ...
15773 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15775 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15777 * common/linux-btrace.c (linux_read_btrace): Free trace from
15778 previous iteration.
15780 2014-01-15 Doug Evans <dje@google.com>
15782 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15785 2014-01-15 Tom Tromey <tromey@redhat.com>
15787 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15788 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15789 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15790 (set_objfile_main_name): New function.
15791 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15792 language_of_main>: New fields.
15793 (set_objfile_main_name): Declare.
15794 * symtab.c (find_main_name): Loop over objfiles to find the main
15796 (set_main_name): Now static.
15797 (get_main_info): Add comment.
15798 * symtab.h (set_main_name): Don't declare.
15800 2014-01-15 Tom Tromey <tromey@redhat.com>
15802 * symtab.c (main_progspace_key): New global.
15803 (struct main_info): New.
15804 (name_of_main, language_of_main): Remove.
15805 (get_main_info, main_info_cleanup): New function.
15806 (set_main_name, main_name, main_language): Use get_main_info.
15807 (_initialize_symtab): Initialize main_progspace_key.
15809 2014-01-15 Tom Tromey <tromey@redhat.com>
15811 * dbxread.c (process_one_symbol): Update.
15812 * dwarf2read.c (read_partial_die): Update.
15813 * symfile.c (set_initial_language): Call main_language.
15814 * symtab.c (language_of_main): Now static.
15815 (set_main_name): Add 'lang' parameter.
15816 (find_main_name): Update.
15817 (main_language): New function.
15818 (symtab_observer_executable_changed): Update.
15819 * symtab.h (set_main_name): Update.
15820 (language_of_main): Remove.
15821 (main_language): Declare.
15823 2014-01-15 Tom Tromey <tromey@redhat.com>
15825 * symfile.c (init_entry_point_info): Use new "initialized" field.
15827 * objfiles.h (struct entry_point) <initialized>: New field.
15828 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15829 (struct objfile) <ei>: ...here. Remove.
15830 * objfiles.c (entry_point_address_query): Update.
15832 2014-01-15 Tom Tromey <tromey@redhat.com>
15834 * objfiles.c (entry_point_address_query): Relocate entry point
15836 (objfile_relocate1): Do not relocate entry point address.
15837 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15838 <the_bfd_section_index>: New field.
15839 * symfile.c (init_entry_point_info): Find the entry point's
15842 2014-01-15 Tom Tromey <tromey@redhat.com>
15844 * solib-frv.c (enable_break): Use entry_point_address_query.
15846 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15848 * NEWS: Add note on improved process record-replay on
15849 arm*-linux* targets.
15851 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15853 * arm-tdep.c (enum arm_record_result): New enum.
15854 (arm_record_unsupported_insn): New function.
15855 (arm_record_coproc_data_proc): Removed.
15856 (thumb2_record_ld_st_multiple): New function.
15857 (thumb2_record_ld_st_dual_ex_tbb): New function.
15858 (thumb2_record_data_proc_sreg_mimm): New function.
15859 (thumb2_record_ps_dest_generic): New function.
15860 (thumb2_record_branch_misc_cntrl): New function.
15861 (thumb2_record_str_single_data): New function.
15862 (thumb2_record_ld_mem_hints): New function.
15863 (thumb2_record_ld_word): New function.
15864 (thumb2_record_lmul_lmla_div): New function.
15865 (thumb2_record_decode_insn_handler): New function.
15866 (decode_insn): Add thumb32 instruction handlers.
15868 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15870 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15871 (struct arm_linux_record_tdep): Declare.
15872 (arm_canonicalize_syscall): New function.
15873 (arm_all_but_pc_registers_record): New function.
15874 (arm_linux_syscall_record): New function.
15875 (arm_linux_init_abi): Add syscall recording constructs.
15876 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15877 decoding. (arm_record_coproc_data_proc): Update arm syscall
15879 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15880 <arm_syscall_record>: New field.
15881 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15884 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15886 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15887 register for push instruction recording.
15889 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15891 * arm-tdep.c (thumb_record_misc): Update to correct logical
15892 error while recording ldm, ldmia and pop instructions.
15894 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15896 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15898 2014-01-15 Pedro Alves <palves@redhat.com>
15900 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15901 (go32_resume, go32_fetch_registers, store_register)
15902 (go32_store_registers, go32_prepare_to_store)
15903 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15904 (go32_create_inferior, go32_can_run, go32_terminal_init)
15905 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15908 2014-01-15 Tom Tromey <tromey@redhat.com>
15910 * target.h (async_callback_ftype): New typedef.
15911 (struct target_ops) <to_async>: Use it.
15913 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15915 * python/py-value.c (get_field_type): Remove unnecessary curly
15916 braces for single-statement if block.
15918 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15920 * python/py-type.c (convert_field): Add missing empty line
15921 after declarations.
15923 2014-01-14 Doug Evans <dje@google.com>
15925 * symfile.h (expand_symtabs_matching): Renamed from
15926 expand_partial_symbol_names. Update prototype.
15927 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15928 * symfile.c (expand_symtabs_matching): Renamed from
15929 expand_partial_symbol_names. New args file_matcher, kind.
15930 Rename arg fun to symbol_matcher.
15931 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15932 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15933 ada_expand_partial_symbol_name.
15934 (ada_make_symbol_completion_list): Update to call
15935 expand_symtabs_matching.
15936 (ada_add_global_exceptions): Call expand_symtabs_matching.
15937 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15938 call map_symbol_filenames.
15939 * symtab.c (sources_info): Update to call map_symbol_filenames.
15940 (search_symbols): Call expand_symtabs_matching.
15941 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15942 (default_make_symbol_completion_list_break_on): Update to call
15943 expand_symtabs_matching.
15944 (make_source_files_completion_list): Update to call
15945 map_symbol_filenames.
15947 2014-01-14 Doug Evans <dje@google.com>
15949 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15950 (expand_symtabs_symbol_matcher_ftype): New typedef.
15951 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15952 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15953 * symfile.c (expand_partial_symbol_names): Update to use
15954 expand_symtabs_symbol_matcher_ftype.
15955 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15956 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15957 Arg name_matcher renamed to symbol_matcher.
15958 * psymtab.c (recursively_search_psymtabs): Update to use
15959 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15961 (expand_symtabs_matching_via_partial): Update to use
15962 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15963 Arg name_matcher renamed to symbol_matcher.
15965 2014-01-14 Doug Evans <dje@google.com>
15967 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15968 (map_partial_symbol_filenames): Ditto.
15969 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15970 (map_partial_symbol_filenames): Ditto.
15971 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15972 (map_partial_symbol_filenames): Ditto.
15973 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15974 (map_partial_symbol_filenames): Ditto.
15975 * symtab.c: Delete #include "psymtab.h".
15977 2014-01-14 Pedro Alves <palves@redhat.com>
15978 Tom Tromey <tromey@redhat.com>
15980 * infrun.c (use_displaced_stepping): Use find_record_target
15981 instead of RECORD_IS_USED.
15982 (adjust_pc_after_break): Use record_full_is_used instead of
15984 * record-btrace.c (record_btrace_open): Call record_preopen
15985 instead of checking RECORD_IS_USED.
15986 * record-full.c (record_full_shortname)
15987 (record_full_core_shortname): New globals.
15988 (record_full_is_used): New function.
15989 (find_full_open): Call record_preopen instead of checking
15991 (init_record_full_ops): Set the target's shortname to
15992 record_full_shortname.
15993 (init_record_full_core_ops): Set the target's shortname to
15994 record_full_core_shortname.
15995 * record-full.h (record_full_is_used): Declare.
15996 * record.c (find_record_target): Make extern.
15997 (record_preopen): New function.
15998 * record.h (RECORD_IS_USED): Delete macro.
15999 (find_record_target, record_preopen): Declare functions.
16001 2014-01-14 Yao Qi <yao@codesourcery.com>
16003 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
16004 'len''s type to ULONGEST.
16005 (core_xfer_shared_libraries_aix): Likewise.
16006 * gdbarch.c, gdbarch.h: Regenerated.
16007 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
16008 Change type of 'len' to ULONGEST.
16009 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16010 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
16012 2014-01-14 Yao Qi <yao@codesourcery.com>
16014 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
16015 type of 'len' to ULONGEST.
16016 (linux_xfer_osdata_processgroups): Likewise.
16017 (linux_xfer_osdata_threads): Likewise.
16018 (linux_xfer_osdata_fds): Likewise.
16019 (linux_xfer_osdata_isockets): Likewise.
16020 (linux_xfer_osdata_shm): Likewise.
16021 (linux_xfer_osdata_sem): Likewise.
16022 (linux_xfer_osdata_msg): Likewise.
16023 (linux_common_xfer_osdata): Likewise.
16024 (struct osdata_type) <getter>: Likewise.
16025 * common/linux-osdata.h (linux_common_xfer_osdata): Update
16028 2014-01-14 Yao Qi <yao@codesourcery.com>
16030 * target.h (target_xfer_partial_ftype): Update.
16031 (struct target_ops) <to_xfer_partial>: Change 'len' type to
16033 * aix-thread.c (aix_thread_xfer_partial): Change type of
16034 argument 'len' to ULONGEST.
16035 * auxv.c (procfs_xfer_auxv): Likewise.
16036 (ld_so_xfer_auxv): Likewise.
16037 (memory_xfer_auxv): Likewise.
16038 * bfd-target.c (target_bfd_xfer_partial): Likewise.
16039 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
16040 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
16041 * corelow.c (core_xfer_partial): Likewise.
16042 * ctf.c (ctf_xfer_partial): Likewise.
16043 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
16045 (darwin_read_dyld_info): Likewise.
16046 (darwin_xfer_partial): Likewise.
16047 * exec.c (section_table_xfer_memory_partial): Likewise.
16048 (exec_xfer_partial): Likewise.
16049 * exec.h (section_table_xfer_memory_partial): Update
16051 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
16052 instead of plongest.
16053 (gnu_xfer_partial): Likewise.
16054 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
16055 (ia64_hpux_xfer_solib_got): Likewise.
16056 (ia64_hpux_xfer_partial): Likewise.
16057 * ia64-linux-nat.c (ia64_linux_xfer_partial):
16058 * inf-ptrace.c (inf_ptrace_xfer_partial):
16059 * inf-ttrace.c (inf_ttrace_xfer_partial):
16060 * linux-nat.c (linux_xfer_siginfo): Likewise.
16061 (linux_nat_xfer_partial): Likewise.
16062 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
16063 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
16064 * monitor.c (monitor_xfer_memory): Likewise.
16065 (monitor_xfer_partial): Likewise.
16066 * procfs.c (procfs_xfer_partial): Likewise.
16067 * record-full.c (record_full_xfer_partial): Likewise.
16068 (record_full_core_xfer_partial): Likewise.
16069 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
16070 instead of plongest.
16071 (gdbsim_xfer_partial): Likewise.
16072 * remote.c (remote_xfer_partial): Likewise.
16073 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16074 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
16076 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
16077 (rs6000_xfer_shared_libraries): Likewise.
16078 * sol-thread.c (sol_thread_xfer_partial): Likewise.
16079 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
16080 (sparc_xfer_partial): Likewise.
16081 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
16082 (spu_xfer_partial): Likewise.
16083 * spu-multiarch.c (spu_xfer_partial): Likewise.
16084 * target.c (target_read_live_memory): Likewise.
16085 (memory_xfer_live_readonly_partial): Likewise.
16086 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
16087 (target_xfer_partial, default_xfer_partial): Likewise.
16088 (current_xfer_partial): Likewise.
16089 * tracepoint.c (tfile_xfer_partial): Likewise.
16090 * windows-nat.c (windows_xfer_memory): Likewise. Call
16091 pulongest instead of plongest.
16092 (windows_xfer_partial): Likewise.
16093 (windows_xfer_shared_libraries): Likewise.
16095 2014-01-14 Yao Qi <yao@codesourcery.com>
16097 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
16098 target_xfer_partial_ftype.
16100 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
16104 * valops.c (value_struct_elt_bitpos): New function
16105 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
16106 object to 'None' if the field name is an empty string ("").
16107 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
16108 attribute to look for a field when 'name' is 'None'.
16109 (get_field_type): New function
16111 2014-01-13 Doug Evans <dje@google.com>
16114 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
16115 (try_open_dwop_file): Ditto.
16116 * gdb_bfd.c: #include "vec.h".
16117 (bfdp): New typedef.
16118 (struct gdb_bfd_data): New member included_bfds.
16119 (gdb_bfd_unref): Unref all included bfds.
16120 (gdb_bfd_record_inclusion): New function.
16121 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
16123 2014-01-13 Tom Tromey <tromey@redhat.com>
16125 * gdbcore.h (deprecated_core_resize_section_table): Remove.
16127 2014-01-13 Tom Tromey <tromey@redhat.com>
16129 * defs.h (use_windows): Remove.
16130 * gdb.c (main): Update.
16131 * main.c (captured_main, gdb_main): Update.
16132 * main.h (struct captured_main_args) <use_windows>: Remove.
16133 * top.c (use_windows): Remove.
16135 2014-01-13 Tom Tromey <tromey@redhat.com>
16137 * defs.h (deprecated_flush_hook): Remove.
16139 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16142 * linux-thread-db.c (try_thread_db_load): Add parameter
16143 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16144 (try_thread_db_load_from_pdir_1): Move it there from here.
16145 (try_thread_db_load_from_sdir): Update caller.
16146 (try_thread_db_load_from_dir): Move it there from here.
16148 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16150 * regformats/regdat.sh: Always rewrite the register file.
16152 2014-01-13 Pedro Alves <palves@redhat.com>
16154 * Makefile.in (CHECK_HEADERS): New variable.
16155 (check-headers:): New rule.
16157 2014-01-13 Tom Tromey <tromey@redhat.com>
16159 * cli/cli-setshow.c (do_set_command): Update.
16160 * defs.h (deprecated_set_hook): Remove.
16161 * top.c (deprecated_set_hook): Remove.
16163 2014-01-13 Pedro Alves <palves@redhat.com>
16165 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16166 the tracepoint if the PC is a pseudo-register.
16168 2014-01-13 Tom Tromey <tromey@redhat.com>
16170 * defs.h (XCALLOC): Remove.
16171 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16172 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16173 * dwarf2loc.c (allocate_piece_closure): Likewise.
16174 * elfread.c (elf_symfile_segments): Likewise.
16175 (elf_symfile_segments): Likewise.
16176 * gdbtypes.c (copy_type_recursive): Likewise.
16177 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16178 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16179 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16181 * mt-tdep.c (mt_gdbarch_init): Likewise.
16182 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16184 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16185 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16186 * registry.c (registry_alloc_data): Likewise.
16187 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16188 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16189 * serial.c (serial_fdopen_ops): Likewise.
16190 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16192 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16193 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16196 2014-01-13 Tom Tromey <tromey@redhat.com>
16198 * defs.h (XMALLOC): Remove.
16199 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16200 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16201 * cli-out.c (struct ui_out *): Likewise.
16202 * cli/cli-dump.c (add_dump_command): Likewise.
16203 (add_dump_command): Likewise.
16204 * complaints.c (get_complaints): Likewise.
16205 (find_complaint): Likewise.
16206 * dwarf2-frame.c (execute_cfa_program): Likewise.
16207 * dwarf2read.c (abbrev_table_read_table): Likewise.
16208 * gdbarch.sh: Likewise.
16209 * gdbarch.c: Rebuild.
16210 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16211 * interps.c (interp_new): Likewise.
16212 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16213 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16214 * mi/mi-console.c (mi_console_file_new): Likewise.
16215 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16216 * mi/mi-out.c (mi_out_new): Likewise.
16217 * mi/mi-parse.c (mi_parse): Likewise.
16218 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16219 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16220 * observer.c (xalloc_observer_list_node): Likewise.
16221 * regcache.c (regcache_xmalloc_1): Likewise.
16222 * reggroups.c (reggroup_new): Likewise.
16223 (_initialize_reggroup): Likewise.
16224 * registry.c (register_data_with_cleanup): Likewise.
16225 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16226 * ser-base.c (serial_ttystate): Likewise.
16227 * ser-mingw.c (make_pipe_state): Likewise.
16228 * ser-pipe.c (pipe_open): Likewise.
16229 * serial.c (serial_open): Likewise.
16230 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16231 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16232 (tui_alloc_win_info): Likewise.
16233 (tui_add_content_elements): Likewise.
16234 * tui/tui-file.c (tui_file_new): Likewise.
16235 * tui/tui-out.c (tui_out_new): Likewise.
16236 * ui-file.c (mem_file_new): Likewise.
16237 * ui-out.c (push_level): Likewise.
16238 (make_cleanup_ui_out_end): Likewise.
16239 (append_header_to_list): Likewise.
16240 (ui_out_new): Likewise.
16241 * user-regs.c (user_reg_add_builtin): Likewise.
16243 2014-01-13 Tom Tromey <tromey@redhat.com>
16245 * defs.h (XZALLOC): Remove.
16246 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16247 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16248 (get_ada_tasks_inferior_data): Likewise.
16249 * auto-load.c (get_auto_load_pspace_data): Likewise.
16250 * auxv.c (get_auxv_inferior_data): Likewise.
16251 * bfd-target.c (target_bfd_reopen): Likewise.
16252 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16253 (deprecated_insert_raw_breakpoint): Likewise.
16254 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16255 * corelow.c (core_open): Likewise.
16256 * darwin-nat.c (darwin_check_new_threads): Likewise.
16257 (darwin_attach_pid): Likewise.
16258 * dummy-frame.c (dummy_frame_push): Likewise.
16259 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16260 * dwarf2loc.c (allocate_piece_closure): Likewise.
16261 * elfread.c (elf_symfile_segments): Likewise.
16262 * eval.c (ptrmath_type_p): Likewise.
16263 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16264 * gdbtypes.c (alloc_type_arch): Likewise.
16265 (alloc_type_instance): Likewise.
16266 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16267 * inf-child.c (inf_child_can_use_agent): Likewise.
16268 * inflow.c (get_inflow_inferior_data): Likewise.
16269 * infrun.c (save_infcall_suspend_state): Likewise.
16270 * jit.c (jit_reader_load): Likewise.
16271 (get_jit_objfile_data): Likewise.
16272 (get_jit_program_space_data): Likewise.
16273 (jit_object_open_impl): Likewise.
16274 (jit_symtab_open_impl): Likewise.
16275 (jit_block_open_impl): Likewise.
16276 (jit_frame_sniffer): Likewise.
16277 * linux-fork.c (add_fork): Likewise.
16278 * maint.c (make_command_stats_cleanup): Likewise.
16279 * objfiles.c (get_objfile_pspace_data): Likewise.
16280 * opencl-lang.c (struct lval_closure): Likewise.
16281 * osdata.c (osdata_start_osdata): Likewise.
16282 * progspace.c (new_address_space): Likewise.
16283 (add_program_space): Likewise.
16284 * remote-sim.c (get_sim_inferior_data): Likewise.
16285 * sh-tdep.c (sh_gdbarch_init): Likewise.
16286 * skip.c (Ignore): Likewise.
16287 (skip_delete_command): Likewise.
16288 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16289 (library_list_start_library): Likewise.
16290 (solib_aix_current_sos): Likewise.
16291 * solib-darwin.c (get_darwin_info): Likewise.
16292 (darwin_current_sos): Likewise.
16293 * solib-dsbt.c (get_dsbt_info): Likewise.
16294 * solib-ia64-hpux.c (new_so_list): Likewise.
16295 (ia64_hpux_get_solib_linkage_addr): Likewise.
16296 * solib-spu.c (append_ocl_sos): Likewise.
16297 (spu_current_sos): Likewise.
16298 * solib-svr4.c (get_svr4_info): Likewise.
16299 (svr4_keep_data_in_core): Likewise.
16300 (library_list_start_library): Likewise.
16301 (svr4_default_sos): Likewise.
16302 (svr4_read_so_list): Likewise.
16303 * solib-target.c (library_list_start_library): Likewise.
16304 (solib_target_current_sos): Likewise.
16305 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16306 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16307 * symfile.c (default_symfile_segments): Likewise.
16308 * target-descriptions.c (tdesc_data_init): Likewise.
16309 (tdesc_create_reg): Likewise.
16310 (struct tdesc_type *): Likewise.
16311 (tdesc_create_vector): Likewise.
16312 (tdesc_set_struct_size): Likewise.
16313 (struct tdesc_type *): Likewise.
16314 (tdesc_free_feature): Likewise.
16315 (tdesc_create_feature): Likewise.
16316 * windows-nat.c (windows_add_thread): Likewise.
16317 (windows_make_so): Likewise.
16318 * xml-support.c (gdb_xml_body_text): Likewise.
16319 (gdb_xml_create_parser_and_cleanup): Likewise.
16320 (xml_process_xincludes): Likewise.
16321 * xml-syscall.c (allocate_syscalls_info): Likewise.
16322 (syscall_create_syscall_desc): Likewise.
16324 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16326 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16327 function, with code from i386_stap_parse_special_token.
16328 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16329 (i386_stap_parse_special_token): Move code to the two functions
16330 above; simplify it.
16332 2014-01-09 Pedro Alves <palves@redhat.com>
16333 Hui Zhu <hui@codesourcery.com>
16336 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16337 bp_err_string. Don't mark the location shlib_disabled if the
16338 error thrown wasn't a generic or memory error. Catch errors
16339 thrown while inserting breakpoints in overlayed code. Output
16340 error message of software breakpoints.
16341 * remote.c (remote_insert_breakpoint): If this breakpoint has
16342 target-side commands but this stub doesn't support Z0 packets,
16343 throw NOT_SUPPORTED_ERROR error.
16344 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16345 * target.h (target_insert_breakpoint): Extend comment.
16346 (target_insert_hw_breakpoint): Add comment.
16348 2014-01-08 Pedro Alves <palves@redhat.com>
16350 * remote.c (remote_add_thread): Add threads silently if starting
16352 (remote_notice_new_inferior): If in all-stop, and starting up,
16353 don't call notice_new_inferior.
16354 (get_current_thread): New function, factored out from ...
16355 (add_current_inferior_and_thread): ... this. Adjust.
16356 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16357 found any thread, then select the remote's current thread as GDB's
16358 current thread too.
16360 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16362 * NEWS: Create a new section for the next release branch.
16363 Rename the section of the current branch, now that it has
16366 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16368 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16369 * version.in: Bump version to 7.7.50.DATE-cvs.
16371 2014-01-08 Yao Qi <yao@codesourcery.com>
16373 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16374 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16375 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16377 2014-01-08 Yao Qi <yao@codesourcery.com>
16379 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16380 return value of bfd_get_filename to symbol_file_add_from_bfd.
16382 2014-01-08 Pierre Muller <muller@sourceware.org>
16385 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16386 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16387 to prim_record_mininal_symbol_and_info.
16388 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16389 in call to prim_record_minimal_symbol_and_info.
16390 (read_pe_exported_syms): Set index field of section_data.
16392 2014-01-07 Andrew Pinski <apinski@cavium.com>
16394 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16395 * features/aarch64.c: Regenerate.
16397 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16399 * target.c (return_null): Define.
16400 (update_current_target): Use it instead of return_zero for
16401 functions that return a pointer.
16403 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16405 * source.c (add_path): Fix check for duplicated paths in the previously
16408 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16410 * ada-lang.c: Remove duplicated include statements.
16411 * alphabsd-nat.c: Ditto.
16412 * amd64-darwin-tdep.c: Ditto.
16413 * amd64fbsd-nat.c: Ditto.
16414 * auto-load.c: Ditto.
16416 * breakpoint.c: Ditto.
16417 * dbxread.c: Ditto.
16418 * fork-child.c: Ditto.
16419 * gdb_usleep.c: Ditto.
16420 * i386-darwin-tdep.c: Ditto.
16421 * i386fbsd-nat.c: Ditto.
16423 * inferior.c: Ditto.
16424 * jv-lang.c: Ditto.
16425 * linux-nat.c: Ditto.
16426 * linux-tdep.c: Ditto.
16427 * m68kbsd-nat.c: Ditto.
16428 * m68klinux-nat.c: Ditto.
16429 * microblaze-tdep.c: Ditto.
16430 * mips-linux-tdep.c: Ditto.
16431 * mn10300-tdep.c: Ditto.
16432 * nto-tdep.c: Ditto.
16433 * opencl-lang.c: Ditto.
16435 * printcmd.c: Ditto.
16436 * regcache.c: Ditto.
16437 * remote-m32r-sdi.c: Ditto.
16439 * symfile.c: Ditto.
16441 * tilegx-linux-nat.c: Ditto.
16442 * tilegx-tdep.c: Ditto.
16443 * tracepoint.c: Ditto.
16445 * vaxbsd-nat.c: Ditto.
16446 * windows-nat.c: Ditto.
16447 * xtensa-tdep.c: Ditto.
16449 2014-01-07 Yao Qi <yao@codesourcery.com>
16451 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16453 2014-01-07 Yao Qi <yao@codesourcery.com>
16454 Joel Brobecker <brobecker@adacore.com>
16456 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16457 (pdc_write_regs): Likewise.
16458 (fetch_regs_kernel_thread): Likewise.
16459 (store_regs_kernel_thread): Likewise.
16461 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16463 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16464 tagged type objects to their actual type.
16466 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16468 * ada-valprint.c (print_field_values): Add "language" parameter.
16469 Update calls to print_field_values and print_variant_part.
16470 Pass new parameter "language" in call to val_print instead
16471 of "current_language". Replace call to ada_val_print by call
16473 (print_variant_part): Add "language" parameter.
16474 (ada_val_print_struct_union): Update call to print_field_values.
16476 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16478 * ada-valprint.c (ui_memcpy): Delete.
16479 (ada_print_floating): Update documentation. Add empty line
16480 between between function documentation and implementation.
16481 Delete variable "buffer". Use ui_file_xstrdup in place of
16482 ui_file_put. Minor adjustments following this change.
16484 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16486 * ada-valprint.c (ada_val_print_string): New function,
16487 extracted from ada_val_print_array.
16488 (ada_val_print_array): Replace extracted code by call
16489 to ada_val_print_string followed by a return. Move
16490 "else" branch to the function's top block.
16492 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16494 * ada-valprint.c (ada_val_print_array): Move implementation
16495 down. Rename parameter "offset" and "val" into "offset_aligned"
16496 and "original_value" respectively. Add parameter "offset".
16498 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16500 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16501 re-organizing the code. Change the "???" message printed
16502 when target type is a TYPE_CODE_UNDEF into
16503 "<ref to undefined type>".
16505 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16507 * ada-valprint.c (print_record): Delete, implementation inlined...
16508 (ada_val_print_struct_union): ... here. Remove call to
16509 ada_check_typedef in inlined implementation.
16511 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16513 * ada-valprint.c (ada_val_print_gnat_array): New function,
16514 extracted from ada_val_print_1;
16515 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16516 (ada_val_print_flt, ada_val_print_struct_union)
16517 (ada_val_print_ref): Likewise.
16518 (ada_val_print_1): Delete variables i and elttype.
16519 Replace extracted-out code by call to corresponding
16522 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16524 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16526 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16528 * ada-valprint.c (ada_val_print_1): Replace calls to
16529 ada_val_print_1 by calls to val_print.
16531 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16533 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16534 Update calls to self accordingly. Replace calls to c_val_print
16535 by calls to val_print.
16537 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16539 * ada-valprint.c (print_record): Delete declaration.
16540 (adjust_type_signedness, ada_val_print_1): Likewise.
16541 (ada_val_print): Move function implementation down.
16542 (print_variant_part, print_field_values, print_record):
16543 Move function implementation up.
16545 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16547 * python/py-type.c (typy_get_name): New function.
16548 (type_object_getset): Add entry for attribute "name".
16549 * NEWS: Add entry mentioning this new attribute.
16551 2014-01-07 Yao Qi <yao@codesourcery.com>
16553 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16556 2014-01-07 Yao Qi <yao@codesourcery.com>
16558 * gnu-nat.c (info_port_rights): Add qualifier const to
16561 2014-01-07 Yao Qi <yao@codesourcery.com>
16563 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16565 2014-01-07 Yao Qi <yao@codesourcery.com>
16567 * gnu-nat.c (make_inf) Update declaration.
16568 (make_inf): Make it static.
16569 (inf_set_traced): Likewise.
16570 (inf_port_to_thread, inf_task_died_status): Likewise.
16572 2014-01-07 Yao Qi <yao@codesourcery.com>
16574 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16576 2014-01-07 Yao Qi <yao@codesourcery.com>
16578 * gnu-nat.c (_initialize_gnu_nat): Declare.
16580 2014-01-07 Yao Qi <yao@codesourcery.com>
16582 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16584 (struct gdbarch_info) <byte_order>: Change type to
16586 <byte_order_for_code>: Likewise.
16587 * gdbarch.c, gdbarch.h: Regenerated.
16589 2014-01-06 Sasha Smundak <asmundak@google.com>
16591 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16593 2014-01-06 Tom Tromey <tromey@redhat.com>
16595 * doublest.c (convert_doublest_to_floatformat): Use const, not
16597 * somread.c (som_symtab_read): Likewise.
16599 2014-01-07 Hui Zhu <hui@codesourcery.com>
16601 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16602 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16603 (gdb_bfd_fopen): Ditto.
16604 (gdb_bfd_openr): Ditto.
16605 (gdb_bfd_openw): Ditto.
16606 (gdb_bfd_openr_iovec): Ditto.
16607 (gdb_bfd_fdopenr): Ditto.
16608 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16609 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16611 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16613 * symfile-mem.c (symbol_file_add_from_memory): Removed
16614 gdb_bfd_stash_filename.
16616 2014-01-03 Doug Evans <dje@google.com>
16618 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16621 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16623 Update year range in copyright notice of all files.
16625 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16627 * top.c (print_gdb_version): Set copyright year to 2014.
16629 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16631 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16633 For older changes see ChangeLog-2013.
16639 version-control: never