1 2014-12-27 Anthony Green <green@moxielogic.com>
3 * moxie-tdep.c (moxie_software_single_step): ldo/sto instructions
4 are 32 bits, not 48. Update comments for various instructions.
5 (moxie_process_record): Update for new shorter ldo/sto
6 instructions. Add support for sex, zex, umul.x and mul.x
7 instructions. Update comments for various instructions.
9 2014-12-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
11 * arm-tdep.c (arm_gdbarch_init): Explicitely handle value 3 of
12 Tag_ABI_VFP_args. Also replace hardcoded values by enum values in the
13 switch handling the different values of Tag_ABI_VFP_args.
15 2014-12-23 Doug Evans <xdje42@gmail.com>
17 * ada-lang.c (user_select_syms): Only fetch symtab if symbol is
19 (cache_symbol): Ignore symbols that are not objfile-owned.
20 * block.c (block_objfile): New function.
21 (block_gdbarch): New function.
22 * block.h (block_objfile): Declare.
23 (block_gdbarch): Declare.
24 * c-exp.y (classify_name): Remove call to
25 language_lookup_primitive_type. No longer necessary.
26 * gdbtypes.c (lookup_typename): Call lookup_symbol_in_language.
27 Remove call to language_lookup_primitive_type. No longer necessary.
28 * guile/scm-symbol.c (syscm_gdbarch_data_key): New static global.
29 (syscm_gdbarch_data): New struct.
30 (syscm_init_arch_symbols): New function.
31 (syscm_get_symbol_map): Renamed from syscm_objfile_symbol_map.
32 All callers updated. Handle symbols owned by arches.
33 (gdbscm_symbol_symtab): Handle symbols owned by arches.
34 (gdbscm_initialize_symbols): Initialize syscm_gdbarch_data_key.
35 * language.c (language_lookup_primitive_type_1): New function.
36 (language_lookup_primitive_type): Call it.
37 (language_alloc_type_symbol): New function.
38 (language_init_primitive_type_symbols): New function.
39 (language_lookup_primitive_type_as_symbol): New function.
40 * language.h (struct language_arch_info) <primitive_type_symbols>:
42 (language_lookup_primitive_type): Add function comment.
43 (language_lookup_primitive_type_as_symbol): Declare.
44 * printcmd.c (address_info): Handle arch-owned symbols.
45 * python/py-symbol.c (sympy_get_symtab): Ditto.
47 (sympy_dealloc): Ditto.
48 * symmisc.c (print_symbol): Ditto.
49 * symtab.c (fixup_symbol_section): Ditto.
50 (lookup_symbol_aux): Initialize block_found.
51 (basic_lookup_symbol_nonlocal): Try looking up the symbol as a
53 (initialize_objfile_symbol_1): New function.
54 (initialize_objfile_symbol): Call it.
55 (allocate_symbol): Call it.
56 (allocate_template_symbol): Call it.
57 (symbol_objfile): Assert symbol is objfile-owned.
58 (symbol_arch, symbol_symtab, symbol_set_symtab): Ditto.
59 * symtab.h (struct symbol) <owner>: Replaces member "symtab".
60 (struct symbol) <is_objfile_owned>: New member.
61 (SYMBOL_OBJFILE_OWNED): New macro.
62 * cp-namespace.c (cp_lookup_bare_symbol): New arg langdef.
63 All callers updated. Try to find the symbol as a primitive type.
64 (lookup_namespace_scope): New arg langdef. All callers updated.
65 Call cp_lookup_bare_symbol directly for simple bare symbols.
67 2014-12-23 Doug Evans <xdje42@gmail.com>
69 * symtab.h (SYMBOL_DOMAIN_BITS): New macro.
70 (struct symbol) <domain>: Use it.
72 2014-12-23 Doug Evans <xdje42@gmail.com>
74 * symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
77 2014-12-23 Doug Evans <xdje42@gmail.com>
79 * language.h (struct language_defn) <la_lookup_symbol_nonlocal>:
80 New arg language_defn. All uses updated.
82 2014-12-23 Doug Evans <xdje42@gmail.com>
84 * symtab.h (SYMBOL_SYMTAB): Delete
85 (SYMBOL_OBJFILE): Delete.
86 (symbol_symtab, symbol_set_symtab): Declare.
87 (symbol_objfile, symbol_arch): Declare.
88 * symtab.c (symbol_symtab): Replaces SYMBOL_SYMTAB. All uses updated.
89 All references to symbol->symtab redirected through here.
90 (symbol_set_symtab): New function. All assignments to SYMBOL_SYMTAB
91 redirected through here.
92 (symbol_arch): New function.
93 (symbol_objfile): New function. Replaces SYMBOL_OBJFILE.
95 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
97 * findvar.c (default_read_var_value): Call symbol_arch.
98 * guile/scm-frame.c (gdbscm_frame_block): Call symbol_objfile.
99 * jv-lang.c (add_class_symtab_symbol): Call symbol_arch.
100 * printcmd.c (address_info): Call symbol_arch.
101 * tracepoint.c (scope_info): Call symbol_arch.
103 2014-12-22 Doug Evans <xdje42@gmail.com>
105 * cp-namespace.c (cp_lookup_symbol_via_all_imports): New function.
106 (cp_lookup_symbol_namespace): Call it.
107 (cp_lookup_symbol_nonlocal): Ditto.
109 2014-12-22 Doug Evans <xdje42@gmail.com>
111 * cp-namespace.c (cp_lookup_symbol_via_imports): New arg
112 "search_scope_first". All callers updated.
114 2014-12-22 Doug Evans <xdje42@gmail.com>
116 * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
117 (cp_basic_lookup_symbol): Renamed from lookup_symbol_file. Delete
118 arg "search". All callers updated.
119 (cp_lookup_bare_symbol): New function.
120 (cp_search_static_and_baseclasses): New function.
121 (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
122 (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
123 (cp_lookup_nested_symbol): Ditto.
125 2014-12-22 Doug Evans <xdje42@gmail.com>
127 * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
129 2014-12-22 Doug Evans <xdje42@gmail.com>
131 * cp-namespace.c: Whitespace cleanup.
133 2014-12-20 Keith Seitz <keiths@redhat.com>
134 Mihail-Marian Nistor <mihail.nistor@freescale.com>
137 * linespec.c (struct collect_minsyms): Add new member `symtab'.
138 (add_minsym): Handle cases where info.symtab is non-NULL.
139 (search_minsyms_for_name): Add new parameter `symtab'.
140 Handle limiting searches to a specific symtab.
141 (add_matching_symtabs_to_info): Search through minimal symbols
142 for language_asm files for which no new symbols are found.
144 2014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
145 Nigel Stephens <nigel@mips.com>
146 Chris Dearman <chris@mips.com>
147 Luis Machado <lgustavo@codesourcery.com>
149 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
150 (ALLDEPFILES): Add mips-sde-tdep.c.
151 * mips-sde-tdep.c: New file containg SDE specific code.
152 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
154 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
155 * osabi.c (gdb_osabi_names): Add SDE.
156 * NEWS: Mention the change.
158 2014-12-18 Simon Marchi <simon.marchi@ericsson.com>
160 * elfread.c (elf_symfile_init): Remove stale comment.
161 (elf_symfile_read): Same.
162 * symfile.h (struct sym_fns): Same.
164 2014-12-18 Nigel Stephens <nigel@mips.com>
165 Maciej W. Rozycki <macro@codesourcery.com>
167 * mips-tdep.c (print_fpu_flags): New function.
168 (mips_print_float_info): Likewise.
169 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
170 print_float_info routine.
172 2014-12-18 Yao Qi <yao@codesourcery.com>
174 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
175 * gdbarch.c: Re-generated.
176 * gdbarch.h: Likewise.
177 * infcmd.c (default_print_float_info): New function.
178 (print_float_info): Removed. Move code to
179 default_print_float_info.
180 (float_info): Adjust to call gdbarch_print_float_info.
181 * inferior.h (default_print_float_info): Declare it.
183 2014-12-18 Yao Qi <yao@codesourcery.com>
185 * h8300-tdep.c (h8300_print_float_info): Remove.
186 (h8300_gdbarch_init): Remove the call to
187 set_gdbarch_print_float_info.
189 2014-12-18 Doug Evans <xdje42@gmail.com>
191 * infcmd.c (jump_command): Minor simplification.
193 2014-12-18 Doug Evans <xdje42@gmail.com>
195 * language.c (language_lookup_primitive_type): Renamed from
196 language_lookup_primitive_type_by_name. All callers updated.
198 2014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
200 Fix MinGW compilation.
201 * compile/compile.c (get_compile_file_tempdir): Call error if
203 * config.in: Regenerate.
204 * configure: Regenerate.
205 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
207 2014-12-17 Doug Evans <xdje42@gmail.com>
209 * valops.c (value_maybe_namespace_elt): Remove redundant call to
210 lookup_static_symbol.
212 2014-12-17 Doug Evans <xdje42@gmail.com>
214 New parameter "debug symbol-lookup".
216 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
218 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
219 (cp_lookup_nested_symbol): Ditto.
220 * language.c (language_lookup_primitive_type_by_name): Add debug
222 * minsyms.c (lookup_minimal_symbol): Add debug output.
223 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
224 * symfile-debug.c (debug_objfile_name): ... from here. All callers
226 * objfiles.h (objfile_debug_name): Declare.
227 * symtab.h (symbol_lookup_debug): Declare.
228 * symtab.c (symbol_lookup_debug): New global.
229 (lookup_language_this): Add debug output.
230 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
231 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
232 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
233 (_initialize_symtab): Add new parameter "debug symbol-lookup".
235 2014-12-16 Doug Evans <xdje42@gmail.com>
237 * buildsym.c: Add comments describing how the buildsym machinery
238 is used by the various file formats.
239 (really_free_pendings): Enhance function comment.
240 See pending_macros to NULL. Simplify resetting pending_addrmap.
241 Call free_buildsym_compunit.
242 (free_buildsym_compunit): Set current_subfile to NULL.
243 (prepare_for_building): New function.
244 (start_symtab): Call it. Remove call to set_last_source_file.
245 (restart_symtab): New arg "cust". All callers updated.
246 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
247 (reset_symtab_globals): Enhance function comment.
248 Set local_symbols, file_symbols, global_symbols to NULL.
249 Set pending_macros to NULL. Simplify resetting pending_addrmap.
250 Call free_buildysym_compunit.
251 (end_symtab_without_blockvector): Delete. All callers updated.
252 (end_symtab_with_blockvector): Remove redundant call to
253 free_buildsym_compunit.
254 (augment_type_symtab): Remove arg "cust". All callers updated.
255 (buildsym_init): Remove resetting of free_pendings, file_symbols,
256 global_symbols, pending_blocks, pending_macros. Instead make
257 handling consistent with pending_addrmap: Assert value was reset
258 at end of previous symtab building. Initialize context_stack here.
260 2014-12-16 Doug Evans <xdje42@gmail.com>
262 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
263 cp_lookup_symbol_imports. All callers updated.
265 2014-12-16 Doug Evans <xdje42@gmail.com>
267 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
268 find_type_baseclass_by_name. All callers updated.
270 2014-12-16 Doug Evans <xdje42@gmail.com>
272 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
273 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
274 (print_symbol_info): Delete arg symtab. All callers updated.
275 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
277 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
279 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
280 "Name" columns. Assure that the output is always indented.
282 2014-12-16 Joel Brobecker <brobecker@adacore.com>
284 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
286 (linux_enable_event_reporting): Add parameter "attached".
287 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
288 declaration. New function.
289 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
290 (linux_enable_event_reporting): Add new parameter "attached".
291 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
293 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
294 Use it. Update function description.
295 (linux_child_post_attach, linux_child_post_startup_inferior):
296 Update call to linux_enable_event_reporting.
298 2014-12-16 Yao Qi <yao@codesourcery.com>
300 * NEWS: Move some entries to "Changes since GDB 7.8" section.
302 2014-12-16 Yao Qi <yao@codesourcery.com>
304 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
307 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
309 * inferior.c (find_inferior_ptid): New function.
310 * inferior.h (find_inferior_ptid): New declaration.
311 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
312 * corelow.c (core_pid_to_str): Same.
313 * darwin-nat.c (darwin_resume): Same.
314 * infrun.c (fetch_inferior_event): Same.
315 (get_inferior_stop_soon): Same.
316 (handle_inferior_event): Same.
317 (handle_signal_stop): Same.
318 * linux-nat.c (resume_lwp): Same.
319 (stop_wait_callback): Same.
320 * mi/mi-interp.c (mi_new_thread): Same.
321 (mi_thread_exit): Same.
322 * proc-service.c (ps_pglobal_lookup): Same.
323 * record-btrace.c (record_btrace_step_thread): Same.
324 * remote-sim.c (gdbsim_close_inferior): Same.
325 (gdbsim_resume): Same.
327 * sol2-tdep.c (sol2_core_pid_to_str): Same.
328 * target.c (memory_xfer_partial_1): Same.
329 (default_thread_address_space): Same.
330 * thread.c (thread_change_ptid): Same.
331 (switch_to_thread): Same.
332 (do_restore_current_thread_cleanup): Same.
334 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
336 * defs.h (gdb_readline): Constify argument.
337 (gdb_readline_wrapper): Same.
338 (command_line_input): Same.
339 (deprecated_readline_hook): Same.
340 * top.c (deprecated_readline_hook): Same.
341 (gdb_readline): Same.
342 (gdb_readline_wrapper): Same.
343 (command_line_input): Constify argument. Pass prompt_arg to called
344 functions instead of local_prompt, overwriting prompt_arg if necessary.
345 * event-top.h (display_gdb_prompt): Constify argument.
346 * event-top.c (display_gdb_prompt): Same.
347 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
348 if building with Python 3.4 and up.
350 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
352 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
355 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
358 * memattr.c (mem_info_command): Remove "unsigned long" casts.
360 2014-12-13 Doug Evans <xdje42@gmail.com>
362 * utils.c (make_hex_string): Fix off-by-one error.
364 2014-12-13 Joel Brobecker <brobecker@adacore.com>
366 * ada-lang.h (ada_ensure_varsize_limit): Declare.
367 * ada-lang.c (check_size): Remove advance declaration.
368 (ada_ensure_varsize_limit): Renames check_size.
369 Replace calls to check_size by calls to ada_ensure_varsize_limit
371 * ada-valprint.c (ada_val_print_ref): Add call to
372 ada_ensure_varsize_limit. Add comment explaining why.
374 2014-12-13 Joel Brobecker <brobecker@adacore.com>
376 * utils.c (make_hex_string): Replace use of sprintf by use of
379 2014-12-13 Joel Brobecker <brobecker@adacore.com>
381 * compile/compile-object-load.c (link_callbacks_multiple_definition)
382 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
383 newline at end of warning message.
385 2014-12-13 Joel Brobecker <brobecker@adacore.com>
387 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
388 new "EXTRA-ARGS" parameter.
389 * configure.ac: If large-file support is disabled in GDB,
390 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
391 * configure: Regenerate.
393 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
396 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
397 TYPE if not TYPE_CODE_TYPEDEF.
399 2014-12-13 Joel Brobecker <brobecker@adacore.com>
402 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
403 the frame unwinder must either be the dwarf2_frame_unwind
404 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
405 stack_addr is valid before calling get_frame_base. Throw
406 an error if not valid.
408 2014-12-12 Doug Evans <xdje42@gmail.com>
410 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
413 2014-12-12 Doug Evans <xdje42@gmail.com>
415 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
416 All callers updated. Rename arg "namespace" to "symbol_name".
418 2014-12-12 Doug Evans <xdje42@gmail.com>
420 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
421 partial_map_symtabs_matching_filename. All uses updated.
422 (psym_find_pc_sect_compunit_symtab): Renamed from
423 find_pc_sect_compunit_symtab_from_partial. All uses updated.
424 Add function comment.
425 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
426 All uses updated. Add function comment.
427 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
428 Add function comment.
429 (psym_find_last_source_symtab): Renamed from
430 find_last_source_symtab_from_partial. All uses updated.
431 Add function comment.
432 (psym_forget_cached_source_info): Renamed from
433 forget_cached_source_info_partial. All uses updated.
434 Add function comment.
435 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
436 All uses updated. Add function comment.
437 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
438 updated. Add function comment.
439 (psym_expand_symtabs_for_function): Renamed from
440 read_symtabs_for_function. All uses updated. Update function comment.
441 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
442 All uses updated. Add function comment.
443 (psym_expand_symtabs_with_fullname): Renamed from
444 read_psymtabs_with_fullname. All uses updated. Add function comment.
445 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
446 All uses updated. Add function comment.
447 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
449 (psym_expand_symtabs_matching): Renamed from
450 expand_symtabs_matching_via_partial. All uses updated.
451 Add function comment.
452 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
453 Add function comment.
455 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
456 Jan Kratochvil <jan.kratochvil@redhat.com>
457 Tom Tromey <tromey@redhat.com>
460 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
462 * p-lang.c (pascal_language_defn): Update.
463 * opencl-lang.c (opencl_language_defn): Update.
464 * objc-lang.c (objc_language_defn): Update.
465 * m2-lang.c (m2_language_defn): Update.
466 * language.h (struct language_defn) <la_get_compile_instance,
467 la_compute_program>: New fields.
468 * language.c (unknown_language_defn, auto_language_defn)
469 (local_language_defn): Update.
470 * jv-lang.c (java_language_defn): Update.
471 * go-lang.c (go_language_defn): Update.
472 * f-lang.c (f_language_defn): Update.
473 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
474 * dwarf2loc.c (dwarf2_compile_property_to_c)
475 (locexpr_generate_c_location, loclist_generate_c_location): New
477 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
478 * defs.h (enum compile_i_scope_types): New.
479 (enum command_control_type) <compile_control>: New constant.
480 (struct command_line) <control_u>: New field.
481 * d-lang.c (d_language_defn): Update.
482 * compile/compile.c: New file.
483 * compile/compile-c-support.c: New file.
484 * compile/compile-c-symbols.c: New file.
485 * compile/compile-c-types.c: New file.
486 * compile/compile.h: New file.
487 * compile/compile-internal.h: New file.
488 * compile/compile-loc2c.c: New file.
489 * compile/compile-object-load.c: New file.
490 * compile/compile-object-load.h: New file.
491 * compile/compile-object-run.c: New file.
492 * compile/compile-object-run.h: New file.
493 * cli/cli-script.c (multi_line_command_p, print_command_lines)
494 (execute_control_command, process_next_line)
495 (recurse_read_control_structure): Handle compile_control.
496 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
497 * c-lang.c (c_language_defn, cplus_language_defn)
498 (asm_language_defn, minimal_language_defn): Update.
499 * ada-lang.c (ada_language_defn): Update.
500 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
502 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
503 (HFILES_NO_SRCDIR): Add compile.h.
504 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
505 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
506 (compile.o, compile-c-types.o, compile-c-symbols.o)
507 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
508 (compile-c-support.o): New targets.
510 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
512 * s390-linux-tdep.c (s390_gcc_target_options): New function.
513 (s390_gdbarch_init): Add it to gdbarch.
515 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
517 * linux-tdep.c: Include objfiles.h and infcall.h.
518 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
520 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
522 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
524 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
525 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
526 translate_register. Now public.
527 (dwarf2_compile_expr_to_ax): Update.
529 2014-12-12 Tom Tromey <tromey@redhat.com>
530 Jan Kratochvil <jan.kratochvil@redhat.com>
532 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
533 (dwarf_expr_frame_base): Update caller.
534 (dwarf_expr_frame_base_1): Rename to ...
535 (func_get_frame_base_dwarf_block): ... this and make it public.
536 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
538 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
540 2014-12-12 Tom Tromey <tromey@redhat.com>
542 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
544 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
545 dwarf2_compile_cfa_to_ax.
546 (dwarf2_compile_cfa_to_ax): Remove.
547 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
548 (dwarf2_compile_cfa_to_ax): Remove.
550 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
552 * infcall.h (call_function_by_hand_dummy): Declare.
553 * infcall.c (call_function_by_hand): Use
554 call_function_by_hand_dummy.
555 (call_function_by_hand_dummy): Rename from call_function_by_hand.
556 Add arguments. Register a destructor.
558 2014-12-12 Tom Tromey <tromey@redhat.com>
559 Jan Kratochvil <jan.kratochvil@redhat.com>
561 * osabi.h (osabi_triplet_regexp): Declare.
562 * osabi.c (struct osabi_names): New.
563 (gdb_osabi_names): Change type to struct osabi_names. Update
565 (gdbarch_osabi_name): Update.
566 (osabi_triplet_regexp): New function.
567 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
568 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
569 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
570 set_gdbarch_gnu_triplet_regexp.
571 * gdbarch.sh (gnu_triplet_regexp): New method.
572 * gdbarch.c, gdbarch.h: Rebuild.
573 * arch-utils.h (default_gnu_triplet_regexp): Declare.
574 * arch-utils.c (default_gnu_triplet_regexp): New function.
576 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
578 * arch-utils.c (default_infcall_mmap)
579 (default_gcc_target_options): New functions.
580 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
581 (GDB_MMAP_PROT_EXEC): Define.
582 (default_infcall_mmap, default_gcc_target_options): Declare.
583 * gdbarch.h: Rebuild.
584 * gdbarch.c: Rebuild.
585 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
587 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
589 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
591 (pop_dummy_frame): Call the destructor if it exists.
592 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
594 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
595 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
597 2014-12-12 Tom Tromey <tromey@redhat.com>
599 * gdbtypes.h (make_unqualified_type): Declare.
600 * gdbtypes.c (make_unqualified_type): New function.
602 2014-12-12 Tom Tromey <tromey@redhat.com>
604 * ui-file.h (ui_file_write_for_put): Declare.
605 * ui-file.c (ui_file_write_for_put): New function.
606 * mi/mi-out.c (do_write): Remove.
607 (mi_out_put): Use ui_file_write_for_put.
609 2014-12-12 Doug Evans <dje@google.com>
611 * NEWS: Mention gdb.lookup_objfile.
612 * python/python.c (GdbMethods): Add lookup_objfile.
613 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
614 * python/py-objfile.c: #include "symtab.h".
615 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
616 (objfpy_lookup_objfile_by_name): New function.
617 (objfpy_lookup_objfile_by_build_id): New function.
618 (gdbpy_lookup_objfile): New function.
620 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
622 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
623 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
624 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
626 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
629 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
631 * completer.c: Include "target.h", "reggroups.h", and
633 (reg_or_group_completer): New.
634 * completer.h (reg_or_group_completer): Declare.
635 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
636 the "info registers" and "info all-registers" commands and the
637 dbx-mode "lr" command.
639 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
641 * user-regs.c: Include "arch-utils.h", "command.h", and
643 (maintenance_print_user_registers): New.
644 (_initialize_user_regs): Register new "maint print user-registers"
646 * NEWS: Mention new GDB command "maint print user-registers".
648 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
649 Maciej W. Rozycki <macro@mips.com>
650 Pedro Alves <pedro@codesourcery.com>
652 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
653 remove `predefault' and `invalid_p' initializers.
654 (make_symbol_special): New architecture method.
655 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
656 (objfile, symbol): New declarations.
657 * arch-utils.h (default_elf_make_msymbol_special): Remove
659 (default_make_symbol_special): New prototype.
660 (default_adjust_dwarf2_addr): Likewise.
661 (default_adjust_dwarf2_line): Likewise.
662 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
663 * arch-utils.c (default_elf_make_msymbol_special): Remove
665 (default_make_symbol_special): New function.
666 (default_adjust_dwarf2_addr): Likewise.
667 (default_adjust_dwarf2_line): Likewise.
668 * dwarf2-frame.c (decode_frame_entry_1): Call
669 `gdbarch_adjust_dwarf2_addr'.
670 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
671 * dwarf2read.c (create_addrmap_from_index): Likewise.
672 (process_psymtab_comp_unit_reader): Likewise.
673 (add_partial_symbol): Likewise.
674 (add_partial_subprogram): Likewise.
675 (process_full_comp_unit): Likewise.
676 (read_file_scope): Likewise.
677 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
678 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
679 (read_call_site_scope): Likewise.
680 (dwarf2_ranges_read): Likewise.
681 (dwarf2_record_block_ranges): Likewise.
682 (read_attribute_value): Likewise.
683 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
684 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
685 * elfread.c (elf_symtab_read): Don't call
686 `gdbarch_elf_make_msymbol_special' if unset.
687 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
688 the ISA bit from the PC.
689 * mips-tdep.c (mips_unmake_compact_addr): New function.
690 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
691 address appropriately.
692 (mips_make_symbol_special): New function.
693 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
694 (mips_pc_is_mips16): Likewise.
695 (mips_pc_is_micromips): Likewise.
696 (mips_pc_isa): Likewise.
697 (mips_adjust_dwarf2_addr): New function.
698 (mips_adjust_dwarf2_line): Likewise.
699 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
700 (mips_addr_bits_remove): Likewise.
701 (mips_skip_trampoline_code): Likewise.
702 (mips_write_pc): Don't set the ISA bit.
703 (mips_eabi_push_dummy_call): Likewise.
704 (mips_o64_push_dummy_call): Likewise.
705 (mips_gdbarch_init): Install `mips_make_symbol_special',
706 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
708 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
709 target-specific symbol address adjustments.
710 * gdbarch.h: Regenerate.
711 * gdbarch.c: Regenerate.
713 2014-12-12 Yao Qi <yao@codesourcery.com>
716 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
717 'skip_pc'. Remove code skipping prologue instructions, use
718 arm_analyze_prologue instead.
719 (arm_analyze_prologue): Stop the scanning for unrecognized
720 instruction when skipping prologue.
722 2014-12-12 Yao Qi <yao@codesourcery.com>
724 * arm-tdep.c (arm_instruction_restores_sp): New function.
725 (arm_analyze_prologue): Call arm_instruction_restores_sp.
726 (arm_in_function_epilogue_p): Move code to
727 arm_instruction_restores_sp.
729 2014-12-11 Doug Evans <xdje42@gmail.com>
731 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
733 2014-12-11 Doug Evans <xdje42@gmail.com>
735 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
736 (symbol *lookup_symbol_via_quick_fns): Ditto.
737 (lookup_symbol_in_objfile): Add forward decl.
738 (lookup_global_symbol_from_objfile): Simplify, call
739 lookup_symbol_in_objfile.
741 2014-12-11 Doug Evans <xdje42@gmail.com>
743 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
745 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
748 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
749 it is marked as persistent.
751 2014-12-10 Doug Evans <xdje42@gmail.com>
753 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
754 closer to its subroutines.
756 2014-12-10 Doug Evans <xdje42@gmail.com>
758 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
760 2014-12-10 Doug Evans <xdje42@gmail.com>
762 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
763 * cp-support.h (cp_lookup_symbol_imports): Delete.
765 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
768 * target.c (cleanup_restore_target_terminal): New function.
769 (make_cleanup_restore_target_terminal): New function.
770 * target.h (make_cleanup_restore_target_terminal): New declaration.
771 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
773 2014-12-08 Doug Evans <dje@google.com>
775 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
777 2014-12-08 Doug Evans <dje@google.com>
779 * NEWS: Mention gdb.Objfile.owner.
780 * python/py-objfile.c (objfpy_get_owner): New function.
781 (objfile_getset): Add "owner".
783 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
785 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
786 (lookup_global_symbol_from_objfile): Call it.
788 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
790 Remove const from struct objfile *.
791 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
792 symtab.c, symtab.h: In these files.
794 2014-12-05 Andreas From <andreas.from@ericsson.com>
796 * MAINTAINERS (Write After Approval): Add "Andreas From"
798 2014-12-05 Doug Evans <xdje42@gmail.com>
802 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
804 2014-12-04 Doug Evans <dje@google.com>
806 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
807 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
808 (objfile_getset): Add "add_separate_debug_file".
810 2014-12-04 Doug Evans <dje@google.com>
812 * NEWS: Mention gdb.Objfile.build_id.
813 * build-id.c (build_id_bfd_get): Make non-static.
814 * build-id.h (build_id_bfd_get): Add declaration.
815 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
816 (OBJFPY_REQUIRE_VALID): New macro.
817 (objfpy_get_build_id): New function.
818 (objfile_getset): Add "build_id".
819 * utils.c (make_hex_string): New function.
820 * utils.h (make_hex_string): Add declaration.
822 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
824 * block.c (block_lookup_symbol_primary): New function.
825 * block.h (block_lookup_symbol_primary): New declaration.
826 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
827 Call block_lookup_symbol_primary.
829 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
831 * tramp-frame.h (tramp_frame): Add `validate' member.
832 * tramp-frame.c (tramp_frame_start): Validate trampoline before
834 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
835 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
836 (mips_linux_o32_sigframe): Initialize `validate' member.
837 (mips_linux_o32_rt_sigframe): Likewise.
838 (mips_linux_n32_rt_sigframe): Likewise.
839 (mips_linux_n64_rt_sigframe): Likewise.
840 (micromips_linux_o32_sigframe): New variable.
841 (micromips_linux_o32_rt_sigframe): Likewise.
842 (micromips_linux_n32_rt_sigframe): Likewise.
843 (micromips_linux_n64_rt_sigframe): Likewise.
844 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
845 (mips_linux_n32n64_sigframe_init): Likewise.
846 (mips_linux_sigframe_validate): New function.
847 (micromips_linux_sigframe_validate): Likewise.
848 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
850 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
852 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
853 * sparc-sol2-tdep.c: Include "regset.h".
854 (sparc32_sol2_supply_core_gregset): New function.
855 (sparc32_sol2_collect_core_gregset): Likewise.
856 (sparc32_sol2_supply_core_fpregset): Likewise.
857 (sparc32_sol2_collect_core_fpregset): Likewise.
858 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
859 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
860 tdep->fpregset/sizeof_fpregset.
861 * sparc64-sol2-tdep.c: Include "regset.h".
862 (sparc64_sol2_supply_core_gregset): New function.
863 (sparc64_sol2_collect_core_gregset): Likewise.
864 (sparc64_sol2_supply_core_fpregset): Likewise.
865 (sparc64_sol2_collect_core_fpregset): Likewise.
866 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
867 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
868 tdep->fpregset/sizeof_fpregset.
870 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
872 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
875 2014-12-02 Doug Evans <dje@google.com>
877 * symtab.c (symbol_init_cplus_specific): Delete.
878 (symbol_set_demangled_name): Remove special c++ support.
879 (symbol_get_demangled_name, symbol_set_language): Ditto.
880 * symtab.h (struct cplus_specific): Delete.
881 (struct general_symbol_info) <language_specific>: Remove
884 2014-12-02 Doug Evans <dje@google.com>
887 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
889 2014-12-02 Doug Evans <dje@google.com>
892 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
895 2014-12-02 Doug Evans <dje@google.com>
897 * dwarf2read.c (peek_die_abbrev): Improve error message text.
899 2014-12-02 Doug Evans <dje@google.com>
901 * valops.c (do_search_struct_field): Remove remnant of Chill support.
902 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
904 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
906 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
908 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
910 * NEWS: Mention new Python events.
911 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
912 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
913 (py-infevents.o): New rule.
914 * doc/observer.texi (inferior_call_pre, inferior_call_post)
915 (memory_changed, register_changed): New observers.
916 * infcall.c (call_function_by_hand): Notify observer before and
918 * python/py-event.h (inferior_call_kind): New enum.
919 (emit_inferior_call_event): New prototype.
920 (emit_register_changed_event): New prototype.
921 (emit_memory_changed_event): New prototype.
922 * python/py-events.h (events_object): New registries
923 inferior_call, memory_changed and register_changed.
924 * python/py-evts.c (gdbpy_initialize_py_events): Add the
925 inferior_call, memory_changed and register_changed registries.
926 * python/py-infevents.c: New.
927 * python/py-inferior.c (python_on_inferior_call_pre)
928 (python_on_inferior_call_post, python_on_register_change)
929 (python_on_memory_change): New functions.
930 (gdbpy_initialize_inferior): Attach python handler to new
932 * python/py-infthread.c(gdbpy_create_ptid_object): New.
933 (thpy_get_ptid) Use gdbpy_create_ptid_object.
934 * python/python-internal.h:
935 (gdbpy_create_ptid_object)
936 (gdbpy_initialize_inferior_call_pre_event)
937 (gdbpy_initialize_inferior_call_post_event)
938 (gdbpy_initialize_register_changed_event)
939 (gdbpy_initialize_memory_changed_event): New prototypes.
940 * python/python.c (_initialize_python): Initialize new events.
941 * valops.c (value_assign): Notify register_changed observer.
943 2014-12-02 Doug Evans <dje@google.com>
945 * python/py-infthread.c: Whitespace fixes.
947 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
949 * features/Makefile (s390-te-linux64-expedite): Replace
950 non-existant r14 and r15 by r14l and r15l, respectively.
951 * regformats/s390-te-linux64.dat: Regenerate.
953 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
955 * objfiles.c (allocate_objfile): Remove duplicate comment.
957 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
959 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
960 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
961 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
962 (supply_gregset, supply_fpregset): Remove.
963 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
964 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
967 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
969 Add add-auto-load-scripts-directory.
970 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
971 * auto-load.c (add_auto_load_dir): New function.
972 (_initialize_auto_load): Install it.
974 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
976 Pushed by Joel Brobecker <brobecker@adacore.com>.
977 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
979 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
981 * eval.c (evaluate_subexp): Check that the thread stack temporaries
982 are not already enabled before enabling them.
984 2014-11-29 Yao Qi <yao@codesourcery.com>
986 * arm-tdep.c (arm_analyze_prologue): Move local variables
987 'framereg' and 'framesize' to inner block. Move code to
990 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
992 * eval.c: Include gdbthread.h.
993 (evaluate_subexp): Enable thread stack temporaries before
994 evaluating a complete expression and clean them up after the
995 evaluation is complete.
996 * gdbthread.h: Include common/vec.h.
997 (value_ptr): New typedef.
998 (VEC (value_ptr)): New vector type.
999 (value_vec): New typedef.
1000 (struct thread_info): Add new fields stack_temporaries_enabled
1001 and stack_temporaries.
1002 (enable_thread_stack_temporaries)
1003 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1004 (get_last_thread_stack_temporary)
1005 (value_in_thread_stack_temporaries): Declare.
1006 * gdbtypes.c (class_or_union_p): New function.
1007 * gdbtypes.h (class_or_union_p): Declare.
1008 * infcall.c (call_function_by_hand): Store return values of class
1009 type as temporaries on stack.
1010 * thread.c (enable_thread_stack_temporaries): New function.
1011 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1012 (get_last_thread_stack_temporary): Likewise.
1013 (value_in_thread_stack_temporaries): Likewise.
1014 * value.c (value_force_lval): New function.
1015 * value.h (value_force_lval): Declare.
1017 2014-11-28 Pierre Muller <muller@sourceware.org>
1019 Pushed by Joel Brobecker <brobecker@adacore.com>.
1020 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
1023 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
1025 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
1026 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1027 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1028 * m68klinux-nat.c (fetch_core_registers): Remove.
1029 (linux_elf_core_fns): Remove.
1030 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
1032 2014-11-28 Joel Brobecker <brobecker@adacore.com>
1034 * utils.c (gdb_realpath): Rework comment about handling on
1037 2014-11-28 Yao Qi <yao@codesourcery.com>
1039 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1041 * gnulib/aclocal.m4: Re-generated.
1042 * gnulib/config.in: Re-generated.
1043 * gnulib/configure: Re-generated.
1044 * gnulib/import/Makefile.am: Re-generated.
1045 * gnulib/import/Makefile.in: Re-generated.
1046 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1047 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1048 * import/basename-lgpl.c: New file.
1049 * import/dirname-lgpl.c: New file.
1050 * import/dirname.h: New file.
1051 * import/m4/dirname.m4: New file.
1052 * import/m4/malloc.m4: New file.
1053 * import/m4/rename.m4: New file.
1054 * import/m4/rmdir.m4: New file.
1055 * import/m4/stdio_h.m4: New file.
1056 * import/malloc.c: New file.
1057 * import/rename.c: New file.
1058 * import/rmdir.c: New file.
1059 * import/same-inode.h: New file.
1060 * import/stdio.c: New file.
1061 * import/stdio.in.h: New file.
1062 * import/stripslash.c: New file.
1064 2014-11-28 Yao Qi <yao@codesourcery.com>
1066 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
1068 * config.in: Re-generated.
1069 * configure: Re-generated.
1070 * utils.c (gdb_realpath): Remove code calling realpath,
1071 canonicalize_file_name and pathconf.
1072 [!_WIN32]: Call canonicalize_file_name.
1074 2014-11-28 Yao Qi <yao@codesourcery.com>
1076 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1078 * aclocal.m4: Re-generated.
1079 * config.in: Re-generated.
1080 * configure: Re-generated.
1081 * import/Makefile.am: Re-generated.
1082 * import/Makefile.in: Re-generated.
1083 * import/m4/gnulib-cache.m4: Re-generated.
1084 * import/m4/gnulib-comp.m4: Re-generated.
1085 * import/canonicalize-lgpl.c: New file.
1086 * import/extra/snippet/_Noreturn.h: New file.
1087 * import/m4/canonicalize.m4: New file.
1088 * import/m4/double-slash-root.m4: New file.
1089 * import/m4/eealloc.m4: New file.
1090 * import/m4/malloca.m4: New file.
1091 * import/m4/nocrash.m4: New file.
1092 * import/m4/stdlib_h.m4: New file.
1093 * import/malloca.c: New file.
1094 * import/malloca.h: New file.
1095 * import/malloca.valgrind: New file.
1097 2014-11-28 Yao Qi <yao@codesourcery.com>
1099 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
1100 * config.in, configure: Regenerate.
1101 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1102 code checking HAVE_LSTAT is defined.
1104 2014-11-28 Yao Qi <yao@codesourcery.com>
1106 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1108 * gnulib/aclocal.m4: Re-generated.
1109 * gnulib/config.in: Re-generated.
1110 * gnulib/configure: Re-generated.
1111 * gnulib/import/Makefile.am: Re-generated.
1112 * gnulib/import/Makefile.in: Re-generated.
1113 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1114 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1115 * gnulib/import/lstat.c: New file.
1116 * gnulib/import/m4/lstat.m4: New file.
1118 2014-11-28 Yao Qi <yao@codesourcery.com>
1120 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
1121 * config.in, configure: Re-generate.
1122 * inf-child.c (inf_child_fileio_readlink): Don't check
1123 HAVE_READLINK is defined.
1125 2014-11-28 Yao Qi <yao@codesourcery.com>
1127 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1128 * gnulib/aclocal.m4: Re-generated.
1129 * gnulib/config.in: Likewise.
1130 * gnulib/configure: Likewise.
1131 * gnulib/import/Makefile.am: Likewise.
1132 * gnulib/import/Makefile.in: Likewise.
1133 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1134 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1135 * gnulib/import/dosname.h: New file
1136 * gnulib/import/m4/largefile.m4: New file.
1137 * gnulib/import/m4/readlink.m4: New file.
1138 * gnulib/import/m4/stat.m4: New file.
1139 * gnulib/import/readlink.c: New file.
1140 * gnulib/import/stat.c: New file.
1142 2014-11-26 Mark Wielaard <mjw@redhat.com>
1144 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1145 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1147 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1149 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1150 that there can be only one stack adjustment in the prologue
1151 with tests to detect specific disallowed stack adjustments.
1153 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1155 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1158 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1160 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1161 the instruction as well as reading it from memory.
1162 (nios2_match_add): New.
1163 (nios2_match_sub): New.
1164 (nios2_match_addi): New.
1165 (nios2_match_orhi): New.
1166 (nios2_match_stw): New.
1167 (nios2_match_ldw): New.
1168 (nios2_match_rdctl): New.
1169 (enum branch_condition): New.
1170 (nios2_match_branch): New.
1171 (nios2_match_jmpi): New.
1172 (nios2_match_calli): New.
1173 (nios2_match_jmpr): New.
1174 (nios2_match_callr): New.
1175 (nios2_match_break): New.
1176 (nios2_match_trap): New.
1177 (nios2_in_epilogue_p): Rewrite to use new functions.
1178 (nios2_analyze_prologue): Likewise.
1179 (nios2_skip_prologue): Delete unused local limit_pc.
1180 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1181 (nios2_get_next_pc): Rewrite to use new functions.
1183 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1185 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1187 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1189 Pushed by Joel Brobecker <brobecker@adacore.com>
1190 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1191 elements pi_len by the size of the elements before calling
1193 (inf_validate_task_sc): Likewise, and properly deallocate the
1196 2014-11-23 Doug Evans <xdje42@gmail.com>
1198 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1199 number and name if present. All callers updated.
1200 (dump_fn_fieldlists): Fix indentation of args.
1202 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1204 * MAINTAINERS (Write After Approval): Add myself.
1206 2014-11-23 Joel Brobecker <brobecker@adacore.com>
1208 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1209 to a bp_call_dummy breakpoint type.
1211 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1213 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1214 registering the signal handler.
1216 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1218 * event-top.h (call_stdin_event_handler_again_p): Declare.
1219 * event-top.c (call_stdin_event_handler_again_p): Define.
1220 (stdin_event_handler): Use it.
1221 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1222 handler again if there is pending input following a
1225 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1227 Pushed by Joel Brobecker <brobecker@adacore.com>
1228 * linux-fork.c (checkpoint_command): Print index of new
1229 checkpoint in response message.
1231 2014-11-23 Yao Qi <yao@codesourcery.com>
1233 * valprint.c (read_string): Move local variables 'found_nul',
1234 'chunksize' and 'limit' to inner scope. Update comments.
1236 2014-11-22 Doug Evans <xdje42@gmail.com>
1238 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1240 (search_symbols): Fix comments and whitespace.
1242 2014-11-22 Doug Evans <xdje42@gmail.com>
1244 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1246 2014-11-21 Doug Evans <dje@google.com>
1248 * psymtab.c (psymtab_search_name): Fix whitespace.
1250 2014-11-21 Yao Qi <yao@codesourcery.com>
1252 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1254 * gnulib/import/Makefile.am: Re-generated.
1255 * gnulib/import/Makefile.in: Likewise.
1256 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1258 2014-11-21 Yao Qi <yao@codesourcery.com>
1260 * gdb_wchar.h: Include wchar.h and wctype.h.
1261 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1262 include wchar.h and wctype.h.
1263 Don't check HAVE_WCHAR_H.
1265 2014-11-21 Yao Qi <yao@codesourcery.com>
1267 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1269 * gnulib/import/Makefile.am: Re-generated.
1270 * gnulib/import/Makefile.in: Likewise.
1271 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1273 2014-11-21 Yao Qi <yao@codesourcery.com>
1275 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1277 * gnulib/import/Makefile.am: Re-generated.
1278 * gnulib/import/Makefile.in: Likewise.
1279 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1281 2014-11-21 Yao Qi <yao@codesourcery.com>
1283 * common/common-defs.h: Include alloca.h
1284 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1285 * configure: Re-generated.
1286 * defs.h: Remove code handling alloca.
1287 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1290 2014-11-21 Yao Qi <yao@codesourcery.com>
1292 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1294 * gnulib/import/Makefile.am: Re-generated.
1295 * gnulib/import/Makefile.in: Likewise..
1296 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1298 2014-11-21 Yao Qi <yao@codesourcery.com>
1300 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1303 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1305 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1306 flag_unsigned if HIGH_BOUND is constant and negative.
1308 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1310 PR breakpoints/10737
1311 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1312 modifier from "struct gdbarch" when compiling without Expat (XML)
1314 (get_syscall_by_number): Likewise.
1315 (get_syscall_by_name): Likewise.
1316 (get_syscall_names): Likewise.
1318 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1320 PR breakpoints/10737
1321 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1322 set_xml_syscall_file_name to provide gdbarch.
1323 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1324 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1325 * breakpoint.c (print_it_catch_syscall): Adjust call to
1326 get_syscall_by_number to provide gdbarch.
1327 (print_one_catch_syscall): Likewise.
1328 (print_mention_catch_syscall): Likewise.
1329 (print_recreate_catch_syscall): Likewise.
1330 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1331 and get_syscall_by_name to provide gdbarch.
1332 (catch_syscall_completer): Adjust call to get_syscall_names to
1334 * gdbarch.c: Regenerate.
1335 * gdbarch.h: Likewise.
1336 * gdbarch.sh: Forward declare "struct syscalls_info".
1337 (xml_syscall_file): New variable.
1338 (syscalls_info): Likewise.
1339 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1340 set_xml_syscall_file_name to provide gdbarch.
1341 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1342 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1343 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1344 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1345 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1346 * xml-syscall.c: Include gdbarch.h.
1347 (set_xml_syscall_file_name): Accept gdbarch parameter.
1348 (get_syscall_by_number): Likewise.
1349 (get_syscall_by_name): Likewise.
1350 (get_syscall_names): Likewise.
1351 (my_gdb_datadir): Delete global variable.
1352 (struct syscalls_info) <my_gdb_datadir>: New variable.
1353 (struct syscalls_info) <sysinfo>: Rename variable to
1355 (sysinfo): Delete global variable.
1356 (have_initialized_sysinfo): Likewise.
1357 (xml_syscall_file): Likewise.
1358 (sysinfo_free_syscalls_desc): Rename to...
1359 (syscalls_info_free_syscalls_desc): ... this.
1360 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1361 code to the new layout of "struct syscalls_info".
1362 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1364 (syscall_create_syscall_desc): Likewise.
1365 (syscall_start_syscall): Likewise.
1366 (syscall_parse_xml): Likewise.
1367 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1368 (init_sysinfo): Rename to...
1369 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1370 Adjust function to deal with gdbarch.
1371 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1372 gdbarch as a parameter. Adjust code.
1373 (xml_get_syscall_name): Likewise.
1374 (xml_list_of_syscalls): Likewise.
1375 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1376 (get_syscall_by_number): Likewise.
1377 (get_syscall_by_name): Likewise.
1378 (get_syscall_names): Likewise.
1379 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1380 (get_syscall_by_number): Likewise.
1381 (get_syscall_by_name): Likewise.
1382 (get_syscall_names): Likewise.
1384 2014-11-20 Doug Evans <xdje42@gmail.com>
1386 Split struct symtab into two: struct symtab and compunit_symtab.
1387 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1388 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1389 to "struct compunit_symtab *". All callers updated.
1390 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1391 "struct symtab *" argument to "struct compunit_symtab *".
1392 All callers updated.
1393 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1394 result to "struct compunit_symtab *". All callers updated.
1395 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1396 Change result to "struct compunit_symtab *". All callers updated.
1397 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1398 hange type to "struct compunit_symtab *". All uses updated.
1399 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1400 Change type to "struct compunit_symtab *". All uses updated.
1401 * buildsym.c (struct buildsym_compunit): New struct.
1402 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1403 (buildsym_compunit): New static global.
1404 (finish_block_internal): Update to fetch objfile from
1406 (make_blockvector): Delete objfile argument.
1407 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1408 debugformat, producer.
1409 (start_buildsym_compunit): New function.
1410 (free_buildsym_compunit): Renamed from free_subfiles_list.
1411 All callers updated.
1412 (patch_subfile_names): Rewrite to use buildsym_compunit.
1413 (get_compunit_symtab): New function.
1414 (get_macro_table): Delete argument comp_dir. All callers updated.
1415 (start_symtab): Change result to "struct compunit_symtab *".
1416 All callers updated. Create the subfile of the main source file.
1417 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1418 (reset_symtab_globals): Update.
1419 (end_symtab_get_static_block): Update to use buildsym_compunit.
1420 (end_symtab_without_blockvector): Rewrite.
1421 (end_symtab_with_blockvector): Change result to
1422 "struct compunit_symtab *". All callers updated.
1423 Update to use buildsym_compunit. Don't set symtab->dirname,
1424 instead set it in the compunit.
1425 Explicitly make sure main symtab is first in its list.
1426 Set debugformat, producer, blockvector, block_line_section, and
1427 macrotable in the compunit.
1428 (end_symtab_from_static_block): Change result to
1429 "struct compunit_symtab *". All callers updated.
1430 (end_symtab, end_expandable_symtab): Ditto.
1431 (set_missing_symtab): Change symtab argument to
1432 "struct compunit_symtab *". All callers updated.
1433 (augment_type_symtab): Ditto.
1434 (record_debugformat): Update to use buildsym_compunit.
1435 (record_producer): Update to use buildsym_compunit.
1436 * buildsym.h (struct subfile) <dirname>: Delete.
1437 <producer, debugformat>: Delete.
1438 <buildsym_compunit>: New member.
1439 (get_compunit_symtab): Declare.
1440 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1441 from primary_symtab. Change type to "struct compunit_symtab *".
1443 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1444 All callers updated.
1445 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1446 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1447 symtab. Change type to "struct compunit_symtab *". All uses updated.
1448 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1449 All callers updated.
1450 (dw2_find_last_source_symtab): Ditto.
1451 (dw2_lookup_symbol): Ditto.
1452 (recursively_find_pc_sect_compunit_symtab): Renamed from
1453 recursively_find_pc_sect_symtab. Change result to
1454 "struct compunit_symtab *". All callers updated.
1455 (dw2_find_pc_sect_compunit_symtab): Renamed from
1456 dw2_find_pc_sect_symtab. Change result to
1457 "struct compunit_symtab *". All callers updated.
1458 (get_compunit_symtab): Renamed from get_symtab. Change result to
1459 "struct compunit_symtab *". All callers updated.
1460 (recursively_compute_inclusions): Change type of immediate_parent
1461 argument to "struct compunit_symtab *". All callers updated.
1462 (compute_compunit_symtab_includes): Renamed from
1463 compute_symtab_includes. All callers updated. Rewrite to compute
1464 includes of compunit_symtabs and not symtabs.
1465 (process_full_comp_unit): Update to work with struct compunit_symtab.
1466 (process_full_type_unit): Ditto.
1467 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1468 (dwarf_decode_lines): Remove special case handling of main subfile.
1469 (macro_start_file): Delete argument comp_dir. All callers updated.
1470 (dwarf_decode_macro_bytes): Ditto.
1471 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1472 use struct compunit_symtab.
1473 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1474 * jit.c (finalize_symtab): Build compunit_symtab.
1475 * jv-lang.c (get_java_class_symtab): Change result to
1476 "struct compunit_symtab *". All callers updated.
1477 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1478 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1479 comp_dir. Change type to "struct compunit_symtab *".
1481 (new_macro_table): Change comp_dir argument to cust,
1482 "struct compunit_symtab *". All callers updated.
1483 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1484 nr_primary_symtabs. All uses updated.
1485 (count_symtabs_and_blocks): Update to handle compunits.
1486 (report_command_stats): Update output, "primary symtabs" renamed to
1488 * mdebugread.c (new_symtab): Change result to
1489 "struct compunit_symtab *". All callers updated.
1490 (parse_procedure): Change type of search_symtab argument to
1491 "struct compunit_symtab *". All callers updated.
1492 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1494 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1495 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1496 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1498 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1500 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1501 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1502 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1503 symtab. Change type to "struct compunit_symtab *". All uses updated.
1504 * psymtab.c (psymtab_to_symtab): Change result type to
1505 "struct compunit_symtab *". All callers updated.
1506 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1507 find_pc_sect_symtab_from_partial. Change result type to
1508 "struct compunit_symtab *". All callers updated.
1509 (lookup_symbol_aux_psymtabs): Change result type to
1510 "struct compunit_symtab *". All callers updated.
1511 (find_last_source_symtab_from_partial): Ditto.
1512 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1513 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1514 and macro_table from compunit.
1515 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1516 type to "struct compunit_symtab *". All callers updated.
1517 (debug_qf_lookup_symbol): Ditto.
1518 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1519 debug_qf_find_pc_sect_symtab, change result type to
1520 "struct compunit_symtab *". All callers updated.
1521 * symfile.c (allocate_symtab): Delete objfile argument.
1523 (allocate_compunit_symtab): New function.
1524 (add_compunit_symtab_to_objfile): New function.
1525 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1526 Change result type to "struct compunit_symtab *". All uses updated.
1527 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1528 Change result type to "struct compunit_symtab *". All uses updated.
1529 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1531 (dump_symtab_1): Update test for primary source symtab.
1532 (maintenance_info_symtabs): Update to handle compunit symtabs.
1533 (maintenance_check_symtabs): Ditto.
1534 * symtab.c (set_primary_symtab): Delete.
1535 (compunit_primary_filetab): New function.
1536 (compunit_language): New function.
1537 (iterate_over_some_symtabs): Change type of arguments "first",
1538 "after_last" to "struct compunit_symtab *". All callers updated.
1539 Update to loop over symtabs in each compunit.
1540 (error_in_psymtab_expansion): Rename symtab argument to cust,
1541 and change type to "struct compunit_symtab *". All callers updated.
1542 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1543 Change result type to "struct compunit_symtab *". All callers updated.
1544 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1545 Change result type to "struct compunit_symtab *". All callers updated.
1546 (find_pc_sect_line): Only loop over symtabs within selected compunit
1547 instead of all symtabs in the objfile.
1548 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1549 <compunit_symtab> New member.
1550 <block_line_section>: Moved to compunit_symtab.
1551 <locations_valid>: Ditto.
1552 <epilogue_unwind_valid>: Ditto.
1553 <macro_table>: Ditto.
1555 <debugformat>: Ditto.
1558 <call_site_htab>: Ditto.
1562 (SYMTAB_COMPUNIT): New macro.
1563 (SYMTAB_BLOCKVECTOR): Update definition.
1564 (SYMTAB_OBJFILE): Update definition.
1565 (SYMTAB_DIRNAME): Update definition.
1566 (struct compunit_symtab): New type. Common members among all source
1567 symtabs within a compilation unit moved here. All uses updated.
1568 (COMPUNIT_OBJFILE): New macro.
1569 (COMPUNIT_FILETABS): New macro.
1570 (COMPUNIT_DEBUGFORMAT): New macro.
1571 (COMPUNIT_PRODUCER): New macro.
1572 (COMPUNIT_DIRNAME): New macro.
1573 (COMPUNIT_BLOCKVECTOR): New macro.
1574 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1575 (COMPUNIT_LOCATIONS_VALID): New macro.
1576 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1577 (COMPUNIT_CALL_SITE_HTAB): New macro.
1578 (COMPUNIT_MACRO_TABLE): New macro.
1579 (ALL_COMPUNIT_FILETABS): New macro.
1580 (compunit_symtab_ptr): New typedef.
1581 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1583 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1585 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1586 if the TYPE_CODE of range_type's base type does not match
1587 the TYPE_CODE of encoding_type's base type.
1589 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1591 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1594 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1596 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1597 (ada_is_redundant_index_type_desc): New function.
1598 (to_fixed_array_type): Ignore parallel XA type if redundant.
1600 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1602 * ada-lang.c (constrained_packed_array_type): Set the length
1603 of the return array as if both bounds where zero if that
1604 returned array's index type is dynamic.
1606 2014-11-19 Yao Qi <yao@codesourcery.com>
1608 * config/i386/go32.mh (CC): Remove.
1610 2014-11-18 Doug Evans <xdje42@gmail.com>
1612 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1615 2014-11-18 Doug Evans <xdje42@gmail.com>
1617 * buildsym.c (buildsym_objfile): New static global.
1618 (buildsym_comp_dir): New static global.
1619 (finish_block_internal): Delete arg objfile. All callers updated.
1620 (finish_block): Delete arg objfile. All callers updated.
1621 (start_subfile): Delete arg dirname. All callers updated.
1622 (patch_subfile_names): Update buildsym_comp_dir.
1623 (get_macro_table): Delete arg objfile. All callers updated.
1624 (start_symtab): New arg objfile. All callers updated.
1625 Rename arg dirname to comp_dir.
1626 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1627 (end_symtab_get_static_block): Delete arg objfile. All callers
1629 (end_symtab_without_blockvector): Ditto.
1630 (end_symtab_with_blockvector): Ditto.
1631 (end_symtab_from_static_block): Ditto.
1632 (end_symtab): Ditto.
1633 (end_expandable_symtab): Ditto.
1634 (augment_type_symtab): Ditto.
1635 * coffread.c (coff_start_symtab): New arg objfile. All callers
1638 2014-11-18 Doug Evans <xdje42@gmail.com>
1640 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1643 2014-11-18 Doug Evans <xdje42@gmail.com>
1645 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1646 symtab.dirname updated to use it.
1648 2014-11-18 Doug Evans <xdje42@gmail.com>
1650 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1651 symtab.objfile updated to use it.
1653 2014-11-18 Doug Evans <xdje42@gmail.com>
1655 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1657 2014-11-18 Doug Evans <xdje42@gmail.com>
1659 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1661 * findvar.c (default_read_var_value): Ditto.
1662 * jv-lang.c (add_class_symtab_symbol): Ditto.
1663 * parse.c (operator_check_standard): Ditto.
1664 * printcmd.c (address_info): Ditto.
1665 * symtab.c (fixup_symbol_section): Ditto.
1666 (skip_prologue_sal): Ditto.
1667 * tracepoint.c (scope_info): Ditto.
1668 * valops.c (find_function_in_inferior): Ditto.
1669 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1670 * python/py-symbol.c (set_symbol): Ditto.
1672 2014-11-18 Doug Evans <xdje42@gmail.com>
1674 * buildsym.c (main_subfile): New static global.
1675 (free_subfiles_list): New function.
1676 (start_symtab): Set main_subfile.
1677 (restart_symtab): Replace init of subfiles, current_subfile with
1678 call to free_subfiles_list.
1679 (watch_main_source_file_lossage): Use main_subfile.
1680 (reset_symtab_globals): Replace init of current_subfile with call
1681 to free_subfiles_list.
1682 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1683 functions, split out from ...
1684 (end_symtab_from_static_block): ... here. Rewrite to call them.
1686 2014-11-18 Doug Evans <xdje42@gmail.com>
1688 The result of symtab expansion is always a primary symtab.
1689 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1690 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1691 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1692 (psymtab_to_symtab): Add comment and assert.
1693 (map_matching_symbols_psymtab): Remove unnecessary test for
1696 2014-11-15 Doug Evans <xdje42@gmail.com>
1699 * symtab.c (find_pc_line_symtab): New function.
1700 * symtab.h (find_pc_line_symtab): Declare.
1701 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1703 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1704 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1705 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1706 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1707 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1708 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1710 2014-11-15 Doug Evans <xdje42@gmail.com>
1712 * symtab.c (expand_symtab_containing_pc): Renamed from
1713 find_pc_sect_symtab_via_partial. All callers updated.
1715 2014-11-15 Yao Qi <yao@codesourcery.com>
1717 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1719 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1721 * common/common-defs.h: Move <stdarg.h> #include ahead of
1724 2014-11-14 Pedro Alves <palves@redhat.com>
1726 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1727 [!PHONY_ICONV] (gdb_iconv): New function.
1728 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1730 2014-11-13 Doug Evans <dje@google.com>
1733 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1734 "(anonymous namespace)".
1736 2014-11-13 Doug Evans <dje@google.com>
1738 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1741 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1743 * NEWS (maint set target-async): Fix typo.
1745 2014-11-12 Pedro Alves <palves@redhat.com>
1747 * infrun.c (enum infwait_states, infwait_state): Delete.
1749 2014-11-12 Pedro Alves <palves@redhat.com>
1751 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1752 Rewrite stepping over a permanent breakpoint.
1753 (thread_still_needs_step_over, proceed): Don't set
1754 stepping_over_breakpoint for permanent breakpoints.
1755 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1756 single-step breakpoints out of the target on hardware step
1758 (process_event_stop_test): If stepping a permanent breakpoint
1759 doesn't hit the step-resume breakpoint, delete the step-resume
1761 (switch_back_to_stepped_thread): Also check if the stepped thread
1762 has advanced already on hardware step targets.
1763 (currently_stepping): Return true if the thread stepped a
1766 2014-11-12 Pedro Alves <palves@redhat.com>
1768 Mark locations as permanent, not the whole breakpoint.
1769 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1770 (mark_breakpoints_out): Don't mark permanent breakpoints as
1772 (breakpoint_init_inferior): Use mark_breakpoints_out.
1773 (breakpoint_here_p): Adjust.
1774 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1775 of permanent breakpoints.
1776 (make_breakpoint_permanent): Mark each location as permanent,
1777 instead of marking the breakpoint.
1778 (add_location_to_breakpoint): If the location is permanent, mark
1779 it as such, and as inserted.
1780 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1781 (bp_location_compare, update_global_location_list): Adjust.
1782 (update_breakpoint_locations): Don't make the breakpoint permanent
1784 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1786 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1787 (struct bp_location) <permanent>: New field.
1788 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1789 reference to bp_permanent.
1791 2014-11-12 Pedro Alves <palves@redhat.com>
1793 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1794 * arch-utils.h (default_skip_permanent_breakpoint): New
1796 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1797 Install default_skip_permanent_breakpoint as default method.
1798 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1799 (i386_gdbarch_init): Don't install it.
1800 * infrun.c (resume): Assume there's always a
1801 gdbarch_skip_permanent_breakpoint implementation.
1802 * gdbarch.h, gdbarch.c: Regenerate.
1804 2014-11-11 Daniel Colascione <dancol@dancol.org>
1806 Warn about cross-PID-namespace debugging.
1807 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1808 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1809 * linux-thread-db.c (check_pid_namespace_match): New function.
1810 (thread_db_inferior_created): Call it.
1812 2014-11-10 Doug Evans <xdje42@gmail.com>
1814 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1815 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1817 2014-11-10 Doug Evans <xdje42@gmail.com>
1819 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1821 2014-11-10 Doug Evans <xdje42@gmail.com>
1824 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1825 (lookup_static_symbol): Move definition to new location and rewrite.
1826 (lookup_symbol_in_objfile): New function.
1827 (lookup_symbol_global_iterator_cb): Call it.
1829 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1831 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1833 2014-11-07 Pedro Alves <palves@redhat.com>
1835 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1836 check if we did a "nexti" inside a prologue.
1837 * symtab.c (in_prologue): Delete function.
1838 * symtab.h (in_prologue): Delete declaration.
1840 2014-11-06 Doug Evans <xdje42@gmail.com>
1842 * symtab.h (lookup_global_symbol): Improve function comment.
1844 2014-11-06 Doug Evans <xdje42@gmail.com>
1846 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1847 All callers updated.
1848 * symtab.h (lookup_global_symbol): Update decl.
1849 (lookup_static_symbol): Move decl to better location.
1851 2014-11-06 Doug Evans <xdje42@gmail.com>
1853 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1855 2014-11-06 Doug Evans <xdje42@gmail.com>
1857 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1858 All callers updated.
1859 (lookup_symbol_in_all_objfiles): Renamed from
1860 lookup_symbol_aux_symtabs. All callers updated.
1861 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1862 All callers updated.
1863 (lookup_symbol_in_objfile_symtabs): Renamed from
1864 lookup_symbol_aux_objfile. All callers updated.
1866 2014-11-06 Doug Evans <xdje42@gmail.com>
1868 * symtab.c (lookup_symbol_in_block): Renamed from
1869 lookup_symbol_aux_block. All callers updated.
1871 2014-11-06 Doug Evans <xdje42@gmail.com>
1873 * symtab.c (lookup_static_symbol): Renamed from
1874 lookup_static_symbol_aux. All callers updated.
1875 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1876 All callers updated.
1878 2014-11-06 Doug Evans <xdje42@gmail.com>
1880 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1881 * block.c (block_lookup_symbol): Use it.
1882 * cp-support.c (make_symbol_overload_list_block): Use it.
1883 * symtab.c (iterate_over_symbols): Use it.
1885 2014-11-06 Doug Evans <xdje42@gmail.com>
1887 * symtab.c (lookup_block_symbol): Moved to ...
1888 * block.c (block_lookup_symbol): ... here and renamed.
1889 All callers updated.
1890 * block.h (block_lookup_symbol): Declare.
1891 * symtab.h (lookup_block_symbol): Delete.
1893 2014-11-06 Doug Evans <xdje42@gmail.com>
1895 * ada-lang.c (ada_make_symbol_completion_list): Use
1896 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1897 * symtab.c (lookup_objfile_from_block): Ditto.
1899 2014-11-06 Doug Evans <xdje42@gmail.com>
1901 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1904 2014-11-06 Doug Evans <xdje42@gmail.com>
1906 * objfiles.c (get_objfile_arch): Constify.
1907 * objfiles.h (get_objfile_arch): Update prototype.
1908 * solib.c (solib_global_lookup): Fetch arch from objfile,
1911 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1913 * nios2-tdep.c (wild_insn): Delete.
1914 (profiler_insn, irqentry_insn): Delete.
1915 (nios2_match_sequence): Delete.
1916 (nios2_analyze_prologue): Update comments. Remove matching
1917 of obsolete profiler_insn and irqentry_insn sequences.
1919 2014-11-05 Alan Modra <amodra@gmail.com>
1921 * charset.c (convert_between_encodings): Shrink obstack using
1923 * minsyms.c (install_minimal_symbols): Likewise.
1924 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1925 to char* before doing pointer arithmetic.
1927 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1929 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1931 2014-11-04 Pedro Alves <palves@redhat.com>
1933 * breakpoint.c (breakpoint_thread_match): Delete function.
1934 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1936 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1939 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1940 the method args also under EVAL_SKIP when evaluating method
1941 calls under EVAL_SKIP.
1943 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1945 * dwarf2loc.c (read_pieced_value): Do big endian
1946 processing only if gdb_regnum is not -1.
1947 (write_pieced_value): Ditto.
1949 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1951 * arm-linux-tdep.c (arm_linux_init_abi): Use
1952 info.byte_order_for_code to choose endianity of breakpoint
1953 instructions snippets.
1955 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1957 * arm-tdep.c (extract_arm_insn): Use
1958 gdbarch_byte_order_for_code to read arm instruction.
1960 2014-11-02 Doug Evans <xdje42@gmail.com>
1962 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1964 2014-11-02 Doug Evans <xdje42@gmail.com>
1966 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1967 main_subfile before returning.
1969 2014-10-31 Doug Evans <xdje42@gmail.com>
1971 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1972 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1974 2014-10-31 Doug Evans <xdje42@gmail.com>
1976 * valops.c (value_cast_pointers): Fix whitespace.
1977 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1980 2014-10-30 Doug Evans <dje@google.com>
1982 * NEWS: Mention ability add attributes to gdb.Objfile and
1983 gdb.Progspace objects.
1984 * python/py-objfile.c (objfile_object): New member dict.
1985 (objfpy_dealloc): Py_XDECREF dict.
1986 (objfpy_initialize): Initialize dict.
1987 (objfile_getset): Add __dict__.
1988 (objfile_object_type): Set tp_dictoffset member.
1989 * python/py-progspace.c (progspace_object): New member dict.
1990 (pspy_dealloc): Py_XDECREF dict.
1991 (pspy_initialize): Initialize dict.
1992 (pspace_getset): Add __dict__.
1993 (pspace_object_type): Set tp_dictoffset member.
1995 2014-10-30 Yao Qi <yao@codesourcery.com>
1997 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1998 replace '\\' with '\\\\'.
2000 2014-10-29 Joel Brobecker <brobecker@adacore.com>
2004 2014-10-29 Pedro Alves <palves@redhat.com>
2007 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
2008 instead of assuming a thread with a stepping range is always
2011 2014-10-29 Pedro Alves <palves@redhat.com>
2014 * event-top.c (change_line_handler): Call
2015 gdb_rl_callback_handler_remove instead of
2016 rl_callback_handler_remove.
2017 (callback_handler_installed): New global.
2018 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2019 (gdb_rl_callback_handler_reinstall): New functions.
2020 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
2021 gdb_rl_callback_handler_install instead of
2022 rl_callback_handler_remove and rl_callback_handler_install.
2023 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
2024 instead of rl_callback_handler_remove.
2025 * event-top.h (gdb_rl_callback_handler_remove)
2026 (gdb_rl_callback_handler_install)
2027 (gdb_rl_callback_handler_reinstall): New declarations.
2028 * infrun.c (reinstall_readline_callback_handler_cleanup): New
2030 (fetch_inferior_event): Install it.
2031 * top.c (gdb_readline_wrapper_line) Call
2032 gdb_rl_callback_handler_remove instead of
2033 rl_callback_handler_remove.
2034 (gdb_readline_wrapper_cleanup): Don't call
2035 rl_callback_handler_install.
2037 2014-10-29 Pedro Alves <palves@redhat.com>
2039 * event-top.c (command_line_handler): Clear the first byte of
2040 linebuffer, when it is first allocated.
2042 2014-10-29 Pedro Alves <palves@redhat.com>
2044 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
2047 2014-10-29 Pedro Alves <palves@redhat.com>
2051 * tui/tui-interp.c (tui_is_toplevel): Delete global.
2052 (tui_allowed_p): Delete function.
2053 * tui/tui.c: Include "interps.h".
2054 (tui_enable): Don't use tui_allowed_p. Error out here with
2055 detailed error messages if the TUI is the top level interpreter,
2056 or if output is not a terminal. Use newterm instead of initscr,
2057 and error out if initializing the terminal fails. Also error out if
2058 the terminal doesn't support cursor addressing.
2059 * tui/tui.h (tui_allowed_p): Delete declaration.
2061 2014-10-29 Joel Brobecker <brobecker@adacore.com>
2063 * arm-tdep.c (arm_skip_stack_protector): Return early if
2064 address loaded by first "ldr" instruction does not have
2065 a corresponding minimal symbol. Update comment.
2067 2014-10-29 Yao Qi <yao@codesourcery.com>
2069 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
2070 loaded address correctly of ldr instruction.
2072 2014-10-28 Pedro Alves <palves@redhat.com>
2075 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
2077 * infrun.c (resume) <stepping breakpoint instruction>: Set the
2078 thread's stepped_breakpoint field. Skip if reverse debugging.
2080 (init_thread_stepping_state, handle_signal_stop): Clear the
2081 thread's stepped_breakpoint field.
2083 2014-10-27 Pedro Alves <palves@redhat.com>
2085 * remote.c (remote_thread_alive): New, factored out from ...
2086 (remote_thread_alive): ... this.
2087 (remote_update_thread_list): Bail out before deleting threads if
2088 the target returned an empty list, and, the current thread has a
2091 2014-10-27 Pedro Alves <palves@redhat.com>
2093 * infrun.c (handle_signal_stop): Also skip handlers when a random
2094 signal arrives while handling a "stepi" or a "nexti". Set the
2095 thread's 'step_after_step_resume_breakpoint' flag.
2097 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
2099 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
2100 (arm_record_ld_st_imm_offset): Reimplement to cover all
2101 load/store cases for ARM opcode 010.
2102 (arm_record_ld_st_multiple): Reimplement to cover all
2103 load/store cases for ARM opcode 100.
2105 2014-10-26 Doug Evans <xdje42@gmail.com>
2107 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
2109 2014-10-26 Doug Evans <xdje42@gmail.com>
2111 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
2112 parameter "kind" to "block_index".
2113 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
2115 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
2117 2014-10-26 Doug Evans <xdje42@gmail.com>
2119 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
2121 2014-10-26 Doug Evans <xdje42@gmail.com>
2123 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
2126 2014-10-26 Doug Evans <xdje42@gmail.com>
2128 * parser-defs.h (block_found): Move decl from here ...
2129 * symtab.h (block_found): ... to here.
2131 2014-10-26 Doug Evans <xdje42@gmail.com>
2133 * symtab.h (struct field_of_this_result): Fix typo in comment.
2134 (lookup_symbol_in_language): Move function comment here.
2135 (lookup_symbol): Improve function comment.
2136 (basic_lookup_symbol_nonlocal): Ditto.
2137 (lookup_symbol_static, lookup_symbol_global): Ditto.
2138 (lookup_symbol_aux_block): Ditto.
2139 (lookup_language_this): Add function comment.
2140 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2142 (lookup_block_symbol): Improve function comment.
2143 (lookup_struct): Fix capitalization in function comment.
2144 (lookup_transparent_type): Add function comment.
2145 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2146 Improve function comment.
2147 (lookup_objfile_from_block): Add function comment.
2148 * symtab.c (lookup_symbol_in_language): Update function comment.
2149 (lookup_symbol, lookup_language_this): Ditto.
2150 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2151 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2152 (basic_lookup_symbol_nonlocal): Ditto.
2153 (lookup_symbol_static, lookup_symbol_global): Ditto.
2154 (lookup_transparent_type, lookup_block_symbol): Ditto.
2156 2014-10-25 Doug Evans <xdje42@gmail.com>
2158 * symtab.c (types_info): Delete forward decl.
2159 (functions_info, variables_info, sources_info): Ditto.
2160 (_initialize_symtab): Rewrite forward decl to use
2161 initialize_file_ftype.
2163 2014-10-25 Doug Evans <xdje42@gmail.com>
2165 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2167 2014-10-25 Doug Evans <xdje42@gmail.com>
2169 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2170 of local var child_die.
2172 2014-10-24 Don Breazeal <donb@codesourcery.com>
2174 * infrun.c (follow_fork_inferior): Update fork message printing
2175 to use target_terminal_ours_for_output instead of
2176 target_terminal_ours, to use _() for all format strings, to print
2177 "vfork" instead of "fork" for vforks, and to add a detach message.
2178 (handle_vfork_child_exec_or_exit): Update message printing to use
2179 target_terminal_ours_for_output instead of target_terminal_ours, to
2180 use _() for all format strings, and to fix some formatting.
2182 2014-10-24 Pedro Alves <palves@redhat.com>
2184 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2185 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2186 * config/vax/vax.mh: Delete.
2187 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2188 obsolete configurations section.
2189 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2190 * vax-nat.c: Delete file.
2192 2014-10-24 Pedro Alves <palves@redhat.com>
2194 * NEWS (Removed targets): Add OS/arch column.
2196 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2198 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2199 on the arg type of a constructor only if it is of reference type.
2201 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2203 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2204 accessors and constants from nios2 opcodes update.
2205 (nios2_get_next_pc): Likewise.
2207 2014-10-19 Doug Evans <xdje42@gmail.com>
2209 * gdbthread.h (set_running): Fix comment.
2210 (set_executing, finish_thread_state): Fix comment.
2212 2014-10-18 Doug Evans <xdje42@gmail.com>
2214 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2216 2014-10-17 Doug Evans <dje@google.com>
2218 * NEWS: Mention new event gdb.clear_objfiles.
2219 * python/py-event.h (emit_clear_objfiles_event): Clear
2220 * python/py-events.h (events_object): New member clear_objfiles.
2221 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2223 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2224 emit clear_objfiles event.
2225 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2227 (emit_clear_objfiles_event): New function.
2228 (clear_objfiles): New event.
2229 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2231 * python/python.c (_initialize_python): Call
2232 gdbpy_initialize_clear_objfiles_event.
2234 2014-10-17 Doug Evans <dje@google.com>
2236 * NEWS: Mention new gdb.Objfile.progspace attribute.
2237 * python/py-objfile.c (objfpy_get_progspace): New function.
2238 (objfile_getset): New entry for "progspace".
2240 2014-10-17 Pedro Alves <palves@redhat.com>
2243 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2244 returns a copy of the input.
2245 (run_command_1, continue_command, step_1, jump_command)
2246 (signal_command, until_command, advance_command, finish_command)
2247 (attach_command): Adjust and install a cleanup to free the
2250 2014-10-17 Pedro Alves <palves@redhat.com>
2253 * infcmd.c (continue_1): If continuing all threads in the
2254 foreground, make sure the inferior's terminal settings are put in
2257 2014-10-17 Pedro Alves <palves@redhat.com>
2260 * annotate.c (annotate_breakpoints_invalid): Use
2261 target_terminal_our_for_output instead of target_terminal_ours.
2262 Give back the terminal to the target.
2263 (annotate_frames_invalid): Likewise.
2265 2014-10-17 Pedro Alves <palves@redhat.com>
2267 * target.c (enum terminal_state): New enum.
2268 (terminal_state): New global.
2269 (target_terminal_init): New function.
2270 (target_terminal_inferior): Skip if inferior already owns the
2272 (target_terminal_ours, target_terminal_ours_for_output): New
2274 * target.h (target_terminal_init): Convert to function prototype.
2275 (target_terminal_ours_for_output): Convert to function prototype
2277 (target_terminal_ours): Convert to function prototype and tweak
2279 * windows-nat.c (do_initial_windows_stuff): Call
2280 target_terminal_init instead of child_terminal_init_with_pgrp.
2282 2014-10-17 Pedro Alves <palves@redhat.com>
2284 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2285 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2286 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2288 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2289 * ada-lang.h [__alpha__ && __osf__]
2290 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2291 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2292 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2294 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2296 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2297 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2298 * configure: Regenerate.
2299 * configure.ac: Remove references to osf.
2300 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2301 section. Remove all other references to osf.
2302 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2303 Remove all other references to osf.
2304 * dec-thread.c: Delete file.
2305 * defs.h (GDB_OSABI_OSF1): Delete.
2306 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2308 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2309 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2311 (unconditionally_kill_inferior)
2312 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2313 * solib-osf.c: Delete file.
2315 2014-10-17 Pedro Alves <palves@redhat.com>
2317 * remote.c (clear_threads_listing_context): Move higher up, out of
2318 the HAVE_LIBEXPAT guard.
2320 2014-10-16 Tristan Gingold <gingold@adacore.com>
2322 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2323 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2326 2014-10-15 Pedro Alves <palves@redhat.com>
2328 * dec-thread.c (dec_thread_count_gdb_threads)
2329 (dec_thread_add_gdb_thread): Delete.
2330 (dec_thread_update_thread_list): Delete.
2331 (dec_thread_find_new_threads): Rename to ...
2332 (dec_thread_update_thread_list): ... this. Delete GDB-size
2333 threads that are no longer found in dec_thread_list.
2334 (resync_thread_list): Delete.
2335 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2338 2014-10-15 Pedro Alves <palves@redhat.com>
2340 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2341 * remote.c (remote_update_thread_list): Skip calling prune_threads
2342 if any thread listing method is supported, and instead walk over
2343 the set of remote threads listed, deleting those that are not
2344 found in GDB's thread list.
2346 2014-10-15 Pedro Alves <palves@redhat.com>
2348 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2349 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2350 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2351 (bsd_uthread_target): Adjust.
2352 * corelow.c (core_open): Adjust.
2353 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2354 (dec_thread_update_thread_list): New function.
2355 (init_dec_thread_ops): Adjust.
2356 * gdbthread.h (prune_threads): New declaration.
2357 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2358 (thread_db_update_thread_list): ... this. Call prune_threads.
2359 (init_thread_db_ops): Adjust.
2360 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2361 (procfs_update_thread_list): ... this. Call prune_threads.
2362 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2364 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2365 (obsd_update_thread_list): ... this. Call prune_threads.
2366 (obsd_add_target): Adjust.
2367 * procfs.c (procfs_target): Adjust.
2368 (procfs_notice_thread): Update comment.
2369 (procfs_find_new_threads): Rename to ...
2370 (procfs_update_thread_list): ... this. Call prune_threads.
2371 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2373 (ravenscar_wait): Adjust.
2374 (ravenscar_find_new_threads): Rename to ...
2375 (ravenscar_update_thread_list): ... this. Call prune_threads.
2376 (init_ravenscar_thread_ops): Adjust.
2377 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2378 (record_btrace_update_thread_list): ... this. Adjust comment.
2379 (init_record_btrace_ops): Adjust.
2380 * remote.c (remote_threads_info): Rename to ...
2381 (remote_update_thread_list): ... this. Call prune_threads.
2382 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2384 * sol-thread.c (check_for_thread_db): Adjust.
2385 (sol_find_new_threads_callback): Rename to ...
2386 (sol_update_thread_list_callback): ... this.
2387 (sol_find_new_threads): Rename to ...
2388 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2389 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2390 * target-delegates.c: Regenerate.
2391 * target.c (target_find_new_threads): Rename to ...
2392 (target_update_thread_list): ... this.
2393 * target.h (struct target_ops): Rename to_find_new_threads field
2394 to to_update_thread_list.
2395 (target_find_new_threads): Rename to ...
2396 (target_update_thread_list): ... this.
2397 * thread.c (prune_threads): Make extern.
2398 (update_thread_list): Adjust.
2400 2014-10-15 Pedro Alves <palves@redhat.com>
2402 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2403 Add describing comment. Return -1 if the qL packet is not
2405 (struct thread_item, thread_item_t): Move higher up in
2406 the file. Add comments.
2407 (struct threads_parsing_context): Move higher up in
2408 the file, add comments, and remote to ...
2409 (struct threads_listing_context): ... this.
2410 (remote_newthread_step): Don't add the thread to GDB's thread
2411 database here. Instead push it to the thread_listing_context
2413 (remote_find_new_threads): Rename to ...
2414 (remote_get_threads_with_ql): ... this. Add target_ops and
2415 targets_listing_context parameters. Pass down context.
2416 (start_thread): Adjust.
2417 (clear_threads_parsing_context): Rename to ...
2418 (clear_threads_listing_context): ... this.
2419 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2420 remote_threads_info.
2421 (remote_get_threads_with_qthreadinfo): Ditto.
2422 (remote_threads_info): Reimplement.
2424 2014-10-15 Pedro Alves <palves@redhat.com>
2426 * infrun.c (resume): Don't force displaced-stepping for all
2427 single-steps on software single-stepping archs.
2429 2014-10-15 Pedro Alves <palves@redhat.com>
2431 * breakpoint.c (single_step_breakpoints): Delete global.
2432 (insert_single_step_breakpoint): Adjust to store the breakpoint
2433 pointer in the current thread.
2434 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2435 (cancel_single_step_breakpoints): Delete functions.
2436 (breakpoint_has_location_inserted_here): Make extern.
2437 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2439 * breakpoint.h (breakpoint_has_location_inserted_here): New
2441 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2442 (cancel_single_step_breakpoints): Remove declarations.
2443 * gdbthread.h (struct thread_control_state)
2444 <single_step_breakpoints>: New field.
2445 (delete_single_step_breakpoints)
2446 (thread_has_single_step_breakpoints_set)
2447 (thread_has_single_step_breakpoint_here): New declarations.
2448 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2449 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2450 (singlestep_pc): Delete globals.
2451 (infrun_thread_ptid_changed): Remove references to removed
2453 (resume_cleanups): Delete the current thread's single-step
2455 (maybe_software_singlestep): Remove references to removed globals.
2456 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2457 delete_single_step_breakpoints.
2458 (init_wait_for_inferior): Remove references to removed globals.
2459 (delete_thread_infrun_breakpoints): Delete the thread's
2460 single-step breakpoints too.
2461 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2462 single-step breakpoints here.
2463 (delete_stopped_threads_single_step_breakpoints): New function.
2464 (adjust_pc_after_break): Adjust to use
2465 thread_has_single_step_breakpoints_set.
2466 (handle_inferior_event): Remove references to removed globals.
2467 Use delete_stopped_threads_single_step_breakpoints.
2468 (handle_signal_stop): Adjust to per-thread single-step
2469 breakpoints. Swap test order to do cheaper tests first.
2470 (switch_back_to_stepped_thread): Extend debug output. Remove
2471 references to removed globals.
2472 * record-full.c (record_full_wait_1): Adjust to per-thread
2473 single-step breakpoints.
2474 * thread.c (delete_single_step_breakpoints)
2475 (thread_has_single_step_breakpoints_set)
2476 (thread_has_single_step_breakpoint_here): New functions.
2477 (clear_thread_inferior_resources): Also delete the thread's
2478 single-step breakpoints.
2480 2014-10-15 Pedro Alves <palves@redhat.com>
2482 * thread.c (delete_thread_breakpoint): New function.
2483 (delete_step_resume_breakpoint)
2484 (delete_exception_resume_breakpoint): Use it.
2485 (delete_at_next_stop): New function.
2486 (clear_thread_inferior_resources): Use delete_at_next_stop.
2488 2014-10-15 Pedro Alves <palves@redhat.com>
2490 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2491 (breakpoint_inserted_here_p): ... here. Remove special case for
2492 software single-step breakpoints.
2493 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2494 (software_breakpoint_inserted_here_p): ... here. Remove special
2495 case for software single-step breakpoints.
2496 (bp_target_info_copy_insertion_state)
2497 (deprecated_insert_raw_breakpoint)
2498 (deprecated_remove_raw_breakpoint): Delete functions.
2499 * breakpoint.h (deprecated_insert_raw_breakpoint)
2500 (deprecated_remove_raw_breakpoint): Remove declarations.
2502 2014-10-15 Pedro Alves <palves@redhat.com>
2505 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2506 Delete array globals.
2507 (single_step_breakpoints): New global.
2508 (breakpoint_xfer_memory): Remove special handling for single-step
2510 (update_breakpoints_after_exec): Delete bp_single_step
2512 (detach_breakpoints): Remove special handling for single-step
2514 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2515 (bpstat_stop_status): Add comment.
2516 (bpstat_what, bptype_string, print_one_breakpoint_location)
2517 (adjust_breakpoint_address, init_bp_location): Handle
2519 (new_single_step_breakpoint): New function.
2520 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2521 handling for single-step breakpoints.
2522 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2523 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2525 (detach_single_step_breakpoints, find_single_step_breakpoint):
2527 (breakpoint_has_location_inserted_here): New function.
2528 (single_step_breakpoint_inserted_here_p): Rewrite.
2529 * breakpoint.h: Remove FIXME.
2530 (enum bptype) <bp_single_step>: New enum value.
2531 (insert_single_step_breakpoint): Update comment.
2532 * infrun.c (resume_cleanups)
2533 (delete_step_thread_step_resume_breakpoint): Remove single-step
2535 (fetch_inferior_event): Install a cleanup that removes infrun
2537 (switch_back_to_stepped_thread) <expect thread advanced also>:
2538 Clear step-over info.
2540 2014-10-15 Pedro Alves <palves@redhat.com>
2542 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2543 (delete_thread_infrun_breakpoints): New function, with parts
2544 salvaged from delete_step_resume_breakpoint_callback.
2545 (delete_step_thread_step_resume_breakpoint): Delete.
2546 (for_each_just_stopped_thread_callback_func): New typedef.
2547 (for_each_just_stopped_thread): New function.
2548 (delete_just_stopped_threads_infrun_breakpoints): New function.
2549 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2550 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2552 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2554 2014-10-15 Pedro Alves <palves@redhat.com>
2556 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2557 trying to step past a non-steppable watchpoint.
2558 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2560 * infrun.c (struct step_over_info): Add new field
2561 'nonsteppable_watchpoint_p' and adjust comments.
2562 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2564 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2565 (stepping_past_nonsteppable_watchpoint): New function.
2566 (step_over_info_valid_p): Also return true if stepping past a
2567 nonsteppable watchpoint.
2568 (proceed): Adjust call to set_step_over_info. Remove reference to
2570 (init_wait_for_inferior): Remove reference to init_infwait_state.
2571 (waiton_ptid): Delete global.
2572 (struct execution_control_state)
2573 <stepped_after_stopped_by_watchpoint>: Delete field.
2574 (wait_for_inferior, fetch_inferior_event): Always pass
2575 minus_one_ptid to target_wait.
2576 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2578 (init_infwait_state): Delete function.
2579 (handle_inferior_event): Remove infwait_state handling.
2580 (handle_signal_stop) <watchpoints handling>: Adjust after
2581 stepped_after_stopped_by_watchpoint removal. Don't remove
2582 breakpoints here nor set infwait_state. Set the thread's
2583 stepping_over_watchpoint flag, and call keep_going instead.
2584 (keep_going): Handle stepping_over_watchpoint. Adjust
2585 set_step_over_info calls.
2586 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2589 2014-10-15 Pedro Alves <palves@redhat.com>
2591 * infrun.c (step_over_info_valid_p): New function.
2592 (resume): Use step_over_info_valid_p instead of checking the
2593 threads's trap_expected flag.
2595 2014-10-15 Doug Evans <dje@google.com>
2596 Walfred Tedeschi <walfred.tedeschi@intel.com>
2599 * python/lib/gdb/__init__.py (packages): Add "printer".
2600 * python/lib/gdb/command/bound_registers.py: Moved to ...
2601 * python/lib/gdb/printer/bound_registers.py: ... here.
2602 Add printer to global set of builtin printers. Rename printer from
2603 "bound" to "mpx_bound128".
2604 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2605 registered as global "builtin" printer.
2606 (add_builtin_pretty_printer): New function.
2607 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2608 gdb/printer/__init__.py.
2610 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2612 * Makefile.in (SFILES): Remove d-support.c.
2613 (COMMON_OBS): Remove d-support.o.
2614 * d-lang.h (d_parse_symbol): Remove declaration.
2615 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2616 * d-support.c: Remove file.
2618 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2620 * gdb/infrun.c (process_event_stop_test): Apply
2621 gdbarch_addr_bits_remove to longjmp resume address.
2623 2014-10-15 Pedro Alves <palves@redhat.com>
2625 * regformats/microblaze.dat: Delete file.
2627 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2629 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2630 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2632 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2634 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2637 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2641 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2642 with qualified args.
2644 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2646 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2647 of the case where the second operand is a pointer.
2648 <BINOP_SUB>: Likewise.
2650 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2652 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2653 only if it is not NULL.
2654 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2655 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2656 (struct probe_ops) <clear_semaphore>: Likewise.
2657 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2659 (stop_tracing): Likewise, for clear_semaphore.
2661 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2663 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2664 using language_c, instead of current_language.
2666 2014-10-13 Doug Evans <dje@google.com>
2668 * python/py-objfile.c (objfpy_initialize): New function.
2669 (objfpy_new, objfile_to_objfile_object): Call it.
2670 * python/py-progspace.c (pspy_initialize): New function.
2671 (pspy_new, pspace_to_pspace_object): Call it.
2673 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2674 Jan Kratochvil <jan.kratochvil@redhat.com>
2676 Fix "save breakpoints" for "catch" command.
2677 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2680 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2682 Fix "save breakpoints" for "disable $bpnum" command.
2683 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2685 2014-10-10 Pedro Alves <palves@redhat.com>
2687 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2688 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2689 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2690 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2692 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2693 * configure.ac: Remove references to IRIX.
2694 * configure.host: Add *-*-irix* to the obsolete hosts section.
2695 Remove all other references to irix.
2696 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2699 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2701 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2702 isn't valid, release the tdesc arch data and return NULL.
2704 2014-10-10 Pedro Alves <palves@redhat.com>
2706 * linux-tdep.c: Include observer.h.
2707 (linux_inferior_data): New global.
2708 (struct linux_info): New structure.
2709 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2710 (get_linux_inferior_data): New functions.
2711 (linux_vsyscall_range): Rename to ...
2712 (linux_vsyscall_range_raw): ... this.
2713 (linux_vsyscall_range): New function; handles caching.
2714 (_initialize_linux_tdep): Register linux_inferior_data. Install
2715 inferior_exit and inferior_appeared observers.
2717 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2718 Pedro Alves <palves@redhat.com>
2721 * solib-svr4.c (svr4_read_so_list): Rename to ...
2722 (svr4_current_sos_1): ... this and change the function comment.
2723 (svr4_current_sos): New function.
2725 2014-10-10 Pedro Alves <palves@redhat.com>
2727 * arch-utils.c (default_vsyscall_range): New function.
2728 * arch-utils.h (default_vsyscall_range): New declaration.
2729 * gdbarch.sh (vsyscall_range): New hook.
2730 * gdbarch.h, gdbarch.c: Regenerate.
2731 * linux-tdep.c (linux_vsyscall_range): New function.
2732 (linux_init_abi): Install linux_vsyscall_range as
2733 vsyscall_range gdbarch hook.
2734 * memrange.c (address_in_mem_range): New function.
2735 * memrange.h (address_in_mem_range): New declaration.
2736 * symfile-mem.c (find_vdso_size): Delete function.
2737 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2739 2014-10-10 Pedro Alves <palves@redhat.com>
2741 * infrun.c (normal_stop): Fix typo in comment.
2743 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2746 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2747 typo when using logical AND to determine instruction type.
2749 2014-10-09 Yao Qi <yao@codesourcery.com>
2751 * infrun.c (handle_signal_stop): Remove local variable
2754 2014-10-08 Stan Shebs <stan@codesourcery.com>
2756 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2758 2014-10-08 Gary Benson <gbenson@redhat.com>
2760 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2762 2014-10-08 Gary Benson <gbenson@redhat.com>
2764 * common/common-defs.h: Include common-exceptions.h.
2765 * exceptions.h: Do not include common-exceptions.h.
2767 2014-10-08 Gary Benson <gbenson@redhat.com>
2769 * common/common-defs.h: Include cleanups.h.
2770 * common/common-exceptions.c: Do not include cleanups.h.
2771 * utils.h: Likewise.
2773 2014-10-08 Gary Benson <gbenson@redhat.com>
2775 * ada-lang.c: Do not include exceptions.h.
2776 * ada-valprint.c: Likewise.
2777 * amd64-tdep.c: Likewise.
2778 * auto-load.c: Likewise.
2779 * block.c: Likewise.
2780 * break-catch-throw.c: Likewise.
2781 * breakpoint.c: Likewise.
2782 * btrace.c: Likewise.
2783 * c-lang.c: Likewise.
2784 * cli/cli-cmds.c: Likewise.
2785 * cli/cli-interp.c: Likewise.
2786 * cli/cli-script.c: Likewise.
2787 * completer.c: Likewise.
2788 * corefile.c: Likewise.
2789 * corelow.c: Likewise.
2790 * cp-abi.c: Likewise.
2791 * cp-support.c: Likewise.
2792 * cp-valprint.c: Likewise.
2793 * darwin-nat.c: Likewise.
2794 * dwarf2-frame-tailcall.c: Likewise.
2795 * dwarf2-frame.c: Likewise.
2796 * dwarf2loc.c: Likewise.
2797 * dwarf2read.c: Likewise.
2799 * event-loop.c: Likewise.
2800 * event-top.c: Likewise.
2801 * f-valprint.c: Likewise.
2802 * frame-unwind.c: Likewise.
2803 * frame.c: Likewise.
2804 * gdbtypes.c: Likewise.
2805 * gnu-v2-abi.c: Likewise.
2806 * gnu-v3-abi.c: Likewise.
2807 * guile/scm-auto-load.c: Likewise.
2808 * guile/scm-breakpoint.c: Likewise.
2809 * guile/scm-cmd.c: Likewise.
2810 * guile/scm-frame.c: Likewise.
2811 * guile/scm-lazy-string.c: Likewise.
2812 * guile/scm-param.c: Likewise.
2813 * guile/scm-symbol.c: Likewise.
2814 * guile/scm-type.c: Likewise.
2815 * hppa-hpux-tdep.c: Likewise.
2816 * i386-tdep.c: Likewise.
2817 * inf-loop.c: Likewise.
2818 * infcall.c: Likewise.
2819 * infcmd.c: Likewise.
2820 * infrun.c: Likewise.
2821 * interps.c: Likewise.
2822 * interps.h: Likewise.
2824 * linespec.c: Likewise.
2825 * linux-nat.c: Likewise.
2826 * linux-thread-db.c: Likewise.
2827 * m32r-rom.c: Likewise.
2829 * memory-map.c: Likewise.
2830 * mi/mi-cmd-break.c: Likewise.
2831 * mi/mi-cmd-stack.c: Likewise.
2832 * mi/mi-interp.c: Likewise.
2833 * mi/mi-main.c: Likewise.
2834 * monitor.c: Likewise.
2835 * nto-procfs.c: Likewise.
2836 * objc-lang.c: Likewise.
2837 * p-valprint.c: Likewise.
2838 * parse.c: Likewise.
2839 * ppc-linux-tdep.c: Likewise.
2840 * printcmd.c: Likewise.
2841 * probe.c: Likewise.
2842 * python/py-auto-load.c: Likewise.
2843 * python/py-breakpoint.c: Likewise.
2844 * python/py-cmd.c: Likewise.
2845 * python/py-finishbreakpoint.c: Likewise.
2846 * python/py-frame.c: Likewise.
2847 * python/py-framefilter.c: Likewise.
2848 * python/py-function.c: Likewise.
2849 * python/py-gdb-readline.c: Likewise.
2850 * python/py-inferior.c: Likewise.
2851 * python/py-infthread.c: Likewise.
2852 * python/py-lazy-string.c: Likewise.
2853 * python/py-linetable.c: Likewise.
2854 * python/py-param.c: Likewise.
2855 * python/py-prettyprint.c: Likewise.
2856 * python/py-symbol.c: Likewise.
2857 * python/py-type.c: Likewise.
2858 * python/py-value.c: Likewise.
2859 * python/python-internal.h: Likewise.
2860 * python/python.c: Likewise.
2861 * record-btrace.c: Likewise.
2862 * record-full.c: Likewise.
2863 * regcache.c: Likewise.
2864 * remote-fileio.c: Likewise.
2865 * remote-mips.c: Likewise.
2866 * remote.c: Likewise.
2867 * rs6000-aix-tdep.c: Likewise.
2868 * rs6000-nat.c: Likewise.
2870 * solib-darwin.c: Likewise.
2871 * solib-dsbt.c: Likewise.
2872 * solib-frv.c: Likewise.
2873 * solib-ia64-hpux.c: Likewise.
2874 * solib-spu.c: Likewise.
2875 * solib-svr4.c: Likewise.
2876 * solib.c: Likewise.
2877 * spu-tdep.c: Likewise.
2878 * stack.c: Likewise.
2879 * stap-probe.c: Likewise.
2880 * symfile-mem.c: Likewise.
2881 * symmisc.c: Likewise.
2882 * target.c: Likewise.
2883 * thread.c: Likewise.
2885 * tracepoint.c: Likewise.
2886 * tui/tui-interp.c: Likewise.
2887 * typeprint.c: Likewise.
2888 * utils.c: Likewise.
2889 * valarith.c: Likewise.
2890 * valops.c: Likewise.
2891 * valprint.c: Likewise.
2892 * value.c: Likewise.
2893 * varobj.c: Likewise.
2894 * windows-nat.c: Likewise.
2895 * xml-support.c: Likewise.
2897 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2899 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2901 (extended_mips16_next_pc): Update accordingly.
2903 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2905 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2907 (micromips_instruction_is_compact_branch): Likewise.
2908 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2909 or a compact jump, reaching a jump delay slot, or seeing a
2910 second non-prologue instruction.
2911 (micromips_scan_prologue): Also terminate scanning upon seeing a
2912 compact branch or jump, or reaching a branch or jump delay slot.
2913 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2914 or jump delay slot, or seeing a second non-prologue instruction.
2915 (mips32_instruction_has_delay_slot): Retain instruction
2916 examination code only, update arguments accordingly and move
2917 instruction fetch pieces to...
2918 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2919 (micromips_instruction_has_delay_slot): Likewise and to...
2920 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2921 (mips16_instruction_has_delay_slot): Likewise and to...
2922 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2923 (mips_single_step_through_delay): Update accordingly.
2924 (mips_adjust_breakpoint_address): Likewise.
2926 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2928 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2929 !mustbe32 also return 1 for 32-bit instructions.
2930 (mips16_instruction_has_delay_slot): Likewise. Add an
2931 explanatory comment.
2933 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2935 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2938 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2940 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2942 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2943 for the breakpoint's address. Don't preinitialize `placed_size'.
2944 (insert_bp_location): Set `reqstd_address' rather than
2946 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2947 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2949 (bkpt_remove_location): Likewise.
2950 (deprecated_insert_raw_breakpoint): Likewise.
2951 (deprecated_remove_raw_breakpoint): Likewise.
2952 (find_single_step_breakpoint): Likewise.
2953 * mem-break.c (default_memory_insert_breakpoint): Use
2954 `reqstd_address' for the breakpoint's address. Don't set
2955 `placed_address' or `placed_size' if breakpoint contents couldn't
2956 have been determined.
2957 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2958 the breakpoint's address.
2959 (remote_insert_hw_breakpoint): Likewise. Don't set
2960 `placed_address' or `placed_size' if breakpoint couldn't have been
2962 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2963 `reqstd_address' for the breakpoint's address.
2964 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2965 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2966 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2967 * microblaze-linux-tdep.c
2968 (microblaze_linux_memory_remove_breakpoint): Likewise.
2969 * monitor.c (monitor_insert_breakpoint): Likewise.
2970 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2971 (procfs_insert_hw_breakpoint): Likewise.
2972 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2973 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2974 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2975 * remote-mips.c (mips_insert_breakpoint): Likewise.
2976 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2978 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2980 * valops.c (value_assign): Check for bit field assignments
2981 before calling architecture-specific register value
2982 conversion functions.
2984 2014-10-03 Pierre Muller <muller@sourceware.org>
2986 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2988 2014-10-02 Pedro Alves <palves@redhat.com>
2990 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2991 threads_are_executing.
2992 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2994 * gdbthread.h (threads_are_executing): Declare.
2995 (handle_signal_stop) <random signals>: Don't print about the
2996 signal here if stopping.
2997 (end_stepping_range): Don't notify observers here.
2998 (normal_stop): Update the thread list. If stopped by a random
2999 signal or a stepping range ended, notify observers.
3000 * thread.c (threads_executing): New global.
3001 (init_thread_list): Clear 'threads_executing'.
3002 (set_executing): Set or clear 'threads_executing'.
3003 (threads_are_executing): New function.
3004 (update_threads_executing): New function.
3005 (update_thread_list): Use it.
3007 2014-10-02 Pedro Alves <palves@redhat.com>
3009 PR breakpoints/17431
3010 * breakpoint.c (update_breakpoints_after_exec): Don't create
3011 overlay, longjmp, std terminate nor exception breakpoints here.
3013 2014-10-02 Pedro Alves <palves@redhat.com>
3015 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
3017 * inferior.c (find_inferior_for_program_space): Give preference to
3018 the current inferior.
3019 * inferior.h (find_inferior_for_program_space): Update comment.
3020 * progspace.c (switch_to_program_space_and_thread): Prefer the
3021 current inferior if it's bound to the program space requested. If
3022 the inferior found doesn't have a PID yet, don't bother looking up
3024 * progspace.h (switch_to_program_space_and_thread): Adjust
3026 * thread.c (any_thread_of_process, any_live_thread_of_process):
3027 Give preference to the current thread.
3029 2014-10-01 Pedro Alves <palves@redhat.com>
3031 * breakpoint.c (insert_bp_location): Error out if inserting a
3032 software breakpoint at a read-only address.
3033 * target.c (memory_xfer_check_region): New function, factored out
3035 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
3037 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
3038 against the memory region attributes.
3040 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
3042 * NEWS: Announce new exit-code field in -list-thread-groups
3044 * inferior.c (exit_inferior_1): Don't clear exit code.
3045 (inferior_appeared): Clear exit code.
3046 * mi/mi-main.c (print_one_inferior): Add printing of the exit
3049 2014-10-01 Pedro Alves <palves@redhat.com>
3051 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
3052 GENERATED" along with emacs/vi read-only markers.
3053 * regformats/aarch64.dat: Regenerate.
3054 * regformats/arm-with-iwmmxt.dat: Regenerate.
3055 * regformats/arm-with-neon.dat: Regenerate.
3056 * regformats/arm-with-vfpv2.dat: Regenerate.
3057 * regformats/arm-with-vfpv3.dat: Regenerate.
3058 * regformats/i386/amd64-avx-linux.dat: Regenerate.
3059 * regformats/i386/amd64-avx.dat: Regenerate.
3060 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
3061 * regformats/i386/amd64-avx512.dat: Regenerate.
3062 * regformats/i386/amd64-linux.dat: Regenerate.
3063 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
3064 * regformats/i386/amd64-mpx.dat: Regenerate.
3065 * regformats/i386/amd64.dat: Regenerate.
3066 * regformats/i386/i386-avx-linux.dat: Regenerate.
3067 * regformats/i386/i386-avx.dat: Regenerate.
3068 * regformats/i386/i386-avx512-linux.dat: Regenerate.
3069 * regformats/i386/i386-avx512.dat: Regenerate.
3070 * regformats/i386/i386-linux.dat: Regenerate.
3071 * regformats/i386/i386-mmx-linux.dat: Regenerate.
3072 * regformats/i386/i386-mmx.dat: Regenerate.
3073 * regformats/i386/i386-mpx-linux.dat: Regenerate.
3074 * regformats/i386/i386-mpx.dat: Regenerate.
3075 * regformats/i386/i386.dat: Regenerate.
3076 * regformats/i386/x32-avx-linux.dat: Regenerate.
3077 * regformats/i386/x32-avx.dat: Regenerate.
3078 * regformats/i386/x32-avx512-linux.dat: Regenerate.
3079 * regformats/i386/x32-avx512.dat: Regenerate.
3080 * regformats/i386/x32-linux.dat: Regenerate.
3081 * regformats/i386/x32.dat: Regenerate.
3082 * regformats/microblaze-with-stack-protect.dat: Regenerate.
3083 * regformats/mips-dsp-linux.dat: Regenerate.
3084 * regformats/mips-linux.dat: Regenerate.
3085 * regformats/mips64-dsp-linux.dat: Regenerate.
3086 * regformats/mips64-linux.dat: Regenerate.
3087 * regformats/nios2-linux.dat: Regenerate.
3088 * regformats/rs6000/powerpc-32.dat: Regenerate.
3089 * regformats/rs6000/powerpc-32l.dat: Regenerate.
3090 * regformats/rs6000/powerpc-64l.dat: Regenerate.
3091 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
3092 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
3093 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
3094 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
3095 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
3096 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
3097 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
3098 * regformats/s390-linux32.dat: Regenerate.
3099 * regformats/s390-linux32v1.dat: Regenerate.
3100 * regformats/s390-linux32v2.dat: Regenerate.
3101 * regformats/s390-linux64.dat: Regenerate.
3102 * regformats/s390-linux64v1.dat: Regenerate.
3103 * regformats/s390-linux64v2.dat: Regenerate.
3104 * regformats/s390-te-linux64.dat: Regenerate.
3105 * regformats/s390x-linux64.dat: Regenerate.
3106 * regformats/s390x-linux64v1.dat: Regenerate.
3107 * regformats/s390x-linux64v2.dat: Regenerate.
3108 * regformats/s390x-te-linux64.dat: Regenerate.
3109 * regformats/tic6x-c62x-linux.dat: Regenerate.
3110 * regformats/tic6x-c62x.dat: Regenerate.
3111 * regformats/tic6x-c64x-linux.dat: Regenerate.
3112 * regformats/tic6x-c64x.dat: Regenerate.
3113 * regformats/tic6x-c64xp-linux.dat: Regenerate.
3114 * regformats/tic6x-c64xp.dat: Regenerate.
3116 2014-10-01 Pedro Alves <palves@redhat.com>
3118 * features/Makefile: Update comments.
3119 (XMLTOC): List all xml files we build C files from.
3120 (clean-cfiles): New rule.
3122 2014-10-01 Pedro Alves <palves@redhat.com>
3124 * features/i386/amd64-avx512-linux.c: Regenerate.
3125 * features/i386/amd64-avx512.c: Regenerate.
3126 * features/i386/x32-avx512-linux.c: Regenerate.
3127 * features/i386/x32-avx512.c: Regenerate.
3129 2014-10-01 Pedro Alves <palves@redhat.com>
3131 * features/Makefile (WHICH): Remove arm-with-m,
3132 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3134 2014-10-01 Pedro Alves <palves@redhat.com>
3136 * features/Makefile (clean): New rule.
3138 2014-10-01 Pedro Alves <palves@redhat.com>
3140 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3141 (zmm14h): Add missing end quotes.
3143 2014-10-01 Pedro Alves <palves@redhat.com>
3145 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3146 * features/aarch64.c: Regenerate.
3148 2014-09-30 Don Breazeal <donb@codesourcery.com>
3150 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3151 code so as to work with follow_fork_inferior.
3152 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3153 (inf_ttrace_create_inferior): Remove reference to
3154 inf_ttrace_vfork_ppid.
3155 (inf_ttrace_attach): Ditto.
3156 (inf_ttrace_detach): Ditto.
3157 (inf_ttrace_kill): Use current_inferior instead of
3158 inf_ttrace_vfork_ppid.
3159 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3160 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3161 inferior away from the parent.
3162 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3164 (follow_fork_inferior): New function.
3165 (follow_inferior_reset_breakpoints): Make function static.
3166 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3167 * linux-nat.c (linux_child_follow_fork): Move target-independent
3168 code to infrun.c:follow_fork_inferior.
3170 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3172 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3173 * gdbarch.c: Regenerate.
3174 * gdbarch.h: Likewise.
3175 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3176 gdbarch method 'regset_from_core_section'.
3177 (get_core_register_section): Remove handling for the case that
3178 regset == NULL and regset_from_core_section is defined.
3179 (get_core_registers): Drop check for deleted method.
3180 * procfs.c (procfs_do_thread_registers): Adjust comment.
3182 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3184 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3185 (linux_nat_make_corefile_notes): Remove.
3186 (linux_target_install_ops): Do not set target method
3187 'make_corefile_notes'.
3188 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3190 (linux_corefile_thread_callback): Instead of args->collect, call
3191 linux_collect_thread_registers.
3192 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3193 NULL unless there is a regset iterator.
3194 (linux_make_corefile_notes_1): Remove.
3195 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3196 by linux_make_corefile_notes.
3197 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3199 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3201 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3202 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3204 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3206 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3208 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3209 (xtensa_iterate_over_regset_sections): New.
3210 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3212 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3214 * vax-tdep.c (vax_regset_from_core_section): Remove.
3215 (vax_iterate_over_regset_sections): New.
3216 (vax_gdbarch_init): Adjust gdbarch initialization.
3218 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3220 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3221 (tilegx_regset_from_core_section): Remove.
3222 (tilegx_iterate_over_regset_sections): New.
3223 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3225 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3227 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3228 (sparc_iterate_over_regset_sections): New.
3229 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3230 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3232 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3233 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3234 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3235 target method 'make_corefile_notes'.
3237 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3239 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3240 'sizeof_gregset' and 'sizeof_fpregset'.
3241 * sh-tdep.c (sh_regset_from_core_section): Remove.
3242 (sh_iterate_over_regset_sections): New.
3243 (sh_gdbarch_init): Adjust gdbarch initialization.
3244 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3246 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3249 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3251 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3252 (score7_linux_iterate_over_regset_sections): New.
3253 (score_gdbarch_init): Adjust gdbarch initialization.
3255 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3257 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3259 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3260 method 'make_corefile_notes'.
3261 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3262 (ppcfbsd_regset_from_core_section): Remove.
3263 (ppcfbsd_iterate_over_regset_sections): New.
3264 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3266 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3267 (ppcnbsd_iterate_over_regset_sections): New.
3268 (ppcnbsd_init_abi): Adjust.
3269 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3270 (ppcobsd_iterate_over_regset_sections): New.
3271 (ppcobsd_init_abi): Adjust.
3272 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3273 (rs6000_aix_iterate_over_regset_sections): New.
3274 (rs6000_aix_init_osabi): Adjust.
3276 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3278 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3279 (nios2_regset_from_core_section): Remove.
3280 (nios2_iterate_over_regset_sections): New.
3281 (nios2_linux_init_abi): Adjust gdbarch initialization.
3283 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3285 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3286 (am33_iterate_over_regset_sections): New.
3287 (am33_linux_init_osabi): Adjust gdbarch initialization.
3289 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3291 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3292 (mips_linux_iterate_over_regset_sections): New.
3293 (mips_linux_init_abi): Adjust gdbarch initialization.
3294 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3295 (mips64obsd_iterate_over_regset_sections): New.
3296 (mips64obsd_init_abi): Adjust.
3297 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3298 (mipsnbsd_iterate_over_regset_sections): New.
3299 (mipsnbsd_init_abi): Adjust.
3301 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3303 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3304 (m88k_iterate_over_regset_sections): New.
3305 (m88k_gdbarch_init): Adjust gdbarch initialization.
3307 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3309 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3310 (ia64_linux_iterate_over_regset_sections): New.
3311 (ia64_linux_init_abi): Adjust gdbarch initialization.
3313 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3315 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3316 (m68kbsd_iterate_over_regset_sections): New.
3317 (m68kbsd_init_abi): Adjust gdbarch initialization.
3318 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3319 (m68k_linux_iterate_over_regset_sections): New.
3320 (m68k_linux_init_abi): Adjust gdbarch initialization.
3322 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3324 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3325 (m32r_linux_regset_from_core_section): Remove.
3326 (m32r_linux_iterate_over_regset_sections): New.
3327 (m32r_linux_init_abi): Adjust gdbarch initialization.
3329 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3331 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3332 (amd64obsd_iterate_over_regset_sections): New.
3333 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3334 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3336 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3337 regset_from_core_section initialization.
3338 * i386-tdep.c (i386_regset_from_core_section): Remove.
3339 (i386_iterate_over_regset_sections): New.
3340 (i386_gdbarch_init): Adjust gdbarch initialization.
3341 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3342 (i386_iterate_over_regset_sections): New prototype.
3343 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3345 (i386obsd_aout_iterate_over_regset_sections): New.
3346 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3347 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3349 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3350 (amd64fbsd_init_abi): Call fbsd_init_abi.
3351 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3352 (i386fbsd4_init_abi): Call fbsd_init_abi.
3353 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3354 target method 'make_corefile_notes'.
3355 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3357 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3359 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3360 (hppa_hpux_iterate_over_regset_sections): New.
3361 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3362 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3363 (hppa_linux_iterate_over_regset_sections): New.
3364 (hppa_linux_init_abi): Adjust.
3365 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3366 (hppanbsd_iterate_over_regset_sections): New.
3367 (hppanbsd_init_abi): Adjust.
3368 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3369 (hppaobsd_iterate_over_regset_sections): New.
3370 (hppaobsd_init_abi): Adjust.
3372 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3374 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3375 (frv_linux_iterate_over_regset_sections): New.
3376 (frv_linux_init_abi): Adjust gdbarch initialization.
3378 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3380 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3381 (armbsd_iterate_over_regset_sections): New prototype.
3382 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3383 (armbsd_iterate_over_regset_sections): New.
3384 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3387 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3389 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3390 (alpha_linux_iterate_over_regset_sections): New.
3391 (alpha_linux_init_abi): Adjust gdbarch initialization.
3392 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3394 (alphanbsd_iterate_over_regset_sections): New prototype.
3396 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3398 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3400 (aarch64_linux_iterate_over_regset_sections): New.
3401 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3403 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3405 * fbsd-tdep.c: New file.
3406 * fbsd-tdep.h: New file.
3407 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3408 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3409 (ALLDEPFILES): Add fbsd-tdep.c.
3411 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3413 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3415 * gdbarch.h: Regenerate.
3416 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3418 (get_core_register_section): Add parameter 'regset' and use it, if
3419 set. Add parameter 'min_size' and verify the bfd section size
3421 (get_core_registers_cb): Add parameter 'regset' and pass it to
3422 get_core_register section. For the "standard" register sections
3423 ".reg" and ".reg2", set an appropriate default for human_name.
3424 (get_core_registers): Don't abort when the gdbarch has an iterator
3425 but no regset_from_core_section. Add NULL/0 for parameters
3426 'regset'/'min_size' in calls to get_core_register_section.
3427 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3428 'regset' and use it instead of calling the
3429 regset_from_core_section gdbarch method.
3430 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3431 * i386-tdep.c (i386_supply_xstateregset)
3432 (i386_collect_xstateregset, i386_xstateregset): Moved to
3434 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3436 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3437 core file support only if the regset iterator hasn't been set.
3438 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3439 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3440 Moved from i386-tdep.c and renamed to *_linux*.
3441 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3442 each callback invocation. Allow any .reg-xstate size when reading
3444 * amd64-tdep.c (amd64_supply_xstateregset)
3445 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3447 (amd64_regset_from_core_section): Remove.
3448 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3449 install an amd64-specific regset_from_core_section gdbarch method.
3450 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3451 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3452 Moved from amd64-tdep.c and renamed to *_linux*.
3453 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3454 to each callback invocation. Allow any .reg-xstate size when
3455 reading from a core file.
3456 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3457 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3458 each callback invocation.
3459 (arm_linux_init_abi): No longer set the regset_from_core_section
3461 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3462 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3463 each callback invocation.
3464 (ppc_linux_init_abi): No longer set the regset_from_core_section
3466 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3467 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3468 (s390_regset_from_core_section): Remove.
3469 (s390_iterate_over_regset_sections): Add regset parameter to each
3470 callback invocation.
3471 (s390_gdbarch_init): No longer set the regset_from_core_section
3472 gdbarch method. Drop initialization of deleted tdep fields.
3474 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3476 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3477 (amd64_linux_iterate_over_regset_sections): New.
3478 (amd64_linux_init_abi_common): Don't install the regset section
3479 list, but the new iterator in gdbarch.
3480 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3481 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3482 (arm_linux_iterate_over_regset_sections): ...here. New function.
3483 (arm_linux_init_abi): Set iterator instead of section list.
3484 * corelow.c (get_core_registers_cb): New function, logic moved
3486 (get_core_registers): ...loop body here. Use new iterator method
3487 instead of walking through the regset section list.
3488 * gdbarch.sh: Remove 'core_regset_sections'. New method
3489 'iterate_over_regset_sections'. New typedef
3490 'iterate_over_regset_sections_cb'.
3491 * gdbarch.c: Regenerate.
3492 * gdbarch.h: Likewise.
3493 * i386-linux-tdep.c (i386_linux_regset_sections)
3494 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3496 (i386_linux_iterate_over_regset_sections): New.
3497 (i386_linux_init_abi): Don't choose a regset section list, but
3498 install new iterator in gdbarch.
3499 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3500 (linux_collect_regset_section_cb): New function, logic moved
3502 (linux_collect_thread_registers): ...loop body here. Use iterator
3503 method instead of walking through list.
3504 (linux_make_corefile_notes_1): Check for presence of iterator
3505 method instead of regset section list.
3506 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3507 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3508 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3509 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3510 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3511 (ppc_linux_init_abi): Don't choose from above regset section
3512 lists, but install new iterator in gdbarch.
3513 * regset.h (struct core_regset_section): Remove.
3514 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3515 have_linux_v1, have_linux_v2, and have_tdb.
3516 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3517 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3518 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3519 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3520 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3521 (s390_iterate_over_regset_sections): ...here. New function. Use
3523 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3524 regset section lists, but install new iterator.
3526 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3528 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3530 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3532 * progspace.c (print_program_space): Don't prune program spaces
3533 before printing them.
3535 2014-09-25 Pedro Alves <palves@redhat.com>
3537 * infrun.c (user_visible_resume_ptid): Don't check
3538 singlestep_breakpoints_inserted_p.
3540 2014-09-25 Pedro Alves <palves@redhat.com>
3542 * breakpoint.c (should_be_inserted): Add debug output.
3544 2014-09-25 Pedro Alves <palves@redhat.com>
3546 * infrun.c (stepping_past_instruction_at)
3547 (clear_exit_convenience_vars): Point at infrun.h instead of
3549 (handle_signal_stop): Fix typo.
3551 2014-09-24 Yao Qi <yao@codesourcery.com>
3553 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3556 2014-09-22 Gary Benson <gbenson@redhat.com>
3558 * target.c (target_stop): Updated comment.
3560 2014-09-22 Gary Benson <gbenson@redhat.com>
3562 * target/target.h (target_stop_ptid): Renamed as...
3563 (target_stop_and_wait): New function. Updated comment.
3565 (target_continue_ptid): Renamed as...
3566 (target_continue_no_signal): New function. Updated comment.
3569 2014-09-22 Pedro Alves <palves@redhat.com>
3571 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3573 * breakpoint.c (enum ugll_insert_mode): New enum.
3574 (always_inserted_mode): Now a plain boolean.
3575 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3576 (breakpoints_always_inserted_mode): Delete.
3577 (breakpoints_should_be_inserted_now): New function.
3578 (insert_breakpoints): Pass UGLL_INSERT to
3579 update_global_location_list instead of calling
3580 insert_breakpoint_locations manually.
3581 (create_solib_event_breakpoint_1): New, factored out from ...
3582 (create_solib_event_breakpoint): ... this.
3583 (create_and_insert_solib_event_breakpoint): Use
3584 create_solib_event_breakpoint_1 instead of calling
3585 insert_breakpoint_locations manually.
3586 (update_global_location_list): Change parameter type from boolean
3587 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3588 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3589 (update_global_location_list_nothrow): Change parameter type from
3590 boolean to enum ugll_insert_mode.
3591 (_initialize_breakpoint): "breakpoint always-inserted" option is
3592 now a boolean command. Update help text.
3593 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3594 (breakpoints_should_be_inserted_now): New declaration.
3595 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3596 Remove breakpoints_always_inserted_mode check.
3597 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3598 * remote.c (remote_start_remote): Likewise.
3600 2014-09-22 Pedro Alves <palves@redhat.com>
3602 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3603 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3604 Instead, pass UGLL_INSERT to update_global_location_list.
3605 (update_global_location_list): Change parameter type from boolean
3606 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3607 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3608 (create_solib_event_breakpoint_1): New, factored out from ...
3609 (create_solib_event_breakpoint): ... this.
3610 (create_and_insert_solib_event_breakpoint): Use
3611 create_solib_event_breakpoint_1 instead of calling
3612 insert_breakpoint_locations manually.
3613 (update_global_location_list): Handle UGLL_INSERT.
3615 2014-09-22 Pedro Alves <palves@redhat.com>
3617 * breakpoint.c (enum ugll_insert_mode): New enum.
3618 (update_global_location_list)
3619 (update_global_location_list_nothrow): Change parameter type from
3620 boolean to enum ugll_insert_mode. All callers adjusted.
3622 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3624 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3625 SystemTap support in GDB.
3627 2014-09-19 Don Breazeal <donb@codesourcery.com>
3629 * linux-nat.c (linux_handle_extended_wait): Call
3630 linux_ptrace_get_extended_event.
3631 (wait_lwp): Call linux_is_extended_waitstatus.
3632 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3633 and linux_is_extended_waitstatus.
3634 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3635 linux_ptrace_get_extended_event.
3636 (linux_ptrace_get_extended_event): New function.
3637 (linux_is_extended_waitstatus): New function.
3638 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3639 (linux_is_extended_waitstatus): New declarations.
3641 2014-09-19 Yao Qi <yao@codesourcery.com>
3643 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3644 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3645 comments. Callers update.
3646 (dwarf_decode_lines): Likewise.
3647 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3648 comments. Skip the line table if 'lowpc' is greater than
3649 'address'. Don't check
3650 dwarf2_per_objfile->has_section_at_zero.
3652 2014-09-18 Doug Evans <dje@google.com>
3654 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3655 * python/py-symtab.c (stpy_get_producer): New function.
3656 (symtab_object_getset): Add "producer" attribute.
3658 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3661 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3662 (do_captured_read_memory_integer): Remove.
3663 (safe_read_memory_integer): Use target_read_memory directly instead
3664 of catching errors in do_captured_read_memory_integer.
3666 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3668 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3671 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3673 * objc-lang.c (find_implementation_from_class): Remove dead code.
3675 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3678 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3679 "fprintf_unfiltered (gdb_stdlog...)".
3681 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3683 PR breakpoints/12526
3684 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3686 * breakpoint.c (watch_command_1): Use these fields to retain
3687 bitfield information.
3688 (extract_bitfield_from_watchpoint_value): New function.
3689 (watchpoint_check): Use it.
3690 (update_watchpoint): Use it. Optimize the address and length of a
3691 HW watchpoint pointing to a bitfield.
3692 * value.h (unpack_value_bitfield): New prototype.
3693 * value.c (unpack_value_bitfield): Make extern.
3695 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3697 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3699 * gnu-nat.c (inf_threads): New function.
3700 * gnu-nat.h (inf_threads_ftype): New typedef.
3701 (inf_threads): New declaration.
3702 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3703 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3704 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3705 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3706 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3707 (i386_gnu_dr_get_control): New functions.
3708 (reg_addr): New structure.
3709 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3710 i386 debugging register hooks.
3711 * NEWS: Mention this.
3713 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3715 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3716 vector data transfer instructions.
3717 (arm_record_coproc_data_proc): Updated.
3719 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3721 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3722 arm_record_exreg_ld_st_insn.
3723 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3726 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3728 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3729 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3730 processing instructions.
3732 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3734 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3735 for advance SIMD struct ld/st insn.
3736 (thumb2_record_decode_insn_handler): Replace stub handler with
3737 thumb2_record_asimd_struct_ld_st.
3739 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3741 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3742 for asimd, vfp and coprocessor insns.
3743 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3744 and coprocessor insns.
3745 (thumb2_record_coproc_insn): New function.
3746 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3748 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3751 2014-09-13 Doug Evans <xdje42@gmail.com>
3753 * NEWS: Mention new "queue-signal" command.
3754 * infcmd.c (queue_signal_command): New function.
3755 (_initialize_infcmd): Add new queue-signal command.
3757 2014-09-13 Doug Evans <xdje42@gmail.com>
3759 * linux-nat.c (wait_lwp): Add debugging printf.
3760 (linux_nat_wait_1): Ditto.
3762 2014-09-12 Pedro Alves <palves@redhat.com>
3764 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3765 (create_and_insert_solib_event_breakpoint): New functions.
3766 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3767 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3768 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3769 (remove_dbx_link_breakpoint): Delete function.
3770 (insert_dbx_link_bpt_in_file): Use
3771 create_and_insert_solib_event_breakpoint instead of
3772 deprecated_insert_raw_breakpoint.
3773 (procfs_wait): Don't check whether we hit __dbx_link here.
3774 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3776 * solib-irix.c (base_breakpoint): Delete global.
3777 (disable_break): Delete function.
3778 (enable_break): Use create_solib_event_breakpoint
3779 instead of deprecated_insert_raw_breakpoint.
3780 (irix_solib_handle_event): New function.
3781 (irix_solib_create_inferior_hook): Don't run the target or disable
3782 the mapping-complete breakpoint here.
3783 (_initialize_irix_solib): Install irix_solib_handle_event as
3784 so_ops->handle_event hook.
3786 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3787 Ulrich Weigand <uweigand@de.ibm.com>
3790 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3791 instead of read_memory_unsigned_integer.
3793 2014-09-12 Gary Benson <gbenson@redhat.com>
3795 * nat/linux-waitpid.c: Include common-defs.h.
3796 [GDBSERVER]: Add FIXME comment.
3797 [!GDBSERVER]: Don't include defs.h or signal.h.
3798 (linux_debug) [!GDBSERVER]: Remove empty block.
3800 2014-09-12 Gary Benson <gbenson@redhat.com>
3802 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3803 Don't include defs.h or server.h.
3805 2014-09-12 Gary Benson <gbenson@redhat.com>
3807 * nat/linux-btrace.c: Include common-defs.h.
3808 Don't include defs.h, server.h or gdbthread.h.
3809 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3811 2014-09-12 Gary Benson <gbenson@redhat.com>
3813 * common/agent.c: Include common-defs.h.
3814 Don't include defs.h or server.h.
3815 * common/buffer.c: Likewise.
3816 * common/common-debug.c: Likewise.
3817 * common/common-utils.c: Likewise.
3818 * common/errors.c: Likewise.
3819 * common/filestuff.c: Likewise.
3820 * common/format.c: Likewise.
3821 * common/gdb_vecs.c: Likewise.
3822 * common/print-utils.c: Likewise.
3823 * common/ptid.c: Likewise.
3824 * common/rsp-low.c: Likewise.
3825 * common/signals.c: Likewise.
3826 * common/vec.c: Likewise.
3827 * common/xml-utils.c: Likewise.
3828 * nat/linux-osdata.c: Likewise.
3829 * nat/linux-procfs.c: Likewise.
3830 * nat/linux-ptrace.c: Likewise.
3831 * nat/mips-linux-watch.c: Likewise.
3832 * target/waitstatus.c: Likewise.
3834 2014-09-12 Tom Tromey <tromey@redhat.com>
3835 Gary Benson <gbenson@redhat.com>
3837 * common/common-regcache.h: New file.
3838 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3839 * regcache.h: Include common-regcache.h.
3840 (regcache_read_pc): Don't declare.
3841 * regcache.c (get_thread_regcache_for_ptid): New function.
3842 * nat/linux-btrace.c: Don't include regcache.h.
3843 Include common-regcache.h.
3844 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3846 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3848 * regcache.h (struct regset): Declare.
3850 2014-09-11 Pedro Alves <palves@redhat.com>
3853 * main.c: Include "infrun.h".
3854 (catch_command_errors, catch_command_errors_const): Wait for the
3855 foreground command to complete.
3856 * top.c (maybe_wait_sync_command_done): New function, factored out
3858 (maybe_wait_sync_command_done): ... here.
3859 * top.h (maybe_wait_sync_command_done): New declaration.
3861 2014-09-11 Tom Tromey <tromey@redhat.com>
3862 Gary Benson <gbenson@redhat.com>
3864 * common/symbol.h: New file.
3865 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3866 * minsyms.c (find_minimal_symbol_address): New function.
3867 * common/agent.c: Include common/symbol.h.
3868 [!GDBSERVER]: Don't include objfiles.h.
3869 (agent_look_up_symbols): Use find_minimal_symbol_address.
3871 2014-09-11 Gary Benson <gbenson@redhat.com>
3873 * target/target.h (target_stop_ptid, target_continue_ptid):
3875 * target.c (target_stop_ptid, target_continue_ptid): New
3877 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3878 (agent_run_command): Always use target_stop_ptid and
3879 target_continue_ptid.
3881 2014-09-11 Tom Tromey <tromey@redhat.com>
3882 Gary Benson <gbenson@redhat.com>
3884 * target/target.h: New file.
3885 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3886 * target.h: Include target/target.h.
3887 (target_read_memory, target_write_memory): Don't declare.
3888 * target.c (target_read_uint32): New function.
3889 * common/agent.c: Include target/target.h.
3890 [!GDBSERVER]: Don't include target.h.
3891 (helper_thread_id): Type changed to uint32_t.
3892 (agent_get_helper_thread_id): Use target_read_uint32.
3893 (agent_run_command): Always use target_read_memory and
3894 target_write_memory.
3895 (agent_capability): Type changed to uint32_t.
3896 (agent_capability_check): Use target_read_uint32.
3898 2014-09-11 Gary Benson <gbenson@redhat.com>
3900 * common/common-debug.h (show_debug_regs): Declare.
3901 * common/common-debug.c (show_debug_regs): Define.
3902 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3903 all uses with show_debug_regs. Replace all uses that considered
3904 debug_hw_points as a multi-value integer with straight boolean
3906 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3907 with show_debug_regs.
3908 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3909 all uses with show_debug_regs.
3910 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3911 uses with show_debug_regs.
3913 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3915 * findvar.c (address_from_register): Handle targets requiring
3916 a special conversion routine even for plain pointer types.
3918 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3920 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3921 (store_register): Do not call exec_one_dummy_insn.
3923 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3925 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3926 dereference it first. Use value_enclosing_type instead of
3928 (ada_array_length): Likewise.
3930 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3932 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3933 Adjust function implementation and documentation accordingly.
3934 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3935 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3936 Update call to ada_value_ptr_subscript.
3938 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3940 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3941 instead of VAL's type.
3943 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3945 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3947 2014-09-09 Doug Evans <xdje42@gmail.com>
3950 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3951 last parameter to pkg-config, not first.
3952 * configure.ac: Pass --with-guile provided pkg-config path to
3953 GDB_GUILE_PROGRAM_NAMES.
3954 * configure: Regenerate.
3956 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3958 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3961 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3963 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3964 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3965 the list of sections determining GDB_OSABI_IRIX.
3967 2014-09-09 James Hogan <james.hogan@imgtec.com>
3969 * MAINTAINERS (Write After Approval): Add "James Hogan".
3971 2014-09-09 James Hogan <james.hogan@imgtec.com>
3973 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3975 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3977 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3979 2014-09-08 Doug Evans <xdje42@gmail.com>
3982 * guile.c: #include <signal.h>.
3983 (_initialize_guile): Block SIGCHLD while initializing Guile.
3985 Replaces the following, which is reverted.
3987 2014-07-26 Doug Evans <xdje42@gmail.com>
3990 * configure.ac: Add check for header gc/gc.h.
3991 Add check for function setenv.
3992 * configure: Regenerate.
3993 * config.in: Regenerate.
3994 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3996 2014-09-08 Doug Evans <xdje42@gmail.com>
3998 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3999 with named constant. Fix style of pointer comparison.
4000 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
4002 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
4005 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
4006 decide whether we display the command on "show user".
4007 * cli/cli-script.c (show_user_1): Only verify cmdlines after
4008 printing command name.
4009 * cli/cli-decode.h (cli_user_command_p): Declare new function.
4010 * cli/cli-decode.c (cli_user_command_p): Create helper function
4011 to verify whether cmd_list_element is a user-defined command.
4013 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4016 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
4017 Fix goto out of TRY_CATCH.
4019 2014-09-06 Doug Evans <xdje42@gmail.com>
4020 Tom Tromey <tromey@redhat.com>
4023 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
4024 $_any_caller_matches.
4025 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
4026 * python/lib/gdb/function/caller_is.py: New file.
4028 2014-09-06 Doug Evans <xdje42@gmail.com>
4030 * infcmd.c (program_info): Fix typo.
4032 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
4035 * stap-probe.c (stap_parse_single_operand): Delete unused variable
4036 'number'. New variable 'has_digit'. Rewrite code to deal with
4037 subexpressions on SDT probes.
4039 2014-09-04 Pedro Alves <palves@redhat.com>
4041 * c-exp.y (parse_number): Skip handling base-switching prefixes if
4042 the input is only one character long.
4044 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
4047 * f-valprint.c (f_val_print): Specify the correct print option to
4048 use when printing integer values.
4050 2014-09-04 Gary Benson <gbenson@redhat.com>
4052 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
4053 Remove code to cope with LWPs wrapped as PIDs.
4054 Add assertions to ensure no wrapped LWPs are passed.
4056 2014-09-04 Pedro Alves <palves@redhat.com>
4058 * value.c (value_ranges_copy_adjusted): New function, factored out
4060 (value_contents_copy_raw): ... here.
4061 (unpack_value_bits_as_long_1): Rename back to ...
4062 (unpack_bits_as_long): ... this. Remove 'original_value' and
4063 'result' parameters. Change return type to LONGEST.
4064 (unpack_value_bits_as_long): Delete.
4065 (unpack_value_field_as_long_1): Delete.
4066 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
4067 (unpack_value_bitfield): New function.
4068 (value_field_bitfield): Reimplement using unpack_value_bitfield.
4069 (value_fetch_lazy): Use unpack_value_bitfield.
4070 * value.h (unpack_value_bits_as_long): Delete declaration.
4072 2014-09-03 Sasha Smundak <asmundak@google.com>
4074 * python/py-frame.c (frapy_read_register): New function.
4076 2014-09-03 James Hogan <james.hogan@imgtec.com>
4078 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
4079 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
4081 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
4084 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
4086 (add_cmd): Set "completer_handle_brkchars" to NULL.
4087 * cli/cli-decode.h (struct cmd_list_element)
4088 <completer_handle_brkchars>: New field.
4089 * command.h (completer_ftype_void): New typedef.
4090 (set_cmd_completer_handle_brkchars): New prototype.
4091 * completer.c (set_gdb_completion_word_break_characters): New
4093 (complete_line_internal): Call "completer_handle_brkchars"
4094 callback from command.
4095 * completer.h: Include "command.h".
4096 (set_gdb_completion_word_break_characters): New prototype.
4097 * python/py-cmd.c (cmdpy_completer_helper): New function.
4098 (cmdpy_completer_handle_brkchars): New function.
4099 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
4100 (cmdpy_init): Set completer_handle_brkchars to
4101 cmdpy_completer_handle_brkchars.
4103 2014-09-03 Gary Benson <gbenson@redhat.com>
4105 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
4106 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
4107 Loop conditions changed to equivalent form.
4108 (struct x86_debug_reg_state): Updated dr_ref_count comment.
4109 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
4110 ALL_DEBUG_ADDRESS_REGISTERS.
4112 2014-09-03 Joel Brobecker <brobecker@adacore.com>
4114 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4117 2014-09-02 Doug Evans <dje@google.com>
4119 * typeprint.c (find_global_typedef): Fix comment.
4121 2014-09-02 Gary Benson <gbenson@redhat.com>
4123 * i386-nat.h: Renamed as...
4124 * x86-nat.h: New file. All type, function and variable name
4125 prefixes changed from "i386_" to "x86_". All references updated.
4126 * i386-nat.c: Renamed as...
4127 * x86-nat.c: New file. All type, function and variable name
4128 prefixes changed from "i386_" to "x86_". All references updated.
4129 * common/i386-xstate.h: Renamed as...
4130 * common/x86-xstate.h: New file. All type, function and variable
4131 name prefixes changed from "i386_" to "x86_". All references
4133 * nat/i386-cpuid.h: Renamed as...
4134 * nat/x86-cpuid.h: New file. All type, function and variable name
4135 prefixes changed from "i386_" to "x86_". All references updated.
4136 * nat/i386-gcc-cpuid.h: Renamed as...
4137 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4138 name prefixes changed from "i386_" to "x86_". All references
4140 * nat/i386-dregs.h: Renamed as...
4141 * nat/x86-dregs.h: New file. All type, function and variable name
4142 prefixes changed from "i386_" to "x86_". All references updated.
4143 * nat/i386-dregs.c: Renamed as...
4144 * nat/x86-dregs.c: New file. All type, function and variable name
4145 prefixes changed from "i386_" to "x86_". All references updated.
4147 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4149 * varobj.c (_initialize_varobj): Move to the end of file.
4151 2014-08-29 Gary Benson <gbenson@redhat.com>
4153 * common/common-exceptions.h: New file.
4154 * common/common-exceptions.c: Likewise.
4155 * Makefile.in (SFILES): Add common/common-exceptions.c.
4156 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4157 (COMMON_OBS): Add common-exceptions.o.
4158 (common-exceptions.o): New rule.
4159 * exceptions.h (common-exceptions.h): Include.
4160 (gdb_setjmp.h): Do not include.
4161 (return_reason): Moved to common-exceptions.h.
4162 (enum return_reason): Likewise.
4163 (RETURN_MASK): Likewise.
4164 (typedef return_mask): Likewise.
4165 (enum errors): Likewise.
4166 (struct gdb_exception): Likewise.
4167 (exceptions_state_mc_init): Likewise.
4168 (exceptions_state_mc_action_iter): Likewise.
4169 (exceptions_state_mc_action_iter_1): Likewise.
4170 (TRY_CATCH): Likewise.
4171 (throw_exception): Likewise.
4172 (throw_verror): Likewise.
4173 (throw_vquit): Likewise.
4174 (throw_error): Likewise.
4175 (throw_quit): Likewise.
4176 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4177 (enum catcher_action): Likewise.
4178 (struct catcher): Likewise.
4179 (current_catcher): Likewise.
4180 (catcher_list_size): Likewise.
4181 (exceptions_state_mc_init): Likewise.
4182 (catcher_pop): Likewise.
4183 (exceptions_state_mc): Likewise.
4184 (exceptions_state_mc_action_iter): Likewise.
4185 (exceptions_state_mc_action_iter_1): Likewise.
4186 (throw_exception): Likewise.
4187 (exception_messages): Likewise.
4188 (exception_messages_size): Likewise.
4189 (throw_it): Likewise.
4190 (throw_verror): Likewise.
4191 (throw_vquit): Likewise.
4192 (throw_error): Likewise.
4193 (throw_quit): Likewise.
4194 (prepare_to_throw_exception): New function.
4196 2014-08-29 Gary Benson <gbenson@redhat.com>
4198 * common/gdb_setjmp.h: New file.
4199 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4200 * configure.ac: Move sigsetjmp check...
4201 * common/common.m4: ...here.
4202 * configure: Regenerate.
4203 * cp-support.c (SIGJMP_BUF): Delete.
4204 (SIGSETJMP): Likewise.
4205 (SIGLONGJMP): Likewise.
4206 * exceptions.h (gdb_setjmp.h): Include.
4207 (setjmp.h): Do not include.
4208 (EXCEPTIONS_SIGJMP_BUF): Delete.
4209 (EXCEPTIONS_SIGSETJMP): Likewise.
4210 (EXCEPTIONS_SIGLONGJMP): Likewise.
4211 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4213 * exceptions.c: Likewise.
4215 2014-08-29 Gary Benson <gbenson@redhat.com>
4217 * cleanups.h: Moved to...
4218 * common/cleanups.h: New file.
4219 * cleanups.c: Moved to...
4220 * common/cleanups.c: New file. Include common-defs.h and
4221 cleanups.h. Do not include defs.h.
4222 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4223 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4224 (cleanups.o): New rule.
4226 2014-08-29 Gary Benson <gbenson@redhat.com>
4228 * common/errors.h (internal_warning): New declaration.
4229 (internal_vwarning): Likewise.
4230 * common/errors.c (internal_warning): New function.
4231 * utils.h (internal_warning): Don't declare.
4232 (internal_vwarning): Likewise.
4233 * utils.c (internal_warning): Removed.
4235 2014-08-29 Gary Benson <gbenson@redhat.com>
4237 * main.c (captured_main): Use warning during startup.
4238 Prefix startup warning messages with command name.
4240 2014-08-29 Gary Benson <gbenson@redhat.com>
4242 * main.c (captured_main): Handle usage errors with error.
4244 2014-08-29 Gary Benson <gbenson@redhat.com>
4246 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4247 exit pair with a call to error. Wrap the message with _().
4249 2014-08-29 Gary Benson <gbenson@redhat.com>
4251 * main.c (captured_main): Replace a fprintf/exit
4252 pair with a call to error. Wrap the message with _().
4254 2014-08-29 Gary Benson <gbenson@redhat.com>
4256 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4257 pairs with calls to error. Wrap the message with _().
4259 2014-08-29 Gary Benson <gbenson@redhat.com>
4261 * utils.c (vwarning): Protect calls to target_terminal_ours
4264 2014-08-29 Gary Benson <gbenson@redhat.com>
4266 * exceptions.c (print_flush): Protect calls to
4267 target_terminal_ours and wrap_here.
4269 2014-08-29 Gary Benson <gbenson@redhat.com>
4271 * utils.h (filtered_printing_initialized): New declaration.
4272 * utils.c (abort_with_message): New function.
4273 (internal_vproblem): Use abort_with_message for first level
4274 recursive internal problems, and if gdb_stderr is not set up.
4275 Protect calls to target_terminal_ours, begin_line and query.
4277 2014-08-28 Doug Evans <dje@google.com>
4279 * symtab.c (in_prologue): Move definition to better spot.
4280 (skip_prologue_using_sal): Ditto.
4282 2014-08-28 Doug Evans <dje@google.com>
4284 * symtab.c (find_function_start_sal): Move definition to better spot.
4286 2014-08-28 Yao Qi <yao@codesourcery.com>
4288 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4289 found_stack_adjust in forward scan. Remove condition check
4290 on found_stack_adjust which is always true. Indent the code.
4292 2014-08-28 Yao Qi <yao@codesourcery.com>
4294 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4295 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4296 (dwarf_decode_lines): Remove argument
4297 want_line_info. Remove condition check on want_line_info.
4300 2014-08-27 Doug Evans <dje@google.com>
4302 * dwarf2read.c (dwarf_record_line): Fix typo.
4304 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4306 * target.h (struct target_ops::to_terminal_save_ours): Remove
4308 (target_terminal_save_ours): Remove macro.
4309 * target-delegates.c: Regenerate.
4310 * inf-child.c (inf_child_target): Don't set the nonexistent
4311 field to_terminal_save_ours.
4312 * inferior.h (child_terminal_save_ours): Remove declaration.
4313 * terminal.h (gdb_save_tty_state): New declaration.
4314 * inflow.c (child_terminal_save_ours): Rename to ...
4315 (gdb_save_tty_state): ... this.
4316 * tui/tui.c: Include terminal.h.
4317 (tui_enable): Use gdb_save_tty_state instead of
4318 target_terminal_save_ours.
4319 (tui_disable): Likewise.
4321 2014-08-25 Doug Evans <dje@google.com>
4323 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4324 Pass NULL instead of 0 for context pointer.
4326 2014-08-25 Yao Qi <yao@codesourcery.com>
4328 * dwarf2read.c: Fix grammatical error.
4330 2014-08-24 Yao Qi <yao@codesourcery.com>
4332 * dwarf2read.c (scan_partial_symbols): Update comments.
4333 Rename argument 'need_pc' with 'set_addrmap'.
4334 (add_partial_namespace): Rename argument 'need_pc' with
4336 (add_partial_module): Likewise.
4337 (add_partial_subprogram): Likewise. Update comments.
4338 (dwarf2_name): Fix typo.
4340 2014-08-22 Doug Evans <dje@google.com>
4343 * dwarf2read.c (dwarf_record_line_p): New function.
4344 (dwarf_decode_lines_1): Ignore subsequent line number entries
4345 for the same line if any entry had a non-zero discriminator.
4347 2014-08-22 Doug Evans <dje@google.com>
4349 * buildsym.h (record_line_ftype): New typedef.
4350 (record_line): Use it.
4351 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4352 (dwarf_decode_lines_1): Call them.
4354 2014-08-22 Yao Qi <yao@codesourcery.com>
4356 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4357 (ctf_end): Remove code.
4359 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4361 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4362 (linux_make_corefile_notes): call update_thread_list, protected against
4365 2014-08-21 Pedro Alves <palves@redhat.com>
4367 * infcmd.c (attach_command): Remove comment.
4369 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4371 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4372 unsigned LONGEST to ULONGEST.
4374 2014-08-20 Pedro Alves <palves@redhat.com>
4376 * Makefile.in (check-read1): New rule.
4378 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4380 * value.c (value_from_contents_and_address): Strip resolved_type's
4381 typedef layers before checking its TYPE_DATA_LOCATION.
4383 2014-08-20 Pedro Alves <palves@redhat.com>
4385 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4387 2014-08-20 Yao Qi <yao@codesourcery.com>
4389 * amd64-tdep.c (amd64_classify): Add a blank line after the
4390 example. Move "*/" to a new line.
4391 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4392 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4393 * dwarf2read.c (psymtab_include_file_name): Likewise.
4395 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4396 Pedro Alves <palves@redhat.com>
4400 * ada-lang.c (coerce_unspec_val_to_type): Use
4401 value_contents_copy_raw.
4402 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4403 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4404 * cp-valprint.c (cp_print_value_fields): Let the common printing
4405 code handle optimized out values.
4406 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4407 * d-valprint.c (dynamic_array_type): Use
4408 value_bits_any_optimized_out.
4409 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4410 check_any_valid fields.
4411 (check_pieced_value_bits): Delete and inline ...
4412 (check_pieced_synthetic_pointer): ... here.
4413 (check_pieced_value_validity): Delete.
4414 (check_pieced_value_invalid): Delete.
4415 (pieced_value_funcs): Remove check_validity and check_any_valid
4417 (read_pieced_value): Use mark_value_bits_optimized_out.
4418 (write_pieced_value): Switch to use
4419 mark_value_bytes_optimized_out.
4420 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4421 of assuming the whole value is optimized out.
4422 * findvar.c (read_frame_register_value): Remove special handling
4423 of optimized out registers.
4424 (value_from_register): Use mark_value_bytes_optimized_out.
4425 * frame-unwind.c (frame_unwind_got_optimized): Use
4426 mark_value_bytes_optimized_out.
4427 * jv-valprint.c (java_value_print): Adjust.
4428 (java_print_value_fields): Let the common printing code handle
4429 optimized out values.
4430 * mips-tdep.c (mips_print_register): Remove special handling of
4431 optimized out registers.
4432 * opencl-lang.c (lval_func_check_validity): Delete.
4433 (lval_func_check_any_valid): Delete.
4434 (opencl_value_funcs): Remove check_validity and check_any_valid
4436 * p-valprint.c (pascal_object_print_value_fields): Let the common
4437 printing code handle optimized out values.
4438 * stack.c (read_frame_arg): Remove special handling of optimized
4439 out values. Fetch both VAL and ENTRYVAL before comparing
4440 contents. Adjust to value_available_contents_eq rename.
4441 * valprint.c (valprint_check_validity)
4442 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4443 (val_print_array_elements): Adjust.
4444 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4445 (value_bits_any_optimized_out): New function.
4446 (value_entirely_covered_by_range_vector): New function, factored
4447 out from value_entirely_unavailable.
4448 (value_entirely_unavailable): Reimplement.
4449 (value_entirely_optimized_out): New function.
4450 (insert_into_bit_range_vector): New function, factored out from
4451 mark_value_bits_unavailable.
4452 (mark_value_bits_unavailable): Reimplement.
4453 (struct ranges_and_idx): New struct.
4454 (find_first_range_overlap_and_match): New function, factored out
4455 from value_available_contents_bits_eq.
4456 (value_available_contents_bits_eq): Rename to ...
4457 (value_contents_bits_eq): ... this. Check both unavailable
4458 contents and optimized out contents.
4459 (value_available_contents_eq): Rename to ...
4460 (value_contents_eq): ... this.
4461 (allocate_value_lazy): Remove reference to the old optimized_out
4463 (allocate_optimized_out_value): Use
4464 mark_value_bytes_optimized_out.
4465 (require_not_optimized_out): Adjust to check whether the
4466 optimized_out vec is empty.
4467 (ranges_copy_adjusted): New function, factored out from
4468 value_contents_copy_raw.
4469 (value_contents_copy_raw): Also copy the optimized out ranges.
4470 Assert the destination ranges aren't optimized out.
4471 (value_contents_copy): Update comment, remove call to
4472 require_not_optimized_out.
4473 (value_contents_equal): Adjust to check whether the optimized_out
4475 (set_value_optimized_out, value_optimized_out_const): Delete.
4476 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4478 (value_entirely_optimized_out, value_bits_valid): Delete.
4479 (value_copy): Take a VEC copy of the 'optimized_out' field.
4480 (value_primitive_field): Remove special handling of optimized out.
4481 (value_fetch_lazy): Assert that lazy values have no unavailable
4482 regions. Use value_bits_any_optimized_out. Remove some special
4483 handling for optimized out values.
4484 * value.h: Add intro comment about <optimized out> and
4486 (struct lval_funcs): Remove check_validity and check_any_valid
4488 (set_value_optimized_out, value_optimized_out_const): Remove.
4489 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4491 (value_bits_any_optimized_out): New declaration.
4492 (value_bits_valid): Delete declaration.
4493 (value_available_contents_eq): Rename to ...
4494 (value_contents_eq): ... this, and extend comments.
4496 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4498 Fix -fsanitize=address on unreadable inferior strings.
4499 * valprint.c (val_print_string): Fix access before BUFFER.
4501 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4503 * target.c (target_struct_size): Remove.
4504 (target_struct_allocsize): Remove.
4505 (DEFAULT_ALLOCSIZE): Remove.
4506 (target_ops_p): New typedef.
4507 (DEF_VEC_P (target_ops_p)): New vector type.
4508 (target_structs): Change type to VEC (target_ops_p).
4509 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4510 (find_default_run_target): Rewrite for loop following changes to
4513 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4515 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4516 Adjust code accordingly. Adjust function description comment.
4518 2014-08-19 Yao Qi <yao@codesourcery.com>
4520 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4523 2014-08-19 Alan Modra <amodra@gmail.com>
4525 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4526 * config.in: Regenerate.
4527 * configure: Regenerate.
4529 2014-08-19 Tom Tromey <tromey@redhat.com>
4530 Gary Benson <gbenson@redhat.com>
4532 * common/common-debug.h: New file.
4533 * common/common-debug.c: Likewise.
4534 * debug.c: Likewise.
4535 * Makefile.in (SFILES): Add common/common-debug.c.
4536 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4537 (COMMON_OBS): Add common-debug.o and debug.o.
4538 (common-debug.o): New rule.
4539 * common/common-defs.h: Include common-debug.h.
4540 * common/agent.c (debug_agent_printf): New function.
4541 (DEBUG_AGENT): Redefine.
4542 * nat/i386-dregs.c (debug_printf): Undefine.
4544 2014-08-19 Gary Benson <gbenson@redhat.com>
4546 * common/common-defs.h: Include print-utils.h.
4547 * utils.h: Do not include print-utils.h.
4549 2014-08-19 Tom Tromey <tromey@redhat.com>
4550 Gary Benson <gbenson@redhat.com>
4552 * common/common-types.h: New file.
4553 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4554 * common/common-defs.h: Include common-types.h.
4555 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4558 2014-08-19 Tom Tromey <tromey@redhat.com>
4559 Gary Benson <gbenson@redhat.com>
4561 * common/errors.h: New file.
4562 * common/errors.c: Likewise.
4563 * Makefile.in (SFILES): Add common/errors.c.
4564 (HFILES_NO_SRCDIR): Add common/errors.h.
4565 (COMMON_OBS): Add errors.o.
4566 (errors.o): New rule.
4567 * common/common-defs.h: Include errors.h.
4568 * utils.h (perror_with_name, error, verror, warning, vwarning):
4570 * common/common-utils.h: (malloc_failure, internal_error):
4573 2014-08-19 Gary Benson <gbenson@redhat.com>
4575 * utils.c (internal_vproblem): Always print the message.
4577 2014-08-18 Doug Evans <dje@google.com>
4579 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4581 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4583 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4584 Return 0 if TYPE is dynamic.
4585 (print_range): Add handling of dynamic ranges.
4587 2014-08-18 Keven Boell <keven.boell@intel.com>
4588 Joel Brobecker <brobecker@adacore.com>
4590 * gdbtypes.h (struct main_type): Add field "data_location".
4591 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4592 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4593 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4594 a dynamic data location.
4595 (resolve_dynamic_type): Add DW_AT_data_location handling.
4596 (copy_recursive, copy_type): Copy the data_location information
4598 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4599 * value.c (value_from_contents_and_address): Add
4600 DW_AT_data_location handling.
4602 2014-08-18 Keven Boell <keven.boell@intel.com>
4603 Joel Brobecker <brobecker@adacore.com>
4605 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4606 field "get_object_address".
4607 * dwarf2expr.c (execute_stack_op): Add handling for
4608 DW_OP_push_object_address.
4609 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4610 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4611 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4612 (dwarf_expr_get_obj_addr): New function.
4613 (dwarf_expr_ctx_funcs): Add get_object_address field.
4614 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4615 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4616 (dwarf2_evaluate_property): Add parameter "address". Use it.
4617 (needs_get_obj_addr): New function.
4618 (needs_frame_ctx_funcs): Add get_object_address field.
4619 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4620 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4621 (resolve_dynamic_array): Likewise.
4623 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4625 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4626 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4627 fixed value for records and unions for which some GNAT encodings
4630 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4632 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4633 rewrite to avoid "else if" and "else" constructs. Should be
4634 a no-op in practice.
4636 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4638 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4641 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4644 * eval.c: Update all calls to find_overload_match.
4645 * valarith.c: Likewise.
4646 (value_user_defined_cpp_op, value_user_defined_op): New
4647 argument NOSIDE. Update all callers.
4648 * valops.c (find_overload_match): New argument NOSIDE.
4649 * value.h (find_overload_match): Update signature.
4651 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4653 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4654 'items' methods instead of 'iteritems' method on dictionaries.
4656 2014-08-15 Doug Evans <dje@google.com>
4658 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4661 2014-08-15 Doug Evans <dje@google.com>
4663 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4665 2014-08-15 Doug Evans <dje@google.com>
4667 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4669 2014-08-15 Doug Evans <dje@google.com>
4671 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4674 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4676 * dcache.h: Include target.h, to avoid compile time warnings.
4678 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4680 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4681 frame_info" partial declaration.
4682 * gdbarch.h: Regenerate.
4684 2014-08-15 Yao Qi <yao@codesourcery.com>
4686 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4687 Add parameter 'decode_for_pst_p'. Callers update.
4689 2014-08-13 Yao Qi <yao@codesourcery.com>
4692 * configure.ac: Use local variable 'pos'.
4693 * configure: Regenerated.
4695 2014-08-11 Doug Evans <dje@google.com>
4697 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4698 message, it is redundant with "Reading symbols from ..." message.
4700 2014-08-10 Doug Evans <xdje42@gmail.com>
4702 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4704 2014-08-09 Yao Qi <yao@codesourcery.com>
4707 * remote.c (remote_xfer_partial): Remove dead code.
4709 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4711 * ia64-linux-tdep.c: Include "regset.h".
4712 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4713 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4714 (ia64_linux_supply_fpregset): New function.
4715 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4716 (ia64_linux_regset_from_core_section): New function.
4717 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4720 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4722 * m68klinux-tdep.c: Include "regset.h".
4723 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4724 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4725 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4726 (m68k_linux_regset_from_core_section): New function.
4727 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4730 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4732 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4733 function. Move logic to...
4734 (tilegx_linux_regmap): ... this new register map.
4735 (tilegx_linux_regset): Refer to register map, replace supply
4736 method by regcache_supply_regset, and add collect method.
4737 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4738 TILEGX_FIRST_EASY_REGNUM.
4740 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4742 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4743 that calls regcache_supply_regset and handles the EPC register
4744 separately. Move main logic to...
4745 (score7_linux_gregmap): ... this new register map.
4746 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4747 (score7_linux_gregset): Refer to register map. Add collect method.
4748 (score7_linux_regset_from_core_section): Replace
4749 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4750 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4751 (struct regset): Delete unused forward declaraction.
4752 (struct pt_regs): Delete structure definition.
4753 (elf_gregset_t): Delete typedef.
4755 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4757 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4758 (nios2_core_regset): Add collect method.
4760 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4762 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4763 platform-independent and don't write to read-only input buffer.
4764 (m32r_linux_collect_gregset): New function.
4765 (m32r_linux_gregset): Add collect method.
4767 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4769 * hppa-linux-tdep.c (greg_map): Rename to...
4770 (hppa_linux_gregmap): ... this. Also convert to
4771 regcache_map_entry format.
4772 (hppa_linux_supply_regset): Delete function.
4773 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4774 (hppa_linux_fpregmap): ... this new register map.
4775 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4776 register map, replace supply method by regcache_supply_regset, and
4777 add collect method regcache_collect_regset.
4779 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4781 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4782 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4783 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4784 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4785 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4786 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4787 (frv_linux_supply_gregset): Replace main logic by call to
4788 regcache_supply_regset, but keep clearing gr32-gr63.
4789 (frv_linux_supply_fpregset): Delete function.
4790 (frv_linux_gregset): Refer to appropriate register map and add
4791 regcache_collect_regset as the collect method.
4792 (frv_linux_fpregset): Likewise. Also exchange the supply method
4793 by regcache_supply_regset.
4795 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4797 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4798 by call to alpha_supply_int_regs.
4799 (alpha_linux_collect_gregset): New function.
4800 (alpha_linux_supply_fpregset): Replace logic by call to
4801 alpha_supply_fp_regs.
4802 (alpha_linux_collect_fpregset): New function.
4803 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4805 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4807 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4808 by call to regcache_collect_regset.
4809 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4810 instead of aarch64_linux_supply_gregset/_fpregset.
4811 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4812 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4813 header file instead.
4814 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4815 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4816 functions. Move logic to ...
4817 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4819 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4820 refer to new register maps, replace *_regset_from_core by
4821 regcache_supply_regset, and also use regcache_collect_regset.
4822 * aarch64-linux-tdep.h: Include "regset.h".
4823 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4825 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4826 macros, moved from C source file.
4827 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4828 variable declarations.
4830 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4832 * s390-linux-nat.c: Include "regset.h".
4833 (regmap_gregset): Delete macro.
4834 (s390_64_regmap_gregset): New register map for
4835 regcache_supply/_collect_regset.
4836 (s390_64_gregset): New regset.
4837 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4838 (regmap_fpregset): Delete macro.
4839 (s390_native_supply, s390_native_collect): Delete functions.
4840 (supply_gregset, fill_gregset): Replace s390-specific regmap
4841 handling by a call to regcache_supply/_collect_regset.
4842 (supply_fpregset, fill_fpregset): Call regcache_supply/
4843 _collect_regset instead of s390_native_supply/_collect.
4844 (fetch_regset, store_regset): Likewise. Also change the last
4845 parameter to a regset instead of a regmap.
4846 (s390_linux_fetch_inferior_registers)
4847 (390_linux_store_inferior_registers): Adjust last parameter in
4848 calls to fetch_regset and store_regset.
4849 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4850 (s390_gregmap): ... this. Also make static const and convert to
4851 regcache_map_entry format.
4852 (s390x_regmap_gregset): Delete.
4853 (s390_regmap_fpregset): Rename to...
4854 (s390_fpregmap): ... this. Make static const and convert to
4855 regcache_map_entry format.
4856 (s390_regmap_upper, s390_regmap_last_break)
4857 (s390x_regmap_last_break, s390_regmap_system_call)
4858 (s390_regmap_tdb): Likewise.
4859 (s390_supply_regset, s390_collect_regset): Remove functions.
4860 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4862 (s390_gregset, s390_fpregset, s390_upper_regset)
4863 (s390_last_break_regset, s390x_last_break_regset)
4864 (s390_system_call_regset, s390_tdb_regset): Make global and
4865 replace s390_supply/_collect_regset by regcache_supply/
4867 (s390x_gregset): Delete.
4868 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4869 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4870 (s390_regmap_fpregset, s390_regmap_last_break)
4871 (s390x_regmap_last_break, s390_regmap_system_call)
4872 (s390_regmap_tdb): Delete global variable declarations.
4873 (s390_gregset, s390_fpregset, s390_last_break_regset)
4874 (s390x_last_break_regset, s390_system_call_regset)
4875 (s390_tdb_regset): New global variable declarations.
4877 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4879 * regcache.c: Include "regset.h".
4880 (regcache_transfer_regset): New local function.
4881 (regcache_supply_regset, regcache_collect_regset): New functions.
4882 * regcache.h (struct regcache_map_entry): New structure.
4883 (REGCACHE_MAP_SKIP): New enum value.
4884 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4886 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4888 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4889 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4890 (ppc_linux_collect_gregset ): Likewise.
4891 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4892 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4893 (ppc_collect_vrregset): Likewise.
4894 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4897 2014-08-07 Yao Qi <yao@codesourcery.com>
4899 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4900 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4901 * remote.c (remote_read_bytes): Likewise.
4903 2014-08-07 Yao Qi <yao@codesourcery.com>
4905 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4907 2014-08-07 Yao Qi <yao@codesourcery.com>
4910 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4911 TARGET_XFER_OK instead of 0.
4913 2014-08-07 Gary Benson <gbenson@redhat.com>
4915 * common/common-defs.h: Include errno.h.
4916 * defs.h: Do not include errno.h.
4917 * ada-typeprint.c: Likewise.
4918 * c-typeprint.c: Likewise.
4919 * core-regset.c: Likewise.
4920 * corefile.c: Likewise.
4921 * corelow.c: Likewise.
4922 * event-loop.c: Likewise.
4923 * f-typeprint.c: Likewise.
4924 * gnu-nat.c: Likewise.
4925 * go32-nat.c: Likewise.
4926 * i386gnu-nat.c: Likewise.
4927 * m2-typeprint.c: Likewise.
4928 * nat/linux-btrace.c: Likewise.
4929 * p-typeprint.c: Likewise.
4930 * procfs.c: Likewise.
4931 * remote-sim.c: Likewise.
4932 * rs6000-nat.c: Likewise.
4933 * target.c: Likewise.
4934 * typeprint.c: Likewise.
4935 * ui-file.c: Likewise.
4936 * valops.c: Likewise.
4937 * valprint.c: Likewise.
4939 2014-08-07 Gary Benson <gbenson@redhat.com>
4941 * common/common-defs.h: Include string.h.
4942 * aarch64-tdep.c: Do not include string.h.
4943 * ada-exp.y: Likewise.
4944 * ada-lang.c: Likewise.
4945 * ada-lex.l: Likewise.
4946 * ada-typeprint.c: Likewise.
4947 * ada-valprint.c: Likewise.
4948 * aix-thread.c: Likewise.
4949 * alpha-linux-tdep.c: Likewise.
4950 * alpha-mdebug-tdep.c: Likewise.
4951 * alpha-nat.c: Likewise.
4952 * alpha-osf1-tdep.c: Likewise.
4953 * alpha-tdep.c: Likewise.
4954 * alphanbsd-tdep.c: Likewise.
4955 * amd64-dicos-tdep.c: Likewise.
4956 * amd64-linux-tdep.c: Likewise.
4957 * amd64-nat.c: Likewise.
4958 * amd64-sol2-tdep.c: Likewise.
4959 * amd64fbsd-tdep.c: Likewise.
4960 * amd64obsd-tdep.c: Likewise.
4961 * arch-utils.c: Likewise.
4962 * arm-linux-nat.c: Likewise.
4963 * arm-linux-tdep.c: Likewise.
4964 * arm-tdep.c: Likewise.
4965 * arm-wince-tdep.c: Likewise.
4966 * armbsd-tdep.c: Likewise.
4967 * armnbsd-nat.c: Likewise.
4968 * armnbsd-tdep.c: Likewise.
4969 * armobsd-tdep.c: Likewise.
4970 * avr-tdep.c: Likewise.
4971 * ax-gdb.c: Likewise.
4972 * ax-general.c: Likewise.
4973 * bcache.c: Likewise.
4974 * bfin-tdep.c: Likewise.
4975 * breakpoint.c: Likewise.
4976 * build-id.c: Likewise.
4977 * buildsym.c: Likewise.
4978 * c-exp.y: Likewise.
4979 * c-lang.c: Likewise.
4980 * c-typeprint.c: Likewise.
4981 * c-valprint.c: Likewise.
4982 * charset.c: Likewise.
4983 * cli-out.c: Likewise.
4984 * cli/cli-cmds.c: Likewise.
4985 * cli/cli-decode.c: Likewise.
4986 * cli/cli-dump.c: Likewise.
4987 * cli/cli-interp.c: Likewise.
4988 * cli/cli-logging.c: Likewise.
4989 * cli/cli-script.c: Likewise.
4990 * cli/cli-setshow.c: Likewise.
4991 * cli/cli-utils.c: Likewise.
4992 * coffread.c: Likewise.
4993 * common/agent.c: Likewise.
4994 * common/buffer.c: Likewise.
4995 * common/buffer.h: Likewise.
4996 * common/common-utils.c: Likewise.
4997 * common/filestuff.c: Likewise.
4998 * common/filestuff.c: Likewise.
4999 * common/format.c: Likewise.
5000 * common/print-utils.c: Likewise.
5001 * common/rsp-low.c: Likewise.
5002 * common/signals.c: Likewise.
5003 * common/vec.h: Likewise.
5004 * common/xml-utils.c: Likewise.
5005 * core-regset.c: Likewise.
5006 * corefile.c: Likewise.
5007 * corelow.c: Likewise.
5008 * cp-abi.c: Likewise.
5009 * cp-name-parser.y: Likewise.
5010 * cp-support.c: Likewise.
5011 * cp-valprint.c: Likewise.
5012 * cris-tdep.c: Likewise.
5013 * d-exp.y: Likewise.
5014 * darwin-nat.c: Likewise.
5015 * dbxread.c: Likewise.
5016 * dcache.c: Likewise.
5017 * demangle.c: Likewise.
5018 * dicos-tdep.c: Likewise.
5019 * disasm.c: Likewise.
5020 * doublest.c: Likewise.
5021 * dsrec.c: Likewise.
5022 * dummy-frame.c: Likewise.
5023 * dwarf2-frame.c: Likewise.
5024 * dwarf2loc.c: Likewise.
5025 * dwarf2read.c: Likewise.
5026 * elfread.c: Likewise.
5027 * environ.c: Likewise.
5029 * event-loop.c: Likewise.
5030 * exceptions.c: Likewise.
5032 * expprint.c: Likewise.
5033 * f-exp.y: Likewise.
5034 * f-lang.c: Likewise.
5035 * f-typeprint.c: Likewise.
5036 * f-valprint.c: Likewise.
5037 * fbsd-nat.c: Likewise.
5038 * findcmd.c: Likewise.
5039 * findvar.c: Likewise.
5040 * fork-child.c: Likewise.
5041 * frame.c: Likewise.
5042 * frv-linux-tdep.c: Likewise.
5043 * frv-tdep.c: Likewise.
5045 * gdb_bfd.c: Likewise.
5046 * gdbarch.c: Likewise.
5047 * gdbarch.sh: Likewise.
5048 * gdbtypes.c: Likewise.
5049 * gnu-nat.c: Likewise.
5050 * gnu-v2-abi.c: Likewise.
5051 * gnu-v3-abi.c: Likewise.
5052 * go-exp.y: Likewise.
5053 * go-lang.c: Likewise.
5054 * go32-nat.c: Likewise.
5055 * guile/guile.c: Likewise.
5056 * guile/scm-auto-load.c: Likewise.
5057 * hppa-hpux-tdep.c: Likewise.
5058 * hppa-linux-nat.c: Likewise.
5059 * hppanbsd-tdep.c: Likewise.
5060 * hppaobsd-tdep.c: Likewise.
5061 * i386-cygwin-tdep.c: Likewise.
5062 * i386-dicos-tdep.c: Likewise.
5063 * i386-linux-tdep.c: Likewise.
5064 * i386-nto-tdep.c: Likewise.
5065 * i386-sol2-tdep.c: Likewise.
5066 * i386-tdep.c: Likewise.
5067 * i386bsd-tdep.c: Likewise.
5068 * i386gnu-nat.c: Likewise.
5069 * i386nbsd-tdep.c: Likewise.
5070 * i386obsd-tdep.c: Likewise.
5071 * i387-tdep.c: Likewise.
5072 * ia64-libunwind-tdep.c: Likewise.
5073 * ia64-linux-nat.c: Likewise.
5074 * inf-child.c: Likewise.
5075 * inf-ptrace.c: Likewise.
5076 * inf-ttrace.c: Likewise.
5077 * infcall.c: Likewise.
5078 * infcmd.c: Likewise.
5079 * inflow.c: Likewise.
5080 * infrun.c: Likewise.
5081 * interps.c: Likewise.
5082 * iq2000-tdep.c: Likewise.
5083 * irix5-nat.c: Likewise.
5084 * jv-exp.y: Likewise.
5085 * jv-lang.c: Likewise.
5086 * jv-typeprint.c: Likewise.
5087 * jv-valprint.c: Likewise.
5088 * language.c: Likewise.
5089 * linux-fork.c: Likewise.
5090 * linux-nat.c: Likewise.
5091 * lm32-tdep.c: Likewise.
5092 * m2-exp.y: Likewise.
5093 * m2-typeprint.c: Likewise.
5094 * m32c-tdep.c: Likewise.
5095 * m32r-linux-nat.c: Likewise.
5096 * m32r-linux-tdep.c: Likewise.
5097 * m32r-rom.c: Likewise.
5098 * m32r-tdep.c: Likewise.
5099 * m68hc11-tdep.c: Likewise.
5100 * m68k-tdep.c: Likewise.
5101 * m68kbsd-tdep.c: Likewise.
5102 * m68klinux-nat.c: Likewise.
5103 * m68klinux-tdep.c: Likewise.
5104 * m88k-tdep.c: Likewise.
5105 * machoread.c: Likewise.
5106 * macrocmd.c: Likewise.
5108 * mdebugread.c: Likewise.
5109 * mem-break.c: Likewise.
5110 * memattr.c: Likewise.
5111 * memory-map.c: Likewise.
5112 * mep-tdep.c: Likewise.
5113 * mi/mi-cmd-break.c: Likewise.
5114 * mi/mi-cmd-disas.c: Likewise.
5115 * mi/mi-cmd-env.c: Likewise.
5116 * mi/mi-cmd-stack.c: Likewise.
5117 * mi/mi-cmd-var.c: Likewise.
5118 * mi/mi-cmds.c: Likewise.
5119 * mi/mi-console.c: Likewise.
5120 * mi/mi-getopt.c: Likewise.
5121 * mi/mi-interp.c: Likewise.
5122 * mi/mi-main.c: Likewise.
5123 * mi/mi-parse.c: Likewise.
5124 * microblaze-rom.c: Likewise.
5125 * microblaze-tdep.c: Likewise.
5126 * mingw-hdep.c: Likewise.
5127 * minidebug.c: Likewise.
5128 * minsyms.c: Likewise.
5129 * mips-irix-tdep.c: Likewise.
5130 * mips-linux-tdep.c: Likewise.
5131 * mips-tdep.c: Likewise.
5132 * mips64obsd-tdep.c: Likewise.
5133 * mipsnbsd-tdep.c: Likewise.
5134 * mipsread.c: Likewise.
5135 * mn10300-linux-tdep.c: Likewise.
5136 * mn10300-tdep.c: Likewise.
5137 * monitor.c: Likewise.
5138 * moxie-tdep.c: Likewise.
5139 * mt-tdep.c: Likewise.
5140 * nat/linux-btrace.c: Likewise.
5141 * nat/linux-osdata.c: Likewise.
5142 * nat/linux-procfs.c: Likewise.
5143 * nat/linux-ptrace.c: Likewise.
5144 * nat/linux-waitpid.c: Likewise.
5145 * nbsd-tdep.c: Likewise.
5146 * nios2-linux-tdep.c: Likewise.
5147 * nto-procfs.c: Likewise.
5148 * nto-tdep.c: Likewise.
5149 * objc-lang.c: Likewise.
5150 * objfiles.c: Likewise.
5151 * opencl-lang.c: Likewise.
5152 * osabi.c: Likewise.
5153 * osdata.c: Likewise.
5154 * p-exp.y: Likewise.
5155 * p-lang.c: Likewise.
5156 * p-typeprint.c: Likewise.
5157 * parse.c: Likewise.
5158 * posix-hdep.c: Likewise.
5159 * ppc-linux-nat.c: Likewise.
5160 * ppc-sysv-tdep.c: Likewise.
5161 * ppcfbsd-tdep.c: Likewise.
5162 * ppcnbsd-tdep.c: Likewise.
5163 * ppcobsd-tdep.c: Likewise.
5164 * printcmd.c: Likewise.
5165 * procfs.c: Likewise.
5166 * prologue-value.c: Likewise.
5167 * python/py-auto-load.c: Likewise.
5168 * python/py-gdb-readline.c: Likewise.
5169 * ravenscar-thread.c: Likewise.
5170 * regcache.c: Likewise.
5171 * registry.c: Likewise.
5172 * remote-fileio.c: Likewise.
5173 * remote-m32r-sdi.c: Likewise.
5174 * remote-mips.c: Likewise.
5175 * remote-notif.c: Likewise.
5176 * remote-sim.c: Likewise.
5177 * remote.c: Likewise.
5178 * reverse.c: Likewise.
5179 * rs6000-aix-tdep.c: Likewise.
5180 * ser-base.c: Likewise.
5181 * ser-go32.c: Likewise.
5182 * ser-mingw.c: Likewise.
5183 * ser-pipe.c: Likewise.
5184 * ser-tcp.c: Likewise.
5185 * ser-unix.c: Likewise.
5186 * serial.c: Likewise.
5187 * sh-tdep.c: Likewise.
5188 * sh64-tdep.c: Likewise.
5189 * shnbsd-tdep.c: Likewise.
5191 * sol-thread.c: Likewise.
5192 * solib-dsbt.c: Likewise.
5193 * solib-frv.c: Likewise.
5194 * solib-osf.c: Likewise.
5195 * solib-som.c: Likewise.
5196 * solib-spu.c: Likewise.
5197 * solib-target.c: Likewise.
5198 * solib.c: Likewise.
5199 * somread.c: Likewise.
5200 * source.c: Likewise.
5201 * sparc-nat.c: Likewise.
5202 * sparc-sol2-tdep.c: Likewise.
5203 * sparc-tdep.c: Likewise.
5204 * sparc64-tdep.c: Likewise.
5205 * sparc64fbsd-tdep.c: Likewise.
5206 * sparc64nbsd-tdep.c: Likewise.
5207 * sparcnbsd-tdep.c: Likewise.
5208 * spu-linux-nat.c: Likewise.
5209 * spu-multiarch.c: Likewise.
5210 * spu-tdep.c: Likewise.
5211 * stabsread.c: Likewise.
5212 * stack.c: Likewise.
5213 * std-regs.c: Likewise.
5214 * symfile.c: Likewise.
5215 * symmisc.c: Likewise.
5216 * symtab.c: Likewise.
5217 * target.c: Likewise.
5218 * thread.c: Likewise.
5219 * tilegx-linux-nat.c: Likewise.
5220 * tilegx-tdep.c: Likewise.
5222 * tracepoint.c: Likewise.
5223 * tui/tui-command.c: Likewise.
5224 * tui/tui-data.c: Likewise.
5225 * tui/tui-disasm.c: Likewise.
5226 * tui/tui-file.c: Likewise.
5227 * tui/tui-layout.c: Likewise.
5228 * tui/tui-out.c: Likewise.
5229 * tui/tui-regs.c: Likewise.
5230 * tui/tui-source.c: Likewise.
5231 * tui/tui-stack.c: Likewise.
5232 * tui/tui-win.c: Likewise.
5233 * tui/tui-windata.c: Likewise.
5234 * tui/tui-winsource.c: Likewise.
5235 * typeprint.c: Likewise.
5236 * ui-file.c: Likewise.
5237 * ui-out.c: Likewise.
5238 * user-regs.c: Likewise.
5239 * utils.c: Likewise.
5240 * v850-tdep.c: Likewise.
5241 * valarith.c: Likewise.
5242 * valops.c: Likewise.
5243 * valprint.c: Likewise.
5244 * value.c: Likewise.
5245 * varobj.c: Likewise.
5246 * vax-tdep.c: Likewise.
5247 * vaxnbsd-tdep.c: Likewise.
5248 * vaxobsd-tdep.c: Likewise.
5249 * windows-nat.c: Likewise.
5250 * xcoffread.c: Likewise.
5251 * xml-support.c: Likewise.
5252 * xstormy16-tdep.c: Likewise.
5253 * xtensa-linux-nat.c: Likewise.
5255 2014-08-07 Gary Benson <gbenson@redhat.com>
5257 * common/common-defs.h: Include gdb_assert.h.
5258 * aarch64-tdep.c: Do not include gdb_assert.h.
5259 * addrmap.c: Likewise.
5260 * aix-thread.c: Likewise.
5261 * alpha-linux-tdep.c: Likewise.
5262 * alpha-mdebug-tdep.c: Likewise.
5263 * alphanbsd-tdep.c: Likewise.
5264 * amd64-nat.c: Likewise.
5265 * amd64-tdep.c: Likewise.
5266 * amd64bsd-nat.c: Likewise.
5267 * amd64fbsd-nat.c: Likewise.
5268 * amd64fbsd-tdep.c: Likewise.
5269 * amd64nbsd-nat.c: Likewise.
5270 * amd64nbsd-tdep.c: Likewise.
5271 * amd64obsd-nat.c: Likewise.
5272 * amd64obsd-tdep.c: Likewise.
5273 * arch-utils.c: Likewise.
5274 * arm-tdep.c: Likewise.
5275 * armbsd-tdep.c: Likewise.
5277 * bcache.c: Likewise.
5278 * bfin-tdep.c: Likewise.
5279 * blockframe.c: Likewise.
5280 * breakpoint.c: Likewise.
5281 * bsd-kvm.c: Likewise.
5282 * bsd-uthread.c: Likewise.
5283 * buildsym.c: Likewise.
5284 * c-exp.y: Likewise.
5285 * c-lang.c: Likewise.
5286 * charset.c: Likewise.
5287 * cleanups.c: Likewise.
5288 * cli-out.c: Likewise.
5289 * cli/cli-decode.c: Likewise.
5290 * cli/cli-dump.c: Likewise.
5291 * cli/cli-logging.c: Likewise.
5292 * cli/cli-script.c: Likewise.
5293 * cli/cli-utils.c: Likewise.
5294 * coffread.c: Likewise.
5295 * common/common-utils.c: Likewise.
5296 * common/queue.h: Likewise.
5297 * common/signals.c: Likewise.
5298 * common/vec.h: Likewise.
5299 * complaints.c: Likewise.
5300 * completer.c: Likewise.
5301 * corelow.c: Likewise.
5302 * cp-abi.c: Likewise.
5303 * cp-name-parser.y: Likewise.
5304 * cp-namespace.c: Likewise.
5305 * cp-support.c: Likewise.
5306 * cris-tdep.c: Likewise.
5307 * dbxread.c: Likewise.
5308 * dictionary.c: Likewise.
5309 * doublest.c: Likewise.
5310 * dsrec.c: Likewise.
5311 * dummy-frame.c: Likewise.
5312 * dwarf2-frame-tailcall.c: Likewise.
5313 * dwarf2-frame.c: Likewise.
5314 * dwarf2expr.c: Likewise.
5315 * dwarf2loc.c: Likewise.
5316 * dwarf2read.c: Likewise.
5318 * event-loop.c: Likewise.
5319 * exceptions.c: Likewise.
5320 * expprint.c: Likewise.
5321 * f-valprint.c: Likewise.
5322 * fbsd-nat.c: Likewise.
5323 * findvar.c: Likewise.
5324 * frame-unwind.c: Likewise.
5325 * frame.c: Likewise.
5326 * frv-tdep.c: Likewise.
5327 * gcore.c: Likewise.
5328 * gdb-dlfcn.c: Likewise.
5329 * gdb_bfd.c: Likewise.
5330 * gdbarch.c: Likewise.
5331 * gdbarch.sh: Likewise.
5332 * gdbtypes.c: Likewise.
5333 * gnu-nat.c: Likewise.
5334 * gnu-v3-abi.c: Likewise.
5335 * go-lang.c: Likewise.
5336 * guile/scm-exception.c: Likewise.
5337 * guile/scm-gsmob.c: Likewise.
5338 * guile/scm-lazy-string.c: Likewise.
5339 * guile/scm-math.c: Likewise.
5340 * guile/scm-pretty-print.c: Likewise.
5341 * guile/scm-safe-call.c: Likewise.
5342 * guile/scm-utils.c: Likewise.
5343 * guile/scm-value.c: Likewise.
5344 * h8300-tdep.c: Likewise.
5345 * hppa-hpux-nat.c: Likewise.
5346 * hppa-tdep.c: Likewise.
5347 * hppanbsd-tdep.c: Likewise.
5348 * hppaobsd-tdep.c: Likewise.
5349 * i386-darwin-nat.c: Likewise.
5350 * i386-darwin-tdep.c: Likewise.
5351 * i386-nto-tdep.c: Likewise.
5352 * i386-tdep.c: Likewise.
5353 * i386bsd-nat.c: Likewise.
5354 * i386fbsd-tdep.c: Likewise.
5355 * i386gnu-nat.c: Likewise.
5356 * i386nbsd-tdep.c: Likewise.
5357 * i386obsd-tdep.c: Likewise.
5358 * i387-tdep.c: Likewise.
5359 * ia64-libunwind-tdep.c: Likewise.
5360 * ia64-tdep.c: Likewise.
5361 * inf-ptrace.c: Likewise.
5362 * inf-ttrace.c: Likewise.
5363 * infcall.c: Likewise.
5364 * infcmd.c: Likewise.
5365 * infrun.c: Likewise.
5366 * inline-frame.c: Likewise.
5367 * interps.c: Likewise.
5368 * jv-lang.c: Likewise.
5369 * jv-typeprint.c: Likewise.
5370 * linux-fork.c: Likewise.
5371 * linux-nat.c: Likewise.
5372 * linux-thread-db.c: Likewise.
5373 * m32c-tdep.c: Likewise.
5374 * m32r-linux-nat.c: Likewise.
5375 * m32r-tdep.c: Likewise.
5376 * m68k-tdep.c: Likewise.
5377 * m68kbsd-nat.c: Likewise.
5378 * m68kbsd-tdep.c: Likewise.
5379 * m88k-tdep.c: Likewise.
5380 * machoread.c: Likewise.
5381 * macroexp.c: Likewise.
5382 * macrotab.c: Likewise.
5383 * maint.c: Likewise.
5384 * mdebugread.c: Likewise.
5385 * memory-map.c: Likewise.
5386 * mep-tdep.c: Likewise.
5387 * mi/mi-common.c: Likewise.
5388 * microblaze-tdep.c: Likewise.
5389 * mingw-hdep.c: Likewise.
5390 * mips-linux-nat.c: Likewise.
5391 * mips-linux-tdep.c: Likewise.
5392 * mips-tdep.c: Likewise.
5393 * mips64obsd-tdep.c: Likewise.
5394 * mipsnbsd-tdep.c: Likewise.
5395 * mn10300-linux-tdep.c: Likewise.
5396 * mn10300-tdep.c: Likewise.
5397 * moxie-tdep.c: Likewise.
5398 * mt-tdep.c: Likewise.
5399 * nat/linux-btrace.c: Likewise.
5400 * nat/linux-osdata.c: Likewise.
5401 * nat/linux-ptrace.c: Likewise.
5402 * nat/mips-linux-watch.c: Likewise.
5403 * nios2-linux-tdep.c: Likewise.
5404 * nios2-tdep.c: Likewise.
5405 * objc-lang.c: Likewise.
5406 * objfiles.c: Likewise.
5407 * obsd-nat.c: Likewise.
5408 * opencl-lang.c: Likewise.
5409 * osabi.c: Likewise.
5410 * parse.c: Likewise.
5411 * ppc-linux-nat.c: Likewise.
5412 * ppc-sysv-tdep.c: Likewise.
5413 * ppcfbsd-nat.c: Likewise.
5414 * ppcfbsd-tdep.c: Likewise.
5415 * ppcnbsd-nat.c: Likewise.
5416 * ppcnbsd-tdep.c: Likewise.
5417 * ppcobsd-nat.c: Likewise.
5418 * ppcobsd-tdep.c: Likewise.
5419 * printcmd.c: Likewise.
5420 * procfs.c: Likewise.
5421 * prologue-value.c: Likewise.
5422 * psymtab.c: Likewise.
5423 * python/py-lazy-string.c: Likewise.
5424 * python/py-value.c: Likewise.
5425 * regcache.c: Likewise.
5426 * reggroups.c: Likewise.
5427 * registry.c: Likewise.
5428 * remote-sim.c: Likewise.
5429 * remote.c: Likewise.
5430 * rs6000-aix-tdep.c: Likewise.
5431 * rs6000-tdep.c: Likewise.
5432 * s390-linux-tdep.c: Likewise.
5433 * score-tdep.c: Likewise.
5434 * ser-base.c: Likewise.
5435 * ser-mingw.c: Likewise.
5436 * sh-tdep.c: Likewise.
5437 * sh64-tdep.c: Likewise.
5438 * solib-darwin.c: Likewise.
5439 * solib-spu.c: Likewise.
5440 * solib-svr4.c: Likewise.
5441 * source.c: Likewise.
5442 * sparc-nat.c: Likewise.
5443 * sparc-sol2-tdep.c: Likewise.
5444 * sparc-tdep.c: Likewise.
5445 * sparc64-sol2-tdep.c: Likewise.
5446 * sparc64-tdep.c: Likewise.
5447 * sparc64fbsd-tdep.c: Likewise.
5448 * sparc64nbsd-tdep.c: Likewise.
5449 * sparc64obsd-tdep.c: Likewise.
5450 * sparcnbsd-tdep.c: Likewise.
5451 * sparcobsd-tdep.c: Likewise.
5452 * spu-multiarch.c: Likewise.
5453 * spu-tdep.c: Likewise.
5454 * stabsread.c: Likewise.
5455 * stack.c: Likewise.
5456 * symfile.c: Likewise.
5457 * symtab.c: Likewise.
5458 * target-descriptions.c: Likewise.
5459 * target-memory.c: Likewise.
5460 * target.c: Likewise.
5461 * tic6x-linux-tdep.c: Likewise.
5462 * tic6x-tdep.c: Likewise.
5463 * tilegx-linux-nat.c: Likewise.
5464 * tilegx-tdep.c: Likewise.
5466 * tramp-frame.c: Likewise.
5467 * tui/tui-out.c: Likewise.
5468 * tui/tui-winsource.c: Likewise.
5469 * ui-out.c: Likewise.
5470 * user-regs.c: Likewise.
5471 * utils.c: Likewise.
5472 * v850-tdep.c: Likewise.
5473 * valops.c: Likewise.
5474 * value.c: Likewise.
5475 * varobj.c: Likewise.
5476 * vax-nat.c: Likewise.
5477 * xml-syscall.c: Likewise.
5478 * xml-tdesc.c: Likewise.
5479 * xstormy16-tdep.c: Likewise.
5480 * xtensa-linux-nat.c: Likewise.
5481 * xtensa-tdep.c: Likewise.
5483 2014-08-07 Gary Benson <gbenson@redhat.com>
5485 * common/common-defs.h: Include common-utils.h.
5486 * defs.h: Do not include common-utils.h.
5487 * common/gdb_assert.h: Likewise.
5488 * darwin-nat.h: Likewise.
5489 * nat/linux-btrace.c: Likewise.
5490 * target/waitstatus.h: Likewise.
5492 2014-08-07 Gary Benson <gbenson@redhat.com>
5494 * common/common-defs.h: Include ptid.h.
5495 * defs.h: Do not include ptid.h.
5496 * inferior.h: Likewise.
5497 * infrun.h: Likewise.
5498 * nat/linux-btrace.h: Likewise.
5499 * nat/linux-osdata.h: Likewise.
5500 * target/waitstatus.h: Likewise.
5502 2014-08-07 Gary Benson <gbenson@redhat.com>
5504 * common/common-defs.h: Include gdb_locale.h.
5505 * defs.h: Do not include gdb_locale.h.
5507 2014-08-07 Gary Benson <gbenson@redhat.com>
5509 * common/common-defs.h: Include gdb/signals.h.
5510 * defs.h: Do not include gdb/signals.h.
5512 2014-08-07 Gary Benson <gbenson@redhat.com>
5514 * common/common-defs.h: Include pathmax.h.
5515 * defs.h: Do not include pathmax.h.
5517 2014-08-07 Gary Benson <gbenson@redhat.com>
5519 * common/common-defs.h: Include libiberty.h.
5520 * defs.h: Do not include libiberty.h.
5521 * common/queue.h: Likewise.
5522 * cp-name-parser.y: Likewise.
5523 * mi/mi-cmd-catch.c: Likewise.
5524 * python/python.c: Likewise.
5526 2014-08-07 Gary Benson <gbenson@redhat.com>
5528 * common/common-defs.h: Include ansidecl.h.
5529 * defs.h: Do not include ansidecl.h.
5530 * common/buffer.h: Likewise.
5531 * common/common-utils.h: Likewise.
5533 2014-08-07 Gary Benson <gbenson@redhat.com>
5535 * common/common-defs.h: Include stddef.h.
5536 * defs.h: Do not include stddef.h.
5537 * common/common-utils.h: Likewise.
5538 * amd64fbsd-nat.c: Likewise.
5539 * bcache.c: Likewise.
5540 * charset.c: Likewise.
5541 * common/buffer.h: Likewise.
5542 * common/vec.h: Likewise.
5543 * i386bsd-nat.c: Likewise.
5544 * nat/linux-btrace.h: Likewise.
5545 * ppcfbsd-nat.c: Likewise.
5546 * ppcnbsd-tdep.h: Likewise.
5547 * ppcobsd-nat.c: Likewise.
5548 * ppcobsd-tdep.h: Likewise.
5549 * python/py-gdb-readline.c: Likewise.
5551 2014-08-07 Gary Benson <gbenson@redhat.com>
5553 * common/common-defs.h: Include stdarg.h.
5554 * defs.h: Do not include stdarg.h.
5555 * ada-lang.c: Likewise.
5556 * common/common-utils.h: Likewise.
5557 * guile/scm-string.c: Likewise.
5558 * guile/scm-utils.c: Likewise.
5559 * m32c-tdep.c: Likewise.
5561 2014-08-07 Gary Benson <gbenson@redhat.com>
5563 * common/common-defs.h: Include stdlib.h.
5564 * defs.h: Do not include stdlib.h.
5565 * addrmap.c: Likewise.
5566 * bcache.c: Likewise.
5567 * common/buffer.c: Likewise.
5568 * common/common-utils.c: Likewise.
5569 * cp-name-parser.y: Likewise.
5570 * go32-nat.c: Likewise.
5571 * mn10300-linux-tdep.c: Likewise.
5572 * nat/linux-osdata.c: Likewise.
5573 * tui/tui.c: Likewise.
5574 * windows-nat.c: Likewise.
5576 2014-08-07 Gary Benson <gbenson@redhat.com>
5578 * common/common-defs.h: Include stdio.h.
5579 * defs.h: Do not include stdio.h.
5580 * ada-lang.c: Likewise.
5581 * common/buffer.c: Likewise.
5582 * common/common-utils.c: Likewise.
5583 * cp-name-parser.y: Likewise.
5584 * gnu-nat.c: Likewise.
5585 * go32-nat.c: Likewise.
5586 * i386gnu-nat.c: Likewise.
5587 * proc-api.c: Likewise.
5588 * proc-events.c: Likewise.
5589 * proc-flags.c: Likewise.
5590 * proc-why.c: Likewise.
5591 * python/python-internal.h: Likewise.
5592 * target-memory.c: Likewise.
5593 * tui/tui-io.c: Likewise.
5594 * tui/tui.c: Likewise.
5596 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5598 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5599 (scan_dyntag_auxv): Same.
5601 2014-08-06 Yao Qi <yao@codesourcery.com>
5603 * amd64-linux-nat.c: Remove duplicated include
5605 * i386-linux-nat.c: Likewise.
5607 2014-08-06 Yao Qi <yao@codesourcery.com>
5609 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5610 operand" with "Special opcode" in comments.
5612 2014-08-05 Gary Benson <gbenson@redhat.com>
5614 * interps.c (initialize_interps): Remove prototype.
5615 (interpreter_initialized): Remove static global.
5616 (interp_add): Do not call initialize_interps.
5617 (initialize_interps): Remove function.
5619 2014-08-05 Gary Benson <gbenson@redhat.com>
5621 * utils.c (vwarning): Remove spurious va_end.
5623 2014-08-05 Alan Modra <amodra@gmail.com>
5625 * charset.c (convert_between_encodings): Cast result of obstack_base.
5626 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5627 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5628 (read_unwind_info): Use size_t for some locals.
5629 * jit.c (finalize_symtab): Likewise.
5630 * utils.c (hashtab_obstack_allocate): Likewise.
5631 * symmisc.c (print_objfile_statistics): Update format strings.
5633 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5635 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5636 (Changes in GDB 7.8): ... here.
5638 2014-08-04 Tom Tromey <tromey@redhat.com>
5640 * target.c (set_targetdebug): New function.
5641 (initialize_targets): Pass set_targetdebug when creating "set
5644 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5646 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5647 if detecting a variable-sized field that is not the last field.
5648 Fix struct type length computation.
5650 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5652 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5655 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5657 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5658 Remove "+ 8" offset in computation of CHAIN_VMA.
5660 2014-07-31 Doug Evans <dje@google.com>
5662 * inflow.c (child_terminal_inferior): Add comment.
5663 (child_terminal_ours_for_output): Add comment.
5664 (child_terminal_ours): Add comment.
5665 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5666 (linux_nat_terminal_ours): Add comment.
5668 2014-07-31 Gary Benson <gbenson@redhat.com>
5670 * common/btrace-common.h: Do not include defs.h or server.h.
5671 * nat/mips-linux-watch.h: Likewise.
5672 * gdb-dlfcn.h: Do not include defs.h.
5673 * tracefile.h: Likewise.
5675 2014-07-30 Roland McGrath <mcgrathr@google.com>
5677 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5679 2014-07-30 Tom Tromey <tromey@redhat.com>
5681 * bsd-kvm.c (bsd_kvm_open): Constify.
5682 * corelow.c (core_open): Constify.
5683 * ctf.c (ctf_open): Constify.
5684 * dbug-rom.c (dbug_open): Constify.
5685 * exec.c (exec_open): Constify.
5686 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5687 * microblaze-rom.c (picobug_open): Constify.
5688 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5690 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5691 * record-btrace.c (record_btrace_open): Constify.
5692 * record-full.c (record_full_core_open_1, record_full_open_1)
5693 (record_full_open): Constify.
5694 * remote-m32r-sdi.c (m32r_open): Constify.
5695 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5696 (rockhopper_open, lsi_open): Constify.
5697 * remote-sim.c (gdbsim_open): Constify.
5698 * remote.c (remote_open, extended_remote_open, remote_open_1):
5700 * target.h (struct target_ops) <to_open>: Make "arg" const.
5701 * tracefile-tfile.c (tfile_open): Constify.
5703 2014-07-30 Tom Tromey <tromey@redhat.com>
5705 * breakpoint.c (map_breakpoint_numbers): Update.
5706 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5707 (get_number_const): New function.
5708 (get_number): Rewrite using get_number_const.
5709 (init_number_or_range): Make "string" const.
5710 (number_is_in_list): Make "list" const.
5711 * cli/cli-utils.h (get_number_const): Declare.
5712 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5713 (init_number_or_range, number_is_in_list): Update.
5714 * printcmd.c (map_display_numbers): Update.
5715 * value.c (value_from_history_ref): Constify.
5716 * value.h (value_from_history_ref): Update.
5718 2014-07-30 Tom Tromey <tromey@redhat.com>
5720 * corefile.c (hook_type, call_extra_exec_file_hooks)
5721 (specify_exec_file_hook): Constify.
5722 * exec.c (exec_file_attach): Make "filename" const.
5723 * gdbcore.h (deprecated_exec_file_display_hook)
5724 (specify_exec_file_hook, exec_file_attach): Constify.
5725 * main.c (captured_main): Use catch_command_errors_const.
5727 2014-07-30 Tom Tromey <tromey@redhat.com>
5729 * target.c (open_target): New function.
5730 (add_target_with_completer, add_deprecated_target_alias): Use
5731 set_cmd_sfunc, set_cmd_context.
5732 (debug_to_open): Remove.
5733 (setup_target_debug): Update.
5735 2014-07-30 Yao Qi <yao@codesourcery.com>
5737 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5739 * parse.c (exp_iterate): Update comments.
5741 2014-07-30 Gary Benson <gbenson@redhat.com>
5743 * common/common-defs.h: New file.
5744 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5745 * defs.h: Include common-defs.h.
5746 Do not include config.h or build-gnulib/config.h.
5748 2014-07-30 Gary Benson <gbenson@redhat.com>
5750 * common/common-utils.h: Do not include config.h.
5751 * nat/linux-btrace.h: Likewise.
5753 2014-07-30 Gary Benson <gbenson@redhat.com>
5755 * btrace.c: Include defs.h.
5756 * common/ptid.c: Include defs.h or server.h as appropriate.
5757 * nat/mips-linux-watch.c: Likewise.
5759 2014-07-29 Tom Tromey <tromey@redhat.com>
5761 * target.c (target_is_pushed): Simplify.
5763 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5767 2014-07-29 Yao Qi <yao@codesourcery.com>
5770 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5772 2014-07-28 Doug Evans <xdje42@gmail.com>
5775 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5776 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5779 2014-07-28 Will Newton <will.newton@linaro.org>
5781 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5782 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5783 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5784 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5785 (THUMB2_EABI_SYSCALL): Likewise.
5786 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5788 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5789 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5791 2014-07-27 Doug Evans <xdje42@gmail.com>
5793 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5795 2014-07-27 Doug Evans <xdje42@gmail.com>
5797 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5799 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5800 Doug Evans <xdje42@gmail.com>
5803 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5804 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5805 * configure.ac: Try to use guild to compile an scm file, if it fails
5806 then disable guile support.
5807 * configure: Regenerate.
5808 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5810 (GUILE_COMPILED_FILES): New variable.
5811 (GUILE_FILES) Update.
5812 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5813 (stamp-guile): Compile scm files.
5814 * guile/guile.c (boot_guile_support): New function.
5815 (standard_throw_args_p): New function.
5816 (print_standard_throw_error, print_throw_error): New functions.
5817 (handle_boot_error): New function.
5818 (initialize_scheme_side): Rewrite to call boot_guile_support.
5819 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5820 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5822 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5823 Doug Evans <xdje42@gmail.com>
5826 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5827 * guile/lib/gdb/support.scm: New file.
5828 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5829 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5831 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5833 (%assert-type): Ditto, and renamed to assert-type.
5834 (%exception-print-style): Delete.
5836 2014-07-26 Doug Evans <xdje42@gmail.com>
5839 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5840 * configure: Regenerate.
5841 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5843 (PYTHON_FILES): New variable.
5844 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5845 (GUILE_FILES): New variable.
5846 (stamp-python, install-python, uninstall-python): Handle empty
5848 (stamp-guile, install-guile, uninstall-guile): Ditto.
5850 2014-07-26 Doug Evans <xdje42@gmail.com>
5853 * guile/lib/gdb.scm (pretty-printers): Export.
5854 (set-pretty-printers!): Export.
5855 * guile/lib/gdb/printing.scm (gdb module): Update.
5856 (prepend-pretty-printer!, append-pretty-printer!): Update.
5857 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5858 (pretty_printer_list_var): Delete.
5859 (pretty_printer_list): New static global.
5860 (gdbscm_pretty_printers): New function.
5861 (gdbscm_set_pretty_printers_x): New function.
5862 (ppscm_find_pretty_printer_from_gdb): Update.
5863 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5864 (gdbscm_initialize_pretty_printers): Update.
5866 2014-07-26 Doug Evans <xdje42@gmail.com>
5869 * configure.ac: Add check for header gc/gc.h.
5870 Add check for function setenv.
5871 * configure: Regenerate.
5872 * config.in: Regenerate.
5873 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5875 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5877 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5878 variation in gdbarch matching.
5880 2014-07-25 Tom Tromey <tromey@redhat.com>
5882 * exec.c (using_exec_ops): Remove.
5883 (exec_close_1): Update. Remove extraneous block, reindent.
5884 (add_target_sections): Use target_is_pushed.
5886 2014-07-25 Pedro Alves <palves@redhat.com>
5888 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5889 * monitor.c (monitor_create_inferior): Likewise.
5890 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5891 * remote-sim.c (gdbsim_create_inferior): Likewise.
5892 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5893 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5894 * windows-nat.c (do_initial_windows_stuff): Likewise.
5896 2014-07-25 Pedro Alves <palves@redhat.com>
5898 * NEWS: Mention signal passing and "signal" command changes.
5899 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5901 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5903 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5904 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5905 (jump_command): Adjust clear_proceed_status call.
5906 (signal_command): Warn if other thread that are resumed have
5907 signals that will be delivered. Adjust clear_proceed_status call.
5908 (until_next_command, finish_command)
5909 (proceed_after_attach_callback, attach_command_post_wait)
5910 (attach_command): Adjust clear_proceed_status call.
5911 * infrun.c (proceed_after_vfork_done): Likewise.
5912 (proceed_after_attach_callback): Adjust comment.
5913 (clear_proceed_status_thread): Clear stop_signal if not in pass
5915 (clear_proceed_status_callback): Delete.
5916 (clear_proceed_status): New 'step' parameter. Only clear the
5917 proceed status of threads the command being prepared is about to
5919 (proceed): If passed in an explicit signal, override stop_signal
5920 with it. Don't pass the last stop signal to the thread we're
5922 (init_wait_for_inferior): Adjust clear_proceed_status call.
5923 (switch_back_to_stepped_thread): Clear the signal if it should not
5925 * infrun.h (clear_proceed_status): New 'step' parameter.
5926 (user_visible_resume_ptid): Add comment.
5927 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5928 signal is in pass state.
5929 * remote.c (append_pending_thread_resumptions): Likewise.
5930 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5932 2014-07-25 Tom Tromey <tromey@redhat.com>
5934 * target.h (target_stopped_data_address)
5935 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5938 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5940 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5942 (avr_pointer_to_address): Likewise.
5944 2014-07-24 Tom Tromey <tromey@redhat.com>
5946 * monitor.c (compile_pattern): Update.
5947 * target.h (struct target_ops) <to_shortname, to_longname,
5950 2014-07-24 Tom Tromey <tromey@redhat.com>
5952 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5953 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5954 (add_info_alias, add_com): Make "doc" const.
5955 (print_doc_line): Make "str" const.
5956 (delete_cmd): Update.
5957 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5958 (print_doc_line): Update.
5959 * cli/cli-script.c (document_command): Update.
5960 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5961 (add_com, add_info, add_info_alias): Update.
5962 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5963 * python/py-cmd.c (cmdpy_destroyer): Update.
5965 2014-07-24 Tom Tromey <tromey@redhat.com>
5967 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5968 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5969 (help_cmd_list): Constify.
5970 (lookup_cmd): Update.
5971 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5973 (help_cmd_list, apropos_cmd): Update.
5974 * cli/cli-script.c (show_user): Update.
5975 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5976 * cli/cli-setshow.h (cmd_show_list): Update.
5977 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5978 (cmd_show_list): Update.
5979 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5980 * python/py-cmd.c (cmdpy_destroyer): Update.
5982 2014-07-24 Tom Tromey <tromey@redhat.com>
5984 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5985 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5987 * command.h (deprecate_cmd): Update.
5988 * maint.c (maintenance_do_deprecate): Add casts.
5990 2014-07-24 Tom Tromey <tromey@redhat.com>
5992 * cli/cli-decode.c (help_cmd): Make parameter "const".
5993 * cli/cli-decode.h (help_cmd): Update.
5995 2014-07-24 Tom Tromey <tromey@redhat.com>
5997 * stack.c (up_silently_base, down_silently_base): Make argument
6000 2014-07-24 Tom Tromey <tromey@redhat.com>
6002 * solib.c (solib_add): Make "pattern" const.
6003 * solib.h (solib_add): Update.
6005 2014-07-24 Tom Tromey <tromey@redhat.com>
6007 * remote.c (remote_serial_open, print_packet, putpkt)
6008 (putpkt_binary): Constify.
6009 * remote.h (putpkt): Update.
6011 2014-07-24 Tom Tromey <tromey@redhat.com>
6013 * monitor.c (monitor_open): Make "args" const.
6014 * monitor.h (monitor_open): Update.
6016 2014-07-24 Tom Tromey <tromey@redhat.com>
6018 * maint.c (match_bfd_flags): Make "string" const.
6019 (print_bfd_section_info): Remove casts.
6020 (print_objfile_section_info): Make "string" const.
6022 2014-07-24 Tom Tromey <tromey@redhat.com>
6024 * inf-child.c (inf_child_open_target): Make "arg" const.
6025 * inf-child.h (inf_child_open_target): Update.
6027 2014-07-24 Tom Tromey <tromey@redhat.com>
6029 * environ.c (unset_in_environ): Make "var" const.
6030 * environ.h (unset_in_environ): Update.
6032 2014-07-24 Tom Tromey <tromey@redhat.com>
6034 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
6036 (scan_filename_with_cleanup): Likewise.
6037 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
6038 Make arguments const.
6039 (restore_command): Update.
6041 2014-07-24 Pedro Alves <palves@redhat.com>
6043 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
6045 2014-07-24 Tom Tromey <tromey@redhat.com>
6046 Gary Benson <gbenson@redhat.com>
6048 * nat/linux-ptrace.c (additional_flags): New global.
6049 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
6050 additional_flags; don't check GDBSERVER.
6051 (linux_ptrace_set_additional_flags): New function.
6052 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6054 * linux-nat.c (_initialize_linux_nat): Call
6055 linux_ptrace_set_additional_flags.
6057 2014-07-24 Tom Tromey <tromey@redhat.com>
6059 * make-target-delegates (munge_type, write_debugmethod): New
6061 (debug_names): New global.
6062 ($TARGET_DEBUG_PRINTER): New global.
6063 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
6065 Write debug methods. Generate init_debug_target.
6066 * target-debug.h: New file.
6067 * target-delegates.c: Rebuild.
6068 * target.c: Include target-debug.h.
6069 (debug_target): Hoist definition.
6070 (target_kill, target_get_section_table, target_memory_map)
6071 (target_flash_erase, target_flash_done, target_detach)
6072 (target_disconnect, target_wait, target_resume)
6073 (target_pass_signals, target_program_signals, target_follow_fork)
6074 (target_mourn_inferior, target_search_memory)
6075 (target_thread_address_space, target_close)
6076 (target_find_new_threads, target_core_of_thread)
6077 (target_verify_memory, target_insert_mask_watchpoint)
6078 (target_remove_mask_watchpoint): Remove targetdebug code.
6079 (debug_to_post_attach, debug_to_prepare_to_store)
6080 (debug_to_files_info, debug_to_insert_breakpoint)
6081 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
6082 (debug_to_region_ok_for_hw_watchpoint)
6083 (debug_to_can_accel_watchpoint_condition)
6084 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
6085 (debug_to_watchpoint_addr_within_range)
6086 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
6087 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
6088 (debug_to_terminal_init, debug_to_terminal_inferior)
6089 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
6090 (debug_to_terminal_save_ours, debug_to_terminal_info)
6091 (debug_to_load, debug_to_post_startup_inferior)
6092 (debug_to_insert_fork_catchpoint)
6093 (debug_to_remove_fork_catchpoint)
6094 (debug_to_insert_vfork_catchpoint)
6095 (debug_to_remove_vfork_catchpoint)
6096 (debug_to_insert_exec_catchpoint)
6097 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
6098 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
6099 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
6100 (setup_target_debug): Call init_debug_target.
6101 * target.h (TARGET_DEBUG_PRINTER): New macro.
6102 (struct target_ops) <to_resume, to_wait, to_pass_signals,
6103 to_program_signals>: Use TARGET_DEBUG_PRINTER.
6105 2014-07-24 Gary Benson <gbenson@redhat.com>
6107 * exceptions.h (throw_vfatal): Renamed to...
6108 (throw_vquit): New declaration.
6109 (throw_quit): Likewise.
6110 * exceptions.c (throw_vfatal): Renamed to...
6111 (throw_vquit): New function.
6112 (throw_quit): Likewise.
6113 (throw_error): Call throw_verror rather than throw_it.
6114 * utils.h (vfatal): Removed.
6116 * utils.c (vfatal): Removed.
6118 (internal_verror): Replaced call to fatal with call to throw_quit.
6119 (quit): Replaced calls to fatal with calls to throw_quit.
6121 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
6123 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6126 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
6128 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6129 less than zero in conditional expression.
6131 2014-07-23 Tom Tromey <tromey@redhat.com>
6133 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6134 ($INTRO_PART): Don't match whitespace.
6135 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6137 ($METHOD): Add $METHOD_TRAILER.
6139 (scan_target_h): New sub.
6140 Change main loop not to collect state.
6141 * target-delegates.c: Rebuild.
6143 2014-07-23 Gary Benson <gbenson@redhat.com>
6145 * cp-support.c (gdb_demangle): Fix build on systems without
6148 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6150 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6151 for reference entry value target data value.
6153 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6155 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6156 value_available_contents_eq.
6158 2014-07-22 Pedro Alves <palves@redhat.com>
6160 * value.c (allocate_optimized_out_value): Don't mark value as
6163 2014-07-22 Jiong Wang <jiong.wang@arm.com>
6165 * MAINTAINERS (Write After Approval): Update my email address.
6167 2014-07-20 Doug Evans <dje@google.com>
6170 * remote.c (putpkt_binary): Add text to error message.
6172 2014-07-20 Yao Qi <yao@codesourcery.com>
6174 * eval.c: Remove "Chill" from comments.
6175 * gdbtypes.h: Likewise.
6176 * symtab.h: Likewise.
6178 2014-07-20 Yao Qi <yao@codesourcery.com>
6180 * std-operator.def: Update comments to TERNOP_SLICE.
6182 2014-07-20 Yao Qi <yao@codesourcery.com>
6184 * std-operator.def: Remove BINOP_RANGE.
6185 * breakpoint.c (watchpoint_exp_is_const): Update.
6186 * expprint.c (dump_subexp_body_standard): Likewise.
6187 * eval.c (init_array_element): Remove dead code.
6188 (evaluate_subexp_standard): Likewise.
6190 2014-07-20 Yao Qi <yao@codesourcery.com>
6192 * std-operator.def: Remove BINOP_IN.
6193 * breakpoint.c (watchpoint_exp_is_const): Update.
6194 * eval.c (evaluate_subexp_standard): Likewise.
6195 * expprint.c (dump_subexp_body_standard): Likewise.
6197 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6199 * microblaze-tdep.c (microblaze_register_names): Add
6200 the rshr and rslr register names.
6201 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6202 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6203 Use of tdesc_numbered_register. Use of
6204 microblaze_register_g_packet_guesses. Use of
6205 tdesc_use_registers. Use of set_gdbarch_register_type.
6206 (microblaze_register_g_packet_guesses): New.
6207 * microblaze-tdep.h (microblaze_reg_num): Add
6208 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6209 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6210 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6211 * features/microblaze-core.xml: New file.
6212 * features/microblaze-stack-protect.xml: New file.
6213 * features/microblaze-with-stack-protect.c: New file.
6214 * features/microblaze-with-stack-protect.xml: New file.
6215 * features/microblaze.xml: New file.
6216 * features/microblaze.c: New file.
6217 * features/Makefile (microblaze-with-stack-protect): Add
6218 microblaze-with-stack-protect microblaze and microblaze-expedite.
6219 * regformats/microblaze-with-stack-protect.dat: New file.
6220 * regformats/microblaze.dat: New file.
6221 * doc/gdb.texinfo (MicroBlaze Features): Added.
6223 2014-07-18 Tom Tromey <tromey@redhat.com>
6225 * exec.c (exec_ops): Now static.
6226 * exec.h (exec_ops): Don't declare.
6228 2014-07-18 Tom Tromey <tromey@redhat.com>
6230 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6231 to find_target_beneath.
6232 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6233 find_target_beneath.
6234 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6236 2014-07-18 Tom Tromey <tromey@redhat.com>
6239 * utils.c (quit): Use target_supports_terminal_ours.
6240 * target.h (target_supports_terminal_ours): Declare.
6241 * target.c (target_supports_delete_record): Don't check
6242 to_delete_record against NULL.
6243 (target_supports_terminal_ours): New function.
6245 2014-07-18 Tom Tromey <tromey@redhat.com>
6248 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6249 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6250 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6251 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6252 * windows-nat.c (windows_xfer_partial): Always delegate.
6253 * record-btrace.c (record_btrace_xfer_partial): Simplify
6255 (record_btrace_fetch_registers, record_btrace_store_registers)
6256 (record_btrace_prepare_to_store, record_btrace_resume)
6257 (record_btrace_wait, record_btrace_find_new_threads)
6258 (record_btrace_thread_alive): Likewise.
6259 * procfs.c (procfs_xfer_partial): Always delegate.
6260 * corelow.c (core_xfer_partial): Always delegate.
6261 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6263 2014-07-18 Tom Tromey <tromey@redhat.com>
6265 * exec.c (exec_make_note_section): Move earlier.
6267 2014-07-17 Doug Evans <dje@google.com>
6270 * maint.c (count_symtabs_and_blocks): Handle NULL
6271 current_program_space.
6272 (report_command_stats): Check global enabled flag in addition to
6273 recorded enabled flag.
6274 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6276 2014-07-16 Pedro Alves <palves@redhat.com>
6278 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6280 2014-07-16 Tom Tromey <tromey@redhat.com>
6282 * target.h (struct target_ops) <to_delete_record>: Reformat
6285 2014-07-16 Tom Tromey <tromey@redhat.com>
6287 * target-delegates.c: Rebuild.
6289 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6291 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6292 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6293 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6294 (avr_pointer_to_address): Likewise.
6295 (avr_address_class_type_flags): New function.
6296 (avr_address_class_type_flags_to_name): Likewise.
6297 (avr_address_class_name_to_type_flags): Likewise.
6298 (avr_gdbarch_init): Set address_class_type_flags,
6299 address_class_type_flags_to_name and
6300 address_class_name_to_type_flags.
6302 2014-07-15 Pedro Alves <palves@redhat.com>
6304 * linux-nat.c (kill_callback): Save errno and work with saved
6307 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6309 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6311 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6313 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6314 breakpoint support correctly.
6316 2014-07-14 Pedro Alves <palves@redhat.com>
6318 * utils.c (prompt_for_continue): Call target_terminal_ours.
6320 2014-07-14 Pedro Alves <palves@redhat.com>
6322 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6323 catch_errors. Don't re-enable stdin or notify observers where,
6325 (fetch_inferior_event_wrapper): Delete.
6327 2014-07-14 Pedro Alves <palves@redhat.com>
6330 * top.c: Include "inf-loop.h".
6331 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6333 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6335 (gdb_readline_wrapper): Store whether the target is async, and
6338 2014-07-14 Pedro Alves <palves@redhat.com>
6341 * top.c (gdb_readline_wrapper_line): Tweak comment.
6342 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6343 the input handler callback.
6345 2014-07-14 Pedro Alves <palves@redhat.com>
6348 * main.c: Include event-top.h.
6349 (handle_command_errors): New function.
6350 (catch_command_errors, catch_command_errors_const): Use it.
6352 2014-07-14 Pedro Alves <palves@redhat.com>
6354 * exceptions.c (catch_command_errors, catch_command_errors_const):
6356 * exceptions.h (catch_command_errors_ftype)
6357 (catch_command_errors_const_ftype): Moved to main.c.
6358 (catch_command_errors, catch_command_errors_const): Delete
6360 * main.c (catch_command_errors_ftype)
6361 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6362 (catch_command_errors, catch_command_errors_const)): Moved here
6363 from exceptions.c and make static.
6365 2014-07-14 Pedro Alves <palves@redhat.com>
6367 * exceptions.c (print_any_exception): Delete.
6368 (catch_exceptions_with_msg): Use exception_print instead of
6369 print_any_exception.
6370 (catch_errors): Use exception_fprintf instead of
6371 print_any_exception.
6372 (catch_command_errors, catch_command_errors_const): Use
6373 exception_print instead of print_any_exception.
6375 2014-07-14 Pedro Alves <palves@redhat.com>
6377 * infcall.c (run_inferior_call): Set 'sync_execution' while
6378 running the inferior call.
6380 2014-07-14 Pedro Alves <palves@redhat.com>
6382 * value.c (value_contents_equal): Delete function.
6383 * value.h (value_contents_equal): Delete declaration.
6385 2014-07-14 Tom Tromey <tromey@redhat.com>
6388 * gdbtypes.c (is_dynamic_type_internal): New function, from
6390 (is_dynamic_type): Rewrite.
6391 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6392 (resolve_dynamic_struct): Likewise.
6393 (resolve_dynamic_type_internal): New function, from
6394 resolve_dynamic_type.
6395 (resolve_dynamic_type): Rewrite.
6397 2014-07-14 Tom Tromey <tromey@redhat.com>
6399 * target.c (target_require_runnable): Also check record_stratum.
6402 2014-07-11 Yao Qi <yao@codesourcery.com>
6404 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6405 thumb_instruction_restores_sp return true.
6407 2014-07-11 Yao Qi <yao@codesourcery.com>
6409 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6410 (thumb_in_function_epilogue_p): Call
6411 thumb_instruction_restores_sp.
6413 2014-07-11 Yao Qi <yao@codesourcery.com>
6415 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6417 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6419 2014-07-11 Gary Benson <gbenson@redhat.com>
6421 * amd64-linux-nat.c (gdbcore.h): Remove include.
6422 (regset.h): Likewise.
6423 (nat/linux-btrace.h): Likewise.
6424 (btrace.h): Likewise.
6425 (gdb_assert.h): Likewise.
6426 (string.h): Likewise.
6427 (sys/uio.h): Likewise.
6428 (sys/debugreg.h): Likewise.
6429 (sys/syscall.h): Likewise.
6430 (sys/procfs.h): Likewise.
6431 (sys/user.h): Likewise.
6432 (asm/ptrace.h): Likewise.
6433 (i386-nat.h): Likewise.
6434 * i386-linux-nat.c (i386-nat.h): Likewise.
6435 (regset.h): Likewise.
6436 (target.h): Likewise.
6437 (linux-nat.h): Likewise.
6438 (nat/linux-btrace.h): Likewise.
6439 (btrace.h): Likewise.
6440 (gdb_assert.h): Likewise.
6441 (string.h): Likewise.
6442 (sys/uio.h): Likewise.
6443 (sys/user.h): Likewise.
6444 (sys/procfs.h): Likewise.
6445 (sys/reg.h): Likewise.
6446 (sys/debugreg.h): Likewise.
6447 (ORIG_EAX): Remove definition.
6449 2014-07-11 Gary Benson <gbenson@redhat.com>
6451 * i386-linux-nat.h: New file.
6452 * x86-linux-nat.h: Likewise.
6453 * x86-linux-nat.c: Likewise.
6454 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6455 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6456 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6457 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6458 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6459 (PTRACE_SETREGSET): Likewise.
6460 (arch_lwp_info): Now in x86-linux-nat.c.
6461 (have_ptrace_getregset): Now in x86-linux-nat.h.
6462 (x86_linux_dr_get): Now in x86-linux-nat.c.
6463 (x86_linux_dr_set): Likewise.
6464 (x86_linux_dr_get_addr): Likewise.
6465 (x86_linux_dr_get_control): Likewise.
6466 (x86_linux_dr_get_status): Likewise.
6467 (update_debug_registers_callback): Likewise.
6468 (x86_linux_dr_set_control): Likewise.
6469 (x86_linux_dr_set_addr): Likewise.
6470 (x86_linux_prepare_to_resume): Likewise.
6471 (x86_linux_new_thread): Likewise.
6472 (x86_linux_new_fork): Likewise.
6473 (x86_linux_get_thread_area): Likewise.
6474 (super_post_startup_inferior): Likewise.
6475 (x86_linux_child_post_startup_inferior): Likewise.
6476 (AMD64_LINUX_USER64_CS): Likewise.
6477 (AMD64_LINUX_X32_DS): Likewise.
6478 (x86_linux_read_description): Likewise.
6479 (x86_linux_enable_btrace): Likewise.
6480 (x86_linux_disable_btrace): Likewise.
6481 (x86_linux_teardown_btrace): Likewise.
6482 (x86_linux_read_btrace): Likewise.
6483 (x86_linux_create_target): Likewise.
6484 (x86_linux_add_target): Likewise.
6485 * i386-linux-nat.c (x86-linux-nat.h): New include.
6486 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6487 (PTRACE_SETREGSET): Likewise.
6488 (arch_lwp_info): Now in x86-linux-nat.c.
6489 (have_ptrace_getregset): Now in x86-linux-nat.h.
6490 (x86_linux_dr_get): Now in x86-linux-nat.c.
6491 (x86_linux_dr_set): Likewise.
6492 (x86_linux_dr_get_addr): Likewise.
6493 (x86_linux_dr_get_control): Likewise.
6494 (x86_linux_dr_get_status): Likewise.
6495 (update_debug_registers_callback): Likewise.
6496 (x86_linux_dr_set_control): Likewise.
6497 (x86_linux_dr_set_addr): Likewise.
6498 (x86_linux_prepare_to_resume): Likewise.
6499 (x86_linux_new_thread): Likewise.
6500 (x86_linux_new_fork): Likewise.
6501 (x86_linux_get_thread_area): Likewise.
6502 (super_post_startup_inferior): Likewise.
6503 (x86_linux_child_post_startup_inferior): Likewise.
6504 (AMD64_LINUX_USER64_CS): Likewise.
6505 (AMD64_LINUX_X32_DS): Likewise.
6506 (x86_linux_read_description): Likewise.
6507 (x86_linux_enable_btrace): Likewise.
6508 (x86_linux_disable_btrace): Likewise.
6509 (x86_linux_teardown_btrace): Likewise.
6510 (x86_linux_read_btrace): Likewise.
6511 (x86_linux_create_target): Likewise.
6512 (x86_linux_add_target): Likewise.
6514 2014-07-11 Gary Benson <gbenson@redhat.com>
6516 * amd64-linux-nat.c: Comment and whitespace changes.
6517 * i386-linux-nat.c: Comment and whitespace changes.
6519 2014-07-11 Gary Benson <gbenson@redhat.com>
6521 * amd64-linux-nat.c (x86_linux_create_target): New function.
6522 (x86_linux_add_target): Likewise.
6523 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6524 * i386-linux-nat.c (x86_linux_create_target): New function.
6525 (x86_linux_add_target): Likewise.
6526 (_initialize_i386_linux_nat): Delegate to the above new functions.
6528 2014-07-11 Gary Benson <gbenson@redhat.com>
6530 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6531 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6532 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6533 (ps_get_thread_area): Delegate to the above.
6535 2014-07-11 Gary Benson <gbenson@redhat.com>
6537 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6538 x86_linux_read_description. All uses updated. amd64-specific
6539 code conditionalized. Conditionalized i386-specific code added.
6540 Redundant cast removed.
6541 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6542 x86_linux_read_description. All uses updated. i386-specific
6543 code conditionalized. Conditionalized amd64-specific code added.
6544 One sizeof replaced with the actual type it is describing.
6546 2014-07-11 Gary Benson <gbenson@redhat.com>
6548 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6549 x86_linux_dr_get. All uses updated.
6550 (amd64_linux_dr_set): Renamed to
6551 x86_linux_dr_set. All uses updated.
6552 (amd64_linux_dr_get_addr): Renamed to
6553 x86_linux_dr_get_addr. All uses updated.
6554 (amd64_linux_dr_get_control): Renamed to
6555 x86_linux_dr_get_control. All uses updated.
6556 (amd64_linux_dr_get_status): Renamed to
6557 x86_linux_dr_get_status. All uses updated.
6558 (amd64_linux_dr_set_control): Renamed to
6559 x86_linux_dr_set_control. All uses updated.
6560 (amd64_linux_dr_set_addr): Renamed to
6561 x86_linux_dr_set_addr. All uses updated.
6562 (amd64_linux_prepare_to_resume): Renamed to
6563 x86_linux_prepare_to_resume. All uses updated.
6564 (amd64_linux_new_thread): Renamed to
6565 x86_linux_new_thread. All uses updated.
6566 (amd64_linux_new_fork): Renamed to
6567 x86_linux_new_fork. All uses updated.
6568 (amd64_linux_child_post_startup_inferior): Renamed to
6569 x86_linux_child_post_startup_inferior. All uses updated.
6570 (amd64_linux_enable_btrace): Renamed to
6571 x86_linux_enable_btrace. All uses updated.
6572 (amd64_linux_disable_btrace): Renamed to
6573 x86_linux_disable_btrace. All uses updated.
6574 (amd64_linux_teardown_btrace): Renamed to
6575 x86_linux_teardown_btrace. All uses updated.
6576 (amd64_linux_read_btrace): Renamed to
6577 x86_linux_read_btrace. All uses updated.
6578 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6579 x86_linux_dr_get. All uses updated.
6580 (i386_linux_dr_set): Renamed to
6581 x86_linux_dr_set. All uses updated.
6582 (i386_linux_dr_get_addr): Renamed to
6583 x86_linux_dr_get_addr. All uses updated.
6584 (i386_linux_dr_get_control): Renamed to
6585 x86_linux_dr_get_control. All uses updated.
6586 (i386_linux_dr_get_status): Renamed to
6587 x86_linux_dr_get_status. All uses updated.
6588 (i386_linux_dr_set_control): Renamed to
6589 x86_linux_dr_set_control. All uses updated.
6590 (i386_linux_dr_set_addr): Renamed to
6591 x86_linux_dr_set_addr. All uses updated.
6592 (i386_linux_prepare_to_resume): Renamed to
6593 x86_linux_prepare_to_resume. All uses updated.
6594 (i386_linux_new_thread): Renamed to
6595 x86_linux_new_thread. All uses updated.
6596 (i386_linux_new_fork): Renamed to
6597 x86_linux_new_fork. All uses updated.
6598 (i386_linux_child_post_startup_inferior): Renamed to
6599 x86_linux_child_post_startup_inferior. All uses updated.
6600 (i386_linux_enable_btrace): Renamed to
6601 x86_linux_enable_btrace. All uses updated.
6602 (i386_linux_disable_btrace): Renamed to
6603 x86_linux_disable_btrace. All uses updated.
6604 (i386_linux_teardown_btrace): Renamed to
6605 x86_linux_teardown_btrace. All uses updated.
6606 (i386_linux_read_btrace): Renamed to
6607 x86_linux_read_btrace. All uses updated.
6609 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6611 * remote.c (extended_remote_post_attach): New function.
6612 (init_extended_remote_ops): Install it as to_post_attach method.
6614 2014-07-09 Pedro Alves <palves@redhat.com>
6616 * infcmd.c (attach_command_post_wait): Don't call
6617 target_terminal_inferior here.
6618 (attach_command): Call it here instead.
6620 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6622 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6624 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6625 from varobj.c, with additional checks.
6626 (c_varobj_ops): Fill in is_path_expr_parent field.
6627 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6628 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6630 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6632 (varobj_default_is_path_expr_parent): New function.
6633 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6634 (varobj_default_is_path_expr_parent): Declare new function.
6636 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6638 * infcmd.c (finish_backward): Turn internal error into normal error.
6640 2014-07-07 Pedro Alves <palves@redhat.com>
6643 * remote.c (async_handle_remote_sigint)
6644 (async_handle_remote_sigint_twice): Call
6645 gdb_call_async_signal_handler instead of
6646 mark_async_signal_handler.
6648 2014-07-07 Tom Tromey <tromey@redhat.com>
6650 * target-delegates.c: Rebuild.
6651 * target.c (target_info_record): Remove.
6652 * record.c (info_record_command): Unconditionally call
6654 * target.h (struct target_ops) <to_info_record>: Use
6655 TARGET_DEFAULT_IGNORE.
6656 (target_info_record): Remove.
6658 2014-07-07 Tom Tromey <tromey@redhat.com>
6660 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6661 TARGET_DEFAULT_NORETURN.
6662 * target.c (generic_tls_error): New function.
6663 (target_translate_tls_address): Don't search target stack.
6664 * target-delegates.c: Rebuild.
6665 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6667 * linux-thread-db.c (thread_db_get_thread_local_address):
6668 Unconditionally call beneath target.
6670 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6672 * cli/cli-logging.c (pop_output_files): Assign targerr to
6675 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6677 * MAINTAINERS (Write After Approval): Update my email address.
6679 2014-07-02 Gary Benson <gbenson@redhat.com>
6681 * proc-service.c (ps_xfer_memory): Update comment.
6682 (ps_pstop): Remove unused function.
6683 (ps_pcontinue): Likewise.
6684 (ps_lstop): Likewise.
6685 (ps_lcontinue): Likewise.
6686 (ps_lgetxregsize): Likewise.
6687 (ps_lgetxregs): Likewise.
6688 (ps_lsetxregs): Likewise.
6689 (ps_plog): Likewise.
6690 (ps_ptread): Likewise.
6691 (ps_ptwrite): Likewise.
6693 2014-07-01 Mark Wielaard <mjw@redhat.com>
6695 * dwarf2read.c (add_array_cv_type): New function.
6696 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6697 (read_tag_volatile_type): Likewise.
6699 2014-07-01 Tom Tromey <tromey@redhat.com>
6701 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6702 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6703 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6704 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6705 * command.h (cmd_cfunc_ftype): Move earlier.
6706 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6707 (add_com, add_info): Use cmd_cfunc_ftype.
6709 2014-06-30 Tom Tromey <tromey@redhat.com>
6711 * symtab.c (operator_chars): Make parameters and return type
6713 (file_matches): Make "files" const.
6714 (struct search_symbols_data) <files>: Now const.
6715 (search_symbols): Make "regexp" and "files" parameters const.
6717 (symtab_symbol_info): Remove cast.
6718 (rbreak_command): Update.
6719 * symtab.h (search_symbols): Update.
6721 2014-06-27 Yao Qi <yao@codesourcery.com>
6723 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6724 Change parameter type to 'struct thread_info *'. Caller
6726 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6728 * dummy-frame.c (struct dummy_frame_id): New.
6729 (dummy_frame_id_eq): New function.
6730 (struct dummy_frame) <id>: Change its type to 'struct
6732 (dummy_frame_push): Add parameter ptid and save it in
6734 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6736 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6738 (lookup_dummy_frame): Change parameter type to 'struct
6739 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6740 instead of frame_id_eq.
6741 (dummy_frame_pop): Add parameter ptid. Callers updated.
6742 Update comments. Compose dummy_frame_id and pass it to
6744 (dummy_frame_discard): Add parameter ptid.
6745 (dummy_frame_sniffer): Compose dummy_frame_id and call
6746 dummy_frame_id_eq instead of frame_id_eq.
6747 (fprint_dummy_frames): Print ptid.
6748 * dummy-frame.h: Remove comments.
6749 (dummy_frame_push): Add ptid in declaration.
6750 (dummy_frame_pop, dummy_frame_discard): Likewise.
6752 2014-06-26 Tom Tromey <tromey@redhat.com>
6754 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6755 * command.h (error_no_arg): Update.
6757 2014-06-26 Tom Tromey <tromey@redhat.com>
6759 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6760 (do_show_command): Make "arg" const.
6761 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6763 2014-06-26 Tom Tromey <tromey@redhat.com>
6765 * record-full.c (record_full_get_bookmark): Make "args" const.
6766 (record_full_goto_bookmark): Make "raw_bookmark" const.
6767 * record.c (record_goto): New function.
6768 (cmd_record_goto): Use it. Now static.
6769 * record.h (record_goto): Declare.
6770 (cmd_record_goto): Remove declaration.
6771 * target-delegates.c: Rebuild.
6772 * target.h (struct target_ops) <to_get_bookmark,
6773 to_goto_bookmark>: Make parameter const.
6775 2014-06-26 Tom Tromey <tromey@redhat.com>
6777 * defs.h (generic_load): Update.
6778 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6779 * monitor.c (monitor_load): Make "args" const.
6780 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6781 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6783 (mips_load): Make "file" const.
6784 * remote-sim.c (gdbsim_load): Make "args" const.
6785 * remote.c (remote_load): Make "name" const.
6786 * symfile.c (generic_load): Make "args" const.
6787 * target-delegates.c: Rebuild.
6788 * target.c (target_load): Make "arg" const.
6789 (debug_to_load): Make "args" const.
6790 * target.h (struct target_ops) <to_load>: Make parameter const.
6791 (target_load): Update.
6793 2014-06-26 Tom Tromey <tromey@redhat.com>
6796 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6797 (dwarf2_physname, read_partial_die)
6798 (guess_partial_die_structure_name, fixup_partial_die)
6799 (guess_full_die_structure_name, anonymous_struct_prefix)
6800 (dwarf2_name): Use per-BFD obstack.
6802 2014-06-26 Yao Qi <yao@codesourcery.com>
6804 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6805 dummyframe and this_id into inner block below.
6807 2014-06-26 Yao Qi <yao@codesourcery.com>
6809 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6810 with "signal_pass[0]" in the initialization of signal_pass.
6812 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6814 * record-btrace.c (record_btrace_generating_corefile)
6815 (record_btrace_prepare_to_generate_core)
6816 (record_btrace_done_generating_core): New.
6817 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6818 (record_btrace_store_registers, record_btrace_prepare_to_store):
6819 Forward request when generating a core file.
6820 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6821 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6822 to_done_generating_core.
6824 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6826 * target.h (target_ops) <to_prepare_to_generate_core>
6827 <to_done_generating_core>: New.
6828 (target_prepare_to_generate_core, target_done_generating_core): New.
6829 * target.c (target_prepare_to_generate_core)
6830 (target_done_generating_core): New.
6831 * target-delegates.c: Regenerate.
6832 * gcore.c: (write_gcore_file): Rename to ...
6833 (write_gcore_file_1): ...this.
6834 (write_gcore_file): Call target_prepare_to_generate_core
6835 and target_done_generating_core.
6837 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6839 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6840 * gcore.c (write_gcore_file): Free memory returned from
6841 make_corefile_notes.
6842 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6843 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6845 2014-06-24 Yao Qi <yao@codesourcery.com>
6847 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6848 (arm_linux_init_abi): Set skip_trampoline_code with
6849 gdbarch_skip_trampoline_code instead of
6850 find_solib_trampoline_target.
6852 2014-06-24 Yao Qi <yao@codesourcery.com>
6854 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6855 arm_skip_bx_reg returns non-zero.
6857 2014-06-24 Yao Qi <yao@codesourcery.com>
6859 * arm-tdep.c (arm_skip_bx_reg): New function.
6860 (arm_skip_stub): Call arm_skip_bx_reg.
6862 2014-06-23 Don Breazeal <donb@codesourcery.com>
6864 * MAINTAINERS: Add myself as write-after-approval maintainer.
6866 2014-06-23 Pedro Alves <palves@redhat.com>
6868 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6869 DR_CONTROL before setting DR0..DR3.
6870 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6871 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6872 bits of DR_CONTROL related to the debug register slot being
6873 disabled. If all slots are vacant, clear local slowdown as well,
6874 and assert DR_CONTROL is 0.
6876 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6878 * python/lib/gdb/command/xmethods.py
6879 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6880 current progspace only if the string "progspace" matches LOCUS_RE.
6882 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6884 Fix --with-system-readline with readline-6.3 patch 5.
6885 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6886 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6889 2014-06-20 Tom Tromey <tromey@redhat.com>
6891 * dwarf2read.c (dw2_get_real_path): Use correct type in
6893 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6895 2014-06-20 Gary Benson <gbenson@redhat.com>
6897 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6898 * common/glibc_thread_db.h: Likewise.
6899 * common/i386-cpuid.h: Likewise.
6900 * common/i386-gcc-cpuid.h: Likewise.
6901 * common/linux-btrace.h: Likewise.
6902 * common/linux-osdata.h: Likewise.
6903 * common/linux-procfs.h: Likewise.
6904 * common/linux-ptrace.h: Likewise.
6905 * common/mips-linux-watch.h: Likewise.
6906 * common/linux-btrace.c: Moved to nat.
6907 * common/linux-osdata.c: Likewise.
6908 * common/linux-procfs.c: Likewise.
6909 * common/linux-ptrace.c: Likewise.
6910 * common/mips-linux-watch.c: Likewise.
6911 * nat/gdb_thread_db.h: Moved from common.
6912 * nat/glibc_thread_db.h: Likewise.
6913 * nat/i386-cpuid.h: Likewise.
6914 * nat/i386-gcc-cpuid.h: Likewise.
6915 * nat/linux-btrace.c: Likewise.
6916 * nat/linux-btrace.h: Likewise.
6917 * nat/linux-osdata.c: Likewise.
6918 * nat/linux-osdata.h: Likewise.
6919 * nat/linux-procfs.c: Likewise.
6920 * nat/linux-procfs.h: Likewise.
6921 * nat/linux-ptrace.c: Likewise.
6922 * nat/linux-ptrace.h: Likewise.
6923 * nat/mips-linux-watch.c: Likewise.
6924 * nat/mips-linux-watch.h: Likewise.
6925 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6926 (object file files): Reordered.
6927 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6928 of glibc_thread_db.h.
6930 2014-06-20 Gary Benson <gbenson@redhat.com>
6932 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6933 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6934 (i386_dr_low): Likewise.
6935 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6936 (i386_dr_low_set_addr): Likewise.
6937 (i386_dr_low_get_addr): Likewise.
6938 (i386_dr_low_can_set_control): Likewise.
6939 (i386_dr_low_set_control): Likewise.
6940 (i386_dr_low_get_control): Likewise.
6941 (i386_dr_low_get_status): Likewise.
6942 (i386_get_debug_register_length): Likewise.
6943 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6944 (i386_dr_low): Likewise.
6945 * nat/i386-dregs.c (i386-low.h): Remove include.
6946 (i386-nat.h): Likewise.
6947 (nat/i386-dregs.h): New include.
6948 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6949 (i386_dr_low_set_addr): Likewise.
6950 (i386_dr_low_get_addr): Likewise.
6951 (i386_dr_low_can_set_control): Likewise.
6952 (i386_dr_low_set_control): Likewise.
6953 (i386_dr_low_get_control): Likewise.
6954 (i386_dr_low_get_status): Likewise.
6955 (i386_get_debug_register_length): Likewise.
6956 (debug_hw_points): Likewise.
6958 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6960 * Makefile.in (SFILES): Add d-exp.y.
6961 (YYFILES): Add d-exp.c.
6962 (YYOBJ): Add d-exp.o.
6963 (local-maintainer-clean): Delete d-exp.c.
6964 * d-exp.y: New file.
6965 * d-lang.h (d_parse): New declaration.
6966 (d_error): New declaration.
6967 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6968 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6969 PREC_ORDER operators.
6970 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6972 2014-06-19 Yao Qi <yao@codesourcery.com>
6974 * gdbthread.h (any_running): Remove the declaration.
6975 * thread.c (any_running): Remove.
6977 2014-06-19 Yao Qi <yao@codesourcery.com>
6979 * gdbthread.h (struct thread_info) <state>: Change its type to
6980 'enum thread_state'. Update comments.
6982 2014-06-19 Pedro Alves <palves@redhat.com>
6984 * gdbthread.h (ALL_THREADS): Delete.
6985 (ALL_NON_EXITED_THREADS): New macro.
6986 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6987 instead of ALL_THREADS.
6988 * infrun.c (find_thread_needs_step_over)
6989 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6990 instead of ALL_THREADS.
6991 * record-btrace.c (record_btrace_open)
6992 (record_btrace_stop_recording, record_btrace_close)
6993 (record_btrace_is_replaying, record_btrace_resume)
6994 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6995 * remote.c (append_pending_thread_resumptions): Likewise.
6996 * thread.c (thread_apply_all_command): Likewise.
6998 2014-06-19 Gary Benson <gbenson@redhat.com>
7000 * i386-nat.c (i386_stopped_by_watchpoint):
7001 Use i386_dr_stopped_by_watchpoint.
7002 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
7003 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
7005 2014-06-19 Gary Benson <gbenson@redhat.com>
7007 * nat/i386-dregs.c: New file.
7008 * Makefile.in (i386-dregs.o): New rule.
7009 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
7010 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
7011 * config/i386/darwin.mh (NATDEPFILES): Likewise.
7012 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7013 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
7014 * config/i386/go32.mh (NATDEPFILES): Likewise.
7015 * config/i386/linux.mh (NATDEPFILES): Likewise.
7016 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7017 * config/i386/mingw.mh (NATDEPFILES): Likewise.
7018 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
7019 * i386-nat.h (debug_hw_points): New declaration.
7020 * i386-nat.c (breakpoint.h): Remove include.
7021 (command.h): Likewise.
7022 (target.h): Likewise.
7023 (gdb_assert.h): Likewise.
7024 (debug_hw_points): Made nonstatic.
7025 (debug_printf): Now in i386-dregs.c.
7026 (TARGET_HAS_DR_LEN_8): Likewise.
7027 (DR_CONTROL_SHIFT): Likewise.
7028 (DR_CONTROL_SIZE): Likewise.
7029 (DR_RW_EXECUTE): Likewise.
7030 (DR_RW_WRITE): Likewise.
7031 (DR_RW_READ): Likewise.
7032 (DR_RW_IORW): Likewise.
7033 (DR_LEN_1): Likewise.
7034 (DR_LEN_2): Likewise.
7035 (DR_LEN_4): Likewise.
7036 (DR_LEN_8): Likewise.
7037 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7038 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7039 (DR_ENABLE_SIZE): Likewise.
7040 (DR_LOCAL_SLOWDOWN): Likewise.
7041 (DR_GLOBAL_SLOWDOWN): Likewise.
7042 (DR_CONTROL_RESERVED): Likewise.
7043 (I386_DR_CONTROL_MASK): Likewise.
7044 (I386_DR_VACANT): Likewise.
7045 (I386_DR_LOCAL_ENABLE): Likewise.
7046 (I386_DR_GLOBAL_ENABLE): Likewise.
7047 (I386_DR_DISABLE): Likewise.
7048 (I386_DR_SET_RW_LEN): Likewise.
7049 (I386_DR_GET_RW_LEN): Likewise.
7050 (I386_DR_WATCH_HIT): Likewise.
7051 (i386_wp_op_t): Likewise.
7052 (i386_show_dr): Likewise.
7053 (i386_length_and_rw_bits): Likewise.
7054 (i386_insert_aligned_watchpoint): Likewise.
7055 (i386_remove_aligned_watchpoint): Likewise.
7056 (i386_handle_nonaligned_watchpoint): Likewise.
7057 (i386_update_inferior_debug_regs): Likewise.
7058 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
7059 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
7060 (i386_region_ok_for_watchpoint):
7061 Use i386_dr_region_ok_for_watchpoint.
7062 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
7064 2014-06-19 Gary Benson <gbenson@redhat.com>
7066 * i386-nat.c (i386_insert_hw_breakpoint): Use
7067 i386_insert_watchpoint.
7068 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
7070 2014-06-19 Gary Benson <gbenson@redhat.com>
7072 * i386-nat.c (i386_dr_show): Renamed to
7073 i386_show_dr and made static. All uses updated.
7074 (i386_dr_length_and_rw_bits): Renamed to
7075 i386_length_and_rw_bits and made static.
7077 (i386_dr_insert_aligned_watchpoint): Renamed to
7078 i386_insert_aligned_watchpoint and made static.
7080 (i386_dr_remove_aligned_watchpoint): Renamed to
7081 i386_remove_aligned_watchpoint and made static.
7083 (i386_dr_update_inferior_debug_regs): Renamed to
7084 i386_update_inferior_debug_regs and made static.
7086 * nat/i386-dregs.h (i386_dr_show): Removed.
7087 (i386_dr_length_and_rw_bits): Likewise.
7088 (i386_dr_insert_aligned_watchpoint): Likewise.
7089 (i386_dr_remove_aligned_watchpoint): Likewise.
7090 (i386_dr_update_inferior_debug_regs): Likewise.
7092 2014-06-19 Gary Benson <gbenson@redhat.com>
7094 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
7095 * configure: Regenerate.
7096 * config.in: Likewise.
7097 * main.c (signal.h): New include.
7098 (setup_alternate_signal_stack): New function.
7099 (captured_main): Call the above.
7100 * cp-support.c (signal.h): New include.
7101 (catch_demangler_crashes): New flag.
7102 (SIGJMP_BUF): New define.
7103 (SIGSETJMP): Likewise.
7104 (SIGLONGJMP): Likewise.
7105 (gdb_demangle_jmp_buf): New static global.
7106 (gdb_demangle_attempt_core_dump): Likewise.
7107 (gdb_demangle_signal_handler): New function.
7108 (gdb_demangle): If catch_demangler_crashes is set, install the
7109 above signal handler before calling bfd_demangle, and restore
7110 the original signal handler afterwards. Display the offending
7111 symbol and call demangler_warning the first time a segmentation
7113 (_initialize_cp_support): New maint set/show command.
7115 2014-06-19 Gary Benson <gbenson@redhat.com>
7117 * utils.h (resource_limit_kind): New enum.
7118 (can_dump_core): New declaration.
7119 (warn_cant_dump_core): Likewise.
7120 (dump_core): Likewise.
7121 * utils.c (dump_core): Made nonstatic. Added new
7122 parameter "limit_kind".
7123 (can_dump_core): Made nonstatic. Moved printing code to...
7124 (warn_cant_dump_core): New function.
7125 (can_dump_core_warn): Likewise.
7126 (internal_vproblem): Replace calls to can_dump_core with
7127 calls to can_dump_core_warn. Supply new argument to each.
7129 2014-06-19 Gary Benson <gbenson@redhat.com>
7131 * utils.h (demangler_vwarning): New declaration.
7132 (demangler_warning): Likewise.
7133 * utils.c (struct internal_problem)
7134 <user_settable_should_quit>: New field.
7135 <user_settable_should_dump_core>: Likewise
7136 (internal_error_problem): Add values for above new fields.
7137 (internal_warning_problem): Likewise.
7138 (demangler_warning_problem): New static global.
7139 (demangler_vwarning): New function.
7140 (demangler_warning): Likewise.
7141 (add_internal_problem_command): Selectively add commands.
7142 (_initialize_utils): New internal problem command.
7143 * maint.c (maintenance_demangler_warning): New function.
7144 (_initialize_maint_cmds): New command.
7146 2014-06-18 Tom Tromey <tromey@redhat.com>
7148 * f-valprint.c (info_common_command_for_block): Update.
7149 * symtab.h (struct general_symbol_info) <common_block>: Now
7152 2014-06-18 Tom Tromey <tromey@redhat.com>
7154 * symtab.h (struct symtab) <blockvector>: Now const.
7155 * ada-lang.c (ada_add_global_exceptions): Update.
7156 * buildsym.c (augment_type_symtab): Update.
7157 * dwarf2read.c (dw2_lookup_symbol): Update.
7158 * jit.c (finalize_symtab): Update.
7159 * jv-lang.c (add_class_symtab_symbol): Update.
7160 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7162 * objfiles.c (objfile_relocate1): Update.
7163 * psymtab.c (lookup_symbol_aux_psymtabs)
7164 (maintenance_check_psymtabs): Update.
7165 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7167 * spu-tdep.c (spu_catch_start): Update.
7168 * symmisc.c (dump_symtab_1): Update.
7169 * symtab.c (lookup_global_symbol_from_objfile)
7170 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7171 (basic_lookup_transparent_type_quick)
7172 (basic_lookup_transparent_type, find_pc_sect_symtab)
7173 (find_pc_sect_line, search_symbols): Update.
7174 * block.c (find_block_in_blockvector): Make "bl" const.
7175 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7177 (blockvector_contains_pc): Make "bv" const.
7178 (block_for_pc_sect): Update.
7179 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7180 (blockvector_contains_pc): Update.
7181 * breakpoint.c (resolve_sal_pc): Update.
7182 * inline-frame.c (block_starting_point_at): Update.
7184 2014-06-18 Tom Tromey <tromey@redhat.com>
7186 * completer.c (complete_line): Make "line_buffer" const.
7187 * completer.h (complete_line): Update.
7189 2014-06-18 Tom Tromey <tromey@redhat.com>
7191 * symtab.c (add_macro_name): Remove unneeded cast.
7193 2014-06-18 Tom Tromey <tromey@redhat.com>
7195 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7196 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7198 2014-06-18 Tom Tromey <tromey@redhat.com>
7200 * probe.c (info_probes_for_ops): Make "arg" const.
7201 * probe.h (info_probes_for_ops): Update.
7203 2014-06-18 Tom Tromey <tromey@redhat.com>
7205 * varobj.c (varobj_create): Update.
7206 * valops.c (value_of_this): Update.
7207 * tracepoint.c (add_local_symbols, scope_info): Update.
7208 * symtab.h (struct general_symbol_info) <block>: Now const.
7209 * symtab.c (skip_prologue_sal)
7210 (default_make_symbol_completion_list_break_on)
7211 (skip_prologue_using_sal): Update.
7212 * stack.h (iterate_over_block_locals)
7213 (iterate_over_block_local_vars): Update.
7214 * stack.c (print_frame_args): Update.
7215 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7217 (get_selected_block): Make return type const.
7218 * python/py-frame.c (frapy_block): Update.
7219 * python/py-block.c (gdbpy_block_for_pc): Update.
7220 * p-exp.y (%union) <bval>: Now const.
7221 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7222 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7223 * m2-exp.y (%union) <bval>: Now const.
7224 * linespec.c (get_current_search_block): Make return type const.
7225 (create_sals_line_offset, find_label_symbols): Update.
7226 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7228 (block_starting_point_at): Make "block" const.
7229 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7230 (check_exception_resume): Update.
7231 * guile/scm-frame.c (gdbscm_frame_block): Update.
7232 * guile/scm-block.c (gdbscm_lookup_block): Update.
7233 * frame.h (get_frame_block): Update.
7234 (get_selected_block): Make return type const.
7235 * frame.c (frame_id_inner): Update.
7236 * f-valprint.c (info_common_command_for_block)
7237 (info_common_command): Update.
7238 * dwarf2loc.c (dwarf2_find_location_expression)
7239 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7240 (locexpr_describe_location_piece): Update.
7241 * c-exp.y (%union) <bval>: Now const.
7242 * breakpoint.c (resolve_sal_pc): Update.
7243 * blockframe.c (get_frame_block):Make return type const.
7244 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7245 (block_innermost_frame): Update.
7246 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7247 (block_for_pc, block_for_pc_sect): Update.
7248 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7250 (block_for_pc_sect, block_for_pc): Make return type const.
7251 * ax-gdb.c (gen_expr): Update.
7252 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7253 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7254 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7255 (ada_read_var_value): Update.
7256 * ada-exp.y (struct name_info) <block>: Now const.
7258 (block_lookup): Constify.
7260 2014-06-18 Gary Benson <gbenson@redhat.com>
7262 * nat/i386-dregs.h: New file.
7263 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7264 * i386-nat.h (i386-dregs.h): New include.
7265 (DR_FIRSTADDR): Now in i386-dregs.h.
7266 (DR_LASTADDR): Likewise.
7267 (DR_NADDR): Likewise.
7268 (DR_STATUS): Likewise.
7269 (DR_CONTROL): Likewise.
7270 (i386_debug_reg_state): Likewise.
7271 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7273 2014-06-18 Don Breazeal <donb@codesourcery.com>
7275 * breakpoint.c (set_longjmp_breakpoint): Call
7276 momentary_breakpoint_from_master with additional argument.
7277 (set_longjmp_breakpoint_for_call_dummy): Call
7278 momentary_breakpoint_from_master with additional argument.
7279 (set_std_terminate_breakpoint): Call
7280 momentary_breakpoint_from_master with additional argument.
7281 (momentary_breakpoint_from_master): Add argument to function
7282 definition and use it to initialize structure member flag.
7283 (clone_momentary_breakpoint): Call
7284 momentary_breakpoint_from_master with additional argument.
7285 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7286 member flags set in momentary_breakpoint_from_master.
7288 2014-06-18 Gary Benson <gbenson@redhat.com>
7290 * i386-nat.c (i386_show_dr): Renamed to
7291 i386_dr_show and made nonstatic. All uses updated.
7292 (i386_length_and_rw_bits): Renamed to
7293 i386_dr_length_and_rw_bits and made nonstatic.
7295 (i386_insert_aligned_watchpoint): Renamed to
7296 i386_dr_insert_aligned_watchpoint and made nonstatic.
7298 (i386_remove_aligned_watchpoint): Renamed to
7299 i386_dr_remove_aligned_watchpoint and made nonstatic.
7301 (i386_update_inferior_debug_regs): Renamed to
7302 i386_dr_update_inferior_debug_regs and made nonstatic.
7305 2014-06-18 Gary Benson <gbenson@redhat.com>
7307 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7308 (i386_dr_low_can_set_control): Likewise.
7309 (i386_dr_low_set_addr): Likewise.
7310 (i386_dr_low_set_control): Likewise.
7311 (i386_dr_low_get_addr): Likewise.
7312 (i386_dr_low_get_status): Likewise.
7313 (i386_dr_low_get_control): Likewise.
7314 (i386_insert_aligned_watchpoint): Use new macros.
7315 (i386_update_inferior_debug_regs): Likewise.
7316 (i386_stopped_data_address): Likewise.
7318 2014-06-18 Gary Benson <gbenson@redhat.com>
7320 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7321 New parameter. All uses updated.
7323 2014-06-18 Gary Benson <gbenson@redhat.com>
7325 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7328 2014-06-18 Gary Benson <gbenson@redhat.com>
7330 * i386-nat.c (debug_printf): New macro.
7331 (i386_get_debug_register_length): Likewise.
7332 (TARGET_HAS_DR_LEN_8): Use above macro.
7333 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7334 and printf_unfiltered. Use phex to format values.
7336 2014-06-18 Gary Benson <gbenson@redhat.com>
7338 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7341 2014-06-18 Gary Benson <gbenson@redhat.com>
7343 * i386-nat.c: Comment changes.
7345 2014-06-18 Gary Benson <gbenson@redhat.com>
7347 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7349 2014-06-18 Gary Benson <gbenson@redhat.com>
7351 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7352 (i386_insert_aligned_watchpoint): Likewise.
7353 (i386_remove_aligned_watchpoint): Likewise.
7354 (i386_handle_nonaligned_watchpoint): Likewise.
7356 2014-06-18 Gary Benson <gbenson@redhat.com>
7358 * i386-nat.c: Whitespace changes.
7360 2014-06-17 Samuel Bronson <naesten@gmail.com>
7362 * MAINTAINERS: Update Roland McGrath's email address.
7363 Thanks to Sergio Durigan Junior for pointing out that he left
7364 Red Hat a while ago, and giving me a current address.
7366 2014-06-17 Tom Tromey <tromey@redhat.com>
7368 * utils.h (savestring): Remove declaration.
7370 2014-06-17 Tom Tromey <tromey@redhat.com>
7372 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7374 2014-06-16 Keith Seitz <keiths@redhat.com>
7377 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7378 to update the varobj if inferior_ptid is null_ptid.
7380 2014-06-16 Tom Tromey <tromey@redhat.com>
7382 * target.h (struct target_ops) <to_info_proc>: Make parameter
7384 (target_info_proc): Update.
7385 * target.c (target_info_proc): Make "args" const.
7386 * procfs.c (procfs_info_proc): Update.
7387 * linux-tdep.c (linux_info_proc): Update.
7388 (linux_core_info_proc_mappings): Make "args" const.
7389 (linux_core_info_proc): Update.
7390 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7391 * gdbarch.c: Rebuild.
7392 * gdbarch.h: Rebuild.
7393 * corelow.c (core_info_proc): Update.
7395 2014-06-16 Tom Tromey <tromey@redhat.com>
7397 * target.h (struct target_ops) <to_disconnect>: Make parameter
7399 (target_disconnect): Update.
7400 * target.c (target_disconnect): Make "args" const.
7401 * target-delegates.c: Rebuild.
7402 * remote.c (remote_disconnect): Update.
7403 * record.h (record_disconnect): Update.
7404 * record.c (record_disconnect): Update.
7405 * inf-child.c (inf_child_disconnect): Update.
7407 2014-06-16 Tom Tromey <tromey@redhat.com>
7409 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7410 * target.c (debug_to_rcmd, default_rcmd): Update.
7411 * target-delegates.c: Rebuild.
7412 * remote.c (remote_rcmd): Update.
7413 * monitor.c (monitor_rcmd): Update.
7415 2014-06-16 Pedro Alves <palves@redhat.com>
7417 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7418 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7419 have OBJF_SHARED set.
7420 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7421 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7422 instead of OBJF_USERLOADED.
7423 * objfiles.h (OBJF_SHARED): Update comment.
7424 (userloaded_objfile_contains_address_p): Rename to ...
7425 (shared_objfile_contains_address_p): ... this, and update
7427 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7429 (remove_symbol_file_command): Skip objfiles that don't have
7432 2014-06-16 Tom Tromey <tromey@redhat.com>
7434 * minsyms.h (prim_record_minimal_symbol)
7435 (prim_record_minimal_symbol_and_info): Update comments.
7437 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7439 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7440 or --without-guile, according to how GDB was built.
7442 2014-06-13 Tom Tromey <tromey@redhat.com>
7444 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7446 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7448 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7450 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7451 help_list.Pass all_commands, not -1, to help_list.
7452 * cli/cli-dump.c (dump_command, append_command)
7453 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7454 (binary_dump_command, binary_append_command): Pass all_commands,
7455 not -1, to help_list.
7456 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7458 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7460 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7462 * top.c (set_history): Pass all_commands, not -1, to help_list.
7463 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7464 all_commands, not -1, to help_list.
7465 * symfile.c (overlay_command): Pass all_commands, not -1, to
7467 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7469 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7471 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7473 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7474 not -1, to help_list.
7475 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7476 not -1, to help_list.
7477 * maint.c (maintenance_command, maintenance_info_command)
7478 (maintenance_print_command, maintenance_set_cmd): Pass
7479 all_commands, not -1, to help_list.
7480 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7482 * language.c (set_check): Pass all_commands, not -1, to help_list.
7483 * infcmd.c (unset_command): Pass all_commands, not -1, to
7485 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7487 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7489 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7491 * breakpoint.c (save_command): Pass all_commands, not -1, to
7493 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7494 all_commands, not -1, to help_list.
7496 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7498 * regcache.c (struct register_to_invalidate): New structure.
7499 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7501 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7503 2014-06-12 Yao Qi <yao@codesourcery.com>
7505 * varobj.c (varobj_get_num_children): Call
7506 varobj_is_dynamic_p.
7507 (varobj_list_children): Likewise.
7508 (varobj_update): Likewise. Update comments.
7510 2014-06-12 Yao Qi <yao@codesourcery.com>
7512 * varobj.c (varobj_pretty_printed_p): Rename to ...
7513 (varobj_is_dynamic_p): ... this. New function.
7514 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7515 (varobj_is_dynamic_p): Declare.
7516 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7517 (mi_print_value_p, varobj_update_one): Likewise.
7519 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7520 Yao Qi <yao@codesourcery.com>
7522 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7523 (varobj_get_iterator): Wrap up code for pretty-printer by
7524 "#if HAVE_PYTHON" and "#endif".
7525 (update_dynamic_varobj_children): Likewise.
7527 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7528 Yao Qi <yao@codesourcery.com>
7530 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7531 gdb_python_initialized is false. Move some code from varobj.c.
7532 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7533 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7534 (struct varobj_item): Moved to varobj-iter.h".
7535 (varobj_clear_saved_item): New function.
7536 (update_dynamic_varobj_children): Move python-related code to
7538 (free_variable): Call varobj_clear_saved_item and
7541 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7542 Yao Qi <yao@codesourcery.com>
7544 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7545 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7546 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7547 (py-varobj.o): New rule.
7548 * python/py-varobj.c: New file.
7549 * python/python-internal.h (py_varobj_get_iterator): Declare.
7550 * varobj-iter.h: New file.
7551 * varobj.c: Include "varobj-iter.h"
7552 (struct varobj) <child_iter>: Change its type from "PyObject *"
7553 to "struct varobj_iter *".
7554 <saved_item>: Likewise.
7555 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7556 [HAVE_PYTHON] (varobj_get_iterator): New function.
7557 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7558 python-specific code to python/py-varobj.c.
7559 (install_visualizer): Call varobj_iter_delete instead of
7561 * varobj.h (varobj_ensure_python_env): Declare.
7563 2014-06-12 Yao Qi <yao@codesourcery.com>
7565 * varobj.c (struct varobj_item): New structure.
7566 (create_child_with_value): Update declaration.
7567 (varobj_add_child): Replace arguments 'name' and 'value' with
7568 'item'. All callers updated.
7569 (install_dynamic_child): Likewise.
7570 (update_dynamic_varobj_children): Likewise.
7571 (varobj_add_child): Likewise.
7572 (create_child_with_value): Likewise.
7574 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7576 * NEWS: Create a new section for the next release branch.
7577 Rename the section of the current branch, now that it has
7580 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7582 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7583 * version.in: Bump version to 7.8.50.DATE-cvs.
7585 2014-06-11 Pedro Alves <palves@redhat.com>
7588 * ser-mingw.c (net_windows_socket_check_pending): New function.
7589 (net_windows_select_thread): Ignore spurious wakeups. Use
7590 net_windows_socket_check_pending.
7591 (net_windows_wait_handle): Check for pending events with
7592 ioctlsocket, through net_windows_socket_check_pending, instead of
7593 checking the socket's event.
7595 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7597 * python/python-internal.h (gdb_PyObject_GetAttrString)
7598 (gdb_PyObject_HasAttrString): New inline function definitions.
7599 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7600 char * of the second argument to PyObject_GetAttrString.
7602 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7604 * serial.c (serial_write): Fix index of character to be printed
7605 in call to serial_logchar when serial debug traces are enabled.
7607 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7609 * gdbtypes (resolve_dynamic_range): Add function description.
7611 2014-06-09 Pedro Alves <palves@redhat.com>
7613 * linux-nat.c (linux_child_follow_fork): Initialize status with
7614 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7615 inner block. Only pass the signal to PTRACE_DETACH if in pass
7618 2014-06-09 Gary Benson <gbenson@redhat.com>
7620 * common/signals.c (gdb_signal_from_host): Reorder to separate
7621 the always-available ANSI-standard signals from the signals that
7623 (do_gdb_signal_to_host): Likewise.
7624 * proc-events.c (signal_table): Likewise.
7626 2014-06-08 Hui Zhu <hui@codesourcery.com>
7628 * common/linux-ptrace.c (linux_disable_event_reporting): New
7630 * common/linux-ptrace.h (linux_disable_event_reporting): New
7632 * linux-nat.c (linux_child_follow_fork): Do a single step before
7635 2014-06-07 Keith Seitz <keiths@redhat.com>
7639 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7640 from symbol_matches_domain in symtab.c. All local callers
7641 of symbol_matches_domain updated.
7642 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7643 search STRUCT_DOMAIN.
7644 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7645 independently. standard_lookup will do that automatically.
7646 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7647 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7648 (cp_lookup_symbol_in_namespace): Likewise.
7649 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7650 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7651 may return a STRUCT_DOMAIN match.
7652 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7653 * cp-support.c: Include language.h.
7654 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7656 * psymtab.c (match_partial_symbol): Compare the requested
7657 domain with the symbol's domain directly.
7658 (lookup_partial_symbol): Likewise.
7659 * symtab.c (lookup_symbol_in_language): Explain when/why
7660 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7661 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7662 appropriate languages.
7663 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7664 and moved to ada-lang.c
7665 (lookup_block_symbol): Explain that this function only returns
7666 symbol matching the requested DOMAIN.
7667 Compare the requested domain with the symbol's domain directly.
7668 (iterate_over_symbols): Compare the requested domain with the
7669 symbol's domain directly.
7670 * symtab.h (symbol_matches_domain): Remove.
7672 2014-06-06 Doug Evans <xdje42@gmail.com>
7674 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7675 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7676 (gdbscm_guile_version_is_at_least): Declare.
7677 (gdbscm_scm_string_to_int): Declare.
7678 * guile/guile.c (gdbscm_guile_major_version): New global.
7679 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7680 (guile_datadir): New static global.
7681 (gdbscm_guile_data_directory): New function.
7682 (initialize_scheme_side): Update.
7683 (misc_guile_functions): Add guile-data-directory.
7684 (initialize_gdb_module): Fetch guile version number.
7685 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7686 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7687 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7688 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7690 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7691 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7692 * guile/scm-value.c (gdbscm_value_to_string): Only call
7693 scm_port_conversion_strategy if Guile version >= 2.0.6.
7695 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7697 * main.c (print_gdb_help): Add -q and --silent.
7699 2014-06-06 Gary Benson <gbenson@redhat.com>
7701 * common/signals.c: Remove preprocessor conditionals for
7702 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7703 SIGSEGV and SIGTERM.
7704 * proc-events.c: Likewise.
7706 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7708 * symfile.c (symfile_free_objfile): Remove restriction to
7710 * symfile-mem.c (symbol_file_add_from_memory): Call
7711 add_target_sections_of_objfile.
7713 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7715 * guile/scm-value.c (gdbscm_history_append_x): Use
7716 'vlscm_get_value_smob_arg_unsafe' instead of
7717 'vlscm_scm_to_value'.
7719 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7722 * utils.c (printchar): Don't escape at all if quoter is NUL.
7723 Update function documentation to clarify effect of parameter
7725 * remote.c (escape_buffer): Pass '\\' as the quoter to
7726 fputstrn_unfiltered.
7727 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7728 generate the output.
7729 (mi_solib_unloaded): Same.
7731 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7733 * development.sh: Delete.
7734 * Makefile.in (config.status): Adjust dependency on development.sh.
7735 * configure.ac: Adjust development.sh source call.
7736 * configure: Regenerate.
7738 2014-06-04 Doug Evans <xdje42@gmail.com>
7740 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7741 is_scheme_bkpt, spec.
7742 (bpscm_make_breakpoint_smob): Initialize new members.
7743 (gdbscm_create_breakpoint_x): Split into two ...
7744 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7745 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7746 (scheme_function breakpoint_functions): Update.
7747 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7748 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7749 register-breakpoint!.
7751 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7754 * mem-break.c (z_type_supported): Return zero if
7755 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7757 2014-06-04 Tom Tromey <tromey@redhat.com>
7759 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7760 value_from_contents_and_address_unresolved.
7761 (ada_template_to_fixed_record_type_1): Likewise.
7762 (ada_which_variant_applies): Likewise.
7763 * value.h (value_from_contents_and_address_unresolved): Declare.
7764 * value.c (value_from_contents_and_address_unresolved): New
7766 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7767 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7768 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7770 2014-06-04 Tom Tromey <tromey@redhat.com>
7772 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7774 2014-06-04 Tom Tromey <tromey@redhat.com>
7776 * procfs.c (procfs_attach): Make "args" const.
7777 * windows-nat.c (windows_attach): Make "args" const.
7778 * nto-procfs.c (procfs_attach): Make "args" const.
7779 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7780 * go32-nat.c (go32_attach): Make "args" const.
7781 * gnu-nat.c (gnu_attach): Make "args" const.
7782 * darwin-nat.c (darwin_attach): Make "args" const.
7783 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7784 * linux-nat.c (linux_nat_attach): Make "args" const.
7785 * remote.c (extended_remote_attach_1, extended_remote_attach):
7787 * target.h (struct target_ops) <to_attach>: Make "args" const.
7788 (find_default_attach): Likewise.
7789 * utils.c (parse_pid_to_attach): Make "args" const.
7790 * utils.h (parse_pid_to_attach): Update.
7792 2014-06-04 Tom Tromey <tromey@redhat.com>
7794 * target-delegates.c: Rebuild.
7795 * target.c (default_thread_address_space): New function.
7796 (target_thread_address_space): Simplify.
7797 * target.h (struct target_ops) <to_thread_address_space>: Add
7798 TARGET_DEFAULT_FUNC.
7800 2014-06-04 Doug Evans <xdje42@gmail.com>
7802 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7804 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7806 * record-btrace.c: Include event-loop.h and inf-loop.h.
7807 (record_btrace_resume_exec_dir)
7808 (record_btrace_async_inferior_event_handler)
7809 (record_btrace_handle_async_inferior_event): New.
7810 (record_btrace_open): Create async event handler.
7811 (record_btrace_close): Delete async event handler.
7812 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7813 Mark async event handler.
7814 (record_btrace_execution_direction): New.
7815 (init_record_btrace_ops): Initialize to_execution_direction.
7817 2014-06-03 Doug Evans <xdje42@gmail.com>
7819 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7820 (gdbscm_make_parameter): Ditto.
7822 2014-06-03 Doug Evans <dje@google.com>
7824 * exec.c (exec_close_1): Call clear_section_table instead of
7825 resize_section_table.
7826 (clear_section_table): New function.
7827 (resize_section_table): Make static. Rename arg num_added to
7829 * exec.h (clear_section_table): Declare.
7830 (resize_section_table): Delete.
7831 * progspace.c (release_program_space): Call clear_section_table
7832 instead of resize_section_table.
7834 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7836 * NEWS (Python Scripting): Add entry about the new xmethods
7839 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7841 * python/py-xmethods.c: New file.
7842 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7843 (objfpy_dealloc): XDECREF on the new xmethods field.
7844 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7846 (objfpy_get_xmethods): New function.
7847 (objfile_getset): New entry 'xmethods'.
7848 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7849 (pspy_dealloc): XDECREF on the new xmethods field.
7850 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7852 (pspy_get_xmethods): New function.
7853 (pspace_getset): New entry 'xmethods'.
7854 * python/python-internal.h: Add declarations for new functions.
7855 * python/python.c (_initialize_python): Invoke
7856 gdbpy_initialize_xmethods.
7857 * python/lib/gdb/__init__.py (xmethods): New
7859 * python/lib/gdb/xmethod.py: New file.
7860 * python/lib/gdb/command/xmethods.py: New file.
7862 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7864 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7865 best match method returned by find_overload_match is an xmethod.
7866 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7867 the best matching operator returned by find_overload_match is an
7869 * valops.c: #include "extension.h".
7870 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7871 Return void. The list of matching source methods is returned in
7872 "fn_list" and a vector of matching debug method workers is
7873 returned in "xm_worker_vec". Update all callers.
7874 (value_find_oload_method_list): Likewise.
7875 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7876 non-NULL, then the index of the best matching method in this
7877 vector is returned. Update all callers.
7878 (find_overload_match): Include xmethods while performing overload
7881 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7883 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7884 * extension-priv.h (struct extension_language_ops): Add the
7886 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7887 get_matching_xmethod_workers, get_xmethod_argtypes,
7888 invoke_xmethod, free_xmethod_worker,
7889 free_xmethod_worker_vec): New functions.
7890 * extension.h: #include "common/vec.h".
7891 New function declarations.
7892 (struct xmethod_worker): New struct.
7893 (VEC (xmethod_worker_ptr)): New vector type.
7894 (xmethod_worker_ptr): New typedef.
7895 (xmethod_worker_vec): Likewise.
7896 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7898 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7899 (struct builtin_type): New field "xmethod".
7900 * valarith.c (value_ptradd): Assert that the value argument is not
7902 * valops.c (value_must_coerce_to_target): Return 0 for
7903 lval_xcallable values.
7904 * value.c (struct value): New field XM_WORKER in the field
7906 (value_address, value_raw_address): Return 0 for lval_xcallable
7908 (set_value_address): Assert that the value is not an
7910 (value_free): Free the associated xmethod worker when freeing
7911 lval_xcallable values.
7912 (set_value_component_location): Assert that the WHOLE value is not
7914 (value_of_xmethod, call_xmethod): New functions.
7915 * value.h: Declare "struct xmethod_worker".
7916 Declare new functions value_of_xmethod, call_xmethod.
7918 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7919 Pedro Alves <palves@redhat.com>
7921 PR breakpoints/17000
7922 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7923 New function, extracted from software_breakpoint_inserted_here_p.
7924 (software_breakpoint_inserted_here_p): Replace factored out code
7925 by call to find_non_raw_software_breakpoint_inserted_here.
7926 (bp_target_info_copy_insertion_state): New function.
7927 (bkpt_insert_location): Handle the case of a single-step
7928 breakpoint already inserted at the same address.
7929 (bkpt_remove_location): Handle the case of a single-step
7930 breakpoint still inserted at the same address.
7931 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7932 breakpoint already inserted at the same address.
7933 (deprecated_remove_raw_breakpoint): Handle the case of a
7934 non-raw breakpoint still inserted at the same address.
7935 (find_single_step_breakpoint): New function, extracted from
7936 single_step_breakpoint_inserted_here_p.
7937 (find_single_step_breakpoint): New function,
7938 factored out from single_step_breakpoint_inserted_here_p.
7939 (single_step_breakpoint_inserted_here_p): Reimplement.
7941 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7943 Pushed by Joel Brobecker <brobecker@adacore.com>
7944 * source.c (show_substitute_path_command): Fix display of matching
7947 2014-06-03 Gary Benson <gbenson@redhat.com>
7949 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7951 2014-06-02 Doug Evans <xdje42@gmail.com>
7953 Add parameter support for Guile.
7954 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7955 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7956 (scm-param.o): New rule.
7957 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7958 (gdbscm_misc_error): Declare.
7959 (gdbscm_canonicalize_command_name): Declare.
7960 (gdbscm_scm_to_host_string): Declare.
7961 (gdbscm_scm_from_host_string): Declare.
7962 (gdbscm_initialize_parameters): Declare.
7963 * guile/guile.c (initialize_gdb_module): Call
7964 gdbscm_initialize_parameters.
7965 * guile/lib/gdb.scm: Export parameter symbols.
7966 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7967 cmdscm_canonicalize_name and made public. All callers updated.
7968 * guile/scm-exception.c (gdbscm_misc_error): New function.
7969 * guile/scm-param.c: New file.
7970 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7971 (gdbscm_scm_to_host_string): New function.
7972 (gdbscm_scm_from_host_string): New function.
7973 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7975 2014-06-02 Doug Evans <xdje42@gmail.com>
7977 Add command support for Guile.
7978 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7979 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7980 (scm-cmd.o): New rule.
7981 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7982 (gdbscm_user_error_p): Declare.
7983 (gdbscm_parse_command_name): Declare.
7984 (gdbscm_valid_command_class_p): Declare.
7985 (gdbscm_initialize_commands): Declare.
7986 * guile/guile.c (initialize_gdb_module): Call
7987 gdbscm_initialize_commands.
7988 * guile/lib/gdb.scm: Export command symbols.
7989 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7990 (throw-user-error): New function.
7991 * guile/scm-cmd.c: New file.
7992 * guile/scm-exception.c (user_error_symbol): New static global.
7993 (gdbscm_user_error_p): New function.
7994 (gdbscm_initialize_exceptions): Set user_error_symbol.
7995 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7997 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7999 * top.c (command_loop): Handle comments here...
8000 (command_line_input): ... not here.
8002 2014-06-02 Doug Evans <xdje42@gmail.com>
8004 Add progspace support for Guile.
8005 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
8006 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
8007 (scm-progspace.o): New rule.
8008 * guile/guile-internal.h (pspace_smob): New typedef.
8009 (psscm_pspace_smob_pretty_printers): Declare.
8010 (psscm_pspace_smob_from_pspace): Declare.
8011 (psscm_scm_from_pspace): Declare.
8012 * guile/guile.c (initialize_gdb_module): Call
8013 gdbscm_initialize_pspaces.
8014 * guile/lib/gdb.scm: Export progspace symbols.
8015 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
8017 (append-pretty-printer!): Ditto.
8018 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
8020 * guile/scm-progspace.c: New file.
8022 2014-06-03 Alan Modra <amodra@gmail.com>
8024 * ppc64-tdep.c (ppc64_standard_linkage8): New.
8025 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
8027 2014-06-02 Doug Evans <dje@google.com>
8029 Add support for skeletonless type units.
8030 * dwarf2read.c (struct dwarf2_per_objfile): New member
8031 n_allocated_type_units.
8032 (struct dwarf2_per_objfile) <tu_stats>: New member
8033 nr_all_type_units_reallocs.
8034 (create_signatured_type_table_from_index): Initialize
8035 n_allocated_type_units
8036 (create_all_type_units): Ditto.
8037 (add_type_unit): Move up in file. New arg slot.
8038 All callers updated. Increase space for all_type_units more
8040 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
8041 (lookup_dwo_signatured_type): Handle skeletonless TUs.
8042 (lookup_dwp_signatured_type): Ditto.
8043 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
8044 All callers updated.
8045 (build_type_psymtabs_1): Leave type_unit_groups as
8046 NULL if no TUs present.
8047 (print_tu_stats): New function.
8048 (process_skeletonless_type_unit): New function.
8049 (process_dwo_file_for_skeletonless_type_units): New
8051 (process_skeletonless_type_units): New function.
8052 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
8053 Call print tu_stats if debugging enabled.
8055 2014-06-02 Pedro Alves <palves@redhat.com>
8057 * breakpoint.c (build_target_command_list): Don't build a command
8058 list if we have any duplicate location that isn't a dprintf.
8060 2014-06-02 Pedro Alves <palves@redhat.com>
8062 * breakpoint.c (dprintf_breakpoint_hit): New function.
8063 (initialize_breakpoint_ops): Install it as dprintf's
8064 breakpoint_hit method.
8066 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8068 * source.c (substitute_path_rule_matches): Simplify using
8069 filename_ncmp instead of FILENAME_CMP.
8071 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8073 * source.c (substitute_path_rule_matches): Remove trailing spaces.
8075 2014-06-01 Ludovic Courtès <ludo@gnu.org>
8077 * configure.ac: When Guile is available, check for the
8078 availability of 'scm_new_smob'.
8079 * configure, config.h.in: Regenerate.
8080 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
8083 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8085 * frame.c (struct frame_info): Add stop_string field.
8086 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
8087 (get_prev_frame_always): Old content moved into
8088 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
8089 TRY_CATCH, handle MEMORY_ERROR exceptions.
8090 (frame_stop_reason_string): New function definition.
8091 * frame.h (unwind_stop_reason_to_string): Extend comment to
8092 mention frame_stop_reason_string.
8093 (frame_stop_reason_string): New function declaration.
8094 * stack.c (frame_info): Switch to frame_stop_reason_string.
8095 (backtrace_command_1): Switch to frame_stop_reason_string.
8096 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
8097 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
8098 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
8100 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8102 * frame.c (frame_stop_reason_string): Rename to ...
8103 (unwind_stop_reason_to_string): this.
8104 * frame.h (frame_stop_reason_string): Rename to ...
8105 (unwind_stop_reason_to_string): this.
8106 * stack.c (frame_info): Update call to frame_stop_reason_string.
8107 (backtrace_command_1): Likewise.
8108 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
8109 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
8111 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8113 * frame.c (remove_prev_frame): New function.
8114 (get_prev_frame_if_no_cycle): Create / discard cleanup using
8117 2014-05-29 Pedro Alves <palves@redhat.com>
8119 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
8120 and make it const. When a single-step decays to a continue,
8121 clear 'step', not 'hw_step'. Pass whether the caller wanted
8122 to step to user_visible_resume_ptid, not what we ask the
8125 2014-05-29 Pedro Alves <palves@redhat.com>
8127 * infrun.c (process_event_stop_test, handle_step_into_function)
8128 (handle_step_into_function_backward): Adjust.
8129 Don't set the even thread's stop_step and call stop_waiting before
8130 calling end_stepping_range. Instead do that ...
8131 (end_stepping_range): ... here. Take an ecs pointer parameter.
8133 2014-05-29 Pedro Alves <palves@redhat.com>
8135 * infrun.c (stop_stepping): Rename to ...
8136 (stop_waiting): ... this.
8137 (proceed): Update comment.
8138 (process_event_stop_test, handle_inferior_event)
8139 (handle_signal_stop, handle_step_into_function)
8140 (handle_step_into_function_backward): Update.
8142 2014-05-29 Pedro Alves <palves@redhat.com>
8144 * infcall.c (run_inferior_call): Don't check whether the current
8145 thread is running after the proceed call.
8147 2014-05-29 Pedro Alves <palves@redhat.com>
8148 Tom Tromey <tromey@redhat.com>
8150 * NEWS: Mention "maint set target-async", "set mi-async", and that
8151 background execution commands are now always available.
8152 * target.h (target_async_permitted): Update comment.
8153 * target.c (target_async_permitted, target_async_permitted_1):
8155 (set_target_async_command): Rename to ...
8156 (maint_set_target_async_command): ... this.
8157 (show_target_async_command): Rename to ...
8158 (maint_show_target_async_command): ... this.
8159 (_initialize_target): Adjust.
8160 * infcmd.c (prepare_execution_command): Make extern.
8161 * inferior.h (prepare_execution_command): Declare.
8162 * infrun.c (set_observer_mode): Leave target async alone.
8163 * mi/mi-interp.c (mi_interpreter_init): Install
8164 mi_on_sync_execution_done as sync_execution_done observer.
8165 (mi_on_sync_execution_done): New function.
8166 (mi_execute_command_input_handler): Don't print the prompt if we
8167 just started a synchronous command with an async target.
8168 (mi_on_resume): Check sync_execution before printing prompt.
8169 * mi/mi-main.h (mi_async_p): Declare.
8170 * mi/mi-main.c: Include gdbcmd.h.
8171 (mi_async_p): New function.
8172 (mi_async, mi_async_1): New globals.
8173 (set_mi_async_command, show_mi_async_command, mi_async): New
8175 (exec_continue): Call prepare_execution_command.
8176 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8177 (mi_execute_async_cli_command): Use mi_async_p.
8178 (_initialize_mi_main): Install "set mi-async". Make
8179 "target-async" a deprecated alias.
8181 2014-05-29 Pedro Alves <palves@redhat.com>
8183 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8184 (_initialize_cli_interp): Adjust.
8185 * event-loop.c: Include "observer.h".
8186 (start_event_loop): Notify 'command_error' observers instead of
8187 calling display_gdb_prompt. Remove FIXME comment.
8188 * event-top.c (display_gdb_prompt): Remove call into the
8190 * inf-loop.c: Include "observer.h".
8191 (inferior_event_handler): Notify 'command_error' observers instead
8192 of calling display_gdb_prompt.
8193 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8194 observers instead of calling display_gdb_prompt.
8195 * interps.c (interp_set): Don't call display_gdb_prompt.
8196 (current_interp_display_prompt_p): Delete.
8197 * interps.h (interp_prompt_p): Delete declaration.
8198 (interp_prompt_p_ftype): Delete.
8199 (struct interp_procs) <prompt_proc_p>: Delete field.
8200 (current_interp_display_prompt_p): Delete declaration.
8201 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8202 (_initialize_mi_interp): Adjust.
8203 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8204 'command_error' observers.
8205 (tui_on_sync_execution_done, tui_on_command_error): New
8207 (tui_display_prompt_p): Delete.
8208 (_initialize_tui_interp): Adjust.
8210 2014-05-29 Pedro Alves <palves@redhat.com>
8213 * cli/cli-interp.c: Include infrun.h and observer.h.
8214 (cli_uiout, cli_interp): New globals.
8215 (cli_on_signal_received, cli_on_end_stepping_range)
8216 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8218 (cli_interpreter_init): Install them as 'end_stepping_range',
8219 'signal_received' 'signal_exited', 'exited' and 'no_history'
8221 (_initialize_cli_interp): Remove cli_interp local.
8222 * infrun.c (handle_inferior_event): Call the several stop reason
8223 observers instead of printing the stop reason directly.
8224 (end_stepping_range): New function.
8225 (print_end_stepping_range_reason, print_signal_exited_reason)
8226 (print_exited_reason, print_signal_received_reason)
8227 (print_no_history_reason): Make static, and add an uiout
8228 parameter. Print to that instead of to CURRENT_UIOUT.
8229 * infrun.h (print_end_stepping_range_reason)
8230 (print_signal_exited_reason, print_exited_reason)
8231 (print_signal_received_reason print_no_history_reason): New
8233 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8235 <cli_uiout>: New field.
8236 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8237 uiout for CLI output. Install 'signal_received',
8238 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8240 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8241 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8242 (mi_on_no_history): New functions.
8243 (ui_out_free_cleanup): Delete function.
8244 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8245 instead use the one already stored in the MI interpreter data.
8246 (mi_ui_out): Adjust.
8247 * tui/tui-interp.c: Include infrun.h and observer.h.
8248 (tui_interp): New global.
8249 (tui_on_signal_received, tui_on_end_stepping_range)
8250 (tui_on_signal_exited, tui_on_exited)
8251 (tui_on_no_history): New functions.
8252 (tui_init): Install them as 'end_stepping_range',
8253 'signal_received' 'signal_exited', 'exited' and 'no_history'
8255 (_initialize_tui_interp): Delete tui_interp local.
8257 2014-05-29 Pedro Alves <palves@redhat.com>
8260 * linux-nat.c (linux_nat_resume_callback): Rename the second
8261 parameter to 'except'. Skip LP if it points to EXCEPT.
8262 (linux_nat_resume): Don't mark the event lwp as not stopped
8263 before resuming sibling lwps. Instead ask
8264 linux_nat_resume_callback to skip the event lwp. Mark it as not
8265 stopped after actually resuming it.
8266 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8268 (wait_lwp): Mark the lwp as stopped here.
8269 (stop_wait_callback): Mark the lwp as not stopped right after
8270 resuming it. Don't mark lwps as stopped here.
8271 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8272 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8274 2014-05-29 Pedro Alves <palves@redhat.com>
8277 * infrun.c (resume): Determine how much to resume depending on
8278 whether the caller wanted a step, not whether we can hardware step
8279 the target. Mark all threads that we intend to run as running,
8280 unless we're calling an inferior function.
8281 (normal_stop): If the thread is running an infcall, don't finish
8283 * target.c (target_resume): Don't mark threads as running here.
8285 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8287 * serial.c (_initialize_serial): Remove support for
8288 the "set remotebaud" and "show remotebaud" commands.
8289 * NEWS: Add entry documenting the removal of that command.
8291 2014-05-28 Yao Qi <yao@codesourcery.com>
8293 * charset.c: Fix typo in comments.
8295 2014-05-27 Gary Benson <gbenson@redhat.com>
8297 * utils.c (internal_vproblem): Prompt for a bug report.
8299 2014-05-26 Andy Wingo <wingo@igalia.com>
8301 * guile/scm-arch.c (arscm_mark_arch_smob):
8302 * guile/scm-block.c (bkscm_mark_block_smob)
8303 (bkscm_mark_block_syms_progress_smob):
8304 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8305 * guile/scm-exception.c (exscm_mark_exception_smob):
8306 * guile/scm-frame.c (frscm_mark_frame_smob):
8307 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8308 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8309 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8310 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8311 (ppscm_mark_pretty_printer_worker_smob):
8312 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8313 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8314 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8315 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8317 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8320 2014-05-26 Andy Wingo <wingo@igalia.com>
8321 Doug Evans <xdje42@gmail.com>
8323 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8324 empty_base_class. All uses updated.
8325 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8326 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8328 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8329 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8330 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8331 (gdbscm_gsmob_has_property_p, add_property_name)
8332 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8333 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8334 (gdb-object-has-property?, gdb-object-properties): Remove.
8335 (gdb-object-kind): Renamed from gsmob-kind.
8337 2014-05-26 Andy Wingo <wingo@igalia.com>
8339 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8340 * configure: Regenerate.
8342 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8344 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8346 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8348 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8349 (replay_memory_access_read_only, replay_memory_access_read_write)
8350 (replay_memory_access_types, replay_memory_access)
8351 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8352 (cmd_set_record_btrace, cmd_show_record_btrace)
8353 (cmd_show_replay_memory_access): New.
8354 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8355 (record_btrace_remove_breakpoint): Replace
8356 record_btrace_allow_memory_access with replay_memory_access.
8357 (_initialize_record_btrace): Add commands.
8358 * NEWS: Announce it.
8360 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8362 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8364 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8366 * MAINTAINERS (Write After Approval): Move self back from
8369 2014-05-22 Pedro Alves <palves@redhat.com>
8371 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8372 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8373 (disable_randomization, enum exec_direction_kind)
8374 (execution_direction, stop_registers, start_remote)
8375 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8376 (wait_for_inferior, normal_stop, get_last_target_status)
8377 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8378 (insert_step_resume_breakpoint_at_sal)
8379 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8380 (set_step_info, print_stop_event, signal_stop_state)
8381 (signal_print_state, signal_pass_state, signal_stop_update)
8382 (signal_print_update, signal_pass_update)
8383 (update_signals_program_target, clear_exit_convenience_vars)
8384 (displaced_step_dump_bytes, update_observer_mode)
8385 (signal_catch_update, gdb_signal_from_command): Move
8387 * infrun.h: ... to this new file.
8388 * amd64-tdep.c: Include infrun.h.
8389 * annotate.c: Include infrun.h.
8390 * arch-utils.c: Include infrun.h.
8391 * arm-linux-tdep.c: Include infrun.h.
8392 * arm-tdep.c: Include infrun.h.
8393 * break-catch-sig.c: Include infrun.h.
8394 * breakpoint.c: Include infrun.h.
8395 * common/agent.c: Include infrun.h instead of inferior.h.
8396 * corelow.c: Include infrun.h.
8397 * event-top.c: Include infrun.h.
8398 * go32-nat.c: Include infrun.h.
8399 * i386-tdep.c: Include infrun.h.
8400 * inf-loop.c: Include infrun.h.
8401 * infcall.c: Include infrun.h.
8402 * infcmd.c: Include infrun.h.
8403 * infrun.c: Include infrun.h.
8404 * linux-fork.c: Include infrun.h.
8405 * linux-nat.c: Include infrun.h.
8406 * linux-thread-db.c: Include infrun.h.
8407 * monitor.c: Include infrun.h.
8408 * nto-tdep.c: Include infrun.h.
8409 * procfs.c: Include infrun.h.
8410 * record-btrace.c: Include infrun.h.
8411 * record-full.c: Include infrun.h.
8412 * remote-m32r-sdi.c: Include infrun.h.
8413 * remote-mips.c: Include infrun.h.
8414 * remote-notif.c: Include infrun.h.
8415 * remote-sim.c: Include infrun.h.
8416 * remote.c: Include infrun.h.
8417 * reverse.c: Include infrun.h.
8418 * rs6000-tdep.c: Include infrun.h.
8419 * s390-linux-tdep.c: Include infrun.h.
8420 * solib-irix.c: Include infrun.h.
8421 * solib-osf.c: Include infrun.h.
8422 * solib-svr4.c: Include infrun.h.
8423 * target.c: Include infrun.h.
8424 * top.c: Include infrun.h.
8425 * windows-nat.c: Include infrun.h.
8426 * mi/mi-interp.c: Include infrun.h.
8427 * mi/mi-main.c: Include infrun.h.
8428 * python/py-threadevent.c: Include infrun.h.
8430 2014-05-22 Pedro Alves <palves@redhat.com>
8432 * infrun.c (handle_inferior_event): Store the exit code for
8433 --return-child-result here, instead of ...
8434 (print_exited_reason): ... here.
8436 2014-05-21 Pedro Alves <palves@redhat.com>
8439 * gdbthread.h (struct thread_control_state): New field
8441 * infrun.c (follow_fork): Copy the new thread control field to the
8443 (clear_proceed_status_thread): Clear the new thread control field.
8444 (proceed): Set the new thread control field.
8445 * interps.h (command_interp): Declare.
8446 * interps.c (command_interpreter): New global.
8447 (command_interp): New function.
8448 (interp_exec): Set `command_interpreter' while here.
8449 * cli-out.c (cli_uiout_dtor): New function.
8450 (cli_ui_out_impl): Install it.
8451 * mi/mi-interp.c: Include cli-out.h.
8452 (mi_cmd_interpreter_exec): Add comment.
8453 (restore_current_uiout_cleanup): New function.
8454 (ui_out_free_cleanup): New function.
8455 (mi_on_normal_stop): If finishing an execution command started by
8456 a CLI command, or any kind of breakpoint-like event triggered,
8457 print the stop event to the output (CLI) stream.
8458 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8460 2014-05-21 Pedro Alves <palves@redhat.com>
8462 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8463 current source line having changed.
8464 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8465 * infrun.c (normal_stop): Adjust call to
8466 set_current_sal_from_frame.
8467 * source.c (clear_lines_listed_range): New function.
8468 (set_current_source_symtab_and_line, identify_source_line): Clear
8469 the lines listed range.
8470 (line_info): Handle the first "info line" after the current source
8471 line having changed.
8472 * stack.c (print_stack_frame): Remove center handling.
8473 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8476 2014-05-21 Pedro Alves <palves@redhat.com>
8478 * inf-child.c (inf_child_mourn_inferior): New function.
8479 * inf-child.h (inf_child_mourn_inferior): New declaration.
8480 * darwin-nat.c (darwin_mourn_inferior): Use
8481 inf_child_mourn_inferior.
8482 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8483 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8484 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8485 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8486 * windows-nat.c (windows_mourn_inferior): Likewise.
8488 2014-05-21 Doug Evans <xdje42@gmail.com>
8490 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8492 2014-05-21 Doug Evans <xdje42@gmail.com>
8494 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8495 (gdbscm_out_of_range_error): Ditto.
8496 (gdbscm_memory_error): Ditto.
8497 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8498 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8499 (gdbscm_out_of_range_error): Update.
8500 (gdbscm_memory_error): Update.
8501 (gdbscm_scm_to_target_string_unsafe): Delete.
8503 2014-05-21 Pedro Alves <palves@redhat.com>
8505 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8507 (inf_child_open_target): New function.
8508 (inf_child_open): Use inf_child_open_target to push the target
8509 instead of erroring out.
8510 (inf_child_disconnect, inf_child_close)
8511 (inf_child_maybe_unpush_target): New functions.
8512 (inf_child_target): Install inf_child_disconnect and
8513 inf_child_close. Store a pointer to the returned object.
8514 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8516 * target.c (auto_connect_native_target): New global.
8517 (show_default_run_target): New function.
8518 (find_default_run_target): Return NULL if automatically connecting
8519 to the native target is disabled.
8520 (_initialize_target): Install set/show auto-connect-native-target.
8521 * NEWS: Mention "set auto-connect-native-target", and "target
8523 * linux-nat.c (super_close): New global.
8524 (linux_nat_close): Call super_close.
8525 (linux_nat_add_target): Store a pointer to the base class's
8527 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8528 inf_child_maybe_unpush.
8529 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8531 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8532 the inferior. Use inf_child_maybe_unpush_target.
8533 (inf_ttrace_attach): Don't push the target if it is already
8535 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8536 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8537 after mourning the inferior. Use inf_child_maybe_unpush_target.
8538 (darwin_attach_pid): Don't push the target if it is already
8540 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8541 mourning the inferior. Use inf_child_maybe_unpush_target.
8542 (gnu_detach): Use inf_child_maybe_unpush_target.
8543 * go32-nat.c (go32_create_inferior): Don't push the target if it
8545 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8546 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8547 (procfs_open): Rename to ...
8548 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8549 comments. Can target_preopen before changing node. Call
8550 inf_child_open_target to push the target explicitly.
8551 (procfs_attach): Don't push the target if it is already pushed.
8552 (procfs_detach): Use inf_child_maybe_unpush_target.
8553 (procfs_create_inferior): Don't push the target if it is already
8555 (nto_native_ops): New global.
8556 (procfs_open): Reimplement.
8557 (procfs_native_open): New function.
8558 (init_procfs_targets): Install procfs_native_open as to_open of
8559 "target native". Store a pointer to the "native" target in
8561 * procfs.c (procfs_attach): Don't push the target if it is already
8563 (procfs_detach): Use inf_child_maybe_unpush_target.
8564 (procfs_mourn_inferior): Only unpush the target after mourning the
8565 inferior. Use inf_child_maybe_unpush_target.
8566 (procfs_init_inferior): Don't push the target if it is already
8568 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8569 if it is already pushed.
8571 2014-05-21 Pedro Alves <palves@redhat.com>
8573 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8574 and "procfs" targets are now called "native" instead.
8576 2014-05-21 Pedro Alves <palves@redhat.com>
8578 * go32-nat.c (go32_open): Delete.
8579 (go32_target): Don't override the to_open method.
8581 2014-05-21 Pedro Alves <palves@redhat.com>
8583 * nto-procfs.c (procfs_can_run): New function.
8584 (nto_procfs_ops): New global.
8585 (init_procfs_targets): New, based on procfs_target. Install
8586 "target native" in addition to "target procfs".
8587 (_initialize_procfs): Call init_procfs_targets instead of adding
8590 2014-05-21 Pedro Alves <palves@redhat.com>
8592 * windows-nat.c (windows_target): Don't override to_shortname,
8593 to_longname or to_doc.
8595 2014-05-21 Pedro Alves <palves@redhat.com>
8597 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8600 2014-05-21 Pedro Alves <palves@redhat.com>
8602 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8603 to_shortname, to_longname or to_doc.
8605 2014-05-21 Pedro Alves <palves@redhat.com>
8607 * go32-nat.c (go32_target): Don't override to_shortname,
8608 to_longname or to_doc.
8610 2014-05-21 Pedro Alves <palves@redhat.com>
8612 * inf-child.c (inf_child_open): Remove mention of "child".
8613 (inf_child_target): Rename target to "native" instead of "child".
8615 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8617 * Makefile.in (SFILES): Delete "regset.c".
8618 (COMMON_OBS): Delete "regset.o".
8620 * regset.h (regset_alloc): Delete prototype.
8622 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8624 * sparc-linux-tdep.c (sparc32_linux_gregset)
8625 (sparc32_linux_fpregset): New static regset structures.
8626 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8627 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8629 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8630 (sparc64_linux_fpregset): New static regset structures.
8631 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8632 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8633 New static regset structures.
8634 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8635 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8636 New static regset structures.
8637 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8638 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8639 New static regset structures.
8640 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8641 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8642 New static regset structures.
8643 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8645 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8647 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8648 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8649 register maps ("regmaps") from "*regset" to "*regmap". Do this
8650 for all regmap types and variables.
8651 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8652 (sparc32_linux_supply_core_gregset)
8653 (sparc32_linux_collect_core_gregset)
8654 (sparc32_linux_supply_core_fpregset)
8655 (sparc32_linux_collect_core_fpregset): Likewise.
8656 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8657 (sparc_gregmap, sparc_fpregmap): ... these.
8658 (sparc_supply_gregset, sparc_collect_gregset)
8659 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8660 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8661 (_initialize_sparc_nat): Rename regmaps.
8662 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8663 (sparc_gregmap, sparc_fpregmap): ... these.
8664 (sparc_supply_gregset, sparc_collect_gregset)
8665 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8666 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8668 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8669 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8671 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8673 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8674 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8675 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8677 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8678 (sparc32_bsd_fpregset): Rename to...
8679 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8680 (sparc32_bsd_fpregmap): ... these.
8681 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8682 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8683 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8684 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8685 (struct sparc_gregmap, struct sparc_fpregmap)
8686 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8687 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8688 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8689 (sparc32_supply_regset, sparc32_collect_gregset)
8690 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8692 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8693 (sparc64_linux_ptrace_gregmap): ... this.
8694 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8695 (_initialize_sparc64_linux_nat): Rename regmaps.
8696 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8697 (sparc64_linux_core_gregmap): ... this.
8698 (sparc64_linux_supply_core_gregset)
8699 (sparc64_linux_collect_core_gregset)
8700 (sparc64_linux_supply_core_fpregset)
8701 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8702 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8703 (sparc64_sol2_fpregset): Rename to...
8704 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8705 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8706 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8708 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8709 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8710 (sparc64_bsd_fpregset): Rename to...
8711 (struct sparc_gregmap, sparc64_sol2_gregmap)
8712 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8713 (sparc64_bsd_fpregmap): ... these.
8714 (sparc64_supply_gregset, sparc64_collect_gregset)
8715 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8717 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8718 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8719 (sparc64fbsd_gregmap): ... this.
8720 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8721 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8723 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8724 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8725 (sparc64nbsd_collect_fpregset): Likewise.
8726 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8727 (sparc64nbsd_gregmap): ... this.
8728 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8730 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8731 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8732 (sparc64obsd_gregmap): ... this.
8733 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8735 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8736 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8737 (sparc32nbsd_gregmap): ... this.
8738 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8741 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8743 * score-tdep.c (score7_linux_gregset): New static regset
8745 (score7_linux_regset_from_core_section): Remove dynamic regset
8747 (score_gdbarch_init): Drop allocation of tdep structure.
8748 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8750 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8752 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8754 (am33_regset_from_core_section): Remove dynamic regset
8757 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8759 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8760 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8762 (mips_linux_regset_from_core_section): Remove dynamic regset
8764 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8765 'gregset64', 'fpregset', and 'fpregset64'.
8766 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8767 deleted tdep fields.
8769 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8771 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8773 (amd64_regset_from_core_section): Remove dynamic regset
8775 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8777 (amd64obsd_regset_from_core_section): Remove dynamic regset
8779 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8781 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8782 x86-common regset supply function.
8783 * i386-tdep.c (i386_collect_gregset): Make static.
8784 (i386_gregset): New global regset structure.
8785 (i386_fpregset, i386_xstateregset): New static regset structures.
8786 (i386_regset_from_core_section): Remove dynamic regset
8788 (i386_gdbarch_init): Remove initialization of tdep fields
8789 'gregset', 'fpregset', and 'xstateregset'.
8790 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8791 'fpregset', and 'xstateregset'.
8792 (i386_collect_gregset): Remove prototype.
8793 (i386_gregset): New declaration.
8794 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8796 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8799 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8801 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8802 (arm_linux_vfpregset): New static regset structures.
8803 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8805 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8806 and 'vfpregset' fields.
8808 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8810 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8811 (aarch64_linux_fpregset): New static regset structures.
8812 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8813 of regset structures.
8814 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8817 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8819 * regset.h (struct regset): Remove gdbarch field.
8820 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8821 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8822 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8824 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8825 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8826 (ppc32_linux_vsxregset): Likewise.
8827 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8828 via the regcache instead of the regset.
8829 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8830 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8831 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8832 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8835 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8837 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8838 Constify structures.
8839 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8840 (alphanbsd_aout_gregset): Likewise.
8841 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8842 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8844 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8845 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8847 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8848 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8849 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8850 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8851 * m88k-tdep.c (m88k_gregset): Likewise.
8852 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8853 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8854 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8855 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8856 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8857 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8858 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8859 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8860 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8862 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8863 * sh-tdep.h (sh_corefile_gregset): Likewise.
8864 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8865 * vax-tdep.c (vax_gregset): Likewise.
8867 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8869 Fix TLS access for -static -pthread.
8870 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8871 (try_thread_db_load_1): Initialize it.
8872 (thread_db_get_thread_local_address): Call it if LM is zero.
8873 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8874 * target.h (struct target_ops) (to_get_thread_local_address): Add
8875 load_module_addr comment.
8877 2014-05-21 Pedro Alves <palves@redhat.com>
8879 * dcache.c (dcache_read_memory_partial): If reading the cache line
8880 fails, fallback to reading just the memory the caller wanted.
8882 2014-05-20 Doug Evans <dje@google.com>
8884 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8885 instead of get_current_arch.
8887 2014-05-20 Pedro Alves <palves@redhat.com>
8889 * NEWS: Mention that compare-sections now works with all targets.
8891 * remote.c (PACKET_qCRC): New enum value.
8892 (remote_verify_memory): Don't send qCRC if the target has no
8893 execution. Use packet_support/packet_ok. If the target doesn't
8894 support the qCRC packet, fallback to a deep memory copy.
8895 (compare_sections_command): Say "target image" instead of "remote
8897 (_initialize_remote): Add PACKET_qCRC to the list of config
8898 packets that have no associated command. Extend comment.
8899 * target.c (simple_verify_memory, default_verify_memory): New
8901 * target.h (struct target_ops) <to_verify_memory>: Default to
8902 default_verify_memory.
8903 (simple_verify_memory): New declaration.
8904 * target-delegates.c: Regenerate.
8906 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8908 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8910 2014-05-20 Hui Zhu <hui@codesourcery.com>
8911 Yao Qi <yao@codesourcery.com>
8914 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8915 and change address of sp and pc.
8917 2014-05-19 Tom Tromey <tromey@redhat.com>
8919 * gdbtypes.c (rank_function): Use XNEWVEC.
8920 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8922 2014-05-19 Doug Evans <dje@google.com>
8924 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8925 build_type_unit_groups and moved closer to only caller. Remove
8926 arguments. All references updated. Remove outdated .gdb_index
8928 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8929 build_type_psymtabs_1.
8931 2014-05-19 Doug Evans <dje@google.com>
8933 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8934 n_type_unit_groups, all_type_unit_groups. All uses removed.
8935 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8936 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8937 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8938 (add_type_unit_group_to_table): Delete.
8940 2014-05-19 Doug Evans <dje@google.com>
8942 * eval.c (evaluate_subexp_standard): Add some comments.
8944 2014-05-17 Doug Evans <xdje42@gmail.com>
8946 * progspace.c (remove_program_space): Delete, unused.
8947 * progspace.h (remove_program_space): Ditto.
8949 2014-05-17 Doug Evans <xdje42@gmail.com>
8951 * inferior.c (prune_inferiors): Fix comment.
8952 (remove_inferior_command): Call prune_program_spaces.
8954 2014-05-16 Doug Evans <dje@google.com>
8956 New command line option -D.
8958 * main.c (set_gdb_data_directory): New function.
8959 (captured_main): Recognize -D. Flag error for --data-directory "".
8960 Call set_gdb_data_directory.
8961 (print_gdb_help): Print --data-directory, -D.
8962 * main.h (set_gdb_data_directory): Declare.
8963 * top.c (staged_gdb_datadir): New static global.
8964 (set_gdb_datadir): Call set_gdb_data_directory
8965 (show_gdb_datadir): New function.
8966 (init_main): Update init of data-directory parameter.
8968 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8970 Import the "dirfd" gnulib module.
8971 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8972 * gnulib/aclocal.m4: Update.
8973 * gnulib/config.in: Update.
8974 * gnulib/configure: Update.
8975 * gnulib/import/Makefile.am: Update.
8976 * gnulib/import/Makefile.in: Update.
8977 * gnulib/import/dirfd.c: New.
8978 * gnulib/import/m4/dirfd.m4: New.
8979 * gnulib/import/m4/gnulib-cache.m4: Update.
8980 * gnulib/import/m4/gnulib-comp.m4: Update.
8982 2014-05-16 Pierre Muller <muller@sourceware.org>
8983 Yao Qi <yao@codesourcery.com>
8985 * valprint.c (print_wchar): Move the code on checking whether
8986 W is a printable wide char to the default branch of switch
8987 statement below. Call wchar_printable instead of gdb_iswprint.
8989 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8991 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8992 ldr.w and ldrd instructions.
8994 2014-05-15 Doug Evans <dje@google.com>
8996 * dwarf2read.c (read_structure_type): Delete outdated comments.
8998 2014-05-14 Tom Tromey <tromey@redhat.com>
9000 * macrocmd.c (print_macro_definition): Reindent.
9002 2014-05-13 Doug Evans <xdje42@gmail.com>
9004 * python/py-cmd.c (cmdpy_completer): Add comment.
9005 (completers): Make const.
9007 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
9009 * infrun.c (resume): Remove should_resume (unused). Move up
9010 declaration of resume_ptid.
9012 2014-05-13 Tom Tromey <tromey@redhat.com>
9014 * language.h (unop_type_check): Remove.
9015 (binop_type_check): Don't declare.
9017 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
9019 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
9020 call to regcache_raw_collect.
9022 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9024 * mi/mi-console.c (mi_console_raw_packet): Use the value from
9025 mi_console->quote as the quoting character.
9027 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9029 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
9031 2014-04-29 Tom Tromey <tromey@redhat.com>
9033 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
9034 "show debug varobj".
9036 2014-05-07 Kyle McMartin <kyle@redhat.com>
9038 Pushed by Joel Brobecker <brobecker@adacore.com>.
9039 * aarch64-tdep.c (aarch64_software_single_step): New function.
9040 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
9041 with aarch64_software_single_step.
9043 2014-05-05 Joel Brobecker <brobecker@adacore.com>
9047 2014-05-05 Keith Seitz <keiths@redhat.com>
9049 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
9050 variable or history value is successfully parsed.
9052 2014-05-05 Yao Qi <yao@codesourcery.com>
9053 Pedro Alves <palves@redhat.com>
9055 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
9056 address of blocks that intersects the requested range. Trim
9057 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
9059 * ctf.c (ctf_xfer_partial): Likewise.
9061 2014-05-05 Yao Qi <yao@codesourcery.com>
9063 * printcmd.c (display_command): Remove the check to
9064 target_has_execution.
9066 2014-05-03 Mark Kettenis <kettenis@gnu.org>
9068 * ppcobsd-nat.c: Include "obsd-nat.h".
9069 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
9071 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9073 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9075 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
9076 and 16-bit signed and unsigned arguments. Update comment.
9077 (stap_parse_probe_arguments): Extend code to handle such
9078 arguments. Use warning instead of complaint to notify about
9079 unrecognized bitness.
9081 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9083 PR breakpoints/16889
9084 * stap-probe.c (stap_parse_probe_arguments): Simplify
9085 check for non-prefixed probes (i.e., probes whose
9086 arguments do not start with "N@"). Always set the
9087 argument type to a sane value.
9089 2014-05-01 David Taylor <dtaylor@emc.com>
9091 * remote.c (compare_sections_command): Add -r option to compare
9092 all loadable read-only sections.
9094 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
9096 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
9097 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
9099 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
9100 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
9101 Remove unused CORE_ADDR argument. Update all callers.
9103 2014-04-29 Pedro Alves <palves@redhat.com>
9105 * remote.c (struct packet_config) <detect>: Extend comment.
9106 (add_packet_config_cmd): Don't set the config's detect or support
9108 (init_all_packet_configs): Also initialize the config's 'detect'
9110 (reset_all_packet_configs_support): New function.
9111 (remote_open_1): Call reset_all_packet_configs_support instead of
9112 init_all_packet_configs.
9113 (_initialize_remote): Initialize all packet configs. Assert that
9114 all packets have an associated command, except a few known
9117 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9119 * dwarf2read.c (read_subrange_type): Handle dynamic
9120 DW_AT_lower_bound attributes.
9122 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9124 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
9125 dynamic bounds before computing its upper bound.
9126 (ada_discrete_type_low_bound): Same as above with the lower bound.
9128 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9130 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9131 range types. Adjust the array handling implementation to
9132 take advantage of this change.
9133 (resolve_dynamic_range): New function, mostly extracted from
9134 resolve_dynamic_bounds.
9135 (resolve_dynamic_array): New function, mostly extracted from
9136 resolve_dynamic_bounds.
9137 (resolve_dynamic_bounds): Delete.
9138 (resolve_dynamic_type): Reimplement. Add handling of
9139 TYPE_CODE_RANGE types.
9141 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9143 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9144 handling of parallel ___XA types.
9146 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9148 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9149 unnecessary second call to static_unwrap_type.
9151 2014-04-27 Hui Zhu <hui@codesourcery.com>
9153 * stack.c (print_frame_info): Call do_gdb_disassembly with
9154 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9156 2014-04-26 Doug Evans <xdje42@gmail.com>
9158 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9160 2014-04-25 Pedro Alves <palves@redhat.com>
9163 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9164 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9165 and newline from built string.
9166 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9167 (linux_ptrace_attach_fail_reason): ... this.
9168 * linux-nat.c (linux_nat_attach): Adjust to use
9169 linux_ptrace_attach_fail_reason.
9171 2014-04-25 Pedro Alves <palves@redhat.com>
9173 * remote.c (struct remote_state): Remove multi_process_aware,
9174 non_stop_aware, cond_tracepoints, cond_breakpoints,
9175 breakpoint_commands, fast_tracepoints, static_tracepoints,
9176 install_in_trace, disconnected_tracing,
9177 enable_disable_tracepoints, string_tracing, and
9178 augmented_libraries_svr4_read fields.
9179 (remote_multi_process_p): Move further below in the file.
9180 (struct packet_config): Add comments.
9181 (update_packet_config): Delete function.
9182 (show_packet_config_cmd): Use packet_config_support.
9183 (add_packet_config_cmd): Use NULL as set callback.
9184 (packet_ok): "set remote foo-packet"-style commands no longer
9185 change config->supported -- adjust.
9186 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9187 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9188 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9189 (PACKET_QNonStop, PACKET_multiprocess_feature)
9190 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9191 (PACKET_DisconnectedTracing_feature)
9192 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9193 (set_remote_protocol_packet_cmd): Delete function.
9194 (packet_config_support, packet_support): New functions.
9195 (set_remote_protocol_Z_packet_cmd): Don't call
9196 update_packet_config.
9197 (remote_query_attached, remote_pass_signals)
9198 (remote_program_signals, remote_threads_info)
9199 (remote_threads_extra_info, remote_start_remote): Use
9201 (remote_start_remote): Use packet_config_support and
9203 (init_all_packet_configs): Set all packets to unknown support,
9204 instead of calling update_packet_config.
9205 (remote_check_symbols): Use packet_support.
9206 (remote_supported_packet): Unconditionally set the packet config's
9208 (remote_multi_process_feature, remote_non_stop_feature)
9209 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9210 (remote_breakpoint_commands_feature)
9211 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9212 (remote_install_in_trace_feature)
9213 (remote_disconnected_tracing_feature)
9214 (remote_enable_disable_tracepoint_feature)
9215 (remote_string_tracing_feature)
9216 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9217 (remote_protocol_features): Adjust to use remote_supported_packet
9218 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9219 "ConditionalTracepoints", "ConditionalBreakpoints",
9220 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9221 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9222 "EnableDisableTracepoints", and "tracenz".
9223 (remote_query_supported): Use packet_support.
9224 (remote_open_1): Adjust.
9225 (extended_remote_attach_1): Use packet_support. Switch on the
9226 result of packet_ok instead of checking whether the packet ended
9228 (remote_vcont_resume): Use packet_support.
9229 (remote_resume, remote_stop_ns, fetch_register_using_p)
9230 (remote_prepare_to_store, store_register_using_P)
9231 (check_binary_download, remote_write_bytes): Use packet_support.
9232 (remote_vkill): Use packet_support. Switch on the result of
9233 packet_ok instead of checking whether the packet ended up
9235 (extended_remote_supports_disable_randomization): Use
9237 (extended_remote_run): Switch on the result of packet_ok instead
9238 of checking whether the packet ended up disabled.
9239 (remote_insert_breakpoint, remote_remove_breakpoint)
9240 (remote_insert_watchpoint, remote_remove_watchpoint)
9241 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9243 (remote_search_memory): Use packet_config_support.
9244 (remote_get_thread_local_address, remote_get_tib_address)
9245 (remote_hostio_send_command, remote_can_execute_reverse): Use
9247 (remote_supports_cond_tracepoints)
9248 (remote_supports_cond_breakpoints)
9249 (remote_supports_fast_tracepoints)
9250 (remote_supports_static_tracepoints)
9251 (remote_supports_install_in_trace)
9252 (remote_supports_enable_disable_tracepoint)
9253 (remote_supports_string_tracing)
9254 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9255 the packet config says the feature is enabled or disabled.
9256 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9257 (remote_get_trace_status): Use packet_support.
9258 (remote_set_disconnected_tracing): Adjust to check whether the
9259 feature is enabled with packet_support.
9260 (remote_set_trace_buffer_size, remote_use_agent)
9261 (remote_can_use_agent, remote_supports_btrace): Use
9263 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9264 Use packet_config_support.
9265 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9266 the packet config says the feature is enabled or disabled.
9267 (set_range_stepping): Use packet_support.
9269 2014-04-25 Tom Tromey <tromey@redhat.com>
9271 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9274 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9276 * NEWS: Mention support for C99 variable length arrays.
9278 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9280 * ada-lang.c (standard_exc): Expand introductory comment.
9282 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9283 Walfred Tedeschi <walfred.tedeschi@intel.com>
9285 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9287 (amd64_linux_read_description): Add code to handle AVX512 xstate
9288 mask and return respective tdesc.
9289 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9290 and features/i386/x32-avx512-linux.c.
9291 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9292 (amd64_linux_core_read_description): Add code to handle AVX512
9293 xstate mask and return respective tdesc.
9294 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9295 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9297 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9298 (tdesc_amd64_avx512_linux): New prototype.
9299 (tdesc_x32_avx512_linux): Likewise.
9300 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9301 features/i386/x32-avx512.c.
9302 (amd64_ymm_avx512_names): New register names for pseudo
9304 (amd64_ymmh_avx512_names): New register names for raw registers
9306 (amd64_k_names): New register names for K registers.
9307 (amd64_zmmh_names): New register names for ZMM raw registers.
9308 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9309 (amd64_xmm_avx512_names): New register names for XMM16-31
9311 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9313 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9314 if feature is present.
9315 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9316 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9317 (AMD64_NUM_REGS): Adjust to new number of registers.
9318 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9319 registers supplied via XSTATE by AVX512 registers.
9320 (i386_linux_read_description): Add case for AVX512.
9321 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9322 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9323 (i386_linux_core_read_description): Add case for AVX512.
9324 (i386_linux_init_abi): Install supported register note section
9326 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9328 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9329 registers to be number of zmm7h + 1.
9330 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9331 * i386-tdep.c: Include features/i386/i386-avx512.c.
9332 (i386_zmm_names): Add ZMM pseudo register names array.
9333 (i386_zmmh_names): Add ZMM raw register names array.
9334 (i386_k_names): Add K raw register names array.
9335 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9336 registers. AVX512 has 16 more ZMM registers than there are YMM
9338 (i386_zmmh_regnum_p): Add function to look up register number of
9340 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9341 (i386_k_regnum_p): Likewise for K raw registers.
9342 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9343 registers added by AVX512.
9344 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9345 registers added by AVX512.
9346 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9348 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9349 (i386_pseudo_register_name): Add ZMM pseudo registers.
9350 (i386_zmm_type): Construct and return vector registers type for ZMM
9352 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9353 ZMM0-31 pseudo registers and K registers.
9354 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9355 and YMM16-31 registers from register cache.
9356 (i386_pseudo_register_write): Add code to write K, ZMM and
9358 (i386_register_reggroup_p): Add code to include/exclude AVX512
9359 registers in/from respective register groups.
9360 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9361 registers if feature is present in xcr0.
9362 (i386_gdbarch_init): Add code to initialize AVX512 feature
9363 variables in tdep structure, wire in pseudo registers and call
9364 initialize_tdesc_i386_avx512.
9365 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9367 (i386_regnum): Add AVX512 registers.
9368 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9369 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9370 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9371 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9373 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9374 (i386_ymm_avx512_regnum_p): Likewise.
9375 (i386_k_regnum_p): Likewise.
9376 (i386_zmm_regnum_p): Likewise.
9377 (i386_zmmh_regnum_p): Likewise.
9378 * i387-tdep.c : Update year in copyright notice.
9379 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9381 (XSAVE_YMM_AVX512_ADDR): New macro.
9382 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9384 (XSAVE_XMM_AVX512_ADDR): New macro.
9385 (xsave_avx512_k_offset): New table for K register offsets in
9387 (XSAVE_AVX512_K_ADDR): New macro.
9388 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9390 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9391 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9393 (i387_collect_xsave): Add code to collect AVX512 registers from
9395 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9396 of XMM16-31 registers.
9397 (I387_NUM_K_REGS): New define for number of K registers.
9398 (I387_K0_REGNUM): New define for K0 register number.
9399 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9400 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9401 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9403 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9404 (I387_XMM16_REGNUM): New define for XMM16 register number.
9405 (I387_YMM0_REGNUM): New define for YMM0 register number.
9406 (I387_KEND_REGNUM): New define for last K register number.
9407 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9408 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9410 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9412 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9414 * features/Makefile: Add AVX512 related files.
9415 * features/i386/32bit-avx512.xml: New file.
9416 * features/i386/64bit-avx512.xml: Likewise.
9417 * features/i386/amd64-avx512-linux.c: Likewise.
9418 * features/i386/amd64-avx512-linux.xml: Likewise.
9419 * features/i386/amd64-avx512.c: Likewise.
9420 * features/i386/amd64-avx512.xml: Likewise.
9421 * features/i386/i386-avx512-linux.c: Likewise.
9422 * features/i386/i386-avx512-linux.xml: Likewise.
9423 * features/i386/i386-avx512.c: Likewise.
9424 * features/i386/i386-avx512.xml: Likewise.
9425 * features/i386/x32-avx512-linux.c: Likewise.
9426 * features/i386/x32-avx512-linux.xml: Likewise.
9427 * features/i386/x32-avx512.c: Likewise.
9428 * features/i386/x32-avx512.xml: Likewise.
9429 * regformats/i386/amd64-avx512-linux.dat: New file.
9430 * regformats/i386/amd64-avx512.dat: Likewise.
9431 * regformats/i386/i386-avx512-linux.dat: Likewise.
9432 * regformats/i386/i386-avx512.dat: Likewise.
9433 * regformats/i386/x32-avx512-linux.dat: Likewise.
9434 * regformats/i386/x32-avx512.dat: Likewise.
9435 * NEWS: Add note about new support for AVX512.
9438 2014-04-23 Pedro Alves <palves@redhat.com>
9440 * breakpoint.c (insert_bp_location): Tolerate errors if the
9441 breakpoint is set in a user-loaded objfile.
9442 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9443 location is marked shlib_disabled. If the breakpoint is set in a
9444 user-loaded objfile is a GDB-side memory breakpoint, validate it
9445 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9446 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9448 * mem-break.c (memory_validate_breakpoint): New function.
9449 * objfiles.c (userloaded_objfile_contains_address_p): New
9451 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9452 * target.h (memory_validate_breakpoint): New declaration.
9454 2014-04-23 Pedro Alves <palves@redhat.com>
9456 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9457 the breakpoint is set in a shared library, only suppress
9458 errors for software breakpoints, not hardware breakpoints.
9460 2014-04-22 Pedro Alves <palves@redhat.com>
9462 * infrun.c (schedlock_applies): New function, factored out from
9463 find_thread_needs_step_over.
9464 (find_thread_needs_step_over): Use it.
9465 (switch_back_to_stepped_thread): Always clear trap_expected if the
9466 step over is finished. Return early if scheduler locking applies.
9467 Look for the stepping thread and a potential step-over thread with
9469 (currently_stepping_or_nexting_callback): Delete.
9471 2014-04-22 Nick Clifton <nickc@redhat.com>
9473 * NEWS: Mention that ARM sim now supports tracing.
9475 2014-04-22 Yao Qi <yao@codesourcery.com>
9477 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9479 * tracefile.c (tracefile_fetch_registers): ... it. New
9481 * tracefile.h (tracefile_fetch_registers): Declare.
9482 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9483 tracefile_fetch_registers.
9485 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9488 * windows-nat.c (thread_rec): Don't display a warning when
9489 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9490 fails for any reason, set th->suspended to -1, so that we don't
9491 try to resume such a thread. Also, don't return NULL in these
9492 cases, to avoid completely ruin the session due to "PC register is
9493 not available" error.
9494 (do_windows_fetch_inferior_registers): Check errors in
9495 GetThreadContext call.
9496 (windows_continue): Accept an additional argument KILLED; if not
9497 zero, ignore errors in the SetThreadContext call, since the
9498 inferior was killed and is shutting down.
9499 (windows_resume, get_windows_debug_event)
9500 (windows_create_inferior, windows_mourn_inferior)
9501 (windows_kill_inferior): All callers of windows_continue changed
9502 to adjust to its new calling sequence.
9504 2014-04-19 Yao Qi <yao@codesourcery.com>
9506 * ctf.c (ctf_open): Call post_create_inferior.
9508 2014-04-19 Yao Qi <yao@codesourcery.com>
9510 * ctf.c (handle_id): New static variable.
9511 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9512 value. Get the declaration of event "register" and get length
9513 of field "contents".
9515 2014-04-19 Yao Qi <yao@codesourcery.com>
9517 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9519 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9521 * valops.c (oload_method_static): Remove unnecessary argument
9522 METHOD. Update all callers.
9524 2014-04-18 Pedro alves <palves@redhat.com>
9525 Tom Tromey <tromey@redhat.com>
9528 * frame.c (get_prev_frame_1): Rename to ...
9529 (get_prev_frame_always): ... this, and make extern. Adjust.
9530 (skip_artificial_frames): Use get_prev_frame_always.
9531 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9532 (get_frame_unwind_stop_reason): Adjust to rename.
9533 * frame.h (get_prev_frame_always): Declare.
9534 * inline-frame.c: Include frame.h.
9535 (inline_frame_this_id): Use get_prev_frame_always.
9537 2014-04-18 Tristan Gingold <gingold@adacore.com>
9539 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9540 code by using bfd_mach_o_get_base_address.
9542 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9544 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9545 (spu_ax_pseudo_register_collect): New function.
9546 (spu_ax_pseudo_register_push_stack): Likewise.
9547 (spu_dwarf_reg_to_regnum): Likewise.
9548 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9550 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9552 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9553 Replace FRAME argument with FRAME_ID.
9554 * gdbarch.c, gdbarch.h: Regenerate.
9555 * findvar.c (default_value_from_register): Add GDBARCH argument;
9556 replace FRAME by FRAME_ID. No longer call get_frame_id.
9557 (value_from_register): Update call to gdbarch_value_from_register.
9558 * value.h (default_value_from_register): Update prototype.
9559 * s390-linux-tdep.c (s390_value_from_register): Update interface
9560 and call to default_value_from_register.
9561 * spu-tdep.c (spu_value_from_register): Likewise.
9563 * findvar.c (address_from_register): Remove TYPE argument.
9564 Do not call value_from_register; use gdbarch_value_from_register
9565 with null_frame_id instead.
9566 * value.h (address_from_register): Update prototype.
9567 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9568 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9569 address_from_register interface change.
9571 2014-04-17 Yao Qi <yao@codesourcery.com>
9573 * gdbtypes.h: Update comments to link to types and macros'
9576 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9578 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9580 2014-04-16 Keith Seitz <keiths@redhat.com>
9583 * dwarf2read.c (skip_one_die): Check that all relative-offset
9584 sibling DIEs fall within range of the current reader's buffer.
9585 (read_partial_die): Likewise.
9587 2014-04-16 Keith Seitz <keiths@redhat.com>
9590 * cp-namespace.c (lookup_symbol_file): If the type name of
9591 `this' is NULL, return immediately.
9593 2014-04-14 Keith Seitz <keiths@redhat.com>
9596 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9597 from symbol_matches_domain in symtab.c. All local callers
9598 of symbol_matches_domain updated.
9599 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9600 search STRUCT_DOMAIN.
9601 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9602 independently. standard_lookup will do that automatically.
9603 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9604 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9605 (cp_lookup_symbol_in_namespace): Likewise.
9606 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9607 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9608 may return a STRUCT_DOMAIN match.
9609 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9610 * cp-support.c: Include language.h.
9611 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9613 * psymtab.c (match_partial_symbol): Compare the requested
9614 domain with the symbol's domain directly.
9615 (lookup_partial_symbol): Likewise.
9616 * symtab.c (lookup_symbol_in_language): Explain when/why
9617 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9618 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9619 appropriate languages.
9620 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9621 and moved to ada-lang.c
9622 (lookup_block_symbol): Explain that this function only returns
9623 symbol matching the requested DOMAIN.
9624 Compare the requested domain with the symbol's domain directly.
9625 (iterate_over_symbols): Compare the requested domain with the
9626 symbol's domain directly.
9627 * symtab.h (symbol_matches_domain): Remove.
9629 2014-04-14 Tom Tromey <tromey@redhat.com>
9632 * c-exp.y (type_aggregate_p): New function.
9633 (qualified_name, classify_inner_name): Use it.
9634 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9635 and TYPE_TARGET_TYPE of an enum type.
9636 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9638 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9639 handle TYPE_DECLARED_CLASS.
9640 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9642 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9643 * valops.c (enum_constant_from_type): New function.
9644 (value_aggregate_elt): Use it.
9645 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9648 2014-04-14 Tom Tromey <tromey@redhat.com>
9650 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9651 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9653 * value.h (value_aggregate_elt): Update.
9655 2014-04-14 Tom Tromey <tromey@redhat.com>
9657 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9659 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9661 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9662 (evaluate_subexp_standard): Pass noside argument.
9663 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9664 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9665 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9666 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9667 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9669 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9671 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9672 points to a constant blob.
9674 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9676 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9677 property and store it as the high bound and flag the range accordingly.
9678 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9679 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9680 * gdbtypes.h (enum range_flags): New enum.
9681 (struct range_bounds): Add flags member.
9683 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9685 * c-typeprint.c (c_type_print_varspec_suffix): Added
9686 check for not yet resolved high bound. If unresolved, print
9687 "variable length" string to the console instead of random
9690 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9692 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9694 (ada_template_to_fixed_record_type_1): Likewise.
9695 (ada_to_fixed_type_1): Likewise.
9696 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9697 (cp_print_value): Likewise.
9698 * d-valprint.c (dynamic_array_type): Likewise.
9699 * findvar.c (address_of_variable): Likewise.
9700 * jv-valprint.c (java_value_print): Likewise.
9701 * valops.c (value_ind): Likewise.
9702 * value.c (coerce_ref): Likewise.
9704 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9706 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9707 value and retrieve the dynamic type size.
9709 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9711 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9712 passed to sizeof is dynamic evaluate the argument to compute the length.
9714 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9715 Joel Brobecker <brobecker@adacore.com>
9717 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9718 (dwarf2_evaluate_property): New function.
9719 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9720 * dwarf2read.c (attr_to_dynamic_prop): New function.
9721 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9723 * gdbtypes.c: Include dwarf2loc.h.
9724 (is_dynamic_type): New function.
9725 (resolve_dynamic_type): New function.
9726 (resolve_dynamic_bounds): New function.
9727 (get_type_length): New function.
9728 (check_typedef): Use get_type_length to compute type length.
9729 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9730 (TYPE_LOW_BOUND_KIND): New macro.
9731 (is_dynamic_type): New function prototype.
9732 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9733 to resolve dynamic properties of the type. Update comment.
9734 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9736 2014-04-14 Richard Henderson <rth@redhat.com>
9738 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9740 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9741 Doug Evans <xdje42@gmail.com>
9743 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9744 dereference TYPE_CODE_REF values.
9746 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9748 Revert the following changes due to regressions:
9750 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9751 (dwarf2_evaluate_property): New function.
9752 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9753 * dwarf2read.c (attr_to_dynamic_prop): New function.
9754 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9756 * gdbtypes.c: Include dwarf2loc.h.
9757 (is_dynamic_type): New function.
9758 (resolve_dynamic_type): New function.
9759 (resolve_dynamic_bounds): New function.
9760 (get_type_length): New function.
9761 (check_typedef): Use get_type_length to compute type length.
9762 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9763 (TYPE_LOW_BOUND_KIND): New macro.
9764 (is_dynamic_type): New function prototype.
9765 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9766 to resolve dynamic properties of the type. Update comment.
9767 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9769 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9770 passed to sizeof is dynamic evaluate the argument to compute the length.
9772 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9773 value and retrieve the dynamic type size.
9775 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9776 (ada_template_to_fixed_record_type_1): Likewise.
9777 (ada_to_fixed_type_1): Likewise.
9778 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9779 (cp_print_value): Likewise.
9780 * d-valprint.c (dynamic_array_type): Likewise.
9781 * eval.c (evaluate_subexp_with_coercion): Likewise.
9782 * findvar.c (address_of_variable): Likewise.
9783 * jv-valprint.c (java_value_print): Likewise.
9784 * valops.c (value_ind): Likewise.
9785 * value.c (coerce_ref): Likewise.
9787 * c-typeprint.c (c_type_print_varspec_suffix): Added
9788 check for not yet resolved high bound. If unresolved, print
9789 "variable length" string to the console instead of random
9792 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9793 property and store it as the high bound and flag the range accordingly.
9794 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9795 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9796 * gdbtypes.h (enum range_flags): New enum.
9797 (struct range_bounds): Add flags member.
9799 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9800 points to a constant blob.
9802 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9803 (evaluate_subexp_standard): Pass noside argument.
9804 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9805 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9806 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9807 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9808 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9810 2014-04-11 Keith Seitz <keiths@redhat.com>
9813 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9814 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9817 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9819 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9820 (evaluate_subexp_standard): Pass noside argument.
9821 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9822 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9823 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9824 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9825 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9827 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9829 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9830 points to a constant blob.
9832 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9834 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9835 property and store it as the high bound and flag the range accordingly.
9836 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9837 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9838 * gdbtypes.h (enum range_flags): New enum.
9839 (struct range_bounds): Add flags member.
9841 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9843 * c-typeprint.c (c_type_print_varspec_suffix): Added
9844 check for not yet resolved high bound. If unresolved, print
9845 "variable length" string to the console instead of random
9848 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9850 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9851 (ada_template_to_fixed_record_type_1): Likewise.
9852 (ada_to_fixed_type_1): Likewise.
9853 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9854 (cp_print_value): Likewise.
9855 * d-valprint.c (dynamic_array_type): Likewise.
9856 * eval.c (evaluate_subexp_with_coercion): Likewise.
9857 * findvar.c (address_of_variable): Likewise.
9858 * jv-valprint.c (java_value_print): Likewise.
9859 * valops.c (value_ind): Likewise.
9860 * value.c (coerce_ref): Likewise.
9862 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9864 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9865 value and retrieve the dynamic type size.
9867 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9869 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9870 passed to sizeof is dynamic evaluate the argument to compute the length.
9872 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9874 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9875 (dwarf2_evaluate_property): New function.
9876 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9877 * dwarf2read.c (attr_to_dynamic_prop): New function.
9878 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9880 * gdbtypes.c: Include dwarf2loc.h.
9881 (is_dynamic_type): New function.
9882 (resolve_dynamic_type): New function.
9883 (resolve_dynamic_bounds): New function.
9884 (get_type_length): New function.
9885 (check_typedef): Use get_type_length to compute type length.
9886 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9887 (TYPE_LOW_BOUND_KIND): New macro.
9888 (is_dynamic_type): New function prototype.
9889 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9890 to resolve dynamic properties of the type. Update comment.
9891 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9893 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9895 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9896 declaring high/low bounds and change uses accordingly. Call
9897 create_range_type instead of create_static_range_type.
9898 * gdbtypes.c (create_range_type): New function.
9899 (create_range_type): Convert bounds into struct bound_prop and pass
9900 them to create_range_type.
9901 * gdbtypes.h (struct bound_prop): New struct.
9902 (create_range_type): New function prototype.
9903 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9904 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9905 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9907 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9909 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9911 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9912 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9913 * ada-lang.c: All uses of create_range_type updated.
9914 * coffread.c: All uses of create_range_type updated.
9915 * dwarf2read.c: All uses of create_range_type updated.
9916 * f-exp.y: All uses of create_range_type updated.
9917 * m2-valprint.c: All uses of create_range_type updated.
9918 * mdebugread.c: All uses of create_range_type updated.
9919 * stabsread.c: All uses of create_range_type updated.
9920 * valops.c: All uses of create_range_type updated.
9921 * valprint.c: All uses of create_range_type updated.
9923 2014-04-10 Pedro Alves <palves@redhat.com>
9925 * breakpoint.c (single_step_breakpoints)
9926 (single_step_gdbarch): Move up in the file.
9927 (one_breakpoint_xfer_memory): New function, factored out from ...
9928 (breakpoint_xfer_memory): ... here. Also process single-step
9931 2014-04-09 Tristan Gingold <gingold@adacore.com>
9933 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9935 (darwin_decode_exception_message): Free port only after use.
9937 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9939 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9940 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9941 when setting the size of call_length.
9943 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9945 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9946 dereference TYPE_CODE_REF values.
9948 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9950 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9951 end of warning message.
9953 2014-04-03 Doug Evans <dje@google.com>
9955 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9956 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9958 2014-04-02 Alan Modra <amodra@gmail.com>
9960 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9961 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9962 (struct symbol_file_add_from_memory_args): Add size field.
9963 (find_vdso_size): New function.
9964 (add_vsyscall_page): Attempt to find vdso size.
9966 2014-04-01 Doug Evans <dje@google.com>
9968 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9970 2014-04-01 Tristan Gingold <gingold@adacore.com>
9972 * darwin-nat.c (darwin_encode_reply): Add prototype.
9973 (darwin_decode_exception_message): Reply to unknown inferiors.
9974 (darwin_decode_message): Handle message by id. Ignore message
9975 to unknown inferior.
9976 (darwin_wait): Discard unknown messages, add debug trace.
9978 2014-03-31 Doug Evans <dje@google.com>
9980 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9983 2014-03-31 Doug Evans <dje@google.com>
9985 New option "set print symbol-loading".
9987 * solib.c (solib_read_symbols): Only print symbol loading messages
9989 (solib_add): If symbol loading is in "brief" mode, notify user
9990 symbols are being loaded.
9991 (reload_shared_libraries_1): Ditto.
9992 * symfile.c (print_symbol_loading_off): New static global.
9993 (print_symbol_loading_brief): New static global.
9994 (print_symbol_loading_full): New static global.
9995 (print_symbol_loading_enums): New static global.
9996 (print_symbol_loading): New static global.
9997 (print_symbol_loading_p): New function.
9998 (symbol_file_add_with_addrs): Only print symbol loading messages
10000 (_initialize_symfile): Register "print symbol-loading" set/show
10002 * symfile.h (print_symbol_loading_p): Declare.
10004 2014-03-30 Doug Evans <xdje42@gmail.com>
10006 * infrun.c (set_last_target_status): New function.
10007 (handle_inferior_event): Call it.
10009 2014-03-30 Doug Evans <xdje42@gmail.com>
10011 * inferior.h (enum stop_kind): Improve comment.
10013 2014-03-28 Joel Brobecker <brobecker@adacore.com>
10015 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
10016 a reference, strip the reference layer before calling
10017 the lang_ops value_has_mutated callback.
10019 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
10021 Remove some globals from our parser.
10022 * language.c (unk_lang_parser): Add "struct parser_state"
10024 * language.h (struct language_defn) <la_parser>: Likewise.
10025 * parse.c (expout, expout_size, expout_ptr): Remove variables.
10026 (initialize_expout): Add "struct parser_state" argument.
10027 Rewrite function to use the parser state.
10028 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
10029 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
10030 write_exp_elt_longcst, write_exp_elt_dblcst,
10031 write_exp_elt_decfloatcst, write_exp_elt_type,
10032 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10033 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
10034 write_dollar_variable): Likewise.
10035 (parse_exp_in_context_1): Use parser state.
10036 (insert_type_address_space): Add "struct parser_state" argument.
10038 (increase_expout_size): New function.
10039 * parser-defs.h: Forward declare "struct language_defn" and
10040 "struct parser_state".
10041 (expout, expout_size, expout_ptr): Remove extern declarations.
10042 (parse_gdbarch, parse_language): Rewrite macro declarations to
10043 accept the parser state.
10044 (struct parser_state): New struct.
10045 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
10046 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
10047 write_exp_elt_decfloatcst, write_exp_elt_type,
10048 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10049 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
10050 write_exp_msymbol, write_dollar_variable,
10051 mark_struct_expression, insert_type_address_space): Add "struct
10052 parser_state" argument.
10053 (increase_expout_size): New function.
10054 * utils.c (do_clear_parser_state): New function.
10055 (make_cleanup_clear_parser_state): Likewise.
10056 * utils.h (make_cleanup_clear_parser_state): New function
10058 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
10059 Update calls to write_exp* in order to pass the parser state.
10060 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
10061 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
10062 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10063 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
10064 * stap-probe.c (stap_parse_register_operand): Likewise.
10065 (stap_parse_single_operand): Likewise.
10066 (stap_parse_argument_1): Likewise.
10067 (stap_parse_argument): Use parser state.
10068 * stap-probe.h: Include "parser-defs.h".
10069 (struct stap_parse_info) <pstate>: New field.
10070 * c-exp.y (parse_type): Rewrite to use parser state.
10071 (yyparse): Redefine to c_parse_internal.
10072 (pstate): New global variable.
10073 (parse_number): Add "struct parser_state" argument.
10074 (write_destructor_name): Likewise.
10075 (type_exp): Update calls to write_exp* and similars in order to
10077 (exp1, exp, variable, qualified_name, space_identifier,
10078 typename, typebase): Likewise.
10079 (write_destructor_name, parse_number, lex_one_token,
10080 classify_name, classify_inner_name, c_parse): Add "struct
10081 parser_state" argument. Update function to use parser state.
10082 * c-lang.h: Forward declare "struct parser_state".
10083 (c_parse): Add "struct parser_state" argument.
10084 * ada-exp.y (parse_type): Rewrite macro to use parser state.
10085 (yyparse): Redefine macro to ada_parse_internal.
10086 (pstate): New variable.
10087 (write_int, write_object_renaming, write_var_or_type,
10088 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
10089 type_int, type_long, type_long_long, type_float, type_double,
10090 type_long_double, type_char, type_boolean, type_system_address):
10091 Add "struct parser_state" argument.
10092 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
10093 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
10094 var_or_type, aggregate, aggregate_component_list,
10095 positional_list, others, component_group,
10096 component_associations): Update calls to write_exp* and similar
10097 functions in order to use parser state.
10098 (ada_parse, write_var_from_sym, write_int,
10099 write_exp_op_with_string, write_object_renaming,
10100 find_primitive_type, write_selectors, write_ambiguous_var,
10101 write_var_or_type, write_name_assoc, type_int, type_long,
10102 type_long_long, type_float, type_double, type_long_double,
10103 type_char, type_boolean, type_system_address): Add "struct
10104 parser_state" argument. Adjust function to use parser state.
10105 * ada-lang.c (parse): Likewise.
10106 * ada-lang.h: Forward declare "struct parser_state".
10107 (ada_parse): Add "struct parser_state" argument.
10108 * ada-lex.l (processInt, processReal): Likewise. Adjust all
10109 calls to both functions.
10110 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
10112 (yyparse): Redefine macro to f_parse_internal.
10113 (pstate): New variable.
10114 (parse_number): Add "struct parser_state" argument.
10115 (type_exp, exp, subrange, typebase): Update calls to write_exp*
10116 and similars in order to use parser state.
10117 (parse_number): Adjust code to use parser state.
10119 (f_parse): New function.
10120 * f-lang.h: Forward declare "struct parser_state".
10121 (f_parse): Add "struct parser_state" argument.
10122 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
10124 (yyparse): Redefine macro for java_parse_internal.
10125 (pstate): New variable.
10126 (push_expression_name, push_expression_name, insert_exp): Add
10127 "struct parser_state" argument.
10128 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10129 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10130 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10131 PostIncrementExpression, PostDecrementExpression,
10132 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10133 UnaryExpressionNotPlusMinus, CastExpression,
10134 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10135 RelationalExpression, EqualityExpression, AndExpression,
10136 ExclusiveOrExpression, InclusiveOrExpression,
10137 ConditionalAndExpression, ConditionalOrExpression,
10138 ConditionalExpression, Assignment, LeftHandSide): Update
10139 calls to write_exp* and similars in order to use parser state.
10140 (parse_number): Ajust code to use parser state.
10142 (java_parse): New function.
10143 (push_variable): Add "struct parser_state" argument. Adjust
10144 code to user parser state.
10145 (push_fieldnames, push_qualified_expression_name,
10146 push_expression_name, insert_exp): Likewise.
10147 * jv-lang.h: Forward declare "struct parser_state".
10148 (java_parse): Add "struct parser_state" argument.
10149 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10151 (yyparse): Redefine macro to m2_parse_internal.
10152 (pstate): New variable.
10153 (type_exp, exp, fblock, variable, type): Update calls to
10154 write_exp* and similars to use parser state.
10156 (m2_parse): New function.
10157 * m2-lang.h: Forward declare "struct parser_state".
10158 (m2_parse): Add "struct parser_state" argument.
10159 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10160 * objc-lang.h: Forward declare "struct parser_state".
10161 (end_msglist): Add "struct parser_state" argument.
10162 * p-exp.y (parse_type): Rewrite macro to use parser state.
10163 (yyparse): Redefine macro to pascal_parse_internal.
10164 (pstate): New variable.
10165 (parse_number): Add "struct parser_state" argument.
10166 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10167 write_exp* and similars in order to use parser state.
10168 (parse_number, yylex): Adjust code to use parser state.
10169 (pascal_parse): New function.
10170 * p-lang.h: Forward declare "struct parser_state".
10171 (pascal_parse): Add "struct parser_state" argument.
10172 * go-exp.y (parse_type): Rewrite macro to use parser state.
10173 (yyparse): Redefine macro to go_parse_internal.
10174 (pstate): New variable.
10175 (parse_number): Add "struct parser_state" argument.
10176 (type_exp, exp1, exp, variable, type): Update calls to
10177 write_exp* and similars in order to use parser state.
10178 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10179 to use parser state.
10180 (go_parse): Likewise.
10181 * go-lang.h: Forward declare "struct parser_state".
10182 (go_parse): Add "struct parser_state" argument.
10184 2014-03-27 Doug Evans <dje@google.com>
10186 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10188 2014-03-27 Doug Evans <dje@google.com>
10190 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10191 Remove argument abbrev_section. All callers updated.
10193 2014-03-27 Doug Evans <dje@google.com>
10195 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10196 addr_base, ranges_base.
10198 2014-03-26 Keith Seitz <keiths@redhat.com>
10200 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10201 types, not VAR_DOMAIN.
10203 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10205 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10207 * features/nios2-linux.c: Regenerated.
10208 * features/nios2.c: Regenerated.
10210 2014-03-25 Pedro Alves <palves@redhat.com>
10212 * cli/cli-script.c (script_from_file): Force the interpreter to
10215 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10217 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10218 small stack allocation.
10220 2014-03-24 Tristan Gingold <gingold@adacore.com>
10222 * darwin-nat.c (exc_server): Remove unused prototype.
10223 (darwin_dump_message): Correctly display data on x86_64.
10224 (darwin_encode_reply): Fix style.
10225 Add comments and fix indentation.
10227 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10229 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10231 2014-03-22 Doug Evans <xdje42@gmail.com>
10233 * infcmd.c: Whitespace fixes.
10234 (interrupt_command): Merge two function comments into one.
10236 2014-03-22 Doug Evans <xdje42@gmail.com>
10238 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10241 2014-03-22 Yao Qi <yao@codesourcery.com>
10243 * remote.c (target_read_live_memory): Remove.
10244 (memory_xfer_live_readonly_partial): Rename it to
10245 remote_xfer_live_readonly_partial. Remove argument 'object'.
10246 All callers updated. Call remote_read_bytes_1
10247 instead of target_read_live_memory.
10248 * tracepoint.c (set_traceframe_number): Remove.
10249 (make_cleanup_restore_traceframe_number): Likewise .
10250 * tracepoint.h (set_traceframe_number): Remove declaration.
10251 (make_cleanup_restore_traceframe_number): Likewise.
10253 2014-03-22 Yao Qi <yao@codesourcery.com>
10255 * remote.c (remote_read_bytes): Move code on reading from the
10257 (remote_read_bytes_1): ... here. New function.
10259 2014-03-22 Yao Qi <yao@codesourcery.com>
10261 * ctf.c (ctf_xfer_partial): Check the return value of
10262 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10263 return TARGET_XFER_UNAVAILABLE.
10264 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10265 * target.c (target_read_live_memory): Move it to remote.c.
10266 (memory_xfer_live_readonly_partial): Likewise.
10267 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10268 * remote.c (target_read_live_memory): Moved from target.c.
10269 (memory_xfer_live_readonly_partial): Likewise.
10270 (remote_read_bytes): Factored out from
10271 memory_xfer_partial_1.
10273 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10275 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10278 2014-03-21 Pedro Alves <palves@redhat.com>
10280 * infrun.c (normal_stop): Extend comment.
10282 2014-03-21 Hui Zhu <hui@codesourcery.com>
10283 Pedro Alves <palves@redhat.com>
10285 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10287 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10288 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10289 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10291 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10293 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10294 `z' formatted output modifier.
10296 2014-03-20 Tom Tromey <tromey@redhat.com>
10297 Sergio Durigan Junior <sergiodj@redhat.com>
10299 * probe.c (parse_probes): Turn assert into an ordinary error.
10300 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10301 exceptions when parsing probes. Rearrange the code for clarity.
10303 2014-03-20 Tom Tromey <tromey@redhat.com>
10306 * top.c (execute_command): Only dispatch events if the command
10307 started the target.
10309 2014-03-20 Tom Tromey <tromey@redhat.com>
10312 * infcall.c: Include event-top.h.
10313 (run_inferior_call): Call async_disable_stdin if needed.
10315 2014-03-20 Pedro Alves <palves@redhat.com>
10317 * infrun.c (prepare_to_proceed): Delete.
10318 (thread_still_needs_step_over): New function.
10319 (find_thread_needs_step_over): New function.
10320 (proceed): If the current thread needs a step-over, set its
10321 steping_over_breakpoint flag. Adjust to use
10322 find_thread_needs_step_over instead of prepare_to_proceed.
10323 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10324 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10326 (switch_back_to_stepped_thread): Step over breakpoints of all
10327 threads not the stepping thread, before switching back to the
10330 2014-03-20 Pedro Alves <palves@redhat.com>
10332 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10334 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10335 * infrun.c (saved_singlestep_ptid)
10336 (stepping_past_singlestep_breakpoint): Delete.
10337 (resume): Remove stepping_past_singlestep_breakpoint handling.
10338 (proceed): Store the prev_pc of the stepping thread too.
10339 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10341 (enum infwait_states): Delete infwait_thread_hop_state.
10342 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10344 (handle_inferior_event): Adjust.
10345 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10346 handling and the thread-hop code. Before removing single-step
10347 breakpoints, check whether the thread hit a single-step breakpoint
10348 of another thread. If it did, the trap is not a random signal.
10349 (switch_back_to_stepped_thread): If the event thread hit a
10350 single-step breakpoint, unblock it before switching to the
10351 stepping thread. Handle the case of the stepped thread having
10353 (keep_going): Handle the case of the current thread moving past a
10354 single-step breakpoint.
10356 2014-03-20 Pedro Alves <palves@redhat.com>
10358 PR breakpoints/7143
10359 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10360 are being stepped over.
10361 (breakpoint_address_match): Make extern.
10362 * breakpoint.h (breakpoint_address_match): New declaration.
10363 * inferior.h (stepping_past_instruction_at): New declaration.
10364 * infrun.c (struct step_over_info): New type.
10365 (step_over_info): New global.
10366 (set_step_over_info, clear_step_over_info)
10367 (stepping_past_instruction_at): New functions.
10368 (handle_inferior_event): Clear the step-over info when
10369 trap_expected is cleared.
10370 (resume): Remove now stale comment.
10371 (clear_proceed_status): Clear step-over info.
10372 (proceed): Adjust step-over handling to set or clear the step-over
10373 info instead of removing all breakpoints.
10374 (handle_signal_stop): When setting up a thread-hop, don't remove
10376 (stop_stepping): Clear step-over info.
10377 (keep_going): Adjust step-over handling to set or clear step-over
10378 info and then always inserting breakpoints, instead of removing
10379 all breakpoints when stepping over one.
10381 2014-03-20 Pedro Alves <palves@redhat.com>
10383 * infrun.c (previous_inferior_ptid): Adjust comment.
10384 (deferred_step_ptid): Delete.
10385 (infrun_thread_ptid_changed, prepare_to_proceed)
10386 (init_wait_for_inferior): Adjust.
10387 (handle_signal_stop): Delete deferred_step_ptid handling.
10389 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10392 * defs.h (sync_quit_force_run): New declaration.
10393 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10394 * event-top.c (async_sigterm_handler): New declaration.
10395 (async_sigterm_token): New variable.
10396 (async_init_signals): Create also async_sigterm_token.
10397 (async_sigterm_handler): New function.
10398 (sync_quit_force_run): New variable.
10399 (handle_sigterm): Replace quit_force call by other calls.
10400 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10402 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10404 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10405 offset into SPE pseudo registers.
10407 2014-03-18 Pedro Alves <palves@redhat.com>
10410 * inferior.h (print_stop_event): Declare.
10411 * infrun.c (print_stop_event): New, factored out from ...
10412 (normal_stop): ... this.
10413 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10414 of bpstat_print/print_stack_frame.
10416 2014-03-17 Tom Tromey <tromey@redhat.com>
10418 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10420 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10422 * ada-lang.c (decode_constrained_packed_array): Perform a
10423 minimal coercion for reference with coerce_ref instead of
10426 2014-03-17 Tristan Gingold <gingold@adacore.com>
10428 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10429 (darwin_solib_create_inferior_hook): Emit a warning if version
10432 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10434 * python/py-value.c (get_field_flag): Cast flag_name argument to
10435 PyObject_GetAttrString to support Python 2.4.
10437 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10439 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10440 (Global Maintainers): Remove Jan Kratochvil.
10442 2014-03-14 Pedro Alves <palves@redhat.com>
10444 * inferior.h (terminal_ours_for_output): Rename to ...
10445 (child_terminal_ours_for_output): ... this.
10446 (terminal_save_ours): Rename to ...
10447 (child_terminal_save_ours): ... this.
10448 (terminal_ours): Rename to ...
10449 (child_terminal_ours): ... this.
10450 (terminal_inferior): Rename to ...
10451 (child_terminal_inferior): ... this.
10452 (terminal_init_inferior): Rename to ...
10453 (child_terminal_init_inferior): ... this.
10454 (terminal_init_inferior_with_pgrp): Rename to ...
10455 (child_terminal_init_inferior_with_pgrp): ... this.
10456 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10457 (child_terminal_init_with_pgrp): ... this.
10458 (terminal_save_ours): Rename to ...
10459 (child_terminal_save_ours): ... this.
10460 (terminal_init_inferior): Rename to ...
10461 (child_terminal_init): ... this. Adjust.
10462 (terminal_inferior): Rename to ...
10463 (child_terminal_inferior): ... this.
10464 (terminal_ours_for_output): Rename to ...
10465 (child_terminal_ours_for_output): ... this. Adjust.
10466 (terminal_ours): Rename to ...
10467 (child_terminal_ours): ... this.
10468 (terminal_ours_1): Rename to ...
10469 (child_terminal_ours_1): ... this. Adjust.
10470 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10471 * windows-nat.c (do_initial_windows_stuff): Adjust.
10472 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10473 (gnu_terminal_init): ... this. Adjust.
10474 (gnu_target): Adjust.
10475 * inf-child.c (inf_child_target): Adjust.
10477 2014-03-13 Doug Evans <xdje42@gmail.com>
10480 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10483 2014-03-13 Doug Evans <xdje42@gmail.com>
10485 * value.c (record_latest_value): Call release_value_or_incref
10486 instead of release_value.
10488 2014-03-13 Pedro Alves <palves@redhat.com>
10490 * procfs.c (procfs_target): Don't override to_shortname,
10491 to_longname or to_doc.
10493 2014-03-13 Pedro Alves <palves@redhat.com>
10495 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10496 Unix in user visible strings.
10498 2014-03-12 Stan Shebs <stan@codesourcery.com>
10500 * gdbtypes.h: Annotate comments for Doxygen, add a page
10501 block comment with some general info.
10503 2014-03-12 Pedro Alves <palves@redhat.com>
10505 * infcmd.c (prepare_execution_command): New function, factored out
10506 from several execution commands.
10507 (run_command_1, continue_command, step_1, jump_command)
10508 (signal_command, until_command, advance_command, finish_command)
10509 (attach_command): Use prepare_execution_command.
10511 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10513 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10514 (MAX_BPTS): Define.
10515 (MAX_WPTS): Define.
10516 (struct arm_linux_thread_points): Removed.
10517 (struct arm_linux_process_info): New.
10518 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10519 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10520 (arm_linux_find_breakpoints_by_tid): Removed.
10521 (struct arch_lwp_info): New.
10522 (arm_linux_find_process_pid): New functions.
10523 (arm_linux_add_process): New functions.
10524 (arm_linux_process_info_get): New functions.
10525 (arm_linux_forget_process): New function.
10526 (arm_linux_get_debug_reg_state): New function.
10527 (struct update_registers_data): New.
10528 (update_registers_callback): New function.
10529 (arm_linux_insert_hw_breakpoint1): Updated.
10530 (arm_linux_remove_hw_breakpoint1): Updated.
10531 (arm_linux_insert_hw_breakpoint): Updated.
10532 (arm_linux_remove_hw_breakpoint): Updated.
10533 (arm_linux_insert_watchpoint): Updated.
10534 (arm_linux_remove_watchpoint): Updated.
10535 (arm_linux_new_thread): Updated.
10536 (arm_linux_prepare_to_resume): New function.
10537 (arm_linux_new_fork): New function.
10538 (_initialize_arm_linux_nat): Updated.
10540 2014-03-12 Pedro Alves <palves@redhat.com>
10542 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10544 2014-03-12 Tom Tromey <tromey@redhat.com>
10546 * inf-child.c (return_zero): New function.
10547 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10548 * aix-thread.c (aix_thread_inferior_created): New function.
10549 (aix_thread_attach): Remove.
10550 (init_aix_thread_ops): Don't set to_attach.
10551 (_initialize_aix_thread): Register inferior_created observer.
10552 * corelow.c (init_core_ops): Don't set to_attach or
10553 to_create_inferior.
10554 * exec.c (init_exec_ops): Don't set to_attach or
10555 to_create_inferior.
10556 * infcmd.c (run_command_1): Use find_run_target. Make direct
10558 (attach_command): Use find_attach_target. Make direct target
10560 * record-btrace.c (init_record_btrace_ops): Don't set
10561 to_create_inferior.
10562 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10564 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10565 set to_create_inferior.
10566 * target.c (complete_target_initialization): Add assertion.
10567 (target_create_inferior): Remove.
10568 (find_default_attach, find_default_create_inferior): Remove.
10569 (find_attach_target, find_run_target): New functions.
10570 (find_default_is_async_p, find_default_can_async_p)
10571 (target_supports_non_stop, target_attach): Remove.
10572 (init_dummy_target): Don't set to_create_inferior or
10573 to_supports_non_stop.
10574 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10575 TARGET_DEFAULT_FUNC.
10576 <to_create_inferior>: Add comment.
10577 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10578 TARGET_DEFAULT_RETURN.
10579 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10580 (find_attach_target, find_run_target): Declare.
10581 (target_create_inferior): Remove.
10582 (target_has_execution_1): Update comment.
10583 (target_supports_non_stop): Remove.
10584 * target-delegates.c: Rebuild.
10586 2014-03-12 Pedro Alves <palves@redhat.com>
10588 * inf-child.h: Update comment to not mention Unix.
10590 2014-03-12 Pedro Alves <palves@redhat.com>
10592 * inf-child.c: Update top comment to not mention Unix. Add
10593 generic comment describing how this target is meant to be used.
10594 (inf_child_post_attach, inf_child_post_startup_inferior)
10595 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10598 2014-03-12 Pedro Alves <palves@redhat.com>
10600 * nto-procfs.c: Include inf-child.h.
10601 (procfs_ops): Delete global.
10602 (procfs_can_run): Delete method.
10603 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10604 target pointer instead of referencing procfs_ops.
10605 (procfs_prepare_to_store): Delete.
10606 (init_procfs_ops): Delete function.
10607 (procfs_target): New function, based on init_procfs_ops, but
10608 inherit inf_child_target.
10609 (_initialize_procfs): Use procfs_target.
10611 2014-03-12 Pedro Alves <palves@redhat.com>
10613 * windows-nat.c: Include inf-child.h.
10614 (windows_ops): Delete global.
10615 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10617 (init_windows_ops): Delete function.
10618 (windows_target): New function, based on init_windows_ops, but
10619 inherit inf_child_target.
10620 (_initialize_windows_nat): Use windows_target. Install x86
10621 specific target methods here.
10623 2014-03-10 Doug Evans <xdje42@gmail.com>
10625 * guile/guile.c (call_initialize_gdb_module): New function.
10626 (initialize_guile): Replace call to scm_init_guile with call to
10629 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10631 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10632 in call to TYPE_CODE macro.
10634 2014-03-10 Jerome Guitton <guitton@adacore.com>
10636 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10637 Resolve tagged types to full view.
10639 2014-03-10 Hui Zhu <hui@codesourcery.com>
10641 * target.h (target_insert_breakpoint): Remove "hardware" from its
10644 2014-03-07 Doug Evans <dje@google.com>
10646 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10648 2014-03-07 Doug Evans <dje@google.com>
10650 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10651 Remove unused local comp_dir_attr. Assert exactly one of
10652 stub_comp_unit_die, stub_comp_dir is non-NULL.
10654 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10656 * target.h (complete_target_initialization, add_target):
10659 2014-03-07 Pedro Alves <palves@redhat.com>
10661 * go32-nat.c: Include inf-child.h.
10662 (go32_ops): Delete global.
10663 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10665 (go32_create_inferior): Push the passed in target pointer instead
10666 of referencing go32_ops.
10667 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10668 (go32_target): New function, based on init_go32_ops, but inherit
10670 (_initialize_go32_nat): Use go32_target. Move parts of
10671 init_go32_ops here.
10673 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10675 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10676 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10677 SYMBOL_VALUE_ADDRESS.
10678 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10680 2014-03-06 Yao Qi <yao@codesourcery.com>
10682 * breakpoint.c (get_tracepoint_by_number): Remove argument
10683 optional_p. All callers updated. Adjust comments. Update
10685 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10687 2014-03-06 Yao Qi <yao@codesourcery.com>
10689 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10690 early if get_number returns zero. Use 'p' instead of 'args'.
10692 2014-03-06 Yao Qi <yao@codesourcery.com>
10694 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10697 2014-03-06 Yao Qi <yao@codesourcery.com>
10699 PR breakpoints/16508
10700 * tracepoint.c (check_trace_running): New function.
10701 (trace_find_command): Move code to check_trace_running and
10702 call check_trace_running.
10703 (trace_find_pc_command): Likewise.
10704 (trace_find_tracepoint_command): Likewise.
10705 (trace_find_line_command): Likewise.
10706 (trace_find_range_command): Likewise.
10707 * tracepoint.h (check_trace_running): Likewise.
10708 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10710 2014-03-06 Yao Qi <yao@codesourcery.com>
10712 * target.h (struct target_ops) <to_traceframe_info>: Use
10713 TARGET_DEFAULT_NORETURN (tcomplain ()).
10714 * target-delegates.c: Regenerated.
10716 2014-03-05 Pedro Alves <palves@redhat.com>
10719 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10720 void. Update comment.
10721 (dcache_xfer_memory): Delete.
10722 (dcache_read_memory_partial): New, based on the read bits of
10723 dcache_xfer_memory.
10724 (dcache_update): Add status parameter. Use ULONGEST for len, and
10725 adjust. Discard cache lines if the reason for the update was
10727 * dcache.h (dcache_xfer_memory): Delete declaration.
10728 (dcache_read_memory_partial): New declaration.
10729 (dcache_update): Update prototype.
10730 * target.c (raw_memory_xfer_partial): Update the dcache here.
10731 (memory_xfer_partial_1): Don't handle dcache writes here.
10733 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10735 * remote-sim.c (gdbsim_load): Add const to prog.
10737 2014-03-03 Tom Tromey <tromey@redhat.com>
10739 * elfread.c (probe_key): Change to bfd_data.
10740 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10741 now per-BFD, not per-objfile.
10742 * stap-probe.c (stap_probe_destroy): Update comment.
10743 (handle_stap_probe): Allocate on the per-BFD obstack.
10745 2014-03-03 Tom Tromey <tromey@redhat.com>
10747 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10748 * breakpoint.c (create_longjmp_master_breakpoint): Use
10750 (add_location_to_breakpoint, bkpt_probe_insert_location)
10751 (bkpt_probe_remove_location): Update.
10752 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10753 * elfread.c (elf_symfile_relocate_probe): Remove.
10754 (elf_probe_fns): Update.
10755 (insert_exception_resume_breakpoint): Change type of "probe"
10756 parameter to bound_probe.
10757 (check_exception_resume): Update.
10758 * objfiles.c (objfile_relocate1): Don't relocate probes.
10759 * probe.c (bound_probe_s): New typedef.
10760 (parse_probes): Use get_probe_address. Set sal's objfile.
10761 (find_probe_by_pc): Return a bound_probe.
10762 (collect_probes): Return a VEC(bound_probe_s).
10763 (compare_probes): Update.
10764 (gen_ui_out_table_header_info): Change type of "probes"
10766 (info_probes_for_ops): Update.
10767 (get_probe_address): New function.
10768 (probe_safe_evaluate_at_pc): Update.
10769 * probe.h (struct probe_ops) <get_probe_address>: New field.
10770 <set_semaphore, clear_semaphore>: Add objfile parameter.
10771 (struct probe) <objfile>: Remove field.
10773 <address>: Update comment.
10774 (struct bound_probe): New.
10775 (find_probe_by_pc): Return a bound_probe.
10776 (get_probe_address): Declare.
10777 * solib-svr4.c (struct probe_and_action) <address>: New field.
10778 (hash_probe_and_action, equal_probe_and_action): Update.
10779 (register_solib_event_probe): Add address parameter.
10780 (solib_event_probe_at): Update.
10781 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10783 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10784 (stap_get_probe_address): New function.
10785 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10786 (compile_probe_arg): Update.
10787 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10789 (handle_stap_probe): Don't relocate the probe.
10790 (stap_relocate): Remove.
10791 (stap_gen_info_probes_table_values): Update.
10792 (stap_probe_ops): Remove stap_relocate.
10793 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10794 (debug_sym_probe_fns): Update.
10795 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10796 * symtab.c (init_sal): Use memset.
10797 * symtab.h (struct symtab_and_line) <objfile>: New field.
10798 * tracepoint.c (start_tracing, stop_tracing): Update.
10800 2014-03-03 Tom Tromey <tromey@redhat.com>
10802 * probe.h (parse_probes, find_probe_by_pc)
10803 (find_probes_in_objfile): Fix comments.
10805 2014-03-02 Doug Evans <xdje42@gmail.com>
10807 * infrun.c (handle_signal_stop): Replace test for
10808 TARGET_WAITKIND_STOPPED with an assert.
10810 2014-03-02 Doug Evans <xdje42@gmail.com>
10812 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10814 2014-03-02 Doug Evans <xdje42@gmail.com>
10816 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10818 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10820 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10822 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10824 * i386obsd-nat.c: Include "obsd-nat.h".
10825 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10827 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10829 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10831 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10833 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10835 * mips64obsd-nat.c: Include "obsd-nath".
10836 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10838 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10840 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10842 * amd64obsd-nat.c: Include "obsd-nat,h.
10843 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10845 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10847 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10849 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10850 (find_overload_match): Update call to find_oload_champ.
10851 (find_oload_champ_namespace_loop): Likewise
10853 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10855 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10857 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10858 * config/sparc/obsd64.mh: New file.
10859 * sparc64obsd-nat.c: New file.
10861 * obsd-nat.h: New file.
10862 * obsd-nat.c: New file.
10863 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10864 (ALLDEPFILES): Add obsd-nat.c.
10866 2014-02-28 Tom Tromey <tromey@redhat.com>
10868 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10869 * cli-out.h (cli_ui_out_impl): Now const.
10870 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10871 * ui-out.c (struct ui_out) <impl>: Now const.
10872 (default_ui_out_impl): Now const.
10873 (ui_out_new): Make 'impl' parameter const.
10874 * ui-out.h (ui_out_new): Update.
10876 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10878 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10880 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10882 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10884 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10886 Additional PR 8882 fix.
10887 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10889 2014-02-27 Pedro Alves <palves@redhat.com>
10891 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10894 2014-02-27 Pedro Alves <palves@redhat.com>
10897 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10898 * nat/linux-waitpid.c: Include string.h.
10899 (status_to_str): Moved here and made extern.
10900 * nat/linux-waitpid.h (status_to_str): New declaration.
10902 2014-02-27 Hui Zhu <hui@codesourcery.com>
10905 * infrun.c (ptid_match): Move ...
10906 * common/ptid.c (ptid_match): ... here.
10907 * inferior.h (ptid_match): Move ...
10908 * common/ptid.h (ptid_match): ... here.
10910 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10912 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10913 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10916 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10918 * obsd-tdep.c (obsd_auxv_parse): New function.
10919 (obsd_init_abi): Set auxv_parse.
10921 * gdbarch.sh (auxv_parse): New.
10922 * gdbarch.h: Regenerated.
10923 * gdbarch.c: Regenerated.
10924 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10926 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10928 * guile/scm-value.c (gdbscm_history_append_x): New function.
10929 (value_functions): Add it.
10931 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10933 * dwarf2read.c (attr_value_as_address): New function.
10934 (dwarf2_find_base_address, read_call_site_scope): Use
10935 attr_value_as_address in place of DW_ADDR.
10936 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10937 the low and high addresses. Slight rework of the handling
10938 of the high pc being a constant form, and limit it to
10939 DWARF verson 4 or higher.
10940 (dwarf2_record_block_ranges): Likewise.
10941 (read_partial_die): Likewise.
10942 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10944 2014-02-26 Tom Tromey <tromey@redhat.com>
10946 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10948 2014-02-26 Tom Tromey <tromey@redhat.com>
10950 * elfread.c (elf_read_minimal_symbols): Return early if
10951 minimal symbols have already been read. Add "ei" parameter.
10952 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10953 * minsyms.c (prim_record_minimal_symbol_full): Update.
10954 * objfiles.h (struct objstats) <n_minsyms>: Move...
10955 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10956 * symmisc.c (print_objfile_statistics): Update.
10958 2014-02-26 Tom Tromey <tromey@redhat.com>
10960 * elfread.c (elf_read_minimal_symbols): New function, from
10962 (elf_symfile_read): Call it.
10964 2014-02-26 Tom Tromey <tromey@redhat.com>
10966 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10967 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10968 (lookup_minimal_symbol_solib_trampoline)
10969 (lookup_minimal_symbol_by_pc_section_1)
10970 (lookup_minimal_symbol_and_objfile): Update.
10971 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10972 Don't allocate a minimal symbol if minsyms have already been read.
10973 (build_minimal_symbol_hash_tables): Update.
10974 (install_minimal_symbols): Do nothing if minsyms already read.
10975 Use the per-BFD obstack.
10976 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10977 * objfiles.c (allocate_objfile): Call
10978 terminate_minimal_symbol_table later.
10979 (have_minimal_symbols): Update.
10980 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10981 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10982 Move from struct objfile.
10983 <minsyms_read>: New field.
10984 (struct objfile) <msymbols, minimal_symbol_count,
10985 msymbol_hash, msymbol_demangled_hash>: Move.
10986 (ALL_OBJFILE_MSYMBOLS): Update.
10987 * symfile.c (read_symbols): Set minsyms_read.
10988 (reread_symbols): Update.
10989 * symmisc.c (dump_objfile, dump_msymbols): Update.
10991 2014-02-26 Tom Tromey <tromey@redhat.com>
10993 * minsyms.c (msymbols_sort): Remove.
10994 * minsyms.h (msymbols_sort): Remove.
10995 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10996 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10997 * elfread.c (elf_symtab_read): Don't add section offsets.
10998 * xcoffread.c (record_minimal_symbol): Don't add section offset
10999 to minimal symbol address.
11000 * somread.c (text_offset, data_offset): Remove.
11001 (som_symtab_read): Don't add section offsets to minimal symbol
11003 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
11004 Don't add section offsets to minimal symbols.
11005 * coffread.c (coff_symtab_read): Don't add section offsets
11006 to minimal symbol addresses.
11007 * machoread.c (macho_symtab_add_minsym): Don't add section offset
11008 to minimal symbol addresses.
11009 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
11010 section offset to minimal symbol addresses.
11011 * mdebugread.c (parse_partial_symbols): Don't add section
11012 offset to minimal symbol addresses.
11013 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
11014 offset to minimal symbol addresses.
11016 2014-02-26 Tom Tromey <tromey@redhat.com>
11018 * ada-lang.c (ada_main_name): Update.
11019 (ada_add_standard_exceptions): Update.
11020 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11021 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11022 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
11023 * auxv.c (ld_so_xfer_auxv): Update.
11024 * avr-tdep.c (avr_scan_prologue): Update.
11025 * ax-gdb.c (gen_var_ref): Update.
11026 * blockframe.c (get_pc_function_start)
11027 (find_pc_partial_function_gnu_ifunc): Update.
11028 * breakpoint.c (create_overlay_event_breakpoint)
11029 (create_longjmp_master_breakpoint)
11030 (create_std_terminate_master_breakpoint)
11031 (create_exception_master_breakpoint): Update.
11032 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11033 * c-valprint.c (c_val_print): Update.
11034 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11035 * common/agent.c (agent_look_up_symbols): Update.
11036 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11037 * dwarf2loc.c (call_site_to_target_addr): Update.
11038 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
11039 * elfread.c (elf_gnu_ifunc_record_cache)
11040 (elf_gnu_ifunc_resolve_by_got): Update.
11041 * findvar.c (default_read_var_value): Update.
11042 * frame.c (inside_main_func): Update.
11043 * frv-tdep.c (frv_frame_this_id): Update.
11044 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11045 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11047 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
11048 (hppa_hpux_find_dummy_bpaddr): Update.
11049 * hppa-tdep.c (hppa_symbol_address): Update.
11050 * infcmd.c (until_next_command): Update.
11051 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
11053 * linespec.c (minsym_found, add_minsym): Update.
11054 * linux-nat.c (get_signo): Update.
11055 * linux-thread-db.c (inferior_has_bug): Update.
11056 * m32c-tdep.c (m32c_return_value)
11057 (m32c_m16c_address_to_pointer): Update.
11058 * m32r-tdep.c (m32r_frame_this_id): Update.
11059 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11060 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11061 * maint.c (maintenance_translate_address): Update.
11062 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
11063 (frob_address): New function.
11064 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
11065 frob_address. Rename parameter to "pc_in".
11066 (compare_minimal_symbols, compact_minimal_symbols): Use raw
11068 (find_solib_trampoline_target, minimal_symbol_upper_bound):
11070 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11071 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
11072 * objc-lang.c (find_objc_msgsend): Update.
11073 * objfiles.c (objfile_relocate1): Update.
11074 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11075 * p-valprint.c (pascal_val_print): Update.
11076 * parse.c (write_exp_msymbol): Update.
11077 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
11078 (ppc_elfv2_skip_entrypoint): Update.
11079 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11080 * printcmd.c (build_address_symbolic, msym_info)
11081 (address_info): Update.
11082 * proc-service.c (ps_pglobal_lookup): Update.
11083 * psymtab.c (find_pc_sect_psymtab_closer)
11084 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
11085 Change msymbol parameter to bound_minimal_symbol.
11086 * ravenscar-thread.c (get_running_thread_id): Update.
11087 * remote.c (remote_check_symbols): Update.
11088 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
11090 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11091 * solib-dsbt.c (lm_base): Update.
11092 * solib-frv.c (lm_base, main_got): Update.
11093 * solib-irix.c (locate_base): Update.
11094 * solib-som.c (som_solib_create_inferior_hook)
11095 (link_map_start): Update.
11096 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
11097 * solib-svr4.c (elf_locate_base, enable_break): Update.
11098 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11099 (flush_ea_cache): Update.
11100 * stabsread.c (define_symbol, scan_file_globals): Update.
11101 * stack.c (find_frame_funname): Update.
11102 * symfile-debug.c (debug_qf_expand_symtabs_matching)
11103 (debug_qf_find_pc_sect_symtab): Update.
11104 * symfile.c (simple_read_overlay_table)
11105 (simple_overlay_update): Update.
11106 * symfile.h (struct quick_symbol_functions)
11107 <find_pc_sect_symtab>: Change type of msymbol to
11108 bound_minimal_symbol.
11109 * symmisc.c (dump_msymbols): Update.
11110 * symtab.c (find_pc_sect_symtab_via_partial)
11111 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
11112 (search_symbols, print_msymbol_info): Update.
11113 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
11114 (MSYMBOL_VALUE_ADDRESS): Redefine.
11115 (BMSYMBOL_VALUE_ADDRESS): New macro.
11116 * tracepoint.c (scope_info): Update.
11117 * tui/tui-disasm.c (tui_find_disassembly_address)
11118 (tui_get_begin_asm_address): Update.
11119 * valops.c (find_function_in_inferior): Update.
11120 * value.c (value_static_field, value_fn_field): Update.
11122 2014-02-26 Tom Tromey <tromey@redhat.com>
11124 * ada-lang.c (ada_update_initial_language): Update.
11125 (ada_main_name, ada_has_this_exception_support): Update.
11126 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11127 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11128 * arm-tdep.c (arm_skip_stub): Update.
11129 * auxv.c (ld_so_xfer_auxv): Update.
11130 * avr-tdep.c (avr_scan_prologue): Update.
11131 * ax-gdb.c (gen_var_ref): Update.
11132 * breakpoint.c (struct breakpoint_objfile_data)
11133 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11134 type to bound_minimal_symbol.
11135 (create_overlay_event_breakpoint)
11136 (create_longjmp_master_breakpoint)
11137 (create_std_terminate_master_breakpoint)
11138 (create_exception_master_breakpoint): Update.
11139 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11140 * c-exp.y (classify_name): Update.
11141 * coffread.c (coff_symfile_read): Update.
11142 * common/agent.c (agent_look_up_symbols): Update.
11143 * d-lang.c (d_main_name): Update.
11144 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11145 * dec-thread.c (enable_dec_thread): Update.
11146 * dwarf2loc.c (call_site_to_target_addr): Update.
11147 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11148 * eval.c (evaluate_subexp_standard): Update.
11149 * findvar.c (struct minsym_lookup_data) <result>: Change type
11150 to bound_minimal_symbol.
11152 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11153 * frame.c (inside_main_func): Update.
11154 * frv-tdep.c (frv_frame_this_id): Update.
11155 * gcore.c (call_target_sbrk): Update.
11156 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11157 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11159 * go-lang.c (go_main_name): Update.
11160 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11161 (hppa_hpux_find_import_stub_for_addr): Update.
11162 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11163 Update. Change return type.
11164 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11166 * jit.c (jit_breakpoint_re_set_internal): Update.
11167 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11169 * linux-nat.c (get_signo): Update.
11170 * linux-thread-db.c (inferior_has_bug): Update
11171 * m32c-tdep.c (m32c_return_value)
11172 (m32c_m16c_address_to_pointer): Update.
11173 * m32r-tdep.c (m32r_frame_this_id): Update.
11174 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11175 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11176 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11177 lookup_minimal_symbol. Change return type.
11178 (lookup_minimal_symbol): Remove.
11179 (lookup_bound_minimal_symbol): Update.
11180 (lookup_minimal_symbol_text): Change return type.
11181 (lookup_minimal_symbol_solib_trampoline): Change return type.
11182 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11183 (lookup_minimal_symbol_solib_trampoline): Change return type.
11184 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11185 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11186 (value_nsstring, find_imps): Update.
11187 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11188 * p-lang.c (pascal_main_name): Update.
11189 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11190 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11191 * proc-service.c (ps_pglobal_lookup): Update.
11192 * ravenscar-thread.c (get_running_thread_msymbol): Change
11194 (has_ravenscar_runtime, get_running_thread_id): Update.
11195 * remote.c (remote_check_symbols): Update.
11196 * sol-thread.c (ps_pglobal_lookup): Update.
11197 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11198 * solib-dsbt.c (lm_base): Update.
11199 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11201 * solib-irix.c (locate_base): Update.
11202 * solib-som.c (som_solib_create_inferior_hook)
11203 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11205 * solib-spu.c (spu_enable_break): Update.
11206 * solib-svr4.c (elf_locate_base, enable_break): Update.
11207 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11208 (flush_ea_cache): Update.
11209 * stabsread.c (define_symbol): Update.
11210 * symfile.c (simple_read_overlay_table): Update.
11211 * symtab.c (find_pc_sect_line): Update.
11212 * tracepoint.c (scope_info): Update.
11213 * tui-disasm.c (tui_get_begin_asm_address): Update.
11214 * value.c (value_static_field): Update.
11216 2014-02-26 Tom Tromey <tromey@redhat.com>
11218 * minsyms.c (prim_record_minimal_symbol_full): Use
11219 SET_MSYMBOL_VALUE_ADDRESS.
11220 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11221 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11222 SET_MSYMBOL_VALUE_ADDRESS.
11223 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11224 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11226 2014-02-26 Tom Tromey <tromey@redhat.com>
11228 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11229 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11230 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11231 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11232 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11233 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11234 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11235 * ada-lang.c (ada_main_name): Update.
11236 (ada_lookup_simple_minsym): Update.
11237 (ada_make_symbol_completion_list): Update.
11238 (ada_add_standard_exceptions): Update.
11239 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11240 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11241 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11242 * arm-tdep.c (skip_prologue_function): Update.
11243 (arm_skip_stack_protector, arm_skip_stub): Update.
11244 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11245 (arm_wince_skip_main_prologue): Update.
11246 * auxv.c (ld_so_xfer_auxv): Update.
11247 * avr-tdep.c (avr_scan_prologue): Update.
11248 * ax-gdb.c (gen_var_ref): Update.
11249 * block.c (call_site_for_pc): Update.
11250 * blockframe.c (get_pc_function_start): Update.
11251 (find_pc_partial_function_gnu_ifunc): Update.
11252 * breakpoint.c (create_overlay_event_breakpoint): Update.
11253 (create_longjmp_master_breakpoint): Update.
11254 (create_std_terminate_master_breakpoint): Update.
11255 (create_exception_master_breakpoint): Update.
11256 (resolve_sal_pc): Update.
11257 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11258 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11260 * c-valprint.c (c_val_print): Update.
11261 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11262 * coffread.c (coff_symfile_read): Update.
11263 * common/agent.c (agent_look_up_symbols): Update.
11264 * dbxread.c (find_stab_function_addr): Update.
11265 (end_psymtab): Update.
11266 * dwarf2loc.c (call_site_to_target_addr): Update.
11267 (func_verify_no_selftailcall): Update.
11268 (tailcall_dump): Update.
11269 (call_site_find_chain_1): Update.
11270 (dwarf_expr_reg_to_entry_parameter): Update.
11271 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11272 (elf_gnu_ifunc_resolve_by_got): Update.
11273 * f-valprint.c (info_common_command): Update.
11274 * findvar.c (read_var_value): Update.
11275 * frame.c (get_prev_frame_1): Update.
11276 (inside_main_func): Update.
11277 * frv-tdep.c (frv_skip_main_prologue): Update.
11278 (frv_frame_this_id): Update.
11279 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11280 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11281 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11282 (gnuv3_skip_trampoline): Update.
11283 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11284 (hppa64_hpux_in_solib_call_trampoline): Update.
11285 (hppa_hpux_skip_trampoline_code): Update.
11286 (hppa64_hpux_search_dummy_call_sequence): Update.
11287 (hppa_hpux_find_import_stub_for_addr): Update.
11288 (hppa_hpux_find_dummy_bpaddr): Update.
11289 * hppa-tdep.c (hppa_symbol_address)
11290 (hppa_lookup_stub_minimal_symbol): Update.
11291 * i386-tdep.c (i386_skip_main_prologue): Update.
11292 (i386_pe_skip_trampoline_code): Update.
11293 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11294 * infcall.c (get_function_name): Update.
11295 * infcmd.c (until_next_command): Update.
11296 * jit.c (jit_breakpoint_re_set_internal): Update.
11297 (jit_inferior_init): Update.
11298 * linespec.c (minsym_found): Update.
11299 (add_minsym): Update.
11300 * linux-fork.c (info_checkpoints_command): Update.
11301 * linux-nat.c (get_signo): Update.
11302 * linux-thread-db.c (inferior_has_bug): Update.
11303 * m32c-tdep.c (m32c_return_value): Update.
11304 (m32c_m16c_address_to_pointer): Update.
11305 (m32c_m16c_pointer_to_address): Update.
11306 * m32r-tdep.c (m32r_frame_this_id): Update.
11307 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11308 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11309 * maint.c (maintenance_translate_address): Update.
11310 * minsyms.c (add_minsym_to_hash_table): Update.
11311 (add_minsym_to_demangled_hash_table): Update.
11312 (msymbol_objfile): Update.
11313 (lookup_minimal_symbol): Update.
11314 (iterate_over_minimal_symbols): Update.
11315 (lookup_minimal_symbol_text): Update.
11316 (lookup_minimal_symbol_by_pc_name): Update.
11317 (lookup_minimal_symbol_solib_trampoline): Update.
11318 (lookup_minimal_symbol_by_pc_section_1): Update.
11319 (lookup_minimal_symbol_and_objfile): Update.
11320 (prim_record_minimal_symbol_full): Update.
11321 (compare_minimal_symbols): Update.
11322 (compact_minimal_symbols): Update.
11323 (build_minimal_symbol_hash_tables): Update.
11324 (install_minimal_symbols): Update.
11325 (terminate_minimal_symbol_table): Update.
11326 (find_solib_trampoline_target): Update.
11327 (minimal_symbol_upper_bound): Update.
11328 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11329 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11330 (mips_skip_pic_trampoline_code): Update.
11331 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11332 * objc-lang.c (selectors_info): Update.
11333 (classes_info): Update.
11334 (find_methods): Update.
11335 (find_imps): Update.
11336 (find_objc_msgsend): Update.
11337 * objfiles.c (objfile_relocate1): Update.
11338 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11339 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11340 * p-valprint.c (pascal_val_print): Update.
11341 * parse.c (write_exp_msymbol): Update.
11342 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11343 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11344 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11345 * printcmd.c (build_address_symbolic): Update.
11346 (sym_info): Update.
11347 (address_info): Update.
11348 * proc-service.c (ps_pglobal_lookup): Update.
11349 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11350 (find_pc_sect_psymtab): Update.
11351 * python/py-framefilter.c (py_print_frame): Update.
11352 * ravenscar-thread.c (get_running_thread_id): Update.
11353 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11355 * remote.c (remote_check_symbols): Update.
11356 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11357 (rs6000_skip_trampoline_code): Update.
11358 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11359 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11360 * solib-dsbt.c (lm_base): Update.
11361 * solib-frv.c (lm_base): Update.
11362 (main_got): Update.
11363 * solib-irix.c (locate_base): Update.
11364 * solib-som.c (som_solib_create_inferior_hook): Update.
11365 (som_solib_desire_dynamic_linker_symbols): Update.
11366 (link_map_start): Update.
11367 * solib-spu.c (spu_enable_break): Update.
11368 (ocl_enable_break): Update.
11369 * solib-svr4.c (elf_locate_base): Update.
11370 (enable_break): Update.
11371 * spu-tdep.c (spu_get_overlay_table): Update.
11372 (spu_catch_start): Update.
11373 (flush_ea_cache): Update.
11374 * stabsread.c (define_symbol): Update.
11375 (scan_file_globals): Update.
11376 * stack.c (find_frame_funname): Update.
11377 (frame_info): Update.
11378 * symfile.c (simple_read_overlay_table): Update.
11379 (simple_overlay_update): Update.
11380 * symmisc.c (dump_msymbols): Update.
11381 * symtab.c (fixup_section): Update.
11382 (find_pc_sect_line): Update.
11383 (skip_prologue_sal): Update.
11384 (search_symbols): Update.
11385 (print_msymbol_info): Update.
11386 (rbreak_command): Update.
11387 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11388 (completion_list_objc_symbol): Update.
11389 (default_make_symbol_completion_list_break_on): Update.
11390 * tracepoint.c (scope_info): Update.
11391 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11392 (tui_get_begin_asm_address): Update.
11393 * valops.c (find_function_in_inferior): Update.
11394 * value.c (value_static_field): Update.
11395 (value_fn_field): Update.
11397 2014-02-26 Tom Tromey <tromey@redhat.com>
11399 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11400 bound minimal symbols. Move code that knows about minsym
11402 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11404 * minsyms.h (minimal_symbol_upper_bound): Declare.
11405 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11406 minimal_symbol_upper_bound.
11408 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11410 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11411 Use the type's name if its basic type does not have a tag.
11413 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11415 * dwarf2read.c (read_subrange_type): Add comment.
11417 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11419 * dwarf2read.c (update_enumeration_type_from_children): New
11420 function, mostly extracted from process_structure_scope.
11421 (read_enumeration_type): Call update_enumeration_type_from_children.
11422 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11423 and flag_flag_enum fields.
11425 2014-02-26 Pedro Alves <palves@redhat.com>
11427 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11428 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11429 to_xfer_partial method.
11431 2014-02-26 Pedro Alves <palves@redhat.com>
11433 * target.c (complete_target_initialization): Don't install
11434 default_xfer_partial as to_xfer_partial hook.
11435 (nomemory): Delete.
11436 (update_current_target): Don't INHERIT nor de_fault
11437 deprecated_xfer_memory. Delete de_fault macro.
11438 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11439 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11440 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11443 2014-02-26 Pedro Alves <palves@redhat.com>
11445 * go32-nat.c (my_write_child): New function.
11446 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11447 (go32_xfer_partial): New function.
11448 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11449 Instead install a to_xfer_partial hook.
11451 2014-02-26 Pedro Alves <palves@redhat.com>
11453 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11454 to_xfer_partial helper. Rewrite.
11455 (procfs_xfer_partial): New function.
11456 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11457 Install a to_xfer_partial hook.
11459 2014-02-26 Pedro Alves <palves@redhat.com>
11461 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11462 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11463 (m32r_xfer_partial): New function.
11464 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11465 Install a to_xfer_partial hook.
11467 2014-02-26 Pedro Alves <palves@redhat.com>
11469 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11471 (mips_xfer_partial): New function.
11472 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11473 hook. Install a to_xfer_partial hook.
11475 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11477 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11478 * gdbtypes.c (create_array_type_with_stride): New function,
11479 renaming create_array_type, but with an added parameter
11480 called "bit_stride".
11481 (create_array_type): Re-implement using
11482 create_array_type_with_stride.
11483 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11484 and DW_AT_bit_stride attributes.
11486 2014-02-26 Pedro Alves <palves@redhat.com>
11488 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11489 task-specific breakpoints.
11491 2014-02-25 Pedro Alves <palves@redhat.com>
11493 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11494 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11496 2014-02-25 Stan Shebs <stan@codesourcery.com>
11498 * defs.h: Annotate comments for Doxygen.
11500 2014-02-25 Tom Tromey <tromey@redhat.com>
11502 * target.h (target_ignore): Don't declare.
11503 * target.c (target_ignore): Remove.
11505 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11508 * auto-load.c (auto_load_objfile_script_1): Change filename to
11511 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11513 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11514 documentation. Adjust prototype to match the target_ops
11515 to_xfer_partial method. Adjust implementation accordingly.
11517 2014-02-25 Hui Zhu <hui@codesourcery.com>
11519 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11520 to_traceframe_info.
11522 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11524 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11525 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11526 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11527 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11528 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11529 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11530 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11531 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11533 (rl78_register_type): Use a data pointer type for SP and
11534 new pseudo registers mentioned above. Use a 16 bit integer
11535 type for all other register pairs.
11536 (rl78_register_name, rl78_g10_register_name): Update for
11537 new pseudo registers.
11538 (rl78_pseudo_register_read): Likewise.
11539 (rl78_pseudo_register_write): Likewise.
11540 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11541 to the newly added pseudo registers.
11543 2014-02-24 Doug Evans <dje@google.com>
11545 * value.c (record_latest_value): Fix comment.
11546 * printcmd.c (print_command_1): Remove code to handle -1 return from
11547 record_latest_value.
11549 2014-02-24 Pedro Alves <palves@redhat.com>
11551 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11552 deprecated_xfer_memory hook.
11553 (procfs_xfer_partial): Call procfs_xfer_memory instead
11554 of the deprecated_xfer_memory target hook.
11555 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11558 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11560 * windows-nat.c (windows_xfer_shared_libraries): Return
11561 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11562 requested object is TARGET_OBJECT_LIBRARIES.
11564 2014-02-24 Yao Qi <yao@codesourcery.com>
11566 * target.h (enum target_xfer_status)
11567 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11568 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11570 * corefile.c (memory_error_message): User updated.
11571 * exec.c (section_table_read_available_memory): Likewise.
11572 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11573 * target.c (target_xfer_status_to_string): Likewise.
11574 (raw_memory_xfer_partial): Likewise.
11575 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11576 * valops.c (read_value_memory): Likewise.
11577 * exec.h: Update comments.
11579 2014-02-24 Yao Qi <yao@codesourcery.com>
11581 * target.c (target_xfer_status_to_string): Rename argument err
11583 * target.h (target_xfer_status_to_string): Update declaration.
11584 Replace target_xfer_error_to_string with
11585 target_xfer_status_to_string in comment.
11587 2014-02-24 Yao Qi <yao@codesourcery.com>
11589 * mips-linux-nat.c (super_close): Update its type.
11590 (mips_linux_close): Pass 'self' to super_close.
11592 2014-02-24 Yao Qi <yao@codesourcery.com>
11594 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11595 * corefile.c (read_memory): Adjusted.
11596 * target.c (target_write_with_progress): Adjusted.
11598 2014-02-23 Yao Qi <yao@codesourcery.com>
11600 Revert two patches:
11602 2013-10-25 Yao Qi <yao@codesourcery.com>
11604 * remote.c (remote_traceframe_info): Return early if
11605 traceframe is not selected.
11607 2013-07-19 Yao Qi <yao@codesourcery.com>
11609 * target.c (update_current_target): Change the default action
11610 of 'to_traceframe_info' from tcomplain to return_zero.
11611 * target.h (struct target_ops) <to_traceframe_info>: Add more
11614 2014-02-23 Yao Qi <yao@codesourcery.com>
11616 * valops.c (read_value_memory): Rewrite it. Call
11617 target_xfer_partial in a loop.
11618 * exec.h (section_table_available_memory): Remove declaration.
11619 Move comments to ...
11620 * exec.c (section_table_available_memory): ... here. Make it
11623 2014-02-23 Yao Qi <yao@codesourcery.com>
11625 * exec.c (section_table_read_available_memory): New function.
11626 * exec.h (section_table_read_available_memory): Declare.
11627 * ctf.c (ctf_xfer_partial): Call
11628 section_table_read_available_memory.
11629 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11631 2014-02-23 Yao Qi <yao@codesourcery.com>
11633 * ctf.c (ctf_xfer_partial): Move code to ...
11634 * exec.c (exec_read_partial_read_only): ... it. New function.
11635 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11636 * tracefile.c: Include "exec.h".
11637 * exec.h (exec_read_partial_read_only): Declare.
11639 2014-02-23 Yao Qi <yao@codesourcery.com>
11641 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11642 (tfile_has_memory): Remove.
11643 (init_tfile_ops): Don't set fields to_has_all_memory and
11644 to_has_memory of tfile_ops.
11645 * tracefile.c (tracefile_has_all_memory): New function.
11646 (tracefile_has_memory): New function.
11647 (init_tracefile_ops): Initialize fields to_has_all_memory and
11648 to_has_memory of 'ops'.
11650 2014-02-23 Yao Qi <yao@codesourcery.com>
11652 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11653 (ctf_thread_alive, ctf_get_trace_status): Remove.
11654 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11655 init_tracefile_ops.
11656 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11657 (tfile_has_stack, tfile_has_registers): Remove.
11658 (tfile_thread_alive): Remove.
11659 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11660 init_tracefile_ops.
11661 * tracefile.c (tracefile_has_stack): New function.
11662 (tracefile_has_registers): New function.
11663 (tracefile_thread_alive): New function.
11664 (tracefile_get_trace_status): New function.
11665 (init_tracefile_ops): New function.
11666 * tracefile.h (init_tracefile_ops): Declare.
11668 2014-02-23 Yao Qi <yao@codesourcery.com>
11670 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11671 (O_LARGEFILE): Likewise.
11672 (tfile_ops): Likewise.
11673 (TRACE_HEADER_SIZE): Likewise.
11674 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11675 (cur_data_size): Likewise.
11676 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11677 (tfile_close, tfile_files_info): Likewise.
11678 (tfile_get_trace_status): Likewise.
11679 (tfile_get_tracepoint_status): Likewise.
11680 (tfile_get_traceframe_address): Likewise.
11681 (tfile_trace_find, match_blocktype): Likewise.
11682 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11683 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11684 (tfile_get_trace_state_variable_value): Likewise.
11685 (tfile_has_all_memory, tfile_has_memory): Likewise.
11686 (tfile_has_stack, tfile_has_registers): Likewise.
11687 (tfile_thread_alive, build_traceframe_info): Likewise.
11688 (tfile_traceframe_info, init_tfile_ops): Likewise.
11689 (_initialize_tracepoint): Don't call init_tfile_ops
11690 and add_target_with_completer.
11691 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11692 exec.h, completer.h and filenames.h.
11693 (_initialize_tracefile_tfile): New function.
11695 2014-02-23 Yao Qi <yao@codesourcery.com>
11697 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11699 (HFILES_NO_SRCDIR): Add tracefile.h.
11700 * ctf.c: Include "tracefile.h".
11701 * tracefile.h: New file.
11702 * tracefile.c: New file
11703 * tracefile-tfile.c: New file.
11704 * tracepoint.c: Include "tracefile.h".
11705 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11706 (stop_reason_names): Add const.
11707 (trace_file_writer_xfree): Move it to tracefile.c.
11708 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11709 (trace_save_ctf): Likewise.
11710 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11711 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11712 (tfile_write_header, tfile_write_regblock_type): Likewise.
11713 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11714 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11715 (tfile_write_raw_data, tfile_end): Likewise.
11716 (tfile_trace_file_writer_new): Likewise.
11717 (free_uploaded_tp): Make it extern.
11718 (free_uploaded_tsv): Make it extern.
11719 (_initialize_tracepoint): Move code to register command 'tsave'
11721 * tracepoint.h (stop_reason_names): Declare.
11722 (struct trace_frame_write_ops): Move it to tracefile.h.
11723 (struct trace_file_write_ops): Likewise.
11724 (struct trace_file_writer): Likewise.
11725 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11727 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11730 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11732 (get_cores_used_by_process): New parameter num_cores, use it.
11733 (linux_xfer_osdata_processes): Pass num_cores to it.
11734 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11737 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11739 * target.c (memory_xfer_partial): Fix length arg in call to
11740 breakpoint_xfer_memory.
11742 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11745 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11746 number comes after the + or - signs. Adjust length of register
11747 name to be extracted.
11749 2014-02-20 Tom Tromey <tromey@redhat.com>
11751 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11752 (ada_varobj_ops): Mark "extern".
11754 2014-02-20 Tom Tromey <tromey@redhat.com>
11756 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11758 2014-02-20 Doug Evans <xdje42@gmail.com>
11760 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11761 All callers updated.
11762 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11763 All callers updated.
11764 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11765 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11767 2014-02-20 lin zuojian <manjian2006@gmail.com>
11768 Joel Brobecker <brobecker@adacore.com>
11769 Doug Evans <xdje42@gmail.com>
11772 * dwarf2read.c (struct die_info): New member in_process.
11773 (reset_die_in_process): New function.
11774 (process_die): Set it at the start, reset when returning.
11775 (inherit_abstract_dies): Only call process_die if origin_child_die
11776 not already being processed.
11778 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11780 * windows-nat.c (handle_unload_dll): Add function documentation.
11781 (do_initial_windows_stuff): Add comment explaining why we wait
11782 until after inferior initialization has finished before
11783 processing all DLLs.
11785 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11787 * windows-nat.c (get_module_name): Delete.
11788 (windows_get_exec_module_filename): New function, mostly
11789 inspired from get_module_name.
11790 (windows_pid_to_exec_file): Replace call to get_module_name
11791 by call to windows_get_exec_module_filename.
11793 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11795 * windows-nat.c (handle_load_dll): Rewrite this function's
11796 introductory comment. Remove code using get_module_name
11797 to get the DLL's name.
11799 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11801 * windows-nat.c (get_windows_debug_event): Ignore
11802 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11803 if windows_initialization_done == 0.
11804 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11805 Adjust implementation to always load all DLLs.
11806 (do_initial_windows_stuff): Replace call to
11807 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11809 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11811 * windows-nat.c (_initialize_windows_nat): Deprecate the
11812 "dll-symbols" command. Turn the "add-shared-symbol-files"
11813 and "assf" aliases into commands, and deprecate them as well.
11814 * NEWS: Add entry explaining that "dll-symbols" and its two
11815 aliases are now deprecated.
11817 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11819 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11820 new-line in debug string. Remove trailing spaces.
11822 2014-02-19 Stan Shebs <stan@codesourcery.com>
11824 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11826 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11828 * NEWS: Add entry for the new feature
11829 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11832 2014-02-19 Stan Shebs <stan@codesourcery.com>
11834 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11836 2014-02-19 Pedro Alves <palves@redhat.com>
11838 * common/ptid.h (struct ptid): Mention that process_stratum
11839 targets should prefer ptid.lwp.
11841 2014-02-19 Pedro Alves <palves@redhat.com>
11843 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11844 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11845 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11846 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11847 store remote thread ids rather than ptid.tid.
11848 (_initialize_remote): Adjust.
11850 2014-02-19 Tom Tromey <tromey@redhat.com>
11852 * target.c (target_get_unwinder): Rewrite.
11853 (target_get_tailcall_unwinder): Rewrite.
11854 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11855 (record_btrace_to_get_tailcall_unwinder): New function.
11856 (init_record_btrace_ops): Update.
11857 * target.h (struct target_ops) <to_get_unwinder,
11858 to_get_tailcall_unwinder>: Now function pointers. Use
11859 TARGET_DEFAULT_RETURN.
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11863 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11865 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11867 2014-02-19 Tom Tromey <tromey@redhat.com>
11869 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11871 * target-delegates.c: Rebuild.
11872 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11873 TARGET_DEFAULT_FUNC.
11874 * target.c (default_target_decr_pc_after_break): Rename from
11875 forward_target_decr_pc_after_break. Simplify.
11876 (target_decr_pc_after_break): Rely on delegation.
11878 2014-02-19 Tom Tromey <tromey@redhat.com>
11880 * target.c (update_current_target): Do not INHERIT to_doc or
11881 to_magic. Do not de_fault to_open or to_close.
11883 2014-02-19 Tom Tromey <tromey@redhat.com>
11885 * gcore.h (objfile_find_memory_regions): Declare.
11886 * gcore.c (objfile_find_memory_regions): No longer static. Add
11888 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11889 * exec.c: Include gcore.h.
11890 (exec_set_find_memory_regions): Remove.
11891 (exec_find_memory_regions): Remove.
11892 (exec_do_find_memory_regions): Remove.
11893 (init_exec_ops): Update.
11894 * defs.h (exec_set_find_memory_regions): Remove.
11896 2014-02-19 Tom Tromey <tromey@redhat.com>
11898 * target-delegates.c: Rebuild.
11899 * target.h (struct target_ops) <to_extra_thread_info,
11900 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11901 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11902 not 0, in TARGET_DEFAULT_RETURN.
11904 2014-02-19 Tom Tromey <tromey@redhat.com>
11906 * target.c (complete_target_initialization): Remove casts. Use
11907 return_zero_has_execution.
11908 (return_zero): Add "ignore" argument.
11909 (return_zero_has_execution): New function.
11910 (init_dummy_target): Remove casts. Use
11911 return_zero_has_execution.
11913 2014-02-19 Tom Tromey <tromey@redhat.com>
11915 * target.c (update_current_target): Update comments. Do not
11916 INHERIT to_stratum.
11918 2014-02-19 Tom Tromey <tromey@redhat.com>
11920 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11922 * corelow.c (core_read_description): Delegate when needed.
11923 * remote.c (remote_read_description): Delegate when needed.
11924 * target-delegates.c: Rebuild.
11925 * target.c (target_read_description): Rewrite.
11926 * target.h (struct target_ops) <to_read_description>: Update
11927 comment. Use TARGET_DEFAULT_RETURN.
11929 2014-02-19 Tom Tromey <tromey@redhat.com>
11931 * target-delegates.c: Rebuild.
11932 * target.c (update_current_target): Don't inherit or default
11934 (find_default_run_target): Check against delegate_can_run.
11935 * target.h (struct target_ops) <to_can_run>: Use
11936 TARGET_DEFAULT_RETURN.
11938 2014-02-19 Tom Tromey <tromey@redhat.com>
11940 * target-delegates.c: Rebuild.
11941 * target.c (target_disconnect): Unconditionally delegate.
11942 * target.h (struct target_ops) <to_disconnect>: Use
11943 TARGET_DEFAULT_NORETURN.
11945 2014-02-19 Tom Tromey <tromey@redhat.com>
11947 * record.c (record_stop): Unconditionally delegate.
11948 * target-delegates.c: Rebuild.
11949 * target.c (target_stop_recording): Unconditionally delegate.
11950 * target.h (struct target_ops) <to_stop_recording>: Use
11951 TARGET_DEFAULT_IGNORE.
11953 2014-02-19 Tom Tromey <tromey@redhat.com>
11955 * target-delegates.c: Rebuild.
11956 * target.c (target_enable_btrace): Unconditionally delegate.
11957 * target.h (struct target_ops) <to_enable_btrace>: Use
11958 TARGET_DEFAULT_NORETURN.
11960 2014-02-19 Tom Tromey <tromey@redhat.com>
11962 * target-delegates.c: Rebuild.
11963 * target.c (target_read_btrace): Unconditionally delegate.
11964 * target.h (struct target_ops) <to_read_btrace>: Use
11965 TARGET_DEFAULT_NORETURN.
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11969 * target-delegates.c: Rebuild.
11970 * target.c (target_teardown_btrace): Unconditionally delegate.
11971 * target.h (struct target_ops) <to_teardown_btrace>: Use
11972 TARGET_DEFAULT_NORETURN.
11974 2014-02-19 Tom Tromey <tromey@redhat.com>
11976 * target-delegates.c: Rebuild.
11977 * target.c (target_disable_btrace): Unconditionally delegate.
11978 * target.h (struct target_ops) <to_disable_btrace>: Use
11979 TARGET_DEFAULT_NORETURN.
11981 2014-02-19 Tom Tromey <tromey@redhat.com>
11983 * target-delegates.c: Rebuild.
11984 * target.c (default_search_memory): New function.
11985 (simple_search_memory): Update comment.
11986 (target_search_memory): Unconditionally delegate.
11987 * target.h (struct target_ops) <to_search_memory>: Use
11988 TARGET_DEFAULT_FUNC.
11990 2014-02-19 Tom Tromey <tromey@redhat.com>
11992 * auxv.c (default_auxv_parse): No longer static.
11993 (target_auxv_parse): Unconditionally delegate.
11994 * auxv.h (default_auxv_parse): Declare.
11995 * target-delegates.c: Rebuild.
11996 * target.c: Include auxv.h.
11997 * target.h (struct target_ops) <to_auxv_parse>: Use
11998 TARGET_DEFAULT_FUNC.
12000 2014-02-19 Tom Tromey <tromey@redhat.com>
12002 * target-delegates.c: Rebuild.
12003 * target.c (target_memory_map): Unconditionally delegate.
12004 * target.h (struct target_ops) <to_memory_map>: Use
12005 TARGET_DEFAULT_RETURN.
12007 2014-02-19 Tom Tromey <tromey@redhat.com>
12009 * target-delegates.c: Rebuild.
12010 * target.c (target_thread_alive): Unconditionally delegate.
12011 * target.h (struct target_ops) <to_thread_alive>: Use
12012 TARGET_DEFAULT_RETURN.
12014 2014-02-19 Tom Tromey <tromey@redhat.com>
12016 * target-delegates.c: Rebuild.
12017 * target.c (target_save_record): Unconditionally delegate.
12018 * target.h (struct target_ops) <to_save_record>: Use
12019 TARGET_DEFAULT_NORETURN.
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12023 * target-delegates.c: Rebuild.
12024 * target.c (target_delete_record): Unconditionally delegate.
12025 * target.h (struct target_ops) <to_delete_record>: Use
12026 TARGET_DEFAULT_NORETURN.
12028 2014-02-19 Tom Tromey <tromey@redhat.com>
12030 * target-delegates.c: Rebuild.
12031 * target.c (target_record_is_replaying): Unconditionally
12033 * target.h (struct target_ops) <to_record_is_replaying>: Use
12034 TARGET_DEFAULT_RETURN.
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12038 * target-delegates.c: Rebuild.
12039 * target.c (target_goto_record_begin): Unconditionally delegate.
12040 * target.h (struct target_ops) <to_goto_record_begin>: Use
12041 TARGET_DEFAULT_NORETURN.
12043 2014-02-19 Tom Tromey <tromey@redhat.com>
12045 * target-delegates.c: Rebuild.
12046 * target.c (target_goto_record_end): Unconditionally delegate.
12047 * target.h (struct target_ops) <to_goto_record_end>: Use
12048 TARGET_DEFAULT_NORETURN.
12050 2014-02-19 Tom Tromey <tromey@redhat.com>
12052 * target-delegates.c: Rebuild.
12053 * target.c (target_goto_record): Unconditionally delegate.
12054 * target.h (struct target_ops) <to_goto_record>: Use
12055 TARGET_DEFAULT_NORETURN.
12057 2014-02-19 Tom Tromey <tromey@redhat.com>
12059 * target-delegates.c: Rebuild.
12060 * target.c (target_insn_history): Unconditionally delegate.
12061 * target.h (struct target_ops) <to_insn_history>: Use
12062 TARGET_DEFAULT_NORETURN.
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12066 * target-delegates.c: Rebuild.
12067 * target.c (target_insn_history_from): Unconditionally delegate.
12068 * target.h (struct target_ops) <to_insn_history_from>: Use
12069 TARGET_DEFAULT_NORETURN.
12071 2014-02-19 Tom Tromey <tromey@redhat.com>
12073 * target-delegates.c: Rebuild.
12074 * target.c (target_insn_history_range): Unconditionally delegate.
12075 * target.h (struct target_ops) <to_insn_history_range>: Use
12076 TARGET_DEFAULT_NORETURN.
12078 2014-02-19 Tom Tromey <tromey@redhat.com>
12080 * target-delegates.c: Rebuild.
12081 * target.c (target_call_history): Unconditionally delegate.
12082 * target.h (struct target_ops) <to_call_history>: Use
12083 TARGET_DEFAULT_NORETURN.
12085 2014-02-19 Tom Tromey <tromey@redhat.com>
12087 * target-delegates.c: Rebuild.
12088 * target.c (target_call_history_from): Unconditionally delegate.
12089 * target.h (struct target_ops) <to_call_history_from>: Use
12090 TARGET_DEFAULT_NORETURN.
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12094 * target-delegates.c: Rebuild.
12095 * target.c (target_call_history_range): Unconditionally delegate.
12096 * target.h (struct target_ops) <to_call_history_range>: Use
12097 TARGET_DEFAULT_NORETURN.
12099 2014-02-19 Tom Tromey <tromey@redhat.com>
12101 * target-delegates.c: Rebuild.
12102 * target.c (target_verify_memory): Unconditionally delegate.
12103 * target.h (struct target_ops) <to_verify_memory>: Use
12104 TARGET_DEFAULT_NORETURN.
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12108 * target-delegates.c: Rebuild.
12109 * target.c (target_core_of_thread): Unconditionally delegate.
12110 * target.h (struct target_ops) <to_core_of_thread>: Use
12111 TARGET_DEFAULT_RETURN.
12113 2014-02-19 Tom Tromey <tromey@redhat.com>
12115 * target-delegates.c: Rebuild.
12116 * target.c (target_flash_done): Unconditionally delegate.
12117 * target.h (struct target_ops) <to_flash_done>: Use
12118 TARGET_DEFAULT_NORETURN.
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12122 * target-delegates.c: Rebuild.
12123 * target.c (target_flash_erase): Unconditionally delegate.
12124 * target.h (struct target_ops) <to_flash_erase>: Use
12125 TARGET_DEFAULT_NORETURN.
12127 2014-02-19 Tom Tromey <tromey@redhat.com>
12129 * target-delegates.c: Rebuild.
12130 * target.c (target_get_section_table): Unconditionally delegate.
12131 * target.h (struct target_ops) <to_get_section_table>: Use
12132 TARGET_DEFAULT_RETURN.
12134 2014-02-19 Tom Tromey <tromey@redhat.com>
12136 * target-delegates.c: Rebuild.
12137 * target.c (target_pid_to_str): Unconditionally delegate.
12138 (init_dummy_target): Don't initialize to_pid_to_str.
12139 (default_pid_to_str): Rename from dummy_pid_to_str.
12140 * target.h (struct target_ops) <to_pid_to_str>: Use
12141 TARGET_DEFAULT_FUNC.
12143 2014-02-19 Tom Tromey <tromey@redhat.com>
12145 * target-delegates.c: Rebuild.
12146 * target.c (target_find_new_threads): Unconditionally delegate.
12147 * target.h (struct target_ops) <to_find_new_threads>: Use
12148 TARGET_DEFAULT_RETURN.
12150 2014-02-19 Tom Tromey <tromey@redhat.com>
12152 * target-delegates.c: Rebuild.
12153 * target.c (target_program_signals): Unconditionally delegate.
12154 * target.h (struct target_ops) <to_program_signals>: Use
12155 TARGET_DEFAULT_IGNORE.
12157 2014-02-19 Tom Tromey <tromey@redhat.com>
12159 * target-delegates.c: Rebuild.
12160 * target.c (target_pass_signals): Unconditionally delegate.
12161 * target.h (struct target_ops) <to_pass_signals>: Use
12162 TARGET_DEFAULT_IGNORE.
12164 2014-02-19 Tom Tromey <tromey@redhat.com>
12166 * target-delegates.c: Rebuild.
12167 * target.c (default_mourn_inferior): New function.
12168 (target_mourn_inferior): Unconditionally delegate.
12169 * target.h (struct target_ops) <to_mourn_inferior>: Use
12170 TARGET_DEFAULT_FUNC.
12172 2014-02-19 Tom Tromey <tromey@redhat.com>
12174 * target-delegates.c: Rebuild.
12175 * target.c (default_follow_fork): New function.
12176 (target_follow_fork): Unconditionally delegate.
12177 * target.h (struct target_ops) <to_follow_fork>: Use
12178 TARGET_DEFAULT_FUNC.
12180 2014-02-19 Tom Tromey <tromey@redhat.com>
12182 * target-delegates.c: Rebuild.
12183 * target.c (target_kill): Unconditionally delegate.
12184 * target.h (struct target_ops) <to_kill>: Use
12185 TARGET_DEFAULT_NORETURN.
12187 2014-02-19 Tom Tromey <tromey@redhat.com>
12189 * target-delegates.c: Rebuild.
12190 * target.c (target_masked_watch_num_registers): Unconditionally
12192 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12193 Use TARGET_DEFAULT_RETURN.
12195 2014-02-19 Tom Tromey <tromey@redhat.com>
12197 * target-delegates.c: Rebuild.
12198 * target.c (target_remove_mask_watchpoint): Unconditionally
12200 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12201 TARGET_DEFAULT_RETURN.
12203 2014-02-19 Tom Tromey <tromey@redhat.com>
12205 * target-delegates.c: Rebuild.
12206 * target.c (target_insert_mask_watchpoint): Unconditionally
12208 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12209 TARGET_DEFAULT_RETURN.
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12213 * target-delegates.c: Rebuild.
12214 * target.c (target_ranged_break_num_registers): Unconditionally
12216 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12217 Use TARGET_DEFAULT_RETURN.
12219 2014-02-19 Tom Tromey <tromey@redhat.com>
12221 * target-delegates.c: Rebuild.
12222 * target.c (target_fetch_registers): Unconditionally delegate.
12223 * target.h (struct target_ops) <to_fetch_registers>: Use
12224 TARGET_DEFAULT_NORETURN.
12226 2014-02-19 Tom Tromey <tromey@redhat.com>
12228 * target-delegates.c: Rebuild.
12229 * target.c (update_current_target): Don't inherit or default
12231 * target.h (struct target_ops) <to_stop>: Use
12232 TARGET_DEFAULT_IGNORE.
12234 2014-02-19 Tom Tromey <tromey@redhat.com>
12236 * target-delegates.c: Rebuild.
12237 * target.c (update_current_target): Don't inherit or default
12238 to_can_run_breakpoint_commands.
12239 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12240 Use TARGET_DEFAULT_RETURN.
12242 2014-02-19 Tom Tromey <tromey@redhat.com>
12244 * target-delegates.c: Rebuild.
12245 * target.c (update_current_target): Don't inherit or default
12246 to_supports_evaluation_of_breakpoint_conditions.
12247 * target.h (struct target_ops)
12248 <to_supports_evaluation_of_breakpoint_conditions>: Use
12249 TARGET_DEFAULT_RETURN.
12251 2014-02-19 Tom Tromey <tromey@redhat.com>
12253 * target-delegates.c: Rebuild.
12254 * target.c (update_current_target): Don't inherit or default
12255 to_augmented_libraries_svr4_read.
12256 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12257 Use TARGET_DEFAULT_RETURN.
12259 2014-02-19 Tom Tromey <tromey@redhat.com>
12261 * target-delegates.c: Rebuild.
12262 * target.c (update_current_target): Don't inherit or default
12264 * target.h (struct target_ops) <to_can_use_agent>: Use
12265 TARGET_DEFAULT_RETURN.
12267 2014-02-19 Tom Tromey <tromey@redhat.com>
12269 * target-delegates.c: Rebuild.
12270 * target.c (update_current_target): Don't inherit or default
12272 * target.h (struct target_ops) <to_use_agent>: Use
12273 TARGET_DEFAULT_NORETURN.
12275 2014-02-19 Tom Tromey <tromey@redhat.com>
12277 * target-delegates.c: Rebuild.
12278 * target.c (update_current_target): Don't inherit or default
12279 to_traceframe_info.
12280 (return_null): Remove.
12281 * target.h (struct target_ops) <to_traceframe_info>: Use
12282 TARGET_DEFAULT_RETURN.
12284 2014-02-19 Tom Tromey <tromey@redhat.com>
12286 * target-delegates.c: Rebuild.
12287 * target.c (update_current_target): Don't inherit or default
12288 to_static_tracepoint_markers_by_strid.
12289 * target.h (struct target_ops)
12290 <to_static_tracepoint_markers_by_strid>: Use
12291 TARGET_DEFAULT_NORETURN.
12293 2014-02-19 Tom Tromey <tromey@redhat.com>
12295 * target-delegates.c: Rebuild.
12296 * target.c (update_current_target): Don't inherit or default
12297 to_static_tracepoint_marker_at.
12298 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12299 Use TARGET_DEFAULT_RETURN.
12301 2014-02-19 Tom Tromey <tromey@redhat.com>
12303 * target-delegates.c: Rebuild.
12304 * target.c (update_current_target): Don't inherit or default
12305 to_set_permissions.
12306 * target.h (struct target_ops) <to_set_permissions>: Use
12307 TARGET_DEFAULT_IGNORE.
12309 2014-02-19 Tom Tromey <tromey@redhat.com>
12311 * target-delegates.c: Rebuild.
12312 * target.c (update_current_target): Don't inherit or default
12313 to_get_tib_address.
12314 * target.h (struct target_ops) <to_get_tib_address>: Use
12315 TARGET_DEFAULT_NORETURN.
12317 2014-02-19 Tom Tromey <tromey@redhat.com>
12319 * target-delegates.c: Rebuild.
12320 * target.c (update_current_target): Don't inherit or default
12321 to_set_trace_notes.
12322 * target.h (struct target_ops) <to_set_trace_notes>: Use
12323 TARGET_DEFAULT_RETURN.
12325 2014-02-19 Tom Tromey <tromey@redhat.com>
12327 * target-delegates.c: Rebuild.
12328 * target.c (update_current_target): Don't initialize
12329 to_set_trace_buffer_size.
12330 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12331 TARGET_DEFAULT_IGNORE.
12333 2014-02-19 Tom Tromey <tromey@redhat.com>
12335 * target-delegates.c: Rebuild.
12336 * target.c (update_current_target): Don't inherit or default
12337 to_set_circular_trace_buffer.
12338 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12339 TARGET_DEFAULT_IGNORE.
12341 2014-02-19 Tom Tromey <tromey@redhat.com>
12343 * target-delegates.c: Rebuild.
12344 * target.c (update_current_target): Don't inherit or default
12345 to_set_disconnected_tracing.
12346 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12347 TARGET_DEFAULT_IGNORE.
12349 2014-02-19 Tom Tromey <tromey@redhat.com>
12351 * target-delegates.c: Rebuild.
12352 * target.c (update_current_target): Don't inherit or default
12353 to_get_min_fast_tracepoint_insn_len.
12354 (return_minus_one): Remove.
12355 * target.h (struct target_ops)
12356 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12358 2014-02-19 Tom Tromey <tromey@redhat.com>
12360 * target-delegates.c: Rebuild.
12361 * target.c (update_current_target): Don't inherit or default
12362 to_get_raw_trace_data.
12363 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12364 TARGET_DEFAULT_NORETURN.
12366 2014-02-19 Tom Tromey <tromey@redhat.com>
12368 * target-delegates.c: Rebuild.
12369 * target.c (update_current_target): Don't inherit or default
12370 to_upload_trace_state_variables.
12371 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12372 Use TARGET_DEFAULT_RETURN.
12374 2014-02-19 Tom Tromey <tromey@redhat.com>
12376 * target-delegates.c: Rebuild.
12377 * target.c (update_current_target): Don't inherit or default
12378 to_upload_tracepoints.
12379 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12380 TARGET_DEFAULT_RETURN.
12382 2014-02-19 Tom Tromey <tromey@redhat.com>
12384 * target-delegates.c: Rebuild.
12385 * target.c (update_current_target): Don't inherit or default
12386 to_save_trace_data.
12387 * target.h (struct target_ops) <to_save_trace_data>: Use
12388 TARGET_DEFAULT_NORETURN.
12390 2014-02-19 Tom Tromey <tromey@redhat.com>
12392 * target-delegates.c: Rebuild.
12393 * target.c (update_current_target): Don't inherit or default
12394 to_get_trace_state_variable_value.
12395 * target.h (struct target_ops)
12396 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12398 2014-02-19 Tom Tromey <tromey@redhat.com>
12400 * target-delegates.c: Rebuild.
12401 * target.c (update_current_target): Don't inherit or default
12403 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12405 2014-02-19 Tom Tromey <tromey@redhat.com>
12407 * target-delegates.c: Rebuild.
12408 * target.c (update_current_target): Don't inherit or default
12410 * target.h (struct target_ops) <to_trace_stop>: Use
12411 TARGET_DEFAULT_NORETURN.
12413 2014-02-19 Tom Tromey <tromey@redhat.com>
12415 * target-delegates.c: Rebuild.
12416 * target.c (update_current_target): Don't inherit or default
12417 to_get_tracepoint_status.
12418 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12419 TARGET_DEFAULT_NORETURN.
12421 2014-02-19 Tom Tromey <tromey@redhat.com>
12423 * target-delegates.c: Rebuild.
12424 * target.c (update_current_target): Don't inherit or default
12425 to_get_trace_status.
12426 * target.h (struct target_ops) <to_get_trace_status>: Use
12427 TARGET_DEFAULT_RETURN.
12429 2014-02-19 Tom Tromey <tromey@redhat.com>
12431 * target-delegates.c: Rebuild.
12432 * target.c (update_current_target): Don't inherit or default
12434 * target.h (struct target_ops) <to_trace_start>: Use
12435 TARGET_DEFAULT_NORETURN.
12437 2014-02-19 Tom Tromey <tromey@redhat.com>
12439 * target-delegates.c: Rebuild.
12440 * target.c (update_current_target): Don't inherit or default
12441 to_trace_set_readonly_regions.
12442 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12443 Use TARGET_DEFAULT_NORETURN.
12445 2014-02-19 Tom Tromey <tromey@redhat.com>
12447 * target-delegates.c: Rebuild.
12448 * target.c (update_current_target): Don't inherit or default
12449 to_disable_tracepoint.
12450 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12451 TARGET_DEFAULT_NORETURN.
12453 2014-02-19 Tom Tromey <tromey@redhat.com>
12455 * target-delegates.c: Rebuild.
12456 * target.c (update_current_target): Don't inherit or default
12457 to_enable_tracepoint.
12458 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12459 TARGET_DEFAULT_NORETURN.
12461 2014-02-19 Tom Tromey <tromey@redhat.com>
12463 * target-delegates.c: Rebuild.
12464 * target.c (update_current_target): Don't inherit or default
12465 to_download_trace_state_variable.
12466 * target.h (struct target_ops) <to_download_trace_state_variable>:
12467 Use TARGET_DEFAULT_NORETURN.
12469 2014-02-19 Tom Tromey <tromey@redhat.com>
12471 * target-delegates.c: Rebuild.
12472 * target.c (update_current_target): Don't inherit or default
12473 to_can_download_tracepoint.
12474 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12475 TARGET_DEFAULT_RETURN.
12477 2014-02-19 Tom Tromey <tromey@redhat.com>
12479 * target-delegates.c: Rebuild.
12480 * target.c (update_current_target): Don't inherit or default
12481 to_download_tracepoint.
12482 * target.h (struct target_ops) <to_download_tracepoint>: Use
12483 TARGET_DEFAULT_NORETURN.
12485 2014-02-19 Tom Tromey <tromey@redhat.com>
12487 * target-delegates.c: Rebuild.
12488 * target.c (update_current_target): Don't inherit or default
12490 * target.h (struct target_ops) <to_trace_init>: Use
12491 TARGET_DEFAULT_RETURN.
12493 2014-02-19 Tom Tromey <tromey@redhat.com>
12495 * target-delegates.c: Rebuild.
12496 * target.c (update_current_target): Don't inherit or default
12497 to_supports_string_tracing.
12498 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12499 TARGET_DEFAULT_RETURN.
12501 2014-02-19 Tom Tromey <tromey@redhat.com>
12503 * target-delegates.c: Rebuild.
12504 * target.c (update_current_target): Don't inherit or default
12505 to_supports_enable_disable_tracepoint.
12506 * target.h (struct target_ops)
12507 <to_supports_enable_disable_tracepoint>: Use
12508 TARGET_DEFAULT_RETURN.
12510 2014-02-19 Tom Tromey <tromey@redhat.com>
12512 * target-delegates.c: Rebuild.
12513 * target.c (update_current_target): Don't inherit or default
12514 to_supports_multi_process.
12515 * target.h (struct target_ops) <to_supports_multi_process>: Use
12516 TARGET_DEFAULT_RETURN.
12518 2014-02-19 Tom Tromey <tromey@redhat.com>
12520 * target-delegates.c: Rebuild.
12521 * target.c (update_current_target): Don't inherit or default
12522 to_get_ada_task_ptid.
12523 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12524 TARGET_DEFAULT_FUNC.
12526 2014-02-19 Tom Tromey <tromey@redhat.com>
12528 * target-delegates.c: Rebuild.
12529 * target.c (update_current_target): Don't inherit or default
12530 to_thread_architecture.
12531 * target.h (struct target_ops) <to_thread_architecture>: Use
12532 TARGET_DEFAULT_FUNC.
12534 2014-02-19 Tom Tromey <tromey@redhat.com>
12536 * target-delegates.c: Rebuild.
12537 * target.c (update_current_target): Don't inherit or default
12538 to_execution_direction.
12539 * target.h (struct target_ops) <to_execution_direction>: Use
12540 TARGET_DEFAULT_FUNC.
12542 2014-02-19 Tom Tromey <tromey@redhat.com>
12544 * target-delegates.c: Rebuild.
12545 * target.c (update_current_target): Don't inherit or default
12546 to_can_execute_reverse.
12547 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12548 TARGET_DEFAULT_RETURN.
12549 (target_can_execute_reverse): Unconditionally delegate.
12551 2014-02-19 Tom Tromey <tromey@redhat.com>
12553 * target-delegates.c: Rebuild.
12554 * target.c (update_current_target): Don't inherit or default
12556 (dummy_goto_bookmark): Remove.
12557 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12558 * target.h (struct target_ops) <to_goto_bookmark>: Use
12559 TARGET_DEFAULT_NORETURN.
12561 2014-02-19 Tom Tromey <tromey@redhat.com>
12563 * target-delegates.c: Rebuild.
12564 * target.c (update_current_target): Don't inherit or default
12566 (dummy_get_bookmark): Remove.
12567 (init_dummy_target): Don't inherit or default to_get_bookmark.
12568 * target.h (struct target_ops) <to_get_bookmark>: Use
12569 TARGET_DEFAULT_NORETURN
12571 2014-02-19 Tom Tromey <tromey@redhat.com>
12573 * target-delegates.c: Rebuild.
12574 * target.c (update_current_target): Don't inherit or default
12575 to_make_corefile_notes.
12576 (init_dummy_target): Don't initialize to_make_corefile_notes.
12577 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12578 TARGET_DEFAULT_FUNC.
12580 2014-02-19 Tom Tromey <tromey@redhat.com>
12582 * target-delegates.c: Rebuild.
12583 * target.c (update_current_target): Don't inherit or default
12584 to_find_memory_regions.
12585 (init_dummy_target): Don't initialize to_find_memory_regions.
12586 * target.h (struct target_ops) <to_find_memory_regions>: Use
12587 TARGET_DEFAULT_FUNC.
12589 2014-02-19 Tom Tromey <tromey@redhat.com>
12591 * target-delegates.c: Rebuild.
12592 * target.c (update_current_target): Don't inherit or default
12594 * target.h (struct target_ops) <to_log_command>: Use
12595 TARGET_DEFAULT_IGNORE.
12596 (target_log_command): Unconditionally delegate.
12598 2014-02-19 Tom Tromey <tromey@redhat.com>
12600 * target-delegates.c: Rebuild.
12601 * target.c (update_current_target): Don't inherit or default
12602 to_pid_to_exec_file.
12603 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12604 TARGET_DEFAULT_RETURN.
12606 2014-02-19 Tom Tromey <tromey@redhat.com>
12608 * target-delegates.c: Rebuild.
12609 * target.c (update_current_target): Don't inherit or default
12611 (target_thread_name): Unconditionally delegate.
12612 * target.h (struct target_ops) <to_thread_name>: Use
12613 TARGET_DEFAULT_RETURN.
12615 2014-02-19 Tom Tromey <tromey@redhat.com>
12617 * target-delegates.c: Rebuild.
12618 * target.c (update_current_target): Don't inherit or default
12619 to_extra_thread_info.
12620 * target.h (struct target_ops) <to_extra_thread_info>: Use
12621 TARGET_DEFAULT_RETURN.
12623 2014-02-19 Tom Tromey <tromey@redhat.com>
12625 * target-delegates.c: Rebuild.
12626 * target.c (update_current_target): Don't inherit or default
12628 * target.h (struct target_ops) <to_has_exited>: Use
12629 TARGET_DEFAULT_RETURN..
12631 2014-02-19 Tom Tromey <tromey@redhat.com>
12633 * target-delegates.c: Rebuild.
12634 * target.c (update_current_target): Don't inherit or default
12635 to_set_syscall_catchpoint.
12636 (return_one): Remove.
12637 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12638 TARGET_DEFAULT_RETURN.
12640 2014-02-19 Tom Tromey <tromey@redhat.com>
12642 * target-delegates.c: Rebuild.
12643 * target.c (update_current_target): Don't inherit or default
12644 to_insert_exec_catchpoint.
12645 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12646 TARGET_DEFAULT_RETURN.
12648 2014-01-08 Tom Tromey <tromey@redhat.com>
12650 * target-delegates.c: Rebuild.
12651 * target.c (update_current_target): Don't inherit or default
12652 to_insert_exec_catchpoint.
12653 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12654 TARGET_DEFAULT_RETURN.
12656 2014-02-19 Tom Tromey <tromey@redhat.com>
12658 * target-delegates.c: Rebuild.
12659 * target.c (update_current_target): Don't inherit or default
12660 to_remove_vfork_catchpoint.
12661 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12662 TARGET_DEFAULT_RETURN.
12664 2014-02-19 Tom Tromey <tromey@redhat.com>
12666 * target-delegates.c: Rebuild.
12667 * target.c (update_current_target): Don't inherit or default
12668 to_insert_vfork_catchpoint.
12669 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12670 TARGET_DEFAULT_RETURN.
12672 2014-02-19 Tom Tromey <tromey@redhat.com>
12674 * target-delegates.c: Rebuild.
12675 * target.c (update_current_target): Don't inherit or default
12676 to_remove_fork_catchpoint.
12677 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12678 TARGET_DEFAULT_RETURN.
12680 2014-02-19 Tom Tromey <tromey@redhat.com>
12682 * target-delegates.c: Rebuild.
12683 * target.c (update_current_target): Don't inherit or default
12684 to_insert_fork_catchpoint.
12685 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12686 TARGET_DEFAULT_RETURN.
12688 2014-02-19 Tom Tromey <tromey@redhat.com>
12690 * target-delegates.c: Rebuild.
12691 * target.c (update_current_target): Don't inherit or default
12692 to_post_startup_inferior.
12693 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12694 TARGET_DEFAULT_IGNORE.
12696 2014-02-19 Tom Tromey <tromey@redhat.com>
12698 * target-delegates.c: Rebuild.
12699 * target.c (update_current_target): Don't inherit or default
12701 * target.h (struct target_ops) <to_load>: Use
12702 TARGET_DEFAULT_NORETURN.
12704 2014-02-19 Tom Tromey <tromey@redhat.com>
12706 * target-delegates.c: Rebuild.
12707 * target.c (update_current_target): Don't inherit or default
12709 * target.h (struct target_ops) <to_terminal_info>: Use
12710 TARGET_DEFAULT_FUNC.
12712 2014-02-19 Tom Tromey <tromey@redhat.com>
12714 * target-delegates.c: Rebuild.
12715 * target.c (update_current_target): Don't inherit or default
12716 to_terminal_save_ours.
12717 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12718 TARGET_DEFAULT_IGNORE.
12720 2014-02-19 Tom Tromey <tromey@redhat.com>
12722 * target-delegates.c: Rebuild.
12723 * target.c (update_current_target): Don't inherit or default
12725 * target.h (struct target_ops) <to_terminal_ours>: Use
12726 TARGET_DEFAULT_IGNORE.
12728 2014-02-19 Tom Tromey <tromey@redhat.com>
12730 * target-delegates.c: Rebuild.
12731 * target.c (update_current_target): Don't inherit or default
12732 to_terminal_ours_for_output.
12733 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12734 TARGET_DEFAULT_IGNORE.
12736 2014-02-19 Tom Tromey <tromey@redhat.com>
12738 * target-delegates.c: Rebuild.
12739 * target.c (update_current_target): Don't inherit or default
12740 to_terminal_inferior.
12741 * target.h (struct target_ops) <to_terminal_inferior>: Use
12742 TARGET_DEFAULT_IGNORE.
12744 2014-02-19 Tom Tromey <tromey@redhat.com>
12746 * target-delegates.c: Rebuild.
12747 * target.c (update_current_target): Don't inherit or default
12749 * target.h (struct target_ops) <to_terminal_init>: Use
12750 TARGET_DEFAULT_IGNORE.
12752 2014-02-19 Tom Tromey <tromey@redhat.com>
12754 * target-delegates.c: Rebuild.
12755 * target.c (update_current_target): Don't inherit or default
12756 to_can_accel_watchpoint_condition.
12757 * target.h (struct target_ops)
12758 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12760 2014-02-19 Tom Tromey <tromey@redhat.com>
12762 * target-delegates.c: Rebuild.
12763 * target.c (update_current_target): Don't inherit or default
12764 to_region_ok_for_hw_watchpoint.
12765 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12766 Use TARGET_DEFAULT_FUNC.
12768 2014-02-19 Tom Tromey <tromey@redhat.com>
12770 * target-delegates.c: Rebuild.
12771 * target.c (update_current_target): Don't inherit or default
12772 to_watchpoint_addr_within_range.
12773 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12774 Use TARGET_DEFAULT_FUNC.
12776 2014-02-19 Tom Tromey <tromey@redhat.com>
12778 * target-delegates.c: Rebuild.
12779 * target.c (update_current_target): Don't inherit or default
12780 to_remove_watchpoint.
12781 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12782 TARGET_DEFAULT_NORETURN.
12784 2014-02-19 Tom Tromey <tromey@redhat.com>
12786 * target-delegates.c: Rebuild.
12787 * target.c (update_current_target): Don't inherit or default
12788 to_insert_watchpoint.
12789 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12790 TARGET_DEFAULT_RETURN.
12792 2014-02-19 Tom Tromey <tromey@redhat.com>
12794 * target-delegates.c: Rebuild.
12795 * target.c (update_current_target): Don't inherit or default
12796 to_remove_hw_breakpoint.
12797 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12798 TARGET_DEFAULT_RETURN.
12800 2014-02-19 Tom Tromey <tromey@redhat.com>
12802 * target-delegates.c: Rebuild.
12803 * target.c (update_current_target): Don't inherit or default
12804 to_insert_hw_breakpoint.
12805 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12806 TARGET_DEFAULT_RETURN.
12808 2014-02-19 Tom Tromey <tromey@redhat.com>
12810 * target-delegates.c: Rebuild.
12811 * target.c (update_current_target): Don't inherit or default
12812 to_can_use_hw_breakpoint.
12813 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12814 TARGET_DEFAULT_RETURN.
12816 2014-02-19 Tom Tromey <tromey@redhat.com>
12818 * target-delegates.c: Rebuild.
12819 * target.c (update_current_target): Don't inherit or default
12821 * target.h (struct target_ops) <to_files_info>: Use
12822 TARGET_DEFAULT_IGNORE.
12824 2014-02-19 Tom Tromey <tromey@redhat.com>
12826 * target-delegates.c: Rebuild.
12827 * target.c (update_current_target): Don't inherit or default
12829 * target.h (struct target_ops) <to_store>: Use
12830 TARGET_DEFAULT_NORETURN.
12832 2014-02-19 Tom Tromey <tromey@redhat.com>
12834 * target-delegates.c: Rebuild.
12835 * target.c (update_current_target): Don't inherit or default
12837 * target.h (struct target_ops) <to_post_attach>: Use
12838 TARGET_DEFAULT_IGNORE.
12840 2014-02-19 Tom Tromey <tromey@redhat.com>
12842 * target-delegates.c: Rebuild.
12843 * target.c (update_current_target): Don't inherit or default
12845 (default_rcmd): New function.
12846 (do_monitor_command): Unconditionally delegate.
12847 * target.h (struct target_ops) <to_rmcd>: Use
12848 TARGET_DEFAULT_FUNC.
12850 2014-02-19 Tom Tromey <tromey@redhat.com>
12852 * target-delegates.c: Rebuild.
12853 * target.c (init_dummy_target): Don't initialize to_attach.
12854 (target_attach): Unconditionally delegate.
12855 * target.h (struct target_ops) <to_attach>: Use
12856 TARGET_DEFAULT_FUNC.
12858 2014-02-19 Tom Tromey <tromey@redhat.com>
12860 * target-delegates.c: Rebuild.
12861 * target.c (target_detach): Unconditionally delegate.
12862 (init_dummy_target): Don't initialize to_detach.
12863 * target.h (struct target_ops) <to_detach>: Use
12864 TARGET_DEFAULT_IGNORE.
12866 2014-02-19 Tom Tromey <tromey@redhat.com>
12868 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12870 (target_augmented_libraries_svr4_read): Add argument.
12871 * target.c (update_current_target): Update.
12872 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12875 2014-02-19 Tom Tromey <tromey@redhat.com>
12877 * target.h (struct target_ops) <to_call_history_range>: Add
12879 * target.c (target_call_history_range): Add argument.
12880 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12882 (record_btrace_call_history_from): Update.
12884 2014-02-19 Tom Tromey <tromey@redhat.com>
12886 * target.h (struct target_ops) <to_call_history_from>: Add
12888 * target.c (target_call_history_from): Add argument.
12889 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12892 2014-02-19 Tom Tromey <tromey@redhat.com>
12894 * target.h (struct target_ops) <to_call_history>: Add argument.
12895 * target.c (target_call_history): Add argument.
12896 * record-btrace.c (record_btrace_call_history): Add 'self'
12899 2014-02-19 Tom Tromey <tromey@redhat.com>
12901 * target.h (struct target_ops) <to_insn_history_range>: Add
12903 * target.c (target_insn_history_range): Add argument.
12904 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12906 (record_btrace_insn_history_from): Update.
12908 2014-02-19 Tom Tromey <tromey@redhat.com>
12910 * target.h (struct target_ops) <to_insn_history_from>: Add
12912 * target.c (target_insn_history_from): Add argument.
12913 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12916 2014-02-19 Tom Tromey <tromey@redhat.com>
12918 * target.h (struct target_ops) <to_insn_history>: Add argument.
12919 * target.c (target_insn_history): Add argument.
12920 * record-btrace.c (record_btrace_insn_history): Add 'self'
12923 2014-02-19 Tom Tromey <tromey@redhat.com>
12925 * target.h (struct target_ops) <to_goto_record>: Add argument.
12926 * target.c (target_goto_record): Add argument.
12927 * record-full.c (record_full_goto): Add 'self' argument.
12928 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12930 2014-02-19 Tom Tromey <tromey@redhat.com>
12932 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12933 * target.c (target_goto_record_end): Add argument.
12934 * record-full.c (record_full_goto_end): Add 'self' argument.
12935 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12937 2014-02-19 Tom Tromey <tromey@redhat.com>
12939 * target.h (struct target_ops) <to_goto_record_begin>: Add
12941 * target.c (target_goto_record_begin): Add argument.
12942 * record-full.c (record_full_goto_begin): Add 'self' argument.
12943 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12946 2014-02-19 Tom Tromey <tromey@redhat.com>
12948 * target.h (struct target_ops) <to_record_is_replaying>: Add
12950 * target.c (target_record_is_replaying): Add argument.
12951 * record-full.c (record_full_is_replaying): Add 'self' argument.
12952 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12954 (record_btrace_xfer_partial, record_btrace_store_registers)
12955 (record_btrace_prepare_to_store, record_btrace_resume)
12956 (record_btrace_wait, record_btrace_decr_pc_after_break)
12957 (record_btrace_find_new_threads, record_btrace_thread_alive):
12960 2014-02-19 Tom Tromey <tromey@redhat.com>
12962 * target.h (struct target_ops) <to_delete_record>: Add argument.
12963 * target.c (target_delete_record): Add argument.
12964 * record-full.c (record_full_delete): Add 'self' argument.
12966 2014-02-19 Tom Tromey <tromey@redhat.com>
12968 * target.h (struct target_ops) <to_save_record>: Add argument.
12969 * target.c (target_save_record): Add argument.
12970 * record-full.c (record_full_save): Add 'self' argument.
12971 (record_full_save): Add 'self' argument.
12973 2014-02-19 Tom Tromey <tromey@redhat.com>
12975 * target.h (struct target_ops) <to_info_record>: Add argument.
12976 * target.c (target_info_record): Add argument.
12977 * record.c (info_record_command): Add argument.
12978 * record-full.c (record_full_info): Add 'self' argument.
12979 * record-btrace.c (record_btrace_info): Add 'self' argument.
12981 2014-02-19 Tom Tromey <tromey@redhat.com>
12983 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12984 * target.c (target_stop_recording): Add argument.
12985 * record.c (record_stop): Add argument.
12986 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12989 2014-02-19 Tom Tromey <tromey@redhat.com>
12991 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12992 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12993 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12995 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12996 (_initialize_amd64_linux_nat): Use it.
12997 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12998 (_initialize_i386_linux_nat): Use it.
13000 2014-02-19 Tom Tromey <tromey@redhat.com>
13002 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
13003 * target.c (target_teardown_btrace): Add argument.
13004 * remote.c (remote_teardown_btrace): Add 'self' argument.
13005 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
13007 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
13010 2014-02-19 Tom Tromey <tromey@redhat.com>
13012 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
13013 * target.c (target_disable_btrace): Add argument.
13014 * remote.c (remote_disable_btrace): Add 'self' argument.
13015 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
13017 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
13020 2014-02-19 Tom Tromey <tromey@redhat.com>
13022 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
13023 * target.c (target_enable_btrace): Add argument.
13024 * remote.c (remote_enable_btrace): Add 'self' argument.
13025 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
13027 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
13030 2014-02-19 Tom Tromey <tromey@redhat.com>
13032 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
13033 (target_can_use_agent): Add argument.
13034 * target.c (update_current_target): Update.
13035 * remote.c (remote_can_use_agent): Add 'self' argument.
13036 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
13038 2014-02-19 Tom Tromey <tromey@redhat.com>
13040 * target.h (struct target_ops) <to_use_agent>: Add argument.
13041 (target_use_agent): Add argument.
13042 * target.c (update_current_target): Update.
13043 * remote.c (remote_use_agent): Add 'self' argument.
13044 * inf-child.c (inf_child_use_agent): Add 'self' argument.
13046 2014-02-19 Tom Tromey <tromey@redhat.com>
13048 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
13049 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
13050 (target_traceframe_info): Add argument.
13051 * target.c (update_current_target): Update.
13052 * remote.c (remote_traceframe_info): Add 'self' argument.
13053 * ctf.c (ctf_traceframe_info): Add 'self' argument.
13055 2014-02-19 Tom Tromey <tromey@redhat.com>
13057 * target.h (target_static_tracepoint_markers_by_strid): Add
13059 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
13061 * target.c (update_current_target): Update.
13062 * remote.c (struct target_ops)
13063 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13064 * linux-nat.c (struct target_ops)
13065 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13067 2014-02-19 Tom Tromey <tromey@redhat.com>
13069 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
13071 (target_static_tracepoint_marker_at): Add argument.
13072 * target.c (update_current_target): Update.
13073 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
13076 2014-02-19 Tom Tromey <tromey@redhat.com>
13078 * target.h (struct target_ops) <to_set_permissions>: Add argument.
13079 (target_set_permissions): Add argument.
13080 * target.c (update_current_target): Update.
13081 * remote.c (remote_set_permissions): Add 'self' argument.
13082 (remote_start_remote): Update.
13084 2014-02-19 Tom Tromey <tromey@redhat.com>
13086 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
13087 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
13088 (target_get_tib_address): Add argument.
13089 * target.c (update_current_target): Update.
13090 * remote.c (remote_get_tib_address): Add 'self' argument.
13092 2014-02-19 Tom Tromey <tromey@redhat.com>
13094 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
13095 (target_set_trace_notes): Add argument.
13096 * target.c (update_current_target): Update.
13097 * remote.c (remote_set_trace_notes): Add 'self' argument.
13099 2014-02-19 Tom Tromey <tromey@redhat.com>
13101 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
13103 (target_set_trace_buffer_size): Add argument.
13104 * target.c (update_current_target): Update.
13105 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
13107 2014-02-19 Tom Tromey <tromey@redhat.com>
13109 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
13111 (target_set_circular_trace_buffer): Add argument.
13112 * target.c (update_current_target): Update.
13113 * remote.c (remote_set_circular_trace_buffer): Add 'self'
13116 2014-02-19 Tom Tromey <tromey@redhat.com>
13118 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
13120 (target_set_disconnected_tracing): Add argument.
13121 * target.c (update_current_target): Update.
13122 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
13124 2014-02-19 Tom Tromey <tromey@redhat.com>
13126 * target.h (struct target_ops)
13127 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13128 (target_get_min_fast_tracepoint_insn_len): Add argument.
13129 * target.c (update_current_target): Update.
13130 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13133 2014-02-19 Tom Tromey <tromey@redhat.com>
13135 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13137 (target_get_raw_trace_data): Add argument.
13138 * target.c (update_current_target): Update.
13139 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13141 2014-02-19 Tom Tromey <tromey@redhat.com>
13143 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13145 (target_upload_trace_state_variables): Add argument.
13146 * target.c (update_current_target): Update.
13147 * remote.c (remote_upload_trace_state_variables): Add 'self'
13149 (remote_start_remote): Update.
13151 2014-02-19 Tom Tromey <tromey@redhat.com>
13153 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13155 (target_upload_tracepoints): Add argument.
13156 * target.c (update_current_target): Update.
13157 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13158 (remote_start_remote): Update.
13160 2014-02-19 Tom Tromey <tromey@redhat.com>
13162 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13163 (target_save_trace_data): Add argument.
13164 * target.c (update_current_target): Update.
13165 * remote.c (remote_save_trace_data): Add 'self' argument.
13167 2014-02-19 Tom Tromey <tromey@redhat.com>
13169 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13171 * target.h (struct target_ops)
13172 <to_get_trace_state_variable_value>: Add argument.
13173 (target_get_trace_state_variable_value): Add argument.
13174 * target.c (update_current_target): Update.
13175 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13177 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13179 2014-02-19 Tom Tromey <tromey@redhat.com>
13181 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13182 * target.h (struct target_ops) <to_trace_find>: Add argument.
13183 (target_trace_find): Add argument.
13184 * target.c (update_current_target): Update.
13185 * remote.c (remote_trace_find): Add 'self' argument.
13186 * ctf.c (ctf_trace_find): Add 'self' argument.
13188 2014-02-19 Tom Tromey <tromey@redhat.com>
13190 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13191 (target_trace_stop): Add argument.
13192 * target.c (update_current_target): Update.
13193 * remote.c (remote_trace_stop): Add 'self' argument.
13195 2014-02-19 Tom Tromey <tromey@redhat.com>
13197 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13198 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13200 (target_get_tracepoint_status): Add argument.
13201 * target.c (update_current_target): Update.
13202 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13204 2014-02-19 Tom Tromey <tromey@redhat.com>
13206 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13207 * target.h (struct target_ops) <to_get_trace_status>: Add
13209 (target_get_trace_status): Add argument.
13210 * target.c (update_current_target): Update.
13211 * remote.c (remote_get_trace_status): Add 'self' argument.
13212 (remote_start_remote, remote_can_download_tracepoint): Update.
13213 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13215 2014-02-19 Tom Tromey <tromey@redhat.com>
13217 * target.h (struct target_ops) <to_trace_start>: Add argument.
13218 (target_trace_start): Add argument.
13219 * target.c (update_current_target): Update.
13220 * remote.c (remote_trace_start): Add 'self' argument.
13222 2014-02-19 Tom Tromey <tromey@redhat.com>
13224 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13226 (target_trace_set_readonly_regions): Add argument.
13227 * target.c (update_current_target): Update.
13228 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13231 2014-02-19 Tom Tromey <tromey@redhat.com>
13233 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13235 (target_disable_tracepoint): Add argument.
13236 * target.c (update_current_target): Update.
13237 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13239 2014-02-19 Tom Tromey <tromey@redhat.com>
13241 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13243 (target_enable_tracepoint): Add argument.
13244 * target.c (update_current_target): Update.
13245 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13247 2014-02-19 Tom Tromey <tromey@redhat.com>
13249 * target.h (struct target_ops) <to_download_trace_state_variable>:
13251 (target_download_trace_state_variable): Add argument.
13252 * target.c (update_current_target): Update.
13253 * remote.c (remote_download_trace_state_variable): Add 'self'
13256 2014-02-19 Tom Tromey <tromey@redhat.com>
13258 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13260 (target_can_download_tracepoint): Add argument.
13261 * target.c (update_current_target): Update.
13262 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13264 2014-02-19 Tom Tromey <tromey@redhat.com>
13266 * target.h (struct target_ops) <to_download_tracepoint>: Add
13268 (target_download_tracepoint): Add argument.
13269 * target.c (update_current_target): Update.
13270 * remote.c (remote_download_tracepoint): Add 'self' argument.
13272 2014-02-19 Tom Tromey <tromey@redhat.com>
13274 * target.h (struct target_ops) <to_trace_init>: Add argument.
13275 (target_trace_init): Add argument.
13276 * target.c (update_current_target): Update.
13277 * remote.c (remote_trace_init): Add 'self' argument.
13279 2014-02-19 Tom Tromey <tromey@redhat.com>
13281 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13282 * target.c (target_fileio_readlink): Add argument.
13283 * remote.c (remote_hostio_readlink): Add 'self' argument.
13284 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13286 2014-02-19 Tom Tromey <tromey@redhat.com>
13288 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13289 * target.c (target_fileio_unlink): Add argument.
13290 * remote.c (remote_hostio_unlink): Add 'self' argument.
13291 (remote_file_delete): Update.
13292 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13294 2014-02-19 Tom Tromey <tromey@redhat.com>
13296 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13297 * target.c (target_fileio_close): Add argument.
13298 * remote.c (remote_hostio_close): Add 'self' argument.
13299 (remote_hostio_close_cleanup): Update.
13300 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13302 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13304 2014-02-19 Tom Tromey <tromey@redhat.com>
13306 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13307 * target.c (target_fileio_pread): Add argument.
13308 * remote.c (remote_hostio_pread): Add 'self' argument.
13309 (remote_bfd_iovec_pread, remote_file_get): Update.
13310 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13312 2014-02-19 Tom Tromey <tromey@redhat.com>
13314 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13315 * target.c (target_fileio_pwrite): Add argument.
13316 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13317 (remote_file_put): Update.
13318 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13320 2014-02-19 Tom Tromey <tromey@redhat.com>
13322 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13323 * target.c (target_fileio_open): Add argument.
13324 * remote.c (remote_hostio_open): Add 'self' argument.
13325 (remote_bfd_iovec_open): Add 'self' argument.
13326 (remote_file_put): Add 'self' argument.
13327 (remote_file_get): Add 'self' argument.
13328 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13330 2014-02-19 Tom Tromey <tromey@redhat.com>
13332 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13334 (target_can_run_breakpoint_commands): Add argument.
13335 * target.c (update_current_target): Update.
13336 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13338 (remote_insert_breakpoint): Add 'self' argument.
13339 (remote_insert_hw_breakpoint): Add 'self' argument.
13340 (remote_can_run_breakpoint_commands): Add 'self' argument.
13342 2014-02-19 Tom Tromey <tromey@redhat.com>
13344 * target.h (struct target_ops)
13345 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13346 (target_supports_evaluation_of_breakpoint_conditions): Add
13348 * target.c (update_current_target): Update.
13349 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13351 (remote_insert_breakpoint): Add 'self' argument.
13352 (remote_insert_hw_breakpoint): Add 'self' argument.
13353 (remote_supports_cond_breakpoints): Add 'self' argument.
13355 2014-02-19 Tom Tromey <tromey@redhat.com>
13357 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13359 (target_supports_string_tracing): Add argument.
13360 * target.c (update_current_target): Update.
13361 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13363 2014-02-19 Tom Tromey <tromey@redhat.com>
13365 * target.h (struct target_ops)
13366 <to_supports_disable_randomization>: Add argument.
13367 * target.c (find_default_supports_disable_randomization): Add
13369 (target_supports_disable_randomization): Add argument.
13370 (find_default_supports_disable_randomization): Add 'self'
13372 * remote.c (extended_remote_supports_disable_randomization): Add
13374 (remote_supports_disable_randomization): Add 'self' argument.
13375 (extended_remote_create_inferior): Update.
13376 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13379 2014-02-19 Tom Tromey <tromey@redhat.com>
13381 * target.h (struct target_ops)
13382 <to_supports_enable_disable_tracepoint>: Add argument.
13383 (target_supports_enable_disable_tracepoint): Add argument.
13384 * target.c (update_current_target): Update.
13385 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13388 2014-02-19 Tom Tromey <tromey@redhat.com>
13390 * target.h (struct target_ops) <to_supports_multi_process>: Add
13392 (target_supports_multi_process): Add argument.
13393 * target.c (update_current_target): Update.
13394 * remote.c (remote_supports_multi_process): Add 'self' argument.
13395 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13397 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13400 2014-02-19 Tom Tromey <tromey@redhat.com>
13402 * target.h (struct target_ops) <to_execution_direction>: Add
13404 (target_execution_direction): Add argument.
13405 * target.c (default_execution_direction): Add 'self' argument.
13406 * record-full.c (record_full_execution_direction): Add 'self'
13409 2014-02-19 Tom Tromey <tromey@redhat.com>
13411 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13413 (target_can_execute_reverse): Add argument.
13414 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13415 * record-full.c (record_full_can_execute_reverse): Add 'self'
13417 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13420 2014-02-19 Tom Tromey <tromey@redhat.com>
13422 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13423 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13425 (target_get_ada_task_ptid): Add argument.
13426 * target.c (update_current_target): Update.
13427 (default_get_ada_task_ptid): Add 'self' argument.
13428 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13429 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13430 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13432 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13434 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13436 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13438 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13439 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13442 2014-02-19 Tom Tromey <tromey@redhat.com>
13444 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13445 (target_goto_bookmark): Add argument.
13446 * target.c (dummy_goto_bookmark): Add 'self' argument.
13447 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13449 2014-02-19 Tom Tromey <tromey@redhat.com>
13451 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13452 (target_get_bookmark): Add argument.
13453 * target.c (dummy_get_bookmark): Add 'self' argument.
13454 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13456 2014-02-19 Tom Tromey <tromey@redhat.com>
13458 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13460 (target_make_corefile_notes): Add argument.
13461 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13462 * procfs.c (procfs_make_note_section): Add 'self' argument.
13463 (procfs_make_note_section): Add 'self' argument.
13464 (procfs_make_note_section): Add 'self' argument.
13465 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13467 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13468 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13469 * exec.c (exec_make_note_section): Add 'self' argument.
13470 (exec_make_note_section): Add 'self' argument.
13472 2014-02-19 Tom Tromey <tromey@redhat.com>
13474 * target.h (struct target_ops) <to_find_memory_regions>: Add
13476 (target_find_memory_regions): Add argument.
13477 * target.c (dummy_find_memory_regions): Add 'self' argument.
13478 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13479 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13480 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13481 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13482 * exec. (exec_do_find_memory_regions): New global.
13483 (exec_set_find_memory_regions): Rewrite.
13484 (exec_find_memory_regions): New function.
13485 (init_exec_ops): Use exec_find_memory_regions.
13487 2014-02-19 Tom Tromey <tromey@redhat.com>
13489 * target.h (struct target_ops) <to_supports_non_stop>: Add
13491 * target.c (find_default_supports_non_stop): Add argument.
13492 (target_supports_non_stop): Add argument.
13493 (find_default_supports_non_stop): Add 'self' argument.
13494 * remote.c (remote_supports_non_stop): Add 'self' argument.
13495 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13497 2014-02-19 Tom Tromey <tromey@redhat.com>
13499 * target.h (struct target_ops) <to_log_command>: Add argument.
13500 (target_log_command): Add argument.
13501 * serial.h (serial_log_command): Add 'self' argument.
13502 * serial.c (serial_log_command): Add 'self' argument.
13504 2014-02-19 Tom Tromey <tromey@redhat.com>
13506 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13507 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13509 (target_pid_to_exec_file): Add argument.
13510 * target.c (debug_to_pid_to_exec_file): Add argument.
13511 (update_current_target): Update.
13512 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13513 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13514 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13515 (linux_handle_extended_wait): Update.
13516 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13517 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13518 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13519 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13521 2014-02-19 Tom Tromey <tromey@redhat.com>
13523 * target.h (struct target_ops) <to_rcmd>: Add argument.
13524 (target_rcmd): Add argument.
13525 * target.c (debug_to_rcmd): Add argument.
13526 (update_current_target, do_monitor_command): Update.
13527 * remote.c (remote_rcmd): Add 'self' argument.
13528 * monitor.c (monitor_rcmd): Add 'self' argument.
13530 2014-02-19 Tom Tromey <tromey@redhat.com>
13532 * windows-nat.c (windows_stop): Add 'self' argument.
13533 * target.h (struct target_ops) <to_stop>: Add argument.
13534 * target.c (target_stop): Add argument.
13535 (debug_to_stop): Add argument.
13536 (update_current_target): Update.
13537 * remote.c (remote_stop): Add 'self' argument.
13538 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13539 (gdbsim_cntrl_c): Update.
13540 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13541 * procfs.c (procfs_stop): Add 'self' argument.
13542 * nto-procfs.c (procfs_stop): Add 'self' argument.
13543 * monitor.c (monitor_stop): Add 'self' argument.
13544 (monitor_open): Update.
13545 * linux-nat.c (linux_nat_stop): Add argument.
13546 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13547 * gnu-nat.c (gnu_stop): Add 'self' argument.
13548 * darwin-nat.c (darwin_stop): Add 'self' argument.
13550 2014-02-19 Tom Tromey <tromey@redhat.com>
13552 * target.h (struct target_ops) <to_thread_name>: Add argument.
13553 * target.c (target_thread_name): Add argument.
13554 (update_current_target): Update.
13555 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13557 2014-02-19 Tom Tromey <tromey@redhat.com>
13559 * target.h (struct target_ops) <to_extra_thread_info>: Add
13561 (target_extra_thread_info): Add argument.
13562 * target.c (update_current_target): Update.
13563 * remote.c (remote_threads_extra_info): Add 'self' argument.
13564 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13566 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13567 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13568 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13570 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13572 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13574 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13577 2014-02-19 Tom Tromey <tromey@redhat.com>
13579 * target.h (struct target_ops) <to_program_signals>: Add argument.
13580 * target.c (target_program_signals): Add argument.
13581 * remote.c (remote_program_signals): Add 'self' argument.
13583 2014-02-19 Tom Tromey <tromey@redhat.com>
13585 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13586 * target.c (target_pass_signals): Add argument.
13587 * remote.c (remote_pass_signals): Add 'self' argument.
13588 (remote_start_remote): Update.
13589 * procfs.c (procfs_pass_signals): Add 'self' argument.
13590 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13591 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13592 (linux_nat_create_inferior, linux_nat_attach): Update.
13594 2014-02-19 Tom Tromey <tromey@redhat.com>
13596 * windows-nat.c (windows_can_run): Add 'self' argument.
13597 * target.h (struct target_ops) <to_can_run>: Add argument.
13598 (target_can_run): Add argument.
13599 * target.c (debug_to_can_run): Add argument.
13600 (update_current_target): Update.
13601 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13602 * inf-child.c (inf_child_can_run): Add 'self' argument.
13603 * go32-nat.c (go32_can_run): Add 'self' argument.
13605 2014-02-19 Tom Tromey <tromey@redhat.com>
13607 * target.h (struct target_ops) <to_has_exited>: Add argument.
13608 (target_has_exited): Add argument.
13609 * target.c (debug_to_has_exited): Add argument.
13610 (update_current_target): Update.
13612 2014-02-19 Tom Tromey <tromey@redhat.com>
13614 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13616 (target_set_syscall_catchpoint): Add argument.
13617 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13619 * target.c (update_current_target): Update.
13621 2014-02-19 Tom Tromey <tromey@redhat.com>
13623 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13625 (target_remove_exec_catchpoint): Add argument.
13626 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13627 (update_current_target): Update.
13628 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13631 2014-02-19 Tom Tromey <tromey@redhat.com>
13633 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13635 (target_insert_exec_catchpoint): Add argument.
13636 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13637 (update_current_target): Update.
13638 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13641 2014-02-19 Tom Tromey <tromey@redhat.com>
13643 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13645 (target_remove_vfork_catchpoint): Add argument.
13646 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13647 (update_current_target): Update.
13648 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13651 2014-02-19 Tom Tromey <tromey@redhat.com>
13653 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13655 (target_insert_vfork_catchpoint): Add argument.
13656 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13657 (update_current_target): Update.
13658 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13661 2014-02-19 Tom Tromey <tromey@redhat.com>
13663 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13665 (target_remove_fork_catchpoint): Add argument.
13666 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13667 (update_current_target): Update.
13668 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13671 2014-02-19 Tom Tromey <tromey@redhat.com>
13673 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13675 (target_insert_fork_catchpoint): Add argument.
13676 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13677 (update_current_target): Update.
13678 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13681 2014-02-19 Tom Tromey <tromey@redhat.com>
13683 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13685 (target_post_startup_inferior): Add argument.
13686 * target.c (debug_to_post_startup_inferior): Add argument.
13687 (update_current_target): Update.
13688 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13690 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13692 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13694 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13696 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13698 (super_post_startup_inferior): Likewise.
13699 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13701 (super_post_startup_inferior): Likewise.
13702 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13703 Add 'self' argument.
13704 (super_post_startup_inferior): Likewise.
13706 2014-02-19 Tom Tromey <tromey@redhat.com>
13708 * target.h (struct target_ops) <to_load>: Add argument.
13709 * target.c (target_load): Add argument.
13710 (debug_to_load): Add argument.
13711 (update_current_target): Update.
13712 * remote.c (remote_load): Add 'self' argument.
13713 * remote-sim.c (gdbsim_load): Add 'self' argument.
13714 * remote-mips.c (mips_load): Add 'self' argument.
13715 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13716 * monitor.c (monitor_load): Add 'self' argument.
13717 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13719 2014-02-19 Tom Tromey <tromey@redhat.com>
13721 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13722 (target_terminal_info): Add argument.
13723 * target.c (debug_to_terminal_info): Add argument.
13724 (default_terminal_info): Likewise.
13725 * inflow.c (child_terminal_info): Add 'self' argument.
13726 * inferior.h (child_terminal_info): Add 'self' argument.
13727 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13729 2014-02-19 Tom Tromey <tromey@redhat.com>
13731 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13733 (target_terminal_save_ours): Add argument.
13734 * target.c (debug_to_terminal_save_ours): Add argument.
13735 (update_current_target): Update.
13736 * inflow.c (terminal_save_ours): Add 'self' argument.
13737 * inferior.h (terminal_save_ours): Add 'self' argument.
13739 2014-02-19 Tom Tromey <tromey@redhat.com>
13741 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13742 (target_terminal_ours): Add argument.
13743 * target.c (debug_to_terminal_ours): Add argument.
13744 (update_current_target): Update.
13745 * remote.c (remote_terminal_ours): Add 'self' argument.
13746 (remote_close): Update.
13747 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13748 * inflow.c (terminal_ours): Add 'self' argument.
13749 * inferior.h (terminal_ours): Add 'self' argument.
13750 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13752 2014-02-19 Pedro Alves <palves@redhat.com>
13753 Tom Tromey <tromey@redhat.com>
13755 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13757 (target_terminal_ours_for_output): Add argument.
13758 * target.c (debug_to_terminal_ours_for_output): Add argument.
13759 (update_current_target): Update.
13760 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13761 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13762 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13764 2014-02-19 Tom Tromey <tromey@redhat.com>
13766 * target.h (struct target_ops) <to_terminal_inferior>: Add
13768 * target.c (target_terminal_inferior): Add argument.
13769 (update_current_target): Update.
13770 * remote.c (remote_terminal_inferior): Add 'self' argument.
13771 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13772 * inflow.c (terminal_inferior): Add 'self' argument.
13773 * inferior.h (terminal_inferior): Add 'self' argument.
13774 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13775 (go32_terminal_inferior): Add 'self' argument.
13777 2014-02-19 Tom Tromey <tromey@redhat.com>
13779 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13780 (target_terminal_init): Add argument.
13781 * target.c (debug_to_terminal_init): Add argument.
13782 (update_current_target): Update.
13783 * inflow.c (terminal_init_inferior): Add 'self' argument.
13784 * inferior.h (terminal_init_inferior): Add 'self' argument.
13785 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13786 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13788 2014-02-19 Tom Tromey <tromey@redhat.com>
13790 * target.h (struct target_ops)
13791 <to_can_accel_watchpoint_condition>: Add argument.
13792 (target_can_accel_watchpoint_condition): Add argument.
13793 * target.c (debug_to_can_accel_watchpoint_condition): Add
13795 (update_current_target): Update.
13796 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13799 2014-02-19 Tom Tromey <tromey@redhat.com>
13801 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13803 (target_region_ok_for_hw_watchpoint): Add argument.
13804 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13805 (default_region_ok_for_hw_watchpoint): Add argument.
13806 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13807 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13809 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13811 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13813 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13815 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13817 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13819 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13820 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13822 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13823 Add 'self' argument.
13825 2014-02-19 Tom Tromey <tromey@redhat.com>
13827 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13829 (target_insert_watchpoint): Add argument.
13830 * target.c (debug_to_insert_watchpoint): Add argument.
13831 (update_current_target): Update.
13832 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13833 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13834 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13835 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13836 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13837 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13839 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13840 (procfs_insert_hw_watchpoint): Add 'self' argument.
13841 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13843 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13845 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13847 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13848 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13850 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13853 2014-02-19 Tom Tromey <tromey@redhat.com>
13855 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13857 (target_remove_watchpoint): Add argument.
13858 * target.c (debug_to_remove_watchpoint): Add argument.
13859 (update_current_target): Update.
13860 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13861 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13862 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13863 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13864 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13865 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13867 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13868 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13870 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13872 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13874 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13875 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13877 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13880 2014-02-19 Tom Tromey <tromey@redhat.com>
13882 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13884 (target_remove_hw_breakpoint): Add argument.
13885 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13886 (update_current_target): Update.
13887 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13888 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13890 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13891 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13893 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13896 2014-02-19 Tom Tromey <tromey@redhat.com>
13898 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13900 (target_insert_hw_breakpoint): Add argument.
13901 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13902 (update_current_target): Update.
13903 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13904 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13906 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13907 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13908 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13910 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13913 2014-02-19 Tom Tromey <tromey@redhat.com>
13915 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13917 (target_can_use_hardware_watchpoint): Add argument.
13918 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13919 (update_current_target): Update.
13920 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13922 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13924 * remote.c (remote_check_watch_resources): Add 'self' argument.
13925 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13926 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13928 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13929 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13931 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13933 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13935 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13937 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13939 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13941 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13942 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13944 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13947 2014-02-19 Tom Tromey <tromey@redhat.com>
13949 * target.h (struct target_ops) <to_post_attach>: Add argument.
13950 (target_post_attach): Add argument.
13951 * target.c (debug_to_post_attach): Add argument.
13952 (update_current_target): Update.
13953 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13954 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13955 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13956 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13957 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13959 2014-02-19 Tom Tromey <tromey@redhat.com>
13961 * windows-nat.c (windows_close): Add 'self' argument.
13962 * tracepoint.c (tfile_close): Add 'self' argument.
13963 * target.h (struct target_ops) <to_close>: Add argument.
13964 * target.c (target_close): Add argument.
13965 (update_current_target): Update.
13966 * remote.c (remote_close): Add 'self' argument.
13967 * remote-sim.c (gdbsim_close): Add 'self' argument.
13968 * remote-mips.c (mips_close): Add 'self' argument.
13969 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13970 * record-full.c (record_full_close): Add 'self' argument.
13971 * record-btrace.c (record_btrace_close): Add 'self' argument.
13972 * monitor.h (monitor_close): Add 'self' argument.
13973 * monitor.c (monitor_close): Add 'self' argument.
13974 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13975 * linux-nat.c (linux_nat_close): Add argument.
13976 * go32-nat.c (go32_close): Add 'self' argument.
13977 * exec.c (exec_close_1): Add 'self' argument.
13978 * ctf.c (ctf_close): Add 'self' argument.
13979 * corelow.c (core_close): Add 'self' argument.
13980 (core_close_cleanup): Update.
13981 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13982 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13984 2014-02-19 Tom Tromey <tromey@redhat.com>
13986 * remote.c (remote_load): New function.
13987 (init_remote_ops): Use it.
13989 2014-02-19 Tom Tromey <tromey@redhat.com>
13991 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13993 * common/linux-btrace.h (linux_supports_btrace): Update.
13994 * remote.c (remote_supports_btrace): Add "self" argument.
13995 * target-delegates.c: Rebuild.
13996 * target.c (target_supports_btrace): Remove.
13997 * target.h (struct target_ops) <to_supports_btrace>: Add
13998 target_ops argument.
13999 (target_supports_btrace): New define.
14001 2014-02-19 Tom Tromey <tromey@redhat.com>
14003 * record-full.c (record_full_beneath_to_resume_ops)
14004 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
14005 (record_full_beneath_to_wait)
14006 (record_full_beneath_to_store_registers_ops)
14007 (record_full_beneath_to_store_registers)
14008 (record_full_beneath_to_xfer_partial_ops)
14009 (record_full_beneath_to_xfer_partial)
14010 (record_full_beneath_to_insert_breakpoint_ops)
14011 (record_full_beneath_to_insert_breakpoint)
14012 (record_full_beneath_to_remove_breakpoint_ops)
14013 (record_full_beneath_to_remove_breakpoint)
14014 (record_full_beneath_to_stopped_by_watchpoint)
14015 (record_full_beneath_to_stopped_data_address)
14016 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
14017 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
14018 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
14019 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
14020 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
14021 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
14022 (tmp_to_stopped_data_address, tmp_to_async): Remove.
14023 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
14024 (record_full_resume, record_full_wait_1)
14025 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
14026 (record_full_store_registers, record_full_xfer_partial)
14027 (record_full_insert_breakpoint, record_full_remove_breakpoint)
14028 (record_full_async, record_full_core_xfer_partial): Use target
14030 * target-delegates.c: Rebuild.
14031 * target.c (current_xfer_partial): Remove.
14032 (update_current_target): Do not INHERIT or de_fault
14033 to_insert_breakpoint, to_remove_breakpoint,
14034 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
14035 to_is_async_p, to_async. Do not set to_xfer_partial field.
14036 (default_xfer_partial): Simplify.
14037 (current_xfer_partial): Remove.
14038 (target_wait, target_resume): Simplify.
14039 (find_default_can_async_p, find_default_is_async_p): Update.
14040 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
14041 to_xfer_partial, to_stopped_by_watchpoint,
14042 to_stopped_data_address.
14043 (target_store_registers): Simplify.
14044 (forward_target_remove_breakpoint)
14045 (forward_target_insert_breakpoint): Remove.
14046 (target_remove_breakpoint, target_insert_breakpoint)
14047 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
14048 * target.h (struct target_ops) <to_resume, to_wait,
14049 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
14050 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
14051 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
14053 (forward_target_remove_breakpoint)
14054 (forward_target_insert_breakpoint): Remove.
14055 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
14057 (record_btrace_insert_breakpoint): Delegate directly.
14059 2014-02-19 Tom Tromey <tromey@redhat.com>
14062 * target-delegates.c: New file.
14063 * target.c: Include target-delegates.c.
14064 (init_dummy_target): Call install_dummy_methods.
14065 (complete_target_initialization): Call install_delegators.
14066 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
14067 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
14068 * make-target-delegates: New file.
14070 2014-02-19 Tom Tromey <tromey@redhat.com>
14072 * record.c (find_record_target): Use find_target_at.
14073 * target.c (find_target_at): New function.
14074 * target.h (find_target_at): Declare.
14076 2014-02-19 Tom Tromey <tromey@redhat.com>
14078 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
14079 Add 'ops' argument.
14080 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
14082 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
14083 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
14085 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
14087 * linux-nat.c (save_sigtrap): Update.
14088 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
14089 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
14090 (linux_nat_close): Update.
14091 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
14093 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
14095 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
14096 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
14097 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
14098 (tmp_to_async): Add 'ops' argument.
14099 (record_full_stopped_by_watchpoint, record_full_async)
14100 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
14102 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
14103 (m32r_stopped_by_watchpoint): Add 'ops' argument.
14104 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
14105 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
14106 (remote_is_async_p, remote_async): Add 'ops' argument.
14107 (remote_stopped_data_address): Update.
14108 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
14109 * target.c (update_current_target)
14110 (find_default_can_async_p, find_default_is_async_p): Update.
14111 (init_dummy_target): Update.
14112 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
14113 * target.h (struct target_ops) <to_stopped_by_watchpoint,
14114 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
14115 (target_can_async_p, target_is_async_p, target_async)
14116 (target_stopped_by_watchpoint): Update.
14118 2014-02-19 Yao Qi <yao@codesourcery.com>
14121 * gdbarch.sh: Remove startup_gdbarch.
14122 * gdbarch.c: Regenerated.
14123 * gdbarch.h: Likewise.
14125 2014-02-17 Kevin Buettner <kevinb@redhat.com>
14127 * rl78-tdep.c (rl78_g10_register_name): New function.
14128 (rl78_return_value): Add g10 support.
14129 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14132 2014-02-17 Doug Evans <xdje42@gmail.com>
14134 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14135 (SUBDIR_GUILE_SRCS): Ditto.
14136 (scm-gsmob.o): Ditto.
14138 2014-02-17 Yao Qi <yao@codesourcery.com>
14140 * gnu-nat.c (ILL_RPC): Declare defined function.
14142 2014-02-17 Yao Qi <yao@codesourcery.com>
14144 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14145 mach_msg_type_number_t.
14146 (gnu_write_inferior): Likewise.
14148 2014-02-17 Yao Qi <yao@codesourcery.com>
14150 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14152 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14153 (inf_validate_procs, inf_signal): Likewise.
14154 (S_exception_raise_request): Likewise.
14155 (do_mach_notify_dead_name): Likewise.
14156 (steal_exc_port): Likewise.
14157 (gnu_read_inferior): Change 'copy_count''s type to
14158 mach_msg_type_number_t.
14159 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14162 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14164 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14165 flag. Adjust all users; in particular...
14166 (gnu_wait): ..., don't decrement its value in here...
14167 (gnu_create_inferior): ..., and instead set the flag in here,
14168 around the startup_inferior call, and call that one with
14169 START_INFERIOR_TRAPS_EXPECTED.
14171 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14172 (ILL_RPC): ... new macro.
14173 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14174 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14175 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14176 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14177 functions with ILL_RPC macro.
14178 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14179 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14180 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14181 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14182 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14183 (S_proc_getlogin_reply, S_proc_getsid_reply)
14184 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14185 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14186 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14187 (S_proc_getnports_reply, S_proc_is_important_reply)
14188 (S_proc_get_code_reply): New stub functions, generated with
14191 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14192 collected the type check structures.
14194 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14196 2014-02-14 Doug Evans <dje@google.com>
14198 * target.c (target_write_partial): Fix result type.
14200 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14202 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14203 the proper offsets to access fpregset_t.
14205 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14207 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14208 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14209 * h8300-tdep.c (setmachinelist): Remove global.
14210 * hppa-tdep.c (hppa_sigtramp): Remove global.
14211 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14212 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14213 * ravenscar-thread.c (update_target_observer): Remove global.
14214 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14216 2014-02-12 Tom Tromey <tromey@redhat.com>
14218 * common/rsp-low.c: Update comments.
14219 * common/rsp-low.h: Update comments.
14221 2014-02-12 Tom Tromey <tromey@redhat.com>
14223 * common/rsp-low.c (convert_ascii_to_int): Remove.
14224 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14226 2014-02-12 Tom Tromey <tromey@redhat.com>
14228 * common/rsp-low.h (unhexify): Don't declare.
14229 * common/rsp-low.c (unhexify): Remove.
14231 2014-02-12 Tom Tromey <tromey@redhat.com>
14233 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14234 * common/rsp-low.c (convert_int_to_ascii): Remove.
14236 2014-02-12 Tom Tromey <tromey@redhat.com>
14238 * common/rsp-low.h (hexify): Don't declare.
14239 * common/rsp-low.c (hexify): Remove.
14241 2014-02-12 Tom Tromey <tromey@redhat.com>
14243 * common/rsp-low.c (hexify): Never take strlen of argument.
14245 2014-02-12 Tom Tromey <tromey@redhat.com>
14247 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14248 * remote.c (extended_remote_run, remote_rcmd)
14249 (remote_download_trace_state_variable, remote_save_trace_data)
14250 (remote_set_trace_notes): Update.
14251 * tracepoint.c (encode_source_string, tfile_write_status)
14252 (tfile_write_uploaded_tsv): Update.
14254 2014-02-12 Tom Tromey <tromey@redhat.com>
14256 * tracepoint.c: Include rsp-low.h.
14257 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14258 * remote.c: Include rsp-low.h.
14259 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14260 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14261 (remote_unescape_input): Move to common/rsp-low.c.
14262 * common/rsp-low.h: New file.
14263 * common/rsp-low.c: New file.
14264 * Makefile.in (SFILES): Add common/rsp-low.c.
14265 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14266 (COMMON_OBS): Add rsp-low.o.
14267 (rsp-low.o): New target.
14269 2014-02-12 Tom Tromey <tromey@redhat.com>
14271 * utils.h: Include print-utils.h.
14272 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14273 (int_string, core_addr_to_string, core_addr_to_string_nz)
14274 (hex_string, hex_string_custom): Don't declare.
14275 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14276 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14277 (hex_string_custom, int_string, core_addr_to_string)
14278 (core_addr_to_string_nz, host_address_to_string): Move to
14279 common/print-utils.c.
14280 * common/print-utils.h: New file.
14281 * common/print-utils.c: New file
14282 * Makefile.in (SFILES): Add common/print-utils.c.
14283 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14284 (COMMON_OBS): Add print-utils.o.
14285 (print-utils.o): New target.
14287 2014-02-12 Tom Tromey <tromey@redhat.com>
14289 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14291 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14293 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14295 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14297 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14298 if a PT_IO ptrace request returns sucessfully but indicates that 0
14299 bytes were transferred.
14301 2014-02-12 Pedro Alves <palves@redhat.com>
14302 Kevin Buettner <kevinb@redhat.com>
14304 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14305 TYPE_INSTANCE_FLAG_CODE_SPACE.
14307 2014-02-12 Pedro Alves <palves@redhat.com>
14309 * h8300-tdep.c (pseudo_from_raw_register)
14310 (raw_from_pseudo_register): New functions.
14311 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14314 2014-02-12 Pedro Alves <palves@redhat.com>
14316 * h8300-tdep.c (h8300_register_sim_regno): New function.
14317 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14318 gdbarch_register_sim_regno hook.
14320 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14322 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14324 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14326 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14328 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14330 * obsd-tdep.h (obsd_init_abi): New prototype.
14331 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14332 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14333 (obsd_init_abi): New functions.
14334 * i386obsd-tdep.c: Include "obsd-tdep.h".
14335 (i386obsd_init_abi): Call obsd_init_abi.
14336 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14337 (amd64obsd_init_abi): Call obsd_init_abi.
14338 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14339 obsd-tdep.c to gdb_target_obs.
14341 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14343 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14344 double float arguments to 16-byte in the argument slots.
14346 2014-02-11 Doug Evans <xdje42@gmail.com>
14348 * configure.ac: Don't crash if pkg-config is not found and guile
14349 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14351 * configure: Regenerate.
14353 2014-02-11 Yao Qi <yao@codesourcery.com>
14355 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14356 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14357 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14358 * gnu-nat.c (gnu_xfer_memory): Likewise.
14359 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14360 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14361 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14362 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14364 2014-02-11 Yao Qi <yao@codesourcery.com>
14366 * target.h (enum target_xfer_error): Rename to ...
14367 (enum target_xfer_status): ... it. New. All users updated.
14368 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14370 (TARGET_XFER_STATUS_ERROR_P): New macro.
14371 (target_xfer_error_to_string): Remove declaration.
14372 (target_xfer_status_to_string): Declare.
14373 (target_xfer_partial_ftype): Adjust it.
14374 (struct target_ops) <to_xfer_partial>: Return
14375 target_xfer_status. Add argument xfered_len. Update
14377 * target.c (target_xfer_error_to_string): Rename to ...
14378 (target_xfer_status_to_string): ... it. New. All callers
14380 (target_read_live_memory): Likewise. Call target_xfer_partial
14381 instead of target_read.
14382 (memory_xfer_live_readonly_partial): Return
14383 target_xfer_status. Add argument xfered_len.
14384 (raw_memory_xfer_partial): Likewise.
14385 (memory_xfer_partial_1): Likewise.
14386 (memory_xfer_partial): Likewise.
14387 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14388 properly. Update debug message.
14389 (default_xfer_partial, current_xfer_partial): Likewise.
14390 (target_write_partial): Likewise.
14391 (target_read_partial): Likewise. All callers updated.
14392 (read_whatever_is_readable): Likewise.
14393 (target_write_with_progress): Likewise.
14394 (target_read_alloc_1): Likewise.
14396 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14397 * auxv.c (procfs_xfer_auxv): Likewise.
14398 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14399 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14400 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14401 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14402 * corefile.c (read_memory): Adjust.
14403 * corelow.c (core_xfer_partial): Likewise.
14404 * ctf.c (ctf_xfer_partial): Likewise.
14405 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14407 (darwin_xfer_partial): Likewise.
14408 * exec.c (section_table_xfer_memory_partial): Likewise. All
14410 (exec_xfer_partial): Likewise.
14411 * exec.h (section_table_xfer_memory_partial): Update
14413 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14415 (gnu_xfer_partial): Likewise.
14416 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14417 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14418 (ia64_hpux_xfer_solib_got): Likewise.
14419 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14420 type of 'partial_len' to ULONGEST.
14421 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14422 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14423 (linux_nat_xfer_partial): Likewise.
14424 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14425 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14426 * monitor.c (monitor_xfer_memory): Likewise.
14427 (monitor_xfer_partial): Likewise.
14428 * procfs.c (procfs_xfer_partial): Likewise.
14429 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14430 * record-full.c (record_full_xfer_partial): Likewise.
14431 (record_full_core_xfer_partial): Likewise.
14432 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14433 (gdbsim_xfer_partial): Likewise.
14434 * remote.c (remote_write_bytes_aux): Likewise. All callers
14436 (remote_write_bytes, remote_read_bytes): Likewise. All
14438 (remote_flash_erase): Likewise. All callers updated.
14439 (remote_write_qxfer): Likewise. All callers updated.
14440 (remote_read_qxfer): Likewise. All callers updated.
14441 (remote_xfer_partial): Likewise.
14442 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14443 (rs6000_xfer_shared_libraries): Likewise.
14444 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14445 (sol_thread_xfer_partial): Likewise.
14446 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14447 (sparc_xfer_partial): Likewise.
14448 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14450 (spu_xfer_partial): Likewise.
14451 * spu-multiarch.c (spu_xfer_partial): Likewise.
14452 * tracepoint.c (tfile_xfer_partial): Likewise.
14453 * windows-nat.c (windows_xfer_memory): Likewise.
14454 (windows_xfer_shared_libraries): Likewise.
14455 (windows_xfer_partial): Likewise.
14456 * valprint.c: Replace 'target_xfer_error' with
14457 'target_xfer_status' in comments.
14459 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14461 Checked in by Joel Brobecker <brobecker@adacore.com>.
14462 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14464 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14466 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14467 function parameters.
14469 2014-02-10 Will Newton <will.newton@linaro.org>
14471 * elfread.c (elf_rel_plt_read): Look for a .got section if
14472 looking up .got.plt fails.
14473 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14474 on address passed to elf_gnu_ifunc_record_cache.
14475 (elf_gnu_ifunc_resolve_addr): Likewise.
14476 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14478 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14480 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14481 (X_RETTURN): New macro.
14482 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14484 * sparc64-tdep.c (sparc64_init_abi): Hook
14485 sparc_in_function_epilogue_p.
14487 2014-02-10 Gary Benson <gbenson@redhat.com>
14489 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14490 Rename name_matcher to symbol_matcher.
14492 2014-02-10 Gary Benson <gbenson@redhat.com>
14494 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14495 Use expand_symtabs_file_matcher_ftype and
14496 expand_symtabs_symbol_matcher_ftype.
14498 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14500 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14501 (struct ada_symbol_cache): New.
14502 (ada_free_symbol_cache): Forward declare.
14503 (struct ada_pspace_data): New.
14504 (ada_pspace_data_handle): New static global.
14505 (get_ada_pspace_data, ada_pspace_data_cleanup)
14506 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14507 (cache_space, cache): Delete, now folded inside struct
14509 (ada_get_symbol_cache): New function.
14510 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14512 (_initialize_ada_language): Remove initialization of cache_space.
14513 Move call to observer_attach_inferior_exit up, grouping it
14514 with the other observer registrations inside this function.
14515 Rename command to be more general. Add call to
14516 register_program_space_data_with_cleanup.
14518 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14520 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14521 ada_new_objfile_observer.
14522 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14523 (_initialize_tasks): Update uses of ada_new_objfile_observer
14524 and ada_tasks_normal_stop_observer.
14526 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14528 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14529 returned by the 'Length attribute to integer.
14531 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14533 * ada-lang.c (_initialize_ada_language): Initialize
14534 cache_space obstack.
14536 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14538 * ada-lang.c (HASH_SIZE): New macro.
14539 (struct cache_entry): New type.
14540 (cache_space, cache): New static globals.
14541 (ada_clear_symbol_cache, find_entry): New functions.
14542 (lookup_cached_symbol, cache_symbol): Implement.
14543 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14544 (_initialize_ada_language): Attach ada_new_objfile_observer
14545 and ada_free_objfile_observer.
14547 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14549 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14550 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14551 struct block * parameter.
14552 (ada_lookup_symbol_list_worker): Constify local variable "block".
14553 Remove cast which is no longer necessary.
14555 2014-02-10 Doug Evans <xdje42@gmail.com>
14557 Add Guile as an extension language.
14558 * NEWS: Mention Guile scripting.
14559 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14560 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14561 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14562 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14563 (CLIBS): Add GUILE_LIBS.
14564 (install-guile): New rule.
14565 (guile.o): New rule.
14566 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14567 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14568 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14569 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14570 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14571 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14572 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14573 * configure.ac: New option --with-guile.
14574 * configure: Regenerate.
14575 * config.in: Regenerate.
14576 * auto-load.c: Remove #include "python/python.h". Add #include
14577 "gdb/section-scripts.h".
14578 (source_section_scripts): Handle Guile scripts.
14579 (_initialize_auto_load): Add name of Guile objfile script to
14580 scripts-directory help text.
14581 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14582 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14583 (struct breakpoint): New member scm_bp_object.
14584 * defs.h (enum command_control_type): New value guile_control.
14585 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14587 (show_user): Update comment.
14588 (_initialize_cli_cmds): Update help text for "show user". Update help
14589 text for max-user-call-depth.
14590 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14592 (multi_line_command_p): Add guile_control.
14593 (print_command_lines): Handle guile_control.
14594 (execute_control_command, recurse_read_control_structure): Ditto.
14595 (process_next_line): Recognize "guile" commands.
14596 * disasm.c (gdb_disassemble_info): Make non-static.
14597 * disasm.h: #include "dis-asm.h".
14598 (struct gdbarch): Add forward decl.
14599 (gdb_disassemble_info): Declare.
14600 * extension.c: #include "guile/guile.h".
14601 (extension_languages): Add guile.
14602 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14603 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14604 * gdbtypes.c (get_unsigned_type_max): New function.
14605 (get_signed_type_minmax): New function.
14606 * gdbtypes.h (get_unsigned_type_max): Declare.
14607 (get_signed_type_minmax): Declare.
14608 * guile/README: New file.
14609 * guile/guile-internal.h: New file.
14610 * guile/guile.c: New file.
14611 * guile/guile.h: New file.
14612 * guile/scm-arch.c: New file.
14613 * guile/scm-auto-load.c: New file.
14614 * guile/scm-block.c: New file.
14615 * guile/scm-breakpoint.c: New file.
14616 * guile/scm-disasm.c: New file.
14617 * guile/scm-exception.c: New file.
14618 * guile/scm-frame.c: New file.
14619 * guile/scm-gsmob.c: New file.
14620 * guile/scm-iterator.c: New file.
14621 * guile/scm-lazy-string.c: New file.
14622 * guile/scm-math.c: New file.
14623 * guile/scm-objfile.c: New file.
14624 * guile/scm-ports.c: New file.
14625 * guile/scm-pretty-print.c: New file.
14626 * guile/scm-safe-call.c: New file.
14627 * guile/scm-string.c: New file.
14628 * guile/scm-symbol.c: New file.
14629 * guile/scm-symtab.c: New file.
14630 * guile/scm-type.c: New file.
14631 * guile/scm-utils.c: New file.
14632 * guile/scm-value.c: New file.
14633 * guile/lib/gdb.scm: New file.
14634 * guile/lib/gdb/boot.scm: New file.
14635 * guile/lib/gdb/experimental.scm: New file.
14636 * guile/lib/gdb/init.scm: New file.
14637 * guile/lib/gdb/iterator.scm: New file.
14638 * guile/lib/gdb/printing.scm: New file.
14639 * guile/lib/gdb/types.scm: New file.
14640 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14641 (VPATH): Add $(GUILE_SRCDIR).
14642 (GUILE_DIR): New variable.
14643 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14644 (all): Add stamp-guile dependency.
14645 (stamp-guile): New rule.
14646 (clean-guile, install-guile, uninstall-guile): New rules.
14647 (install-only): Add install-guile dependency.
14648 (uninstall): Add uninstall-guile dependency.
14649 (clean): Add clean-guile dependency.
14651 2014-02-09 Doug Evans <xdje42@gmail.com>
14653 Revert this patch (which I approved, mea culpa).
14655 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14657 * Makefile.in (all-lib): Remove.
14658 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14660 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14662 Fix Python stack corruption.
14663 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14666 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14668 * Makefile.in (all-lib): Remove.
14669 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14671 2014-02-07 Doug Evans <dje@google.com>
14673 * extension-priv.h (extension_language_script_ops): Add comment.
14674 (extension_language_ops): Add comment.
14675 (active_ext_lang_state): Fix typo in comment.
14677 2014-02-07 Pedro Alves <palves@redhat.com>
14679 PR breakpoints/16292
14680 * infrun.c (handle_signal_stop) <signal arrives while stepping
14681 over a breakpoint>: Switch back to the stepping thread.
14683 2014-02-07 Yao Qi <yao@codesourcery.com>
14685 * target.c (target_xfer_partial): Return zero if LEN is zero.
14687 2014-02-07 Yao Qi <yao@codesourcery.com>
14689 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14690 (ld_so_xfer_auxv): Likewise.
14691 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14692 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14693 * corelow.c (core_xfer_partial): Likewise.
14694 * ctf.c (ctf_xfer_partial): Likewise.
14695 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14696 (darwin_xfer_partial): Likewise.
14697 * exec.c (exec_xfer_partial): Likewise.
14698 * gnu-nat.c (gnu_xfer_partial): Likewise.
14699 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14700 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14701 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14702 * linux-nat.c (linux_xfer_siginfo): Likewise.
14703 (linux_proc_xfer_spu): Likewise.
14704 * procfs.c (procfs_xfer_partial): Likewise.
14705 * record-full.c (record_full_xfer_partial): Likewise.
14706 (record_full_core_xfer_partial): Likewise.
14707 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14708 * remote.c (remote_write_qxfer): Likewise.
14709 (remote_write_qxfer, remote_read_qxfer): Likewise.
14710 (remote_xfer_partial): Likewise.
14711 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14712 (rs6000_xfer_shared_libraries): Likewise.
14713 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14714 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14715 (spu_xfer_partial): Likewise.
14716 * target.c (memory_xfer_partial_1): Likewise.
14717 * tracepoint.c (tfile_xfer_partial): Likewise.
14718 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14719 (windows_xfer_partial): Likewise.
14721 2014-02-07 Yao Qi <yao@codesourcery.com>
14723 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14725 (core_xfer_shared_libraries_aix): Likewise.
14726 * gdbarch.c, gdbarch.h: Regenerated.
14727 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14728 ULONGEST. Change 'len_avail' type to ULONGEST.
14729 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14730 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14732 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14734 2014-02-07 Yao Qi <yao@codesourcery.com>
14736 * corefile.c (memory_error): Get 'exception' from ERR and pass
14737 'exception' to throw_error.
14739 2014-02-06 Doug Evans <xdje42@gmail.com>
14741 * configure.ac (libpython checking): Remove all but python.o from
14742 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14743 * configure: Regenerate.
14745 * Makefile.in (SFILES): Add extension.c.
14746 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14747 (COMMON_OBS): Add extension.o.
14748 * extension.h: New file.
14749 * extension-priv.h: New file.
14750 * extension.c: New file.
14752 * python/python-internal.h: #include "extension.h".
14753 (gdbpy_auto_load_enabled): Declare.
14754 (gdbpy_apply_val_pretty_printer): Declare.
14755 (gdbpy_apply_frame_filter): Declare.
14756 (gdbpy_preserve_values): Declare.
14757 (gdbpy_breakpoint_cond_says_stop): Declare.
14758 (gdbpy_breakpoint_has_cond): Declare.
14759 (void source_python_script_for_objfile): Delete.
14760 * python/python.c: #include "extension-priv.h".
14761 Delete inclusion of "observer.h".
14762 (extension_language_python): Moved here and renamed from
14763 script_language_python in py-auto-load.c.
14764 Redefined to be of type extension_language_defn.
14765 (python_extension_script_ops): New global.
14766 (python_extension_ops): New global.
14767 (struct python_env): New member previous_active.
14768 (restore_python_env): Call restore_active_ext_lang.
14769 (ensure_python_env): Call set_active_ext_lang.
14770 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14772 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14774 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14776 (gdbpy_eval_from_control_command): Renamed from
14777 eval_python_from_control_command, made static. New arg extlang.
14778 (gdbpy_source_script) Renamed from source_python_script, made static.
14780 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14781 result to int. New arg extlang.
14782 (gdbpy_source_objfile_script): Renamed from
14783 source_python_script_for_objfile, made static. New arg extlang.
14784 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14785 static. New args extlang, extlang_printers. Change result type to
14787 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14788 static. New arg extlang. Rename arg printers to extlang_printers
14789 and change type to ext_lang_type_printers *.
14790 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14791 static. Replace argument arg with extlang, extlang_printers.
14792 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14793 (!HAVE_PYTHON, source_python_script): Delete.
14794 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14795 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14796 (!HAVE_PYTHON, start_type_printers): Delete.
14797 (!HAVE_PYTHON, apply_type_printers): Delete.
14798 (!HAVE_PYTHON, free_type_printers): Delete.
14799 (_initialize_python): Delete call to observer_attach_before_prompt.
14800 (finalize_python): Set/restore active extension language.
14801 (gdbpy_finish_initialization) Renamed from
14802 finish_python_initialization, made static. New arg extlang.
14803 (gdbpy_initialized): New function.
14804 * python/python.h: #include "extension.h". Delete #include
14805 "value.h", "mi/mi-cmds.h".
14806 (extension_language_python): Declare.
14807 (GDBPY_AUTO_FILE_NAME): Delete.
14808 (enum py_bt_status): Moved to extension.h and renamed to
14809 ext_lang_bt_status.
14810 (enum frame_filter_flags): Moved to extension.h.
14811 (enum py_frame_args): Moved to extension.h and renamed to
14812 ext_lang_frame_args.
14813 (finish_python_initialization): Delete.
14814 (eval_python_from_control_command): Delete.
14815 (source_python_script): Delete.
14816 (apply_val_pretty_printer): Delete.
14817 (apply_frame_filter): Delete.
14818 (preserve_python_values): Delete.
14819 (gdbpy_script_language_defn): Delete.
14820 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14821 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14823 * auto-load.c: #include "extension.h".
14824 (GDB_AUTO_FILE_NAME): Delete.
14825 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14826 (script_language_gdb): Delete, moved to extension.c and renamed to
14827 extension_language_gdb.
14828 (source_gdb_script_for_objfile): Delete.
14829 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14830 (loaded_script): Change type of language member to
14831 struct extension_language_defn *.
14832 (init_loaded_scripts_info): Initialize
14833 unsupported_script_warning_printed.
14834 (maybe_add_script): Make static. Change type of language arg to
14835 struct extension_language_defn *.
14836 (clear_section_scripts): Reset unsupported_script_warning_printed.
14837 (auto_load_objfile_script_1): Rewrite to use extension language API.
14838 (auto_load_objfile_script): Make public. Remove support-compiled-in
14839 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14840 (source_section_scripts): Rewrite to use extension language API.
14841 (load_auto_scripts_for_objfile): Rewrite to use
14842 auto_load_scripts_for_objfile.
14843 (collect_matching_scripts_data): Change type of language member to
14844 struct extension_language_defn *.
14845 (auto_load_info_scripts): Change type of language arg to
14846 struct extension_language_defn *.
14847 (unsupported_script_warning_print): New function.
14848 (script_not_found_warning_print): Make static.
14849 (_initialize_auto_load): Rewrite construction of scripts-directory
14851 * auto-load.h (struct objfile): Add forward decl.
14852 (struct script_language): Delete.
14853 (struct auto_load_pspace_info): Add forward decl.
14854 (struct extension_language_defn): Add forward decl.
14855 (maybe_add_script): Delete.
14856 (auto_load_objfile_script): Declare.
14857 (script_not_found_warning_print): Delete.
14858 (auto_load_info_scripts): Update prototype.
14859 (auto_load_gdb_scripts_enabled): Declare.
14860 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14861 auto_load_python_scripts_enabled and made public.
14862 (script_language_python): Delete, moved to python.c.
14863 (gdbpy_script_language_defn): Delete.
14864 (info_auto_load_python_scripts): Update to use
14865 extension_language_python.
14867 * breakpoint.c (condition_command): Replace call to
14868 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14869 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14870 with call to breakpoint_ext_lang_cond_says_stop.
14871 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14872 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14873 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14874 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14876 (local_setattro): Print name of extension language with existing
14879 * valprint.c (val_print, value_print): Update to call
14880 apply_ext_lang_val_pretty_printer.
14881 * cp-valprint.c (cp_print_value): Update call to
14882 apply_ext_lang_val_pretty_printer.
14883 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14884 (gdbpy_apply_val_pretty_printer): Renamed from
14885 apply_val_pretty_printer. New arg extlang.
14886 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14888 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14889 extension language API.
14890 * cli/cli-script.c (execute_control_command): Update to call
14891 eval_ext_lang_from_control_command.
14893 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14894 enum ext_lang_bt_status values. Update call to
14895 apply_ext_lang_frame_filter.
14896 (mi_cmd_stack_list_locals): Ditto.
14897 (mi_cmd_stack_list_args): Ditto.
14898 (mi_cmd_stack_list_variables): Ditto.
14899 * mi/mi-main.c: Delete #include "python/python-internal.h".
14900 Add #include "extension.h".
14901 (mi_cmd_list_features): Replace reference to python internal variable
14902 gdb_python_initialized with call to ext_lang_initialized_p.
14904 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14905 Update to use enum ext_lang_frame_args. Update to call
14906 apply_ext_lang_frame_filter.
14907 * python/py-framefilter.c (extract_sym): Update to use enum
14908 ext_lang_bt_status.
14909 (extract_value, py_print_type, py_print_value): Ditto.
14910 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14911 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14912 (py_print_frame): Ditto.
14913 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14914 New arg extlang. Update to use enum ext_lang_bt_status.
14916 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14917 finish_python_initialization. Replace with call to
14918 finish_ext_lang_initialization.
14920 * typeprint.c (do_free_global_table): Update to call
14921 free_ext_lang_type_printers.
14922 (create_global_typedef_table): Update to call
14923 start_ext_lang_type_printers.
14924 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14925 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14926 (type_print_options): Change type of global_printers from "void *"
14927 to "struct ext_lang_type_printers *".
14929 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14930 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14931 (gdbpy_preserve_values): Renamed from preserve_python_values.
14933 (!HAVE_PYTHON, preserve_python_values): Delete.
14935 * utils.c (quit_flag): Delete, moved to extension.c.
14936 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14939 * eval.c: Delete #include "python/python.h".
14940 * main.c: Delete #include "python/python.h".
14942 * defs.h: Update comment.
14944 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14948 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14950 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14953 2014-02-05 Yao Qi <yao@codesourcery.com>
14955 * remote.c (remote_pass_signals): Remove local 'buf' and use
14957 (remote_program_signals): Likewise.
14959 2014-02-05 Yao Qi <yao@codesourcery.com>
14961 * ctf.c: Include "inferior.h" and "gdbthread.h".
14962 (CTF_PID): A new macro.
14963 (ctf_open): Call inferior_appeared and add_thread_silent.
14964 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14965 (ctf_thread_alive): New function.
14966 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14968 2014-02-05 Yao Qi <yao@codesourcery.com>
14972 2013-05-24 Yao Qi <yao@codesourcery.com>
14974 * tracepoint.c (TFILE_PID): Remove.
14975 (tfile_open): Don't add thread and inferior.
14976 (tfile_close): Don't set 'inferior_ptid'. Don't call
14977 exit_inferior_silent.
14978 (tfile_thread_alive): Remove.
14979 (init_tfile_ops): Don't set field 'to_thread_alive' of
14982 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14984 * remote.c (remote_start_remote): Call remote_check_symbols even
14985 if only symbol-file (not file) has been given.
14987 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14989 * gdbarch.sh (skip_entrypoint): New callback.
14990 * gdbarch.c, gdbarch.h: Regenerate.
14991 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14992 * infrun.c (fill_in_stop_func): Likewise.
14993 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14994 (ppc_elfv2_elf_make_msymbol_special): New function.
14995 (ppc_elfv2_skip_entrypoint): Likewise.
14996 (ppc_linux_init_abi): Install them for ELFv2.
14998 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15000 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
15001 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
15002 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
15003 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
15004 structures returned in GPRs.
15006 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15008 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
15009 offset to the stack parameter list for the ELFv2 ABI.
15011 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15013 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
15014 set_gdbarch_convert_from_func_ptr_addr and
15015 set_gdbarch_elf_make_msymbol_special for ELFv1.
15016 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
15017 function descriptors on ELFv1.
15018 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
15019 set up r12 at function entry.
15021 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15023 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
15024 (struct gdbarch_tdep): New member elf_abi.
15026 * rs6000-tdep.c: Include "elf/ppc64.h".
15027 (rs6000_gdbarch_init): Detect ELF ABI version.
15029 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15031 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
15032 within a register pair holding a DFP 128-bit value on little-endian.
15033 (ppc64_sysv_abi_return_value_base): Likewise.
15034 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
15035 (dfp_pseudo_register_write): Likewise.
15037 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15039 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
15040 offset on little-endian when passing _Decimal32.
15041 (ppc64_sysv_abi_return_value_base): Likewise for return values.
15043 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15045 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
15046 of the overlapped FP register within the VSX register on little-
15048 (efpr_pseudo_register_write): Likewise.
15050 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15052 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
15053 offset on little-endian when passing small structures.
15055 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15057 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
15058 (struct ppc64_sysv_argpos): New data structure.
15059 (ppc64_sysv_abi_push_float): Remove.
15060 (ppc64_sysv_abi_push_val): New function.
15061 (ppc64_sysv_abi_push_integer): Likewise.
15062 (ppc64_sysv_abi_push_freg): Likewise.
15063 (ppc64_sysv_abi_push_vreg): Likewise.
15064 (ppc64_sysv_abi_push_param): Likewise.
15065 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
15066 (ppc64_sysv_abi_return_value_base): New function.
15067 (ppc64_sysv_abi_return_value): Refactor to use it.
15069 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15071 * NEWS: Document new target powerpc64le-*-linux*.
15073 2014-02-04 Mark Kettenis <kettenis@gnu.org>
15075 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
15076 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
15078 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
15079 register set used in ELF core dumps. Add floating-point register set.
15081 2014-02-03 Kevin Buettner <kevinb@redhat.com>
15083 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
15084 dwarf2_to_gdb[] table using symbolic constants. Adjust
15085 penultimate entry from number representing the PC register
15086 to symbolic constant representing the MDR register. Add
15087 constant for the PC register to the end of the table.
15089 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15091 * bsd-kvm.c: Include <sys/param.h>
15093 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15095 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
15097 2014-01-31 Joel Brobecker <brobecker@adacore.com>
15099 * ada-lang.h (clear_ada_sym_cache): Delete.
15101 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
15103 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
15105 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
15107 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
15108 the sigreturn register save area only if the syscall is
15111 2014-01-29 Joel Brobecker <brobecker@adacore.com>
15113 * valops.c (value_slice): Minor reformatting.
15115 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
15117 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
15119 2014-01-28 Joel Brobecker <brobecker@adacore.com>
15121 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
15122 New static globals.
15123 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
15124 (ada_ignore_descriptive_types_p): New static global.
15125 (find_parallel_type_by_descriptive_type): Return immediately
15126 if ada_ignore_descriptive_types_p is set.
15127 (_initialize_ada_language): Register new commands "maintenance
15128 set ada", "maintenance show ada", "maintenance set ada
15129 ignore-descriptive-types" and "maintenance show ada
15130 ignore-descriptive-types".
15131 * NEWS: Add entry for new "maint ada set/show
15132 ignore-descriptive-types" commands.
15134 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15136 * record-btrace.c (record_btrace_close): Call btrace_teardown
15139 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15141 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15144 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15146 * ada-typeprint (type_is_full_subrange_of_target_type):
15148 (print_range): Add parameter bounds_prefered_p. If not set,
15149 try printing range types using the name of their base type.
15150 (print_range_type): Add parameter bounds_prefered_p.
15151 Use it in call to print_range.
15152 (print_array_type, ada_print_type): Update calls to print_range
15153 and print_range_type.
15155 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15157 * ada-typeprint.c (print_array_type, print_choices, print_range)
15158 (print_range_bound, print_dynamic_range_bound, print_range_type):
15159 Remove declaration.
15161 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15163 * ada-typeprint.c (print_range): Add missing empty line
15164 after local declaration.
15166 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15168 * ada-valprint.c (print_optional_low_bound): Get index_type's
15169 target type for as long as it is a TYPE_CODE_RANGE.
15171 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15173 * procfs.c (procfs_make_note_section): Remove assertion and
15174 associated comment.
15176 2014-01-24 Yao Qi <yao@codesourcery.com>
15178 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15179 * corelow.c (get_core_siginfo): Likewise.
15181 2014-01-24 Yao Qi <yao@codesourcery.com>
15183 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15184 ULONGEST. Don't check 'len' is negative.
15185 (remote_write_bytes): Change type of 'len' to ULONGEST.
15187 2014-01-23 Tom Tromey <tromey@redhat.com>
15190 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15191 Handle exception from frame.block.
15192 (FrameVars.fetch_frame_locals): Likewise.
15194 2014-01-23 Tom Tromey <tromey@redhat.com>
15197 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15198 on a NULL pointer. Move "goto error" to correct place.
15200 2014-01-23 Tom Tromey <tromey@redhat.com>
15203 * python/py-framefilter.c (apply_frame_filter): Call
15204 ensure_python_env after computing gdbarch.
15206 2014-01-23 Yao Qi <yao@codesourcery.com>
15208 * target.c (raw_memory_xfer_partial): Change argument type
15209 from void * to gdb_byte *.
15210 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15212 2014-01-22 Doug Evans <dje@google.com>
15214 New gdbserver option --debug-format=timestamp.
15215 * NEWS: Mention it.
15217 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15219 * syscalls/s390x-linux.xml: New file.
15220 * syscalls/s390-linux.xml: New file.
15221 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15222 (XML_SYSCALL_FILENAME_S390X): Likewise.
15223 (op_svc): New enum value for SVC opcode.
15224 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15225 (s390_linux_get_syscall_number): New function.
15226 (s390_gdbarch_init): Register '*get_syscall_number' and the
15227 syscall xml file name.
15228 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15229 "s390-linux.xml" and "s390x-linux.xml".
15230 * NEWS: Announce new feature.
15232 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15234 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15236 2014-01-22 Pedro Alves <palves@redhat.com>
15238 * xtensa-config.c: Include defs.h.
15240 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15242 * common/common-utils.h: Add "ARI:" comment beside __func__
15245 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15247 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15248 documentation a bit.
15250 2014-01-21 Roland McGrath <mcgrathr@google.com>
15252 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15253 * configure: Regenerate.
15254 * aclocal.m4: Regenerate.
15255 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15256 New substituted variables.
15257 (install-strip): New target.
15258 (INSTALL_SCRIPT): New substituted variable.
15259 (FLAGS_TO_PASS): Add it.
15260 (install-only): Use $(INSTALL_SCRIPT) rather than
15261 $(INSTALL_PROGRAM) for gcore.
15263 2014-01-20 Tom Tromey <tromey@redhat.com>
15265 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15268 2014-01-20 Tom Tromey <tromey@redhat.com>
15270 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15271 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15272 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15273 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15274 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15275 (struct cmd_list_element) <flags>: Remove.
15276 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15277 doc_allocated>: New fields.
15278 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15280 * maint.c (maintenance_do_deprecate): Update.
15281 * top.c (execute_command): Update.
15283 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15285 * xtensa-linux-nat.c: Include asm/ptrace.h.
15287 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15289 * Makefile.in (SFILES): Add d-support.c.
15290 (COMMON_OBS): Add d-support.o.
15291 * d-lang.h (d_parse_symbol): Add comment, now defined in
15293 * d-lang.c (parse_call_convention)
15294 (parse_attributes, parse_function_types)
15295 (parse_function_args, parse_type, parse_identifier)
15296 (call_convention_p, d_parse_symbol): Move functions to ...
15297 * d-support.c: ... New file.
15299 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15301 * d-lang.h (d_parse_symbol): Add declaration.
15302 * d-lang.c (extract_identifiers)
15303 (extract_type_info): Remove functions.
15304 (parse_call_convention, parse_attributes)
15305 (parse_function_types, parse_function_args)
15306 (parse_type, parse_identifier, call_convention_p)
15307 (d_parse_symbol): New functions.
15308 (d_demangle): Use d_parse_symbol to demangle D symbols.
15310 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15312 * d-lang.h (struct builtin_d_type): New data type.
15313 (builtin_d_type): Add declaration.
15314 * d-lang.c (d_language_arch_info, build_d_types)
15315 (builtin_d_type): New functions.
15316 (enum d_primitive_types): New data type.
15317 (d_language_defn): Change c_language_arch_info to
15318 d_language_arch_info.
15319 (d_type_data): New static variable.
15320 (_initialize_d_language): Initialize d_type_data.
15322 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15324 * d-lang.h (d_main_name): Add declaration.
15325 * d-lang.c (d_main_name): New function.
15326 * symtab.c (find_main_name): Add call to d_main_name.
15328 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15330 * d-lang.c (d_language_defn): Change macro_expansion_c to
15331 macro_expansion_no.
15333 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15335 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15337 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15339 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15340 gdb_exception" declaration.
15341 * remote.c (getpkt_or_notif_sane): Likewise.
15343 2014-01-17 Doug Evans <dje@google.com>
15345 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15346 function, contents of dirnames_to_char_ptr_vec_append moved here.
15347 (delim_string_to_char_ptr_vec): New function.
15348 (dirnames_to_char_ptr_vec_append): Rewrite.
15349 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15351 2014-01-17 Doug Evans <dje@google.com>
15353 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15355 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15356 #include "common-utils.h".
15357 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15358 * common/vec.h (VEC_ASSERT_PASS): Update.
15359 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15360 (MACH_CHECK_ERROR): Update.
15362 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15364 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15366 * gdbarch.h: Regenerate.
15368 2014-01-16 Tom Tromey <tromey@redhat.com>
15370 * value.c (struct value) <regnum>: Move earlier.
15372 2014-01-16 Tom Tromey <tromey@redhat.com>
15374 * remote.c (extended_remote_create_inferior): Rename from
15375 extended_remote_create_inferior_1. Add "ops" argument. Remove
15376 old implementation.
15378 2014-01-16 Pedro Alves <palves@redhat.com>
15380 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15381 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15384 2014-01-16 Doug Evans <dje@google.com>
15386 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15388 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15390 * btrace.h (btrace_thread_flag): New.
15391 (struct btrace_thread_info) <flags>: New.
15392 * record-btrace.c (record_btrace_resume_thread)
15393 (record_btrace_find_thread_to_move, btrace_step_no_history)
15394 (btrace_step_stopped, record_btrace_start_replaying)
15395 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15396 (record_btrace_find_resume_thread): New.
15397 (record_btrace_resume, record_btrace_wait): Extend.
15398 (record_btrace_can_execute_reverse): New.
15399 (record_btrace_open): Fail in non-stop mode.
15400 (record_btrace_set_replay): Split into this, ...
15401 (record_btrace_stop_replaying): ... this, ...
15402 (record_btrace_clear_histories): ... and this.
15403 (init_record_btrace_ops): Init to_can_execute_reverse.
15404 * NEWS: Announce it.
15406 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15408 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15409 (forward_target_decr_pc_after_break)
15410 (target_decr_pc_after_break): New.
15411 * target.c (forward_target_decr_pc_after_break)
15412 (target_decr_pc_after_break): New.
15413 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15414 instead of gdbarch_decr_pc_after_break.
15415 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15416 instead of gdbarch_decr_pc_after_break.
15417 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15418 instead of gdbarch_decr_pc_after_break.
15419 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15420 instead of gdbarch_decr_pc_after_break.
15421 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15422 instead of gdbarch_decr_pc_after_break.
15423 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15424 instead of gdbarch_decr_pc_after_break.
15426 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15428 * btrace.c: Include regcache.h.
15429 (btrace_add_pc): New.
15430 (btrace_enable): Call btrace_add_pc.
15431 (btrace_is_empty): New.
15432 * btrace.h (btrace_is_empty): New.
15433 * record-btrace.c (require_btrace, record_btrace_info): Call
15436 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15438 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15439 Support delta reads.
15440 (linux_disable_btrace): Change return type.
15441 * common/linux-btrace.h (linux_read_btrace): Change parameters
15442 and return type to allow error reporting. Update users.
15443 (linux_disable_btrace): Change return type. Update users.
15444 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15446 (btrace_error): New.
15447 (btrace_block) <begin>: Comment on BEGIN == 0.
15448 * btrace.c (btrace_compute_ftrace): Start from the end of
15450 (btrace_stitch_trace, btrace_clear_history): New.
15451 (btrace_fetch): Read delta trace, return if replaying.
15452 (btrace_clear): Move clear history code to btrace_clear_history.
15453 (parse_xml_btrace): Throw an error if parsing failed.
15454 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15455 and return type to allow error reporting.
15456 (target_read_btrace): Change parameters and return type to allow
15458 * target.c (target_read_btrace): Update.
15459 * remote.c (remote_read_btrace): Support delta reads. Pass
15461 * NEWS: Announce it.
15463 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15465 * record.h (record_btrace_frame_unwind)
15466 (record_btrace_tailcall_frame_unwind): New declarations.
15467 * dwarf2-frame: Include record.h
15468 (dwarf2_frame_cfa): Throw an error for btrace frames.
15469 * record-btrace.c: Include hashtab.h.
15470 (btrace_get_bfun_name): New.
15471 (btrace_call_history): Call btrace_get_bfun_name.
15472 (struct btrace_frame_cache): New.
15474 (bfcache_hash, bfcache_eq, bfcache_new): New.
15475 (btrace_get_frame_function): New.
15476 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15477 (record_btrace_frame_this_id): Compute own id.
15478 (record_btrace_frame_prev_register): Provide PC, throw_error
15479 for all other registers.
15480 (record_btrace_frame_sniffer): Detect btrace frames.
15481 (record_btrace_tailcall_frame_sniffer): New.
15482 (record_btrace_frame_dealloc_cache): New.
15483 (record_btrace_frame_unwind): Add new functions.
15484 (record_btrace_tailcall_frame_unwind): New.
15485 (_initialize_record_btrace): Allocate cache.
15486 * btrace.c (btrace_clear): Call reinit_frame_cache.
15487 * NEWS: Announce it.
15489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15491 * record-btrace.c (record_btrace_set_replay)
15492 (record_btrace_goto_begin, record_btrace_goto_end)
15493 (record_btrace_goto): New.
15494 (init_record_btrace_ops): Initialize them.
15495 * NEWS: Announce it.
15497 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15499 * record-btrace.c (record_btrace_find_new_threads)
15500 (record_btrace_thread_alive): New.
15501 (init_record_btrace_ops): Initialize to_find_new_threads and
15504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15506 * record-btrace.c (record_btrace_resume): New.
15507 (record_btrace_wait): New.
15508 (init_record_btrace_ops): Initialize to_wait and to_resume.
15510 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15512 * record-btrace.c (record_btrace_xfer_partial)
15513 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15514 (record_btrace_allow_memory_access): New.
15515 (init_record_btrace_ops): Initialize new methods.
15516 * target.c (raw_memory_xfer_partial): Bail out if target reports
15517 that this memory is not available.
15519 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15521 * target.h (target_ops) <to_insert_breakpoint>
15522 <to_remove_breakpoint>: Add target_ops parameter.
15523 (forward_target_insert_breakpoint): New.
15524 (forward_target_remove_breakpoint): New.
15525 (memory_remove_breakpoint, memory_insert_breakpoint):
15526 Add target_ops parameter.
15527 * target.c (target_insert_breakpoint): Split into this and ...
15528 (forward_target_insert_breakpoint): ... this.
15529 (target_remove_breakpoint): Split into this and ...
15530 (forward_target_remove_breakpoint): ... this.
15531 (debug_to_insert_breakpoint): Add target_ops parameter.
15532 Call forward_target_insert_breakpoint.
15533 (debug_to_remove_breakpoint): Add target_ops parameter.
15534 Call forward_target_remove_breakpoint.
15535 (update_current_target): Do not inherit or default to_insert_breakpoint
15536 and to_remove_breakpoint.
15537 * corelow.c (ignore): Add target_ops parameter.
15538 * exec.c (ignore): Add target_ops parameter.
15539 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15540 Add target_ops parameter.
15541 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15542 Add target_ops parameter.
15543 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15544 Add target_ops parameter.
15545 * record-full.c (record_full_beneath_to_insert_breakpoint)
15546 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15547 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15548 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15549 (record_full_core_remove_breakpoint): Add target_ops parameter.
15551 (record_full_beneath_to_insert_breakpoint_ops)
15552 (record_full_beneath_to_remove_breakpoint_ops)
15553 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15554 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15555 tmp_to_remove_breakpoint_ops,
15556 record_full_beneath_to_insert_breakpoint_ops, and
15557 record_full_beneath_to_remove_breakpoint_ops.
15558 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15559 (m32r_remove_breakpoint): Add target_ops parameter.
15560 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15561 Add target_ops parameter.
15562 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15563 Add target_ops parameter.
15565 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15566 Markus Metzger <markus.t.metzger@intel.com>
15568 * record-btrace.c: Include frame-unwind.h.
15569 (record_btrace_frame_unwind_stop_reason)
15570 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15571 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15573 (init_record_btrace_ops): Install it.
15575 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15577 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15580 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15582 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15585 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15587 * frame-unwind.c: Include target.h.
15588 (frame_unwind_try_unwinder): New function with code from ...
15589 (frame_unwind_find_by_frame): ... here. New variable
15590 unwinder_from_target, call also target_get_unwinder)
15591 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15592 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15593 * target.h (struct target_ops): New fields to_get_unwinder and
15594 to_get_tailcall_unwinder.
15595 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15599 * record-btrace.c (record_btrace_fetch_registers)
15600 (record_btrace_store_registers)
15601 (record_btrace_to_prepare_to_store): New.
15602 (init_record_btrace_ops): Add the above.
15604 2014-01-16 Tom Tromey <tromey@redhat.com>
15606 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15607 * target.h (struct target_ops) <to_prepare_to_store>: Add
15609 (target_prepare_to_store): Add argument.
15610 * target.c (debug_to_prepare_to_store): Add argument.
15611 (update_current_target): Update.
15612 * remote.c (remote_prepare_to_store): Add 'self' argument.
15613 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15614 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15615 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15616 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15618 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15619 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15620 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15621 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15622 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15624 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15626 * btrace.h (replay) <replay>: New.
15627 (btrace_is_replaying): New.
15628 * btrace.c (btrace_clear): Free replay iterator.
15629 (btrace_is_replaying): New.
15630 * record-btrace.c (record_btrace_is_replaying): New.
15631 (record_btrace_info): Print insn number if replaying.
15632 (record_btrace_insn_history): Start at replay position.
15633 (record_btrace_call_history): Start at replay position.
15634 (init_record_btrace_ops): Init to_record_is_replaying.
15636 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15638 * record-btrace.c (record_btrace_insn_history_range): Include
15640 (record_btrace_insn_history_from): Adjust range.
15641 (record_btrace_call_history_range): Include
15643 (record_btrace_call_history_from): Adjust range.
15644 * NEWS: Announce changes.
15646 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15648 * record.h (enum record_print_flag)
15649 <record_print_indent_calls>: New.
15650 * record.c (get_call_history_modifiers): Recognize /c modifier.
15651 (_initialize_record): Document /c modifier.
15652 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15653 Reorder fields. Optionally indent the function name. Update
15655 * NEWS: Announce changes.
15657 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15659 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15661 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15663 * btrace.c (ftrace_new_function): Start counting at one.
15664 * record-btrace.c (record_btrace_info): Adjust number of calls
15666 * NEWS: Announce it.
15668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15670 * record-btrace.c (btrace_call_history_insn_range): Print
15671 insn range as [begin, end].
15673 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15675 * btrace.h (struct btrace_func_link): New.
15676 (enum btrace_function_flag): New.
15677 (struct btrace_inst): Rename to ...
15678 (struct btrace_insn): ...this. Update all users.
15679 (struct btrace_func) <ibegin, iend>: Remove.
15680 (struct btrace_func_link): New.
15681 (struct btrace_func): Rename to ...
15682 (struct btrace_function): ...this. Update all users.
15683 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15684 (number, level, flags>: New.
15685 (struct btrace_insn_iterator): Rename to ...
15686 (struct btrace_insn_history): ...this.
15688 (struct btrace_insn_iterator, btrace_call_iterator): New.
15689 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15690 (struct btrace_target_info) <begin, end, level>
15691 <insn_history, call_history>: New.
15692 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15693 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15694 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15695 (btrace_call_number, btrace_call_begin, btrace_call_end)
15696 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15697 (btrace_find_function_by_number, btrace_set_insn_history)
15698 (btrace_set_call_history): New.
15699 * btrace.c (btrace_init_insn_iterator)
15700 (btrace_init_func_iterator, compute_itrace): Remove.
15701 (ftrace_print_function_name, ftrace_print_filename)
15702 (ftrace_skip_file): Change
15703 parameter to const.
15704 (ftrace_init_func): Remove.
15705 (ftrace_debug): Use new btrace_function fields.
15706 (ftrace_function_switched): Also consider gaining and
15707 losing symbol information).
15708 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15709 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15710 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15712 (ftrace_new_function): Move. Remove debug print.
15713 (ftrace_update_lines, ftrace_update_insns): New.
15714 (ftrace_update_function): Check for call, ret, and jump.
15715 (compute_ftrace): Renamed to ...
15716 (btrace_compute_ftrace): ...this. Rewritten to compute call
15718 (btrace_fetch, btrace_clear): Updated.
15719 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15720 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15721 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15722 (btrace_call_number, btrace_call_begin, btrace_call_end)
15723 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15724 (btrace_find_function_by_number, btrace_set_insn_history)
15725 (btrace_set_call_history): New.
15726 * record-btrace.c (require_btrace): Use new btrace thread
15728 (record_btrace_info, btrace_insn_history)
15729 (record_btrace_insn_history, record_btrace_insn_history_range):
15730 Use new btrace thread info fields and new iterator.
15731 (btrace_func_history_src_line): Rename to ...
15732 (btrace_call_history_src_line): ...this. Use new btrace
15733 thread info fields.
15734 (btrace_func_history): Rename to ...
15735 (btrace_call_history): ...this. Use new btrace thread info
15736 fields and new iterator.
15737 (record_btrace_call_history, record_btrace_call_history_range):
15738 Use new btrace thread info fields and new iterator.
15740 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15742 * frame.h (frame_id_build_unavailable_stack_special): New.
15743 * frame.c (frame_id_build_unavailable_stack_special): New.
15745 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15747 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15748 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15749 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15751 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15752 (i386_insn_is_jump, i386_jmp_p): New.
15753 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15754 insn_is_jump to gdbarch.
15755 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15756 * gdbarch.h: Regenerated.
15757 * gdbarch.c: Regenerated.
15758 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15759 (default_insn_is_jump): New.
15760 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15761 (default_insn_is_jump): New.
15763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15765 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15767 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15768 (btrace_read_type) <btrace_read_new>: Change to ...
15769 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15771 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15773 * common/linux-btrace.c (linux_read_btrace): Free trace from
15774 previous iteration.
15776 2014-01-15 Doug Evans <dje@google.com>
15778 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15781 2014-01-15 Tom Tromey <tromey@redhat.com>
15783 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15784 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15785 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15786 (set_objfile_main_name): New function.
15787 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15788 language_of_main>: New fields.
15789 (set_objfile_main_name): Declare.
15790 * symtab.c (find_main_name): Loop over objfiles to find the main
15792 (set_main_name): Now static.
15793 (get_main_info): Add comment.
15794 * symtab.h (set_main_name): Don't declare.
15796 2014-01-15 Tom Tromey <tromey@redhat.com>
15798 * symtab.c (main_progspace_key): New global.
15799 (struct main_info): New.
15800 (name_of_main, language_of_main): Remove.
15801 (get_main_info, main_info_cleanup): New function.
15802 (set_main_name, main_name, main_language): Use get_main_info.
15803 (_initialize_symtab): Initialize main_progspace_key.
15805 2014-01-15 Tom Tromey <tromey@redhat.com>
15807 * dbxread.c (process_one_symbol): Update.
15808 * dwarf2read.c (read_partial_die): Update.
15809 * symfile.c (set_initial_language): Call main_language.
15810 * symtab.c (language_of_main): Now static.
15811 (set_main_name): Add 'lang' parameter.
15812 (find_main_name): Update.
15813 (main_language): New function.
15814 (symtab_observer_executable_changed): Update.
15815 * symtab.h (set_main_name): Update.
15816 (language_of_main): Remove.
15817 (main_language): Declare.
15819 2014-01-15 Tom Tromey <tromey@redhat.com>
15821 * symfile.c (init_entry_point_info): Use new "initialized" field.
15823 * objfiles.h (struct entry_point) <initialized>: New field.
15824 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15825 (struct objfile) <ei>: ...here. Remove.
15826 * objfiles.c (entry_point_address_query): Update.
15828 2014-01-15 Tom Tromey <tromey@redhat.com>
15830 * objfiles.c (entry_point_address_query): Relocate entry point
15832 (objfile_relocate1): Do not relocate entry point address.
15833 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15834 <the_bfd_section_index>: New field.
15835 * symfile.c (init_entry_point_info): Find the entry point's
15838 2014-01-15 Tom Tromey <tromey@redhat.com>
15840 * solib-frv.c (enable_break): Use entry_point_address_query.
15842 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15844 * NEWS: Add note on improved process record-replay on
15845 arm*-linux* targets.
15847 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15849 * arm-tdep.c (enum arm_record_result): New enum.
15850 (arm_record_unsupported_insn): New function.
15851 (arm_record_coproc_data_proc): Removed.
15852 (thumb2_record_ld_st_multiple): New function.
15853 (thumb2_record_ld_st_dual_ex_tbb): New function.
15854 (thumb2_record_data_proc_sreg_mimm): New function.
15855 (thumb2_record_ps_dest_generic): New function.
15856 (thumb2_record_branch_misc_cntrl): New function.
15857 (thumb2_record_str_single_data): New function.
15858 (thumb2_record_ld_mem_hints): New function.
15859 (thumb2_record_ld_word): New function.
15860 (thumb2_record_lmul_lmla_div): New function.
15861 (thumb2_record_decode_insn_handler): New function.
15862 (decode_insn): Add thumb32 instruction handlers.
15864 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15866 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15867 (struct arm_linux_record_tdep): Declare.
15868 (arm_canonicalize_syscall): New function.
15869 (arm_all_but_pc_registers_record): New function.
15870 (arm_linux_syscall_record): New function.
15871 (arm_linux_init_abi): Add syscall recording constructs.
15872 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15873 decoding. (arm_record_coproc_data_proc): Update arm syscall
15875 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15876 <arm_syscall_record>: New field.
15877 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15880 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15882 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15883 register for push instruction recording.
15885 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15887 * arm-tdep.c (thumb_record_misc): Update to correct logical
15888 error while recording ldm, ldmia and pop instructions.
15890 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15892 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15894 2014-01-15 Pedro Alves <palves@redhat.com>
15896 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15897 (go32_resume, go32_fetch_registers, store_register)
15898 (go32_store_registers, go32_prepare_to_store)
15899 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15900 (go32_create_inferior, go32_can_run, go32_terminal_init)
15901 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15904 2014-01-15 Tom Tromey <tromey@redhat.com>
15906 * target.h (async_callback_ftype): New typedef.
15907 (struct target_ops) <to_async>: Use it.
15909 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15911 * python/py-value.c (get_field_type): Remove unnecessary curly
15912 braces for single-statement if block.
15914 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15916 * python/py-type.c (convert_field): Add missing empty line
15917 after declarations.
15919 2014-01-14 Doug Evans <dje@google.com>
15921 * symfile.h (expand_symtabs_matching): Renamed from
15922 expand_partial_symbol_names. Update prototype.
15923 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15924 * symfile.c (expand_symtabs_matching): Renamed from
15925 expand_partial_symbol_names. New args file_matcher, kind.
15926 Rename arg fun to symbol_matcher.
15927 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15928 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15929 ada_expand_partial_symbol_name.
15930 (ada_make_symbol_completion_list): Update to call
15931 expand_symtabs_matching.
15932 (ada_add_global_exceptions): Call expand_symtabs_matching.
15933 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15934 call map_symbol_filenames.
15935 * symtab.c (sources_info): Update to call map_symbol_filenames.
15936 (search_symbols): Call expand_symtabs_matching.
15937 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15938 (default_make_symbol_completion_list_break_on): Update to call
15939 expand_symtabs_matching.
15940 (make_source_files_completion_list): Update to call
15941 map_symbol_filenames.
15943 2014-01-14 Doug Evans <dje@google.com>
15945 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15946 (expand_symtabs_symbol_matcher_ftype): New typedef.
15947 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15948 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15949 * symfile.c (expand_partial_symbol_names): Update to use
15950 expand_symtabs_symbol_matcher_ftype.
15951 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15952 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15953 Arg name_matcher renamed to symbol_matcher.
15954 * psymtab.c (recursively_search_psymtabs): Update to use
15955 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15957 (expand_symtabs_matching_via_partial): Update to use
15958 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15959 Arg name_matcher renamed to symbol_matcher.
15961 2014-01-14 Doug Evans <dje@google.com>
15963 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15964 (map_partial_symbol_filenames): Ditto.
15965 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15966 (map_partial_symbol_filenames): Ditto.
15967 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15968 (map_partial_symbol_filenames): Ditto.
15969 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15970 (map_partial_symbol_filenames): Ditto.
15971 * symtab.c: Delete #include "psymtab.h".
15973 2014-01-14 Pedro Alves <palves@redhat.com>
15974 Tom Tromey <tromey@redhat.com>
15976 * infrun.c (use_displaced_stepping): Use find_record_target
15977 instead of RECORD_IS_USED.
15978 (adjust_pc_after_break): Use record_full_is_used instead of
15980 * record-btrace.c (record_btrace_open): Call record_preopen
15981 instead of checking RECORD_IS_USED.
15982 * record-full.c (record_full_shortname)
15983 (record_full_core_shortname): New globals.
15984 (record_full_is_used): New function.
15985 (find_full_open): Call record_preopen instead of checking
15987 (init_record_full_ops): Set the target's shortname to
15988 record_full_shortname.
15989 (init_record_full_core_ops): Set the target's shortname to
15990 record_full_core_shortname.
15991 * record-full.h (record_full_is_used): Declare.
15992 * record.c (find_record_target): Make extern.
15993 (record_preopen): New function.
15994 * record.h (RECORD_IS_USED): Delete macro.
15995 (find_record_target, record_preopen): Declare functions.
15997 2014-01-14 Yao Qi <yao@codesourcery.com>
15999 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
16000 'len''s type to ULONGEST.
16001 (core_xfer_shared_libraries_aix): Likewise.
16002 * gdbarch.c, gdbarch.h: Regenerated.
16003 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
16004 Change type of 'len' to ULONGEST.
16005 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16006 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
16008 2014-01-14 Yao Qi <yao@codesourcery.com>
16010 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
16011 type of 'len' to ULONGEST.
16012 (linux_xfer_osdata_processgroups): Likewise.
16013 (linux_xfer_osdata_threads): Likewise.
16014 (linux_xfer_osdata_fds): Likewise.
16015 (linux_xfer_osdata_isockets): Likewise.
16016 (linux_xfer_osdata_shm): Likewise.
16017 (linux_xfer_osdata_sem): Likewise.
16018 (linux_xfer_osdata_msg): Likewise.
16019 (linux_common_xfer_osdata): Likewise.
16020 (struct osdata_type) <getter>: Likewise.
16021 * common/linux-osdata.h (linux_common_xfer_osdata): Update
16024 2014-01-14 Yao Qi <yao@codesourcery.com>
16026 * target.h (target_xfer_partial_ftype): Update.
16027 (struct target_ops) <to_xfer_partial>: Change 'len' type to
16029 * aix-thread.c (aix_thread_xfer_partial): Change type of
16030 argument 'len' to ULONGEST.
16031 * auxv.c (procfs_xfer_auxv): Likewise.
16032 (ld_so_xfer_auxv): Likewise.
16033 (memory_xfer_auxv): Likewise.
16034 * bfd-target.c (target_bfd_xfer_partial): Likewise.
16035 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
16036 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
16037 * corelow.c (core_xfer_partial): Likewise.
16038 * ctf.c (ctf_xfer_partial): Likewise.
16039 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
16041 (darwin_read_dyld_info): Likewise.
16042 (darwin_xfer_partial): Likewise.
16043 * exec.c (section_table_xfer_memory_partial): Likewise.
16044 (exec_xfer_partial): Likewise.
16045 * exec.h (section_table_xfer_memory_partial): Update
16047 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
16048 instead of plongest.
16049 (gnu_xfer_partial): Likewise.
16050 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
16051 (ia64_hpux_xfer_solib_got): Likewise.
16052 (ia64_hpux_xfer_partial): Likewise.
16053 * ia64-linux-nat.c (ia64_linux_xfer_partial):
16054 * inf-ptrace.c (inf_ptrace_xfer_partial):
16055 * inf-ttrace.c (inf_ttrace_xfer_partial):
16056 * linux-nat.c (linux_xfer_siginfo): Likewise.
16057 (linux_nat_xfer_partial): Likewise.
16058 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
16059 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
16060 * monitor.c (monitor_xfer_memory): Likewise.
16061 (monitor_xfer_partial): Likewise.
16062 * procfs.c (procfs_xfer_partial): Likewise.
16063 * record-full.c (record_full_xfer_partial): Likewise.
16064 (record_full_core_xfer_partial): Likewise.
16065 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
16066 instead of plongest.
16067 (gdbsim_xfer_partial): Likewise.
16068 * remote.c (remote_xfer_partial): Likewise.
16069 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16070 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
16072 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
16073 (rs6000_xfer_shared_libraries): Likewise.
16074 * sol-thread.c (sol_thread_xfer_partial): Likewise.
16075 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
16076 (sparc_xfer_partial): Likewise.
16077 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
16078 (spu_xfer_partial): Likewise.
16079 * spu-multiarch.c (spu_xfer_partial): Likewise.
16080 * target.c (target_read_live_memory): Likewise.
16081 (memory_xfer_live_readonly_partial): Likewise.
16082 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
16083 (target_xfer_partial, default_xfer_partial): Likewise.
16084 (current_xfer_partial): Likewise.
16085 * tracepoint.c (tfile_xfer_partial): Likewise.
16086 * windows-nat.c (windows_xfer_memory): Likewise. Call
16087 pulongest instead of plongest.
16088 (windows_xfer_partial): Likewise.
16089 (windows_xfer_shared_libraries): Likewise.
16091 2014-01-14 Yao Qi <yao@codesourcery.com>
16093 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
16094 target_xfer_partial_ftype.
16096 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
16100 * valops.c (value_struct_elt_bitpos): New function
16101 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
16102 object to 'None' if the field name is an empty string ("").
16103 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
16104 attribute to look for a field when 'name' is 'None'.
16105 (get_field_type): New function
16107 2014-01-13 Doug Evans <dje@google.com>
16110 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
16111 (try_open_dwop_file): Ditto.
16112 * gdb_bfd.c: #include "vec.h".
16113 (bfdp): New typedef.
16114 (struct gdb_bfd_data): New member included_bfds.
16115 (gdb_bfd_unref): Unref all included bfds.
16116 (gdb_bfd_record_inclusion): New function.
16117 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
16119 2014-01-13 Tom Tromey <tromey@redhat.com>
16121 * gdbcore.h (deprecated_core_resize_section_table): Remove.
16123 2014-01-13 Tom Tromey <tromey@redhat.com>
16125 * defs.h (use_windows): Remove.
16126 * gdb.c (main): Update.
16127 * main.c (captured_main, gdb_main): Update.
16128 * main.h (struct captured_main_args) <use_windows>: Remove.
16129 * top.c (use_windows): Remove.
16131 2014-01-13 Tom Tromey <tromey@redhat.com>
16133 * defs.h (deprecated_flush_hook): Remove.
16135 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16138 * linux-thread-db.c (try_thread_db_load): Add parameter
16139 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16140 (try_thread_db_load_from_pdir_1): Move it there from here.
16141 (try_thread_db_load_from_sdir): Update caller.
16142 (try_thread_db_load_from_dir): Move it there from here.
16144 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16146 * regformats/regdat.sh: Always rewrite the register file.
16148 2014-01-13 Pedro Alves <palves@redhat.com>
16150 * Makefile.in (CHECK_HEADERS): New variable.
16151 (check-headers:): New rule.
16153 2014-01-13 Tom Tromey <tromey@redhat.com>
16155 * cli/cli-setshow.c (do_set_command): Update.
16156 * defs.h (deprecated_set_hook): Remove.
16157 * top.c (deprecated_set_hook): Remove.
16159 2014-01-13 Pedro Alves <palves@redhat.com>
16161 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16162 the tracepoint if the PC is a pseudo-register.
16164 2014-01-13 Tom Tromey <tromey@redhat.com>
16166 * defs.h (XCALLOC): Remove.
16167 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16168 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16169 * dwarf2loc.c (allocate_piece_closure): Likewise.
16170 * elfread.c (elf_symfile_segments): Likewise.
16171 (elf_symfile_segments): Likewise.
16172 * gdbtypes.c (copy_type_recursive): Likewise.
16173 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16174 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16175 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16177 * mt-tdep.c (mt_gdbarch_init): Likewise.
16178 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16180 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16181 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16182 * registry.c (registry_alloc_data): Likewise.
16183 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16184 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16185 * serial.c (serial_fdopen_ops): Likewise.
16186 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16188 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16189 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16192 2014-01-13 Tom Tromey <tromey@redhat.com>
16194 * defs.h (XMALLOC): Remove.
16195 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16196 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16197 * cli-out.c (struct ui_out *): Likewise.
16198 * cli/cli-dump.c (add_dump_command): Likewise.
16199 (add_dump_command): Likewise.
16200 * complaints.c (get_complaints): Likewise.
16201 (find_complaint): Likewise.
16202 * dwarf2-frame.c (execute_cfa_program): Likewise.
16203 * dwarf2read.c (abbrev_table_read_table): Likewise.
16204 * gdbarch.sh: Likewise.
16205 * gdbarch.c: Rebuild.
16206 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16207 * interps.c (interp_new): Likewise.
16208 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16209 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16210 * mi/mi-console.c (mi_console_file_new): Likewise.
16211 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16212 * mi/mi-out.c (mi_out_new): Likewise.
16213 * mi/mi-parse.c (mi_parse): Likewise.
16214 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16215 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16216 * observer.c (xalloc_observer_list_node): Likewise.
16217 * regcache.c (regcache_xmalloc_1): Likewise.
16218 * reggroups.c (reggroup_new): Likewise.
16219 (_initialize_reggroup): Likewise.
16220 * registry.c (register_data_with_cleanup): Likewise.
16221 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16222 * ser-base.c (serial_ttystate): Likewise.
16223 * ser-mingw.c (make_pipe_state): Likewise.
16224 * ser-pipe.c (pipe_open): Likewise.
16225 * serial.c (serial_open): Likewise.
16226 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16227 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16228 (tui_alloc_win_info): Likewise.
16229 (tui_add_content_elements): Likewise.
16230 * tui/tui-file.c (tui_file_new): Likewise.
16231 * tui/tui-out.c (tui_out_new): Likewise.
16232 * ui-file.c (mem_file_new): Likewise.
16233 * ui-out.c (push_level): Likewise.
16234 (make_cleanup_ui_out_end): Likewise.
16235 (append_header_to_list): Likewise.
16236 (ui_out_new): Likewise.
16237 * user-regs.c (user_reg_add_builtin): Likewise.
16239 2014-01-13 Tom Tromey <tromey@redhat.com>
16241 * defs.h (XZALLOC): Remove.
16242 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16243 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16244 (get_ada_tasks_inferior_data): Likewise.
16245 * auto-load.c (get_auto_load_pspace_data): Likewise.
16246 * auxv.c (get_auxv_inferior_data): Likewise.
16247 * bfd-target.c (target_bfd_reopen): Likewise.
16248 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16249 (deprecated_insert_raw_breakpoint): Likewise.
16250 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16251 * corelow.c (core_open): Likewise.
16252 * darwin-nat.c (darwin_check_new_threads): Likewise.
16253 (darwin_attach_pid): Likewise.
16254 * dummy-frame.c (dummy_frame_push): Likewise.
16255 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16256 * dwarf2loc.c (allocate_piece_closure): Likewise.
16257 * elfread.c (elf_symfile_segments): Likewise.
16258 * eval.c (ptrmath_type_p): Likewise.
16259 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16260 * gdbtypes.c (alloc_type_arch): Likewise.
16261 (alloc_type_instance): Likewise.
16262 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16263 * inf-child.c (inf_child_can_use_agent): Likewise.
16264 * inflow.c (get_inflow_inferior_data): Likewise.
16265 * infrun.c (save_infcall_suspend_state): Likewise.
16266 * jit.c (jit_reader_load): Likewise.
16267 (get_jit_objfile_data): Likewise.
16268 (get_jit_program_space_data): Likewise.
16269 (jit_object_open_impl): Likewise.
16270 (jit_symtab_open_impl): Likewise.
16271 (jit_block_open_impl): Likewise.
16272 (jit_frame_sniffer): Likewise.
16273 * linux-fork.c (add_fork): Likewise.
16274 * maint.c (make_command_stats_cleanup): Likewise.
16275 * objfiles.c (get_objfile_pspace_data): Likewise.
16276 * opencl-lang.c (struct lval_closure): Likewise.
16277 * osdata.c (osdata_start_osdata): Likewise.
16278 * progspace.c (new_address_space): Likewise.
16279 (add_program_space): Likewise.
16280 * remote-sim.c (get_sim_inferior_data): Likewise.
16281 * sh-tdep.c (sh_gdbarch_init): Likewise.
16282 * skip.c (Ignore): Likewise.
16283 (skip_delete_command): Likewise.
16284 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16285 (library_list_start_library): Likewise.
16286 (solib_aix_current_sos): Likewise.
16287 * solib-darwin.c (get_darwin_info): Likewise.
16288 (darwin_current_sos): Likewise.
16289 * solib-dsbt.c (get_dsbt_info): Likewise.
16290 * solib-ia64-hpux.c (new_so_list): Likewise.
16291 (ia64_hpux_get_solib_linkage_addr): Likewise.
16292 * solib-spu.c (append_ocl_sos): Likewise.
16293 (spu_current_sos): Likewise.
16294 * solib-svr4.c (get_svr4_info): Likewise.
16295 (svr4_keep_data_in_core): Likewise.
16296 (library_list_start_library): Likewise.
16297 (svr4_default_sos): Likewise.
16298 (svr4_read_so_list): Likewise.
16299 * solib-target.c (library_list_start_library): Likewise.
16300 (solib_target_current_sos): Likewise.
16301 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16302 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16303 * symfile.c (default_symfile_segments): Likewise.
16304 * target-descriptions.c (tdesc_data_init): Likewise.
16305 (tdesc_create_reg): Likewise.
16306 (struct tdesc_type *): Likewise.
16307 (tdesc_create_vector): Likewise.
16308 (tdesc_set_struct_size): Likewise.
16309 (struct tdesc_type *): Likewise.
16310 (tdesc_free_feature): Likewise.
16311 (tdesc_create_feature): Likewise.
16312 * windows-nat.c (windows_add_thread): Likewise.
16313 (windows_make_so): Likewise.
16314 * xml-support.c (gdb_xml_body_text): Likewise.
16315 (gdb_xml_create_parser_and_cleanup): Likewise.
16316 (xml_process_xincludes): Likewise.
16317 * xml-syscall.c (allocate_syscalls_info): Likewise.
16318 (syscall_create_syscall_desc): Likewise.
16320 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16322 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16323 function, with code from i386_stap_parse_special_token.
16324 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16325 (i386_stap_parse_special_token): Move code to the two functions
16326 above; simplify it.
16328 2014-01-09 Pedro Alves <palves@redhat.com>
16329 Hui Zhu <hui@codesourcery.com>
16332 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16333 bp_err_string. Don't mark the location shlib_disabled if the
16334 error thrown wasn't a generic or memory error. Catch errors
16335 thrown while inserting breakpoints in overlayed code. Output
16336 error message of software breakpoints.
16337 * remote.c (remote_insert_breakpoint): If this breakpoint has
16338 target-side commands but this stub doesn't support Z0 packets,
16339 throw NOT_SUPPORTED_ERROR error.
16340 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16341 * target.h (target_insert_breakpoint): Extend comment.
16342 (target_insert_hw_breakpoint): Add comment.
16344 2014-01-08 Pedro Alves <palves@redhat.com>
16346 * remote.c (remote_add_thread): Add threads silently if starting
16348 (remote_notice_new_inferior): If in all-stop, and starting up,
16349 don't call notice_new_inferior.
16350 (get_current_thread): New function, factored out from ...
16351 (add_current_inferior_and_thread): ... this. Adjust.
16352 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16353 found any thread, then select the remote's current thread as GDB's
16354 current thread too.
16356 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16358 * NEWS: Create a new section for the next release branch.
16359 Rename the section of the current branch, now that it has
16362 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16364 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16365 * version.in: Bump version to 7.7.50.DATE-cvs.
16367 2014-01-08 Yao Qi <yao@codesourcery.com>
16369 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16370 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16371 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16373 2014-01-08 Yao Qi <yao@codesourcery.com>
16375 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16376 return value of bfd_get_filename to symbol_file_add_from_bfd.
16378 2014-01-08 Pierre Muller <muller@sourceware.org>
16381 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16382 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16383 to prim_record_mininal_symbol_and_info.
16384 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16385 in call to prim_record_minimal_symbol_and_info.
16386 (read_pe_exported_syms): Set index field of section_data.
16388 2014-01-07 Andrew Pinski <apinski@cavium.com>
16390 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16391 * features/aarch64.c: Regenerate.
16393 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16395 * target.c (return_null): Define.
16396 (update_current_target): Use it instead of return_zero for
16397 functions that return a pointer.
16399 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16401 * source.c (add_path): Fix check for duplicated paths in the previously
16404 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16406 * ada-lang.c: Remove duplicated include statements.
16407 * alphabsd-nat.c: Ditto.
16408 * amd64-darwin-tdep.c: Ditto.
16409 * amd64fbsd-nat.c: Ditto.
16410 * auto-load.c: Ditto.
16412 * breakpoint.c: Ditto.
16413 * dbxread.c: Ditto.
16414 * fork-child.c: Ditto.
16415 * gdb_usleep.c: Ditto.
16416 * i386-darwin-tdep.c: Ditto.
16417 * i386fbsd-nat.c: Ditto.
16419 * inferior.c: Ditto.
16420 * jv-lang.c: Ditto.
16421 * linux-nat.c: Ditto.
16422 * linux-tdep.c: Ditto.
16423 * m68kbsd-nat.c: Ditto.
16424 * m68klinux-nat.c: Ditto.
16425 * microblaze-tdep.c: Ditto.
16426 * mips-linux-tdep.c: Ditto.
16427 * mn10300-tdep.c: Ditto.
16428 * nto-tdep.c: Ditto.
16429 * opencl-lang.c: Ditto.
16431 * printcmd.c: Ditto.
16432 * regcache.c: Ditto.
16433 * remote-m32r-sdi.c: Ditto.
16435 * symfile.c: Ditto.
16437 * tilegx-linux-nat.c: Ditto.
16438 * tilegx-tdep.c: Ditto.
16439 * tracepoint.c: Ditto.
16441 * vaxbsd-nat.c: Ditto.
16442 * windows-nat.c: Ditto.
16443 * xtensa-tdep.c: Ditto.
16445 2014-01-07 Yao Qi <yao@codesourcery.com>
16447 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16449 2014-01-07 Yao Qi <yao@codesourcery.com>
16450 Joel Brobecker <brobecker@adacore.com>
16452 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16453 (pdc_write_regs): Likewise.
16454 (fetch_regs_kernel_thread): Likewise.
16455 (store_regs_kernel_thread): Likewise.
16457 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16459 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16460 tagged type objects to their actual type.
16462 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16464 * ada-valprint.c (print_field_values): Add "language" parameter.
16465 Update calls to print_field_values and print_variant_part.
16466 Pass new parameter "language" in call to val_print instead
16467 of "current_language". Replace call to ada_val_print by call
16469 (print_variant_part): Add "language" parameter.
16470 (ada_val_print_struct_union): Update call to print_field_values.
16472 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16474 * ada-valprint.c (ui_memcpy): Delete.
16475 (ada_print_floating): Update documentation. Add empty line
16476 between between function documentation and implementation.
16477 Delete variable "buffer". Use ui_file_xstrdup in place of
16478 ui_file_put. Minor adjustments following this change.
16480 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16482 * ada-valprint.c (ada_val_print_string): New function,
16483 extracted from ada_val_print_array.
16484 (ada_val_print_array): Replace extracted code by call
16485 to ada_val_print_string followed by a return. Move
16486 "else" branch to the function's top block.
16488 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16490 * ada-valprint.c (ada_val_print_array): Move implementation
16491 down. Rename parameter "offset" and "val" into "offset_aligned"
16492 and "original_value" respectively. Add parameter "offset".
16494 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16496 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16497 re-organizing the code. Change the "???" message printed
16498 when target type is a TYPE_CODE_UNDEF into
16499 "<ref to undefined type>".
16501 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16503 * ada-valprint.c (print_record): Delete, implementation inlined...
16504 (ada_val_print_struct_union): ... here. Remove call to
16505 ada_check_typedef in inlined implementation.
16507 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16509 * ada-valprint.c (ada_val_print_gnat_array): New function,
16510 extracted from ada_val_print_1;
16511 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16512 (ada_val_print_flt, ada_val_print_struct_union)
16513 (ada_val_print_ref): Likewise.
16514 (ada_val_print_1): Delete variables i and elttype.
16515 Replace extracted-out code by call to corresponding
16518 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16520 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16522 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16524 * ada-valprint.c (ada_val_print_1): Replace calls to
16525 ada_val_print_1 by calls to val_print.
16527 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16529 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16530 Update calls to self accordingly. Replace calls to c_val_print
16531 by calls to val_print.
16533 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16535 * ada-valprint.c (print_record): Delete declaration.
16536 (adjust_type_signedness, ada_val_print_1): Likewise.
16537 (ada_val_print): Move function implementation down.
16538 (print_variant_part, print_field_values, print_record):
16539 Move function implementation up.
16541 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16543 * python/py-type.c (typy_get_name): New function.
16544 (type_object_getset): Add entry for attribute "name".
16545 * NEWS: Add entry mentioning this new attribute.
16547 2014-01-07 Yao Qi <yao@codesourcery.com>
16549 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16552 2014-01-07 Yao Qi <yao@codesourcery.com>
16554 * gnu-nat.c (info_port_rights): Add qualifier const to
16557 2014-01-07 Yao Qi <yao@codesourcery.com>
16559 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16561 2014-01-07 Yao Qi <yao@codesourcery.com>
16563 * gnu-nat.c (make_inf) Update declaration.
16564 (make_inf): Make it static.
16565 (inf_set_traced): Likewise.
16566 (inf_port_to_thread, inf_task_died_status): Likewise.
16568 2014-01-07 Yao Qi <yao@codesourcery.com>
16570 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16572 2014-01-07 Yao Qi <yao@codesourcery.com>
16574 * gnu-nat.c (_initialize_gnu_nat): Declare.
16576 2014-01-07 Yao Qi <yao@codesourcery.com>
16578 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16580 (struct gdbarch_info) <byte_order>: Change type to
16582 <byte_order_for_code>: Likewise.
16583 * gdbarch.c, gdbarch.h: Regenerated.
16585 2014-01-06 Sasha Smundak <asmundak@google.com>
16587 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16589 2014-01-06 Tom Tromey <tromey@redhat.com>
16591 * doublest.c (convert_doublest_to_floatformat): Use const, not
16593 * somread.c (som_symtab_read): Likewise.
16595 2014-01-07 Hui Zhu <hui@codesourcery.com>
16597 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16598 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16599 (gdb_bfd_fopen): Ditto.
16600 (gdb_bfd_openr): Ditto.
16601 (gdb_bfd_openw): Ditto.
16602 (gdb_bfd_openr_iovec): Ditto.
16603 (gdb_bfd_fdopenr): Ditto.
16604 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16605 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16607 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16609 * symfile-mem.c (symbol_file_add_from_memory): Removed
16610 gdb_bfd_stash_filename.
16612 2014-01-03 Doug Evans <dje@google.com>
16614 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16617 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16619 Update year range in copyright notice of all files.
16621 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16623 * top.c (print_gdb_version): Set copyright year to 2014.
16625 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16627 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16629 For older changes see ChangeLog-2013.
16635 version-control: never