1 2014-12-23 Doug Evans <xdje42@gmail.com>
3 * ada-lang.c (user_select_syms): Only fetch symtab if symbol is
5 (cache_symbol): Ignore symbols that are not objfile-owned.
6 * block.c (block_objfile): New function.
7 (block_gdbarch): New function.
8 * block.h (block_objfile): Declare.
9 (block_gdbarch): Declare.
10 * c-exp.y (classify_name): Remove call to
11 language_lookup_primitive_type. No longer necessary.
12 * gdbtypes.c (lookup_typename): Call lookup_symbol_in_language.
13 Remove call to language_lookup_primitive_type. No longer necessary.
14 * guile/scm-symbol.c (syscm_gdbarch_data_key): New static global.
15 (syscm_gdbarch_data): New struct.
16 (syscm_init_arch_symbols): New function.
17 (syscm_get_symbol_map): Renamed from syscm_objfile_symbol_map.
18 All callers updated. Handle symbols owned by arches.
19 (gdbscm_symbol_symtab): Handle symbols owned by arches.
20 (gdbscm_initialize_symbols): Initialize syscm_gdbarch_data_key.
21 * language.c (language_lookup_primitive_type_1): New function.
22 (language_lookup_primitive_type): Call it.
23 (language_alloc_type_symbol): New function.
24 (language_init_primitive_type_symbols): New function.
25 (language_lookup_primitive_type_as_symbol): New function.
26 * language.h (struct language_arch_info) <primitive_type_symbols>:
28 (language_lookup_primitive_type): Add function comment.
29 (language_lookup_primitive_type_as_symbol): Declare.
30 * printcmd.c (address_info): Handle arch-owned symbols.
31 * python/py-symbol.c (sympy_get_symtab): Ditto.
33 (sympy_dealloc): Ditto.
34 * symmisc.c (print_symbol): Ditto.
35 * symtab.c (fixup_symbol_section): Ditto.
36 (lookup_symbol_aux): Initialize block_found.
37 (basic_lookup_symbol_nonlocal): Try looking up the symbol as a
39 (initialize_objfile_symbol_1): New function.
40 (initialize_objfile_symbol): Call it.
41 (allocate_symbol): Call it.
42 (allocate_template_symbol): Call it.
43 (symbol_objfile): Assert symbol is objfile-owned.
44 (symbol_arch, symbol_symtab, symbol_set_symtab): Ditto.
45 * symtab.h (struct symbol) <owner>: Replaces member "symtab".
46 (struct symbol) <is_objfile_owned>: New member.
47 (SYMBOL_OBJFILE_OWNED): New macro.
48 * cp-namespace.c (cp_lookup_bare_symbol): New arg langdef.
49 All callers updated. Try to find the symbol as a primitive type.
50 (lookup_namespace_scope): New arg langdef. All callers updated.
51 Call cp_lookup_bare_symbol directly for simple bare symbols.
53 2014-12-23 Doug Evans <xdje42@gmail.com>
55 * symtab.h (SYMBOL_DOMAIN_BITS): New macro.
56 (struct symbol) <domain>: Use it.
58 2014-12-23 Doug Evans <xdje42@gmail.com>
60 * symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
63 2014-12-23 Doug Evans <xdje42@gmail.com>
65 * language.h (struct language_defn) <la_lookup_symbol_nonlocal>:
66 New arg language_defn. All uses updated.
68 2014-12-23 Doug Evans <xdje42@gmail.com>
70 * symtab.h (SYMBOL_SYMTAB): Delete
71 (SYMBOL_OBJFILE): Delete.
72 (symbol_symtab, symbol_set_symtab): Declare.
73 (symbol_objfile, symbol_arch): Declare.
74 * symtab.c (symbol_symtab): Replaces SYMBOL_SYMTAB. All uses updated.
75 All references to symbol->symtab redirected through here.
76 (symbol_set_symtab): New function. All assignments to SYMBOL_SYMTAB
77 redirected through here.
78 (symbol_arch): New function.
79 (symbol_objfile): New function. Replaces SYMBOL_OBJFILE.
81 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
83 * findvar.c (default_read_var_value): Call symbol_arch.
84 * guile/scm-frame.c (gdbscm_frame_block): Call symbol_objfile.
85 * jv-lang.c (add_class_symtab_symbol): Call symbol_arch.
86 * printcmd.c (address_info): Call symbol_arch.
87 * tracepoint.c (scope_info): Call symbol_arch.
89 2014-12-22 Doug Evans <xdje42@gmail.com>
91 * cp-namespace.c (cp_lookup_symbol_via_all_imports): New function.
92 (cp_lookup_symbol_namespace): Call it.
93 (cp_lookup_symbol_nonlocal): Ditto.
95 2014-12-22 Doug Evans <xdje42@gmail.com>
97 * cp-namespace.c (cp_lookup_symbol_via_imports): New arg
98 "search_scope_first". All callers updated.
100 2014-12-22 Doug Evans <xdje42@gmail.com>
102 * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
103 (cp_basic_lookup_symbol): Renamed from lookup_symbol_file. Delete
104 arg "search". All callers updated.
105 (cp_lookup_bare_symbol): New function.
106 (cp_search_static_and_baseclasses): New function.
107 (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
108 (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
109 (cp_lookup_nested_symbol): Ditto.
111 2014-12-22 Doug Evans <xdje42@gmail.com>
113 * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
115 2014-12-22 Doug Evans <xdje42@gmail.com>
117 * cp-namespace.c: Whitespace cleanup.
119 2014-12-20 Keith Seitz <keiths@redhat.com>
120 Mihail-Marian Nistor <mihail.nistor@freescale.com>
123 * linespec.c (struct collect_minsyms): Add new member `symtab'.
124 (add_minsym): Handle cases where info.symtab is non-NULL.
125 (search_minsyms_for_name): Add new parameter `symtab'.
126 Handle limiting searches to a specific symtab.
127 (add_matching_symtabs_to_info): Search through minimal symbols
128 for language_asm files for which no new symbols are found.
130 2014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
131 Nigel Stephens <nigel@mips.com>
132 Chris Dearman <chris@mips.com>
133 Luis Machado <lgustavo@codesourcery.com>
135 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
136 (ALLDEPFILES): Add mips-sde-tdep.c.
137 * mips-sde-tdep.c: New file containg SDE specific code.
138 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
140 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
141 * osabi.c (gdb_osabi_names): Add SDE.
142 * NEWS: Mention the change.
144 2014-12-18 Simon Marchi <simon.marchi@ericsson.com>
146 * elfread.c (elf_symfile_init): Remove stale comment.
147 (elf_symfile_read): Same.
148 * symfile.h (struct sym_fns): Same.
150 2014-12-18 Nigel Stephens <nigel@mips.com>
151 Maciej W. Rozycki <macro@codesourcery.com>
153 * mips-tdep.c (print_fpu_flags): New function.
154 (mips_print_float_info): Likewise.
155 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
156 print_float_info routine.
158 2014-12-18 Yao Qi <yao@codesourcery.com>
160 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
161 * gdbarch.c: Re-generated.
162 * gdbarch.h: Likewise.
163 * infcmd.c (default_print_float_info): New function.
164 (print_float_info): Removed. Move code to
165 default_print_float_info.
166 (float_info): Adjust to call gdbarch_print_float_info.
167 * inferior.h (default_print_float_info): Declare it.
169 2014-12-18 Yao Qi <yao@codesourcery.com>
171 * h8300-tdep.c (h8300_print_float_info): Remove.
172 (h8300_gdbarch_init): Remove the call to
173 set_gdbarch_print_float_info.
175 2014-12-18 Doug Evans <xdje42@gmail.com>
177 * infcmd.c (jump_command): Minor simplification.
179 2014-12-18 Doug Evans <xdje42@gmail.com>
181 * language.c (language_lookup_primitive_type): Renamed from
182 language_lookup_primitive_type_by_name. All callers updated.
184 2014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
186 Fix MinGW compilation.
187 * compile/compile.c (get_compile_file_tempdir): Call error if
189 * config.in: Regenerate.
190 * configure: Regenerate.
191 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
193 2014-12-17 Doug Evans <xdje42@gmail.com>
195 * valops.c (value_maybe_namespace_elt): Remove redundant call to
196 lookup_static_symbol.
198 2014-12-17 Doug Evans <xdje42@gmail.com>
200 New parameter "debug symbol-lookup".
202 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
204 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
205 (cp_lookup_nested_symbol): Ditto.
206 * language.c (language_lookup_primitive_type_by_name): Add debug
208 * minsyms.c (lookup_minimal_symbol): Add debug output.
209 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
210 * symfile-debug.c (debug_objfile_name): ... from here. All callers
212 * objfiles.h (objfile_debug_name): Declare.
213 * symtab.h (symbol_lookup_debug): Declare.
214 * symtab.c (symbol_lookup_debug): New global.
215 (lookup_language_this): Add debug output.
216 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
217 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
218 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
219 (_initialize_symtab): Add new parameter "debug symbol-lookup".
221 2014-12-16 Doug Evans <xdje42@gmail.com>
223 * buildsym.c: Add comments describing how the buildsym machinery
224 is used by the various file formats.
225 (really_free_pendings): Enhance function comment.
226 See pending_macros to NULL. Simplify resetting pending_addrmap.
227 Call free_buildsym_compunit.
228 (free_buildsym_compunit): Set current_subfile to NULL.
229 (prepare_for_building): New function.
230 (start_symtab): Call it. Remove call to set_last_source_file.
231 (restart_symtab): New arg "cust". All callers updated.
232 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
233 (reset_symtab_globals): Enhance function comment.
234 Set local_symbols, file_symbols, global_symbols to NULL.
235 Set pending_macros to NULL. Simplify resetting pending_addrmap.
236 Call free_buildysym_compunit.
237 (end_symtab_without_blockvector): Delete. All callers updated.
238 (end_symtab_with_blockvector): Remove redundant call to
239 free_buildsym_compunit.
240 (augment_type_symtab): Remove arg "cust". All callers updated.
241 (buildsym_init): Remove resetting of free_pendings, file_symbols,
242 global_symbols, pending_blocks, pending_macros. Instead make
243 handling consistent with pending_addrmap: Assert value was reset
244 at end of previous symtab building. Initialize context_stack here.
246 2014-12-16 Doug Evans <xdje42@gmail.com>
248 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
249 cp_lookup_symbol_imports. All callers updated.
251 2014-12-16 Doug Evans <xdje42@gmail.com>
253 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
254 find_type_baseclass_by_name. All callers updated.
256 2014-12-16 Doug Evans <xdje42@gmail.com>
258 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
259 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
260 (print_symbol_info): Delete arg symtab. All callers updated.
261 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
263 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
265 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
266 "Name" columns. Assure that the output is always indented.
268 2014-12-16 Joel Brobecker <brobecker@adacore.com>
270 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
272 (linux_enable_event_reporting): Add parameter "attached".
273 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
274 declaration. New function.
275 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
276 (linux_enable_event_reporting): Add new parameter "attached".
277 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
279 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
280 Use it. Update function description.
281 (linux_child_post_attach, linux_child_post_startup_inferior):
282 Update call to linux_enable_event_reporting.
284 2014-12-16 Yao Qi <yao@codesourcery.com>
286 * NEWS: Move some entries to "Changes since GDB 7.8" section.
288 2014-12-16 Yao Qi <yao@codesourcery.com>
290 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
293 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
295 * inferior.c (find_inferior_ptid): New function.
296 * inferior.h (find_inferior_ptid): New declaration.
297 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
298 * corelow.c (core_pid_to_str): Same.
299 * darwin-nat.c (darwin_resume): Same.
300 * infrun.c (fetch_inferior_event): Same.
301 (get_inferior_stop_soon): Same.
302 (handle_inferior_event): Same.
303 (handle_signal_stop): Same.
304 * linux-nat.c (resume_lwp): Same.
305 (stop_wait_callback): Same.
306 * mi/mi-interp.c (mi_new_thread): Same.
307 (mi_thread_exit): Same.
308 * proc-service.c (ps_pglobal_lookup): Same.
309 * record-btrace.c (record_btrace_step_thread): Same.
310 * remote-sim.c (gdbsim_close_inferior): Same.
311 (gdbsim_resume): Same.
313 * sol2-tdep.c (sol2_core_pid_to_str): Same.
314 * target.c (memory_xfer_partial_1): Same.
315 (default_thread_address_space): Same.
316 * thread.c (thread_change_ptid): Same.
317 (switch_to_thread): Same.
318 (do_restore_current_thread_cleanup): Same.
320 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
322 * defs.h (gdb_readline): Constify argument.
323 (gdb_readline_wrapper): Same.
324 (command_line_input): Same.
325 (deprecated_readline_hook): Same.
326 * top.c (deprecated_readline_hook): Same.
327 (gdb_readline): Same.
328 (gdb_readline_wrapper): Same.
329 (command_line_input): Constify argument. Pass prompt_arg to called
330 functions instead of local_prompt, overwriting prompt_arg if necessary.
331 * event-top.h (display_gdb_prompt): Constify argument.
332 * event-top.c (display_gdb_prompt): Same.
333 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
334 if building with Python 3.4 and up.
336 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
338 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
341 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
344 * memattr.c (mem_info_command): Remove "unsigned long" casts.
346 2014-12-13 Doug Evans <xdje42@gmail.com>
348 * utils.c (make_hex_string): Fix off-by-one error.
350 2014-12-13 Joel Brobecker <brobecker@adacore.com>
352 * ada-lang.h (ada_ensure_varsize_limit): Declare.
353 * ada-lang.c (check_size): Remove advance declaration.
354 (ada_ensure_varsize_limit): Renames check_size.
355 Replace calls to check_size by calls to ada_ensure_varsize_limit
357 * ada-valprint.c (ada_val_print_ref): Add call to
358 ada_ensure_varsize_limit. Add comment explaining why.
360 2014-12-13 Joel Brobecker <brobecker@adacore.com>
362 * utils.c (make_hex_string): Replace use of sprintf by use of
365 2014-12-13 Joel Brobecker <brobecker@adacore.com>
367 * compile/compile-object-load.c (link_callbacks_multiple_definition)
368 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
369 newline at end of warning message.
371 2014-12-13 Joel Brobecker <brobecker@adacore.com>
373 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
374 new "EXTRA-ARGS" parameter.
375 * configure.ac: If large-file support is disabled in GDB,
376 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
377 * configure: Regenerate.
379 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
382 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
383 TYPE if not TYPE_CODE_TYPEDEF.
385 2014-12-13 Joel Brobecker <brobecker@adacore.com>
388 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
389 the frame unwinder must either be the dwarf2_frame_unwind
390 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
391 stack_addr is valid before calling get_frame_base. Throw
392 an error if not valid.
394 2014-12-12 Doug Evans <xdje42@gmail.com>
396 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
399 2014-12-12 Doug Evans <xdje42@gmail.com>
401 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
402 All callers updated. Rename arg "namespace" to "symbol_name".
404 2014-12-12 Doug Evans <xdje42@gmail.com>
406 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
407 partial_map_symtabs_matching_filename. All uses updated.
408 (psym_find_pc_sect_compunit_symtab): Renamed from
409 find_pc_sect_compunit_symtab_from_partial. All uses updated.
410 Add function comment.
411 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
412 All uses updated. Add function comment.
413 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
414 Add function comment.
415 (psym_find_last_source_symtab): Renamed from
416 find_last_source_symtab_from_partial. All uses updated.
417 Add function comment.
418 (psym_forget_cached_source_info): Renamed from
419 forget_cached_source_info_partial. All uses updated.
420 Add function comment.
421 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
422 All uses updated. Add function comment.
423 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
424 updated. Add function comment.
425 (psym_expand_symtabs_for_function): Renamed from
426 read_symtabs_for_function. All uses updated. Update function comment.
427 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
428 All uses updated. Add function comment.
429 (psym_expand_symtabs_with_fullname): Renamed from
430 read_psymtabs_with_fullname. All uses updated. Add function comment.
431 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
432 All uses updated. Add function comment.
433 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
435 (psym_expand_symtabs_matching): Renamed from
436 expand_symtabs_matching_via_partial. All uses updated.
437 Add function comment.
438 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
439 Add function comment.
441 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
442 Jan Kratochvil <jan.kratochvil@redhat.com>
443 Tom Tromey <tromey@redhat.com>
446 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
448 * p-lang.c (pascal_language_defn): Update.
449 * opencl-lang.c (opencl_language_defn): Update.
450 * objc-lang.c (objc_language_defn): Update.
451 * m2-lang.c (m2_language_defn): Update.
452 * language.h (struct language_defn) <la_get_compile_instance,
453 la_compute_program>: New fields.
454 * language.c (unknown_language_defn, auto_language_defn)
455 (local_language_defn): Update.
456 * jv-lang.c (java_language_defn): Update.
457 * go-lang.c (go_language_defn): Update.
458 * f-lang.c (f_language_defn): Update.
459 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
460 * dwarf2loc.c (dwarf2_compile_property_to_c)
461 (locexpr_generate_c_location, loclist_generate_c_location): New
463 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
464 * defs.h (enum compile_i_scope_types): New.
465 (enum command_control_type) <compile_control>: New constant.
466 (struct command_line) <control_u>: New field.
467 * d-lang.c (d_language_defn): Update.
468 * compile/compile.c: New file.
469 * compile/compile-c-support.c: New file.
470 * compile/compile-c-symbols.c: New file.
471 * compile/compile-c-types.c: New file.
472 * compile/compile.h: New file.
473 * compile/compile-internal.h: New file.
474 * compile/compile-loc2c.c: New file.
475 * compile/compile-object-load.c: New file.
476 * compile/compile-object-load.h: New file.
477 * compile/compile-object-run.c: New file.
478 * compile/compile-object-run.h: New file.
479 * cli/cli-script.c (multi_line_command_p, print_command_lines)
480 (execute_control_command, process_next_line)
481 (recurse_read_control_structure): Handle compile_control.
482 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
483 * c-lang.c (c_language_defn, cplus_language_defn)
484 (asm_language_defn, minimal_language_defn): Update.
485 * ada-lang.c (ada_language_defn): Update.
486 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
488 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
489 (HFILES_NO_SRCDIR): Add compile.h.
490 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
491 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
492 (compile.o, compile-c-types.o, compile-c-symbols.o)
493 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
494 (compile-c-support.o): New targets.
496 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
498 * s390-linux-tdep.c (s390_gcc_target_options): New function.
499 (s390_gdbarch_init): Add it to gdbarch.
501 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
503 * linux-tdep.c: Include objfiles.h and infcall.h.
504 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
506 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
508 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
510 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
511 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
512 translate_register. Now public.
513 (dwarf2_compile_expr_to_ax): Update.
515 2014-12-12 Tom Tromey <tromey@redhat.com>
516 Jan Kratochvil <jan.kratochvil@redhat.com>
518 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
519 (dwarf_expr_frame_base): Update caller.
520 (dwarf_expr_frame_base_1): Rename to ...
521 (func_get_frame_base_dwarf_block): ... this and make it public.
522 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
524 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
526 2014-12-12 Tom Tromey <tromey@redhat.com>
528 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
530 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
531 dwarf2_compile_cfa_to_ax.
532 (dwarf2_compile_cfa_to_ax): Remove.
533 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
534 (dwarf2_compile_cfa_to_ax): Remove.
536 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
538 * infcall.h (call_function_by_hand_dummy): Declare.
539 * infcall.c (call_function_by_hand): Use
540 call_function_by_hand_dummy.
541 (call_function_by_hand_dummy): Rename from call_function_by_hand.
542 Add arguments. Register a destructor.
544 2014-12-12 Tom Tromey <tromey@redhat.com>
545 Jan Kratochvil <jan.kratochvil@redhat.com>
547 * osabi.h (osabi_triplet_regexp): Declare.
548 * osabi.c (struct osabi_names): New.
549 (gdb_osabi_names): Change type to struct osabi_names. Update
551 (gdbarch_osabi_name): Update.
552 (osabi_triplet_regexp): New function.
553 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
554 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
555 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
556 set_gdbarch_gnu_triplet_regexp.
557 * gdbarch.sh (gnu_triplet_regexp): New method.
558 * gdbarch.c, gdbarch.h: Rebuild.
559 * arch-utils.h (default_gnu_triplet_regexp): Declare.
560 * arch-utils.c (default_gnu_triplet_regexp): New function.
562 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
564 * arch-utils.c (default_infcall_mmap)
565 (default_gcc_target_options): New functions.
566 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
567 (GDB_MMAP_PROT_EXEC): Define.
568 (default_infcall_mmap, default_gcc_target_options): Declare.
569 * gdbarch.h: Rebuild.
570 * gdbarch.c: Rebuild.
571 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
573 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
575 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
577 (pop_dummy_frame): Call the destructor if it exists.
578 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
580 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
581 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
583 2014-12-12 Tom Tromey <tromey@redhat.com>
585 * gdbtypes.h (make_unqualified_type): Declare.
586 * gdbtypes.c (make_unqualified_type): New function.
588 2014-12-12 Tom Tromey <tromey@redhat.com>
590 * ui-file.h (ui_file_write_for_put): Declare.
591 * ui-file.c (ui_file_write_for_put): New function.
592 * mi/mi-out.c (do_write): Remove.
593 (mi_out_put): Use ui_file_write_for_put.
595 2014-12-12 Doug Evans <dje@google.com>
597 * NEWS: Mention gdb.lookup_objfile.
598 * python/python.c (GdbMethods): Add lookup_objfile.
599 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
600 * python/py-objfile.c: #include "symtab.h".
601 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
602 (objfpy_lookup_objfile_by_name): New function.
603 (objfpy_lookup_objfile_by_build_id): New function.
604 (gdbpy_lookup_objfile): New function.
606 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
608 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
609 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
610 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
612 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
615 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
617 * completer.c: Include "target.h", "reggroups.h", and
619 (reg_or_group_completer): New.
620 * completer.h (reg_or_group_completer): Declare.
621 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
622 the "info registers" and "info all-registers" commands and the
623 dbx-mode "lr" command.
625 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
627 * user-regs.c: Include "arch-utils.h", "command.h", and
629 (maintenance_print_user_registers): New.
630 (_initialize_user_regs): Register new "maint print user-registers"
632 * NEWS: Mention new GDB command "maint print user-registers".
634 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
635 Maciej W. Rozycki <macro@mips.com>
636 Pedro Alves <pedro@codesourcery.com>
638 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
639 remove `predefault' and `invalid_p' initializers.
640 (make_symbol_special): New architecture method.
641 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
642 (objfile, symbol): New declarations.
643 * arch-utils.h (default_elf_make_msymbol_special): Remove
645 (default_make_symbol_special): New prototype.
646 (default_adjust_dwarf2_addr): Likewise.
647 (default_adjust_dwarf2_line): Likewise.
648 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
649 * arch-utils.c (default_elf_make_msymbol_special): Remove
651 (default_make_symbol_special): New function.
652 (default_adjust_dwarf2_addr): Likewise.
653 (default_adjust_dwarf2_line): Likewise.
654 * dwarf2-frame.c (decode_frame_entry_1): Call
655 `gdbarch_adjust_dwarf2_addr'.
656 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
657 * dwarf2read.c (create_addrmap_from_index): Likewise.
658 (process_psymtab_comp_unit_reader): Likewise.
659 (add_partial_symbol): Likewise.
660 (add_partial_subprogram): Likewise.
661 (process_full_comp_unit): Likewise.
662 (read_file_scope): Likewise.
663 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
664 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
665 (read_call_site_scope): Likewise.
666 (dwarf2_ranges_read): Likewise.
667 (dwarf2_record_block_ranges): Likewise.
668 (read_attribute_value): Likewise.
669 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
670 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
671 * elfread.c (elf_symtab_read): Don't call
672 `gdbarch_elf_make_msymbol_special' if unset.
673 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
674 the ISA bit from the PC.
675 * mips-tdep.c (mips_unmake_compact_addr): New function.
676 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
677 address appropriately.
678 (mips_make_symbol_special): New function.
679 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
680 (mips_pc_is_mips16): Likewise.
681 (mips_pc_is_micromips): Likewise.
682 (mips_pc_isa): Likewise.
683 (mips_adjust_dwarf2_addr): New function.
684 (mips_adjust_dwarf2_line): Likewise.
685 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
686 (mips_addr_bits_remove): Likewise.
687 (mips_skip_trampoline_code): Likewise.
688 (mips_write_pc): Don't set the ISA bit.
689 (mips_eabi_push_dummy_call): Likewise.
690 (mips_o64_push_dummy_call): Likewise.
691 (mips_gdbarch_init): Install `mips_make_symbol_special',
692 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
694 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
695 target-specific symbol address adjustments.
696 * gdbarch.h: Regenerate.
697 * gdbarch.c: Regenerate.
699 2014-12-12 Yao Qi <yao@codesourcery.com>
702 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
703 'skip_pc'. Remove code skipping prologue instructions, use
704 arm_analyze_prologue instead.
705 (arm_analyze_prologue): Stop the scanning for unrecognized
706 instruction when skipping prologue.
708 2014-12-12 Yao Qi <yao@codesourcery.com>
710 * arm-tdep.c (arm_instruction_restores_sp): New function.
711 (arm_analyze_prologue): Call arm_instruction_restores_sp.
712 (arm_in_function_epilogue_p): Move code to
713 arm_instruction_restores_sp.
715 2014-12-11 Doug Evans <xdje42@gmail.com>
717 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
719 2014-12-11 Doug Evans <xdje42@gmail.com>
721 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
722 (symbol *lookup_symbol_via_quick_fns): Ditto.
723 (lookup_symbol_in_objfile): Add forward decl.
724 (lookup_global_symbol_from_objfile): Simplify, call
725 lookup_symbol_in_objfile.
727 2014-12-11 Doug Evans <xdje42@gmail.com>
729 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
731 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
734 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
735 it is marked as persistent.
737 2014-12-10 Doug Evans <xdje42@gmail.com>
739 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
740 closer to its subroutines.
742 2014-12-10 Doug Evans <xdje42@gmail.com>
744 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
746 2014-12-10 Doug Evans <xdje42@gmail.com>
748 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
749 * cp-support.h (cp_lookup_symbol_imports): Delete.
751 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
754 * target.c (cleanup_restore_target_terminal): New function.
755 (make_cleanup_restore_target_terminal): New function.
756 * target.h (make_cleanup_restore_target_terminal): New declaration.
757 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
759 2014-12-08 Doug Evans <dje@google.com>
761 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
763 2014-12-08 Doug Evans <dje@google.com>
765 * NEWS: Mention gdb.Objfile.owner.
766 * python/py-objfile.c (objfpy_get_owner): New function.
767 (objfile_getset): Add "owner".
769 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
771 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
772 (lookup_global_symbol_from_objfile): Call it.
774 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
776 Remove const from struct objfile *.
777 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
778 symtab.c, symtab.h: In these files.
780 2014-12-05 Andreas From <andreas.from@ericsson.com>
782 * MAINTAINERS (Write After Approval): Add "Andreas From"
784 2014-12-05 Doug Evans <xdje42@gmail.com>
788 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
790 2014-12-04 Doug Evans <dje@google.com>
792 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
793 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
794 (objfile_getset): Add "add_separate_debug_file".
796 2014-12-04 Doug Evans <dje@google.com>
798 * NEWS: Mention gdb.Objfile.build_id.
799 * build-id.c (build_id_bfd_get): Make non-static.
800 * build-id.h (build_id_bfd_get): Add declaration.
801 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
802 (OBJFPY_REQUIRE_VALID): New macro.
803 (objfpy_get_build_id): New function.
804 (objfile_getset): Add "build_id".
805 * utils.c (make_hex_string): New function.
806 * utils.h (make_hex_string): Add declaration.
808 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
810 * block.c (block_lookup_symbol_primary): New function.
811 * block.h (block_lookup_symbol_primary): New declaration.
812 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
813 Call block_lookup_symbol_primary.
815 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
817 * tramp-frame.h (tramp_frame): Add `validate' member.
818 * tramp-frame.c (tramp_frame_start): Validate trampoline before
820 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
821 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
822 (mips_linux_o32_sigframe): Initialize `validate' member.
823 (mips_linux_o32_rt_sigframe): Likewise.
824 (mips_linux_n32_rt_sigframe): Likewise.
825 (mips_linux_n64_rt_sigframe): Likewise.
826 (micromips_linux_o32_sigframe): New variable.
827 (micromips_linux_o32_rt_sigframe): Likewise.
828 (micromips_linux_n32_rt_sigframe): Likewise.
829 (micromips_linux_n64_rt_sigframe): Likewise.
830 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
831 (mips_linux_n32n64_sigframe_init): Likewise.
832 (mips_linux_sigframe_validate): New function.
833 (micromips_linux_sigframe_validate): Likewise.
834 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
836 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
838 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
839 * sparc-sol2-tdep.c: Include "regset.h".
840 (sparc32_sol2_supply_core_gregset): New function.
841 (sparc32_sol2_collect_core_gregset): Likewise.
842 (sparc32_sol2_supply_core_fpregset): Likewise.
843 (sparc32_sol2_collect_core_fpregset): Likewise.
844 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
845 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
846 tdep->fpregset/sizeof_fpregset.
847 * sparc64-sol2-tdep.c: Include "regset.h".
848 (sparc64_sol2_supply_core_gregset): New function.
849 (sparc64_sol2_collect_core_gregset): Likewise.
850 (sparc64_sol2_supply_core_fpregset): Likewise.
851 (sparc64_sol2_collect_core_fpregset): Likewise.
852 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
853 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
854 tdep->fpregset/sizeof_fpregset.
856 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
858 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
861 2014-12-02 Doug Evans <dje@google.com>
863 * symtab.c (symbol_init_cplus_specific): Delete.
864 (symbol_set_demangled_name): Remove special c++ support.
865 (symbol_get_demangled_name, symbol_set_language): Ditto.
866 * symtab.h (struct cplus_specific): Delete.
867 (struct general_symbol_info) <language_specific>: Remove
870 2014-12-02 Doug Evans <dje@google.com>
873 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
875 2014-12-02 Doug Evans <dje@google.com>
878 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
881 2014-12-02 Doug Evans <dje@google.com>
883 * dwarf2read.c (peek_die_abbrev): Improve error message text.
885 2014-12-02 Doug Evans <dje@google.com>
887 * valops.c (do_search_struct_field): Remove remnant of Chill support.
888 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
890 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
892 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
894 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
896 * NEWS: Mention new Python events.
897 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
898 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
899 (py-infevents.o): New rule.
900 * doc/observer.texi (inferior_call_pre, inferior_call_post)
901 (memory_changed, register_changed): New observers.
902 * infcall.c (call_function_by_hand): Notify observer before and
904 * python/py-event.h (inferior_call_kind): New enum.
905 (emit_inferior_call_event): New prototype.
906 (emit_register_changed_event): New prototype.
907 (emit_memory_changed_event): New prototype.
908 * python/py-events.h (events_object): New registries
909 inferior_call, memory_changed and register_changed.
910 * python/py-evts.c (gdbpy_initialize_py_events): Add the
911 inferior_call, memory_changed and register_changed registries.
912 * python/py-infevents.c: New.
913 * python/py-inferior.c (python_on_inferior_call_pre)
914 (python_on_inferior_call_post, python_on_register_change)
915 (python_on_memory_change): New functions.
916 (gdbpy_initialize_inferior): Attach python handler to new
918 * python/py-infthread.c(gdbpy_create_ptid_object): New.
919 (thpy_get_ptid) Use gdbpy_create_ptid_object.
920 * python/python-internal.h:
921 (gdbpy_create_ptid_object)
922 (gdbpy_initialize_inferior_call_pre_event)
923 (gdbpy_initialize_inferior_call_post_event)
924 (gdbpy_initialize_register_changed_event)
925 (gdbpy_initialize_memory_changed_event): New prototypes.
926 * python/python.c (_initialize_python): Initialize new events.
927 * valops.c (value_assign): Notify register_changed observer.
929 2014-12-02 Doug Evans <dje@google.com>
931 * python/py-infthread.c: Whitespace fixes.
933 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
935 * features/Makefile (s390-te-linux64-expedite): Replace
936 non-existant r14 and r15 by r14l and r15l, respectively.
937 * regformats/s390-te-linux64.dat: Regenerate.
939 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
941 * objfiles.c (allocate_objfile): Remove duplicate comment.
943 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
945 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
946 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
947 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
948 (supply_gregset, supply_fpregset): Remove.
949 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
950 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
953 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
955 Add add-auto-load-scripts-directory.
956 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
957 * auto-load.c (add_auto_load_dir): New function.
958 (_initialize_auto_load): Install it.
960 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
962 Pushed by Joel Brobecker <brobecker@adacore.com>.
963 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
965 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
967 * eval.c (evaluate_subexp): Check that the thread stack temporaries
968 are not already enabled before enabling them.
970 2014-11-29 Yao Qi <yao@codesourcery.com>
972 * arm-tdep.c (arm_analyze_prologue): Move local variables
973 'framereg' and 'framesize' to inner block. Move code to
976 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
978 * eval.c: Include gdbthread.h.
979 (evaluate_subexp): Enable thread stack temporaries before
980 evaluating a complete expression and clean them up after the
981 evaluation is complete.
982 * gdbthread.h: Include common/vec.h.
983 (value_ptr): New typedef.
984 (VEC (value_ptr)): New vector type.
985 (value_vec): New typedef.
986 (struct thread_info): Add new fields stack_temporaries_enabled
987 and stack_temporaries.
988 (enable_thread_stack_temporaries)
989 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
990 (get_last_thread_stack_temporary)
991 (value_in_thread_stack_temporaries): Declare.
992 * gdbtypes.c (class_or_union_p): New function.
993 * gdbtypes.h (class_or_union_p): Declare.
994 * infcall.c (call_function_by_hand): Store return values of class
995 type as temporaries on stack.
996 * thread.c (enable_thread_stack_temporaries): New function.
997 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
998 (get_last_thread_stack_temporary): Likewise.
999 (value_in_thread_stack_temporaries): Likewise.
1000 * value.c (value_force_lval): New function.
1001 * value.h (value_force_lval): Declare.
1003 2014-11-28 Pierre Muller <muller@sourceware.org>
1005 Pushed by Joel Brobecker <brobecker@adacore.com>.
1006 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
1009 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
1011 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
1012 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1013 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1014 * m68klinux-nat.c (fetch_core_registers): Remove.
1015 (linux_elf_core_fns): Remove.
1016 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
1018 2014-11-28 Joel Brobecker <brobecker@adacore.com>
1020 * utils.c (gdb_realpath): Rework comment about handling on
1023 2014-11-28 Yao Qi <yao@codesourcery.com>
1025 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1027 * gnulib/aclocal.m4: Re-generated.
1028 * gnulib/config.in: Re-generated.
1029 * gnulib/configure: Re-generated.
1030 * gnulib/import/Makefile.am: Re-generated.
1031 * gnulib/import/Makefile.in: Re-generated.
1032 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1033 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1034 * import/basename-lgpl.c: New file.
1035 * import/dirname-lgpl.c: New file.
1036 * import/dirname.h: New file.
1037 * import/m4/dirname.m4: New file.
1038 * import/m4/malloc.m4: New file.
1039 * import/m4/rename.m4: New file.
1040 * import/m4/rmdir.m4: New file.
1041 * import/m4/stdio_h.m4: New file.
1042 * import/malloc.c: New file.
1043 * import/rename.c: New file.
1044 * import/rmdir.c: New file.
1045 * import/same-inode.h: New file.
1046 * import/stdio.c: New file.
1047 * import/stdio.in.h: New file.
1048 * import/stripslash.c: New file.
1050 2014-11-28 Yao Qi <yao@codesourcery.com>
1052 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
1054 * config.in: Re-generated.
1055 * configure: Re-generated.
1056 * utils.c (gdb_realpath): Remove code calling realpath,
1057 canonicalize_file_name and pathconf.
1058 [!_WIN32]: Call canonicalize_file_name.
1060 2014-11-28 Yao Qi <yao@codesourcery.com>
1062 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1064 * aclocal.m4: Re-generated.
1065 * config.in: Re-generated.
1066 * configure: Re-generated.
1067 * import/Makefile.am: Re-generated.
1068 * import/Makefile.in: Re-generated.
1069 * import/m4/gnulib-cache.m4: Re-generated.
1070 * import/m4/gnulib-comp.m4: Re-generated.
1071 * import/canonicalize-lgpl.c: New file.
1072 * import/extra/snippet/_Noreturn.h: New file.
1073 * import/m4/canonicalize.m4: New file.
1074 * import/m4/double-slash-root.m4: New file.
1075 * import/m4/eealloc.m4: New file.
1076 * import/m4/malloca.m4: New file.
1077 * import/m4/nocrash.m4: New file.
1078 * import/m4/stdlib_h.m4: New file.
1079 * import/malloca.c: New file.
1080 * import/malloca.h: New file.
1081 * import/malloca.valgrind: New file.
1083 2014-11-28 Yao Qi <yao@codesourcery.com>
1085 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
1086 * config.in, configure: Regenerate.
1087 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1088 code checking HAVE_LSTAT is defined.
1090 2014-11-28 Yao Qi <yao@codesourcery.com>
1092 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1094 * gnulib/aclocal.m4: Re-generated.
1095 * gnulib/config.in: Re-generated.
1096 * gnulib/configure: Re-generated.
1097 * gnulib/import/Makefile.am: Re-generated.
1098 * gnulib/import/Makefile.in: Re-generated.
1099 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1100 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1101 * gnulib/import/lstat.c: New file.
1102 * gnulib/import/m4/lstat.m4: New file.
1104 2014-11-28 Yao Qi <yao@codesourcery.com>
1106 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
1107 * config.in, configure: Re-generate.
1108 * inf-child.c (inf_child_fileio_readlink): Don't check
1109 HAVE_READLINK is defined.
1111 2014-11-28 Yao Qi <yao@codesourcery.com>
1113 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1114 * gnulib/aclocal.m4: Re-generated.
1115 * gnulib/config.in: Likewise.
1116 * gnulib/configure: Likewise.
1117 * gnulib/import/Makefile.am: Likewise.
1118 * gnulib/import/Makefile.in: Likewise.
1119 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1120 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1121 * gnulib/import/dosname.h: New file
1122 * gnulib/import/m4/largefile.m4: New file.
1123 * gnulib/import/m4/readlink.m4: New file.
1124 * gnulib/import/m4/stat.m4: New file.
1125 * gnulib/import/readlink.c: New file.
1126 * gnulib/import/stat.c: New file.
1128 2014-11-26 Mark Wielaard <mjw@redhat.com>
1130 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1131 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1133 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1135 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1136 that there can be only one stack adjustment in the prologue
1137 with tests to detect specific disallowed stack adjustments.
1139 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1141 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1144 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1146 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1147 the instruction as well as reading it from memory.
1148 (nios2_match_add): New.
1149 (nios2_match_sub): New.
1150 (nios2_match_addi): New.
1151 (nios2_match_orhi): New.
1152 (nios2_match_stw): New.
1153 (nios2_match_ldw): New.
1154 (nios2_match_rdctl): New.
1155 (enum branch_condition): New.
1156 (nios2_match_branch): New.
1157 (nios2_match_jmpi): New.
1158 (nios2_match_calli): New.
1159 (nios2_match_jmpr): New.
1160 (nios2_match_callr): New.
1161 (nios2_match_break): New.
1162 (nios2_match_trap): New.
1163 (nios2_in_epilogue_p): Rewrite to use new functions.
1164 (nios2_analyze_prologue): Likewise.
1165 (nios2_skip_prologue): Delete unused local limit_pc.
1166 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1167 (nios2_get_next_pc): Rewrite to use new functions.
1169 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1171 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1173 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1175 Pushed by Joel Brobecker <brobecker@adacore.com>
1176 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1177 elements pi_len by the size of the elements before calling
1179 (inf_validate_task_sc): Likewise, and properly deallocate the
1182 2014-11-23 Doug Evans <xdje42@gmail.com>
1184 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1185 number and name if present. All callers updated.
1186 (dump_fn_fieldlists): Fix indentation of args.
1188 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1190 * MAINTAINERS (Write After Approval): Add myself.
1192 2014-11-23 Joel Brobecker <brobecker@adacore.com>
1194 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1195 to a bp_call_dummy breakpoint type.
1197 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1199 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1200 registering the signal handler.
1202 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1204 * event-top.h (call_stdin_event_handler_again_p): Declare.
1205 * event-top.c (call_stdin_event_handler_again_p): Define.
1206 (stdin_event_handler): Use it.
1207 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1208 handler again if there is pending input following a
1211 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1213 Pushed by Joel Brobecker <brobecker@adacore.com>
1214 * linux-fork.c (checkpoint_command): Print index of new
1215 checkpoint in response message.
1217 2014-11-23 Yao Qi <yao@codesourcery.com>
1219 * valprint.c (read_string): Move local variables 'found_nul',
1220 'chunksize' and 'limit' to inner scope. Update comments.
1222 2014-11-22 Doug Evans <xdje42@gmail.com>
1224 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1226 (search_symbols): Fix comments and whitespace.
1228 2014-11-22 Doug Evans <xdje42@gmail.com>
1230 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1232 2014-11-21 Doug Evans <dje@google.com>
1234 * psymtab.c (psymtab_search_name): Fix whitespace.
1236 2014-11-21 Yao Qi <yao@codesourcery.com>
1238 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1240 * gnulib/import/Makefile.am: Re-generated.
1241 * gnulib/import/Makefile.in: Likewise.
1242 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1244 2014-11-21 Yao Qi <yao@codesourcery.com>
1246 * gdb_wchar.h: Include wchar.h and wctype.h.
1247 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1248 include wchar.h and wctype.h.
1249 Don't check HAVE_WCHAR_H.
1251 2014-11-21 Yao Qi <yao@codesourcery.com>
1253 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1255 * gnulib/import/Makefile.am: Re-generated.
1256 * gnulib/import/Makefile.in: Likewise.
1257 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1259 2014-11-21 Yao Qi <yao@codesourcery.com>
1261 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1263 * gnulib/import/Makefile.am: Re-generated.
1264 * gnulib/import/Makefile.in: Likewise.
1265 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1267 2014-11-21 Yao Qi <yao@codesourcery.com>
1269 * common/common-defs.h: Include alloca.h
1270 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1271 * configure: Re-generated.
1272 * defs.h: Remove code handling alloca.
1273 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1276 2014-11-21 Yao Qi <yao@codesourcery.com>
1278 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1280 * gnulib/import/Makefile.am: Re-generated.
1281 * gnulib/import/Makefile.in: Likewise..
1282 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1284 2014-11-21 Yao Qi <yao@codesourcery.com>
1286 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1289 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1291 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1292 flag_unsigned if HIGH_BOUND is constant and negative.
1294 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1296 PR breakpoints/10737
1297 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1298 modifier from "struct gdbarch" when compiling without Expat (XML)
1300 (get_syscall_by_number): Likewise.
1301 (get_syscall_by_name): Likewise.
1302 (get_syscall_names): Likewise.
1304 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1306 PR breakpoints/10737
1307 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1308 set_xml_syscall_file_name to provide gdbarch.
1309 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1310 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1311 * breakpoint.c (print_it_catch_syscall): Adjust call to
1312 get_syscall_by_number to provide gdbarch.
1313 (print_one_catch_syscall): Likewise.
1314 (print_mention_catch_syscall): Likewise.
1315 (print_recreate_catch_syscall): Likewise.
1316 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1317 and get_syscall_by_name to provide gdbarch.
1318 (catch_syscall_completer): Adjust call to get_syscall_names to
1320 * gdbarch.c: Regenerate.
1321 * gdbarch.h: Likewise.
1322 * gdbarch.sh: Forward declare "struct syscalls_info".
1323 (xml_syscall_file): New variable.
1324 (syscalls_info): Likewise.
1325 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1326 set_xml_syscall_file_name to provide gdbarch.
1327 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1328 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1329 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1330 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1331 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1332 * xml-syscall.c: Include gdbarch.h.
1333 (set_xml_syscall_file_name): Accept gdbarch parameter.
1334 (get_syscall_by_number): Likewise.
1335 (get_syscall_by_name): Likewise.
1336 (get_syscall_names): Likewise.
1337 (my_gdb_datadir): Delete global variable.
1338 (struct syscalls_info) <my_gdb_datadir>: New variable.
1339 (struct syscalls_info) <sysinfo>: Rename variable to
1341 (sysinfo): Delete global variable.
1342 (have_initialized_sysinfo): Likewise.
1343 (xml_syscall_file): Likewise.
1344 (sysinfo_free_syscalls_desc): Rename to...
1345 (syscalls_info_free_syscalls_desc): ... this.
1346 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1347 code to the new layout of "struct syscalls_info".
1348 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1350 (syscall_create_syscall_desc): Likewise.
1351 (syscall_start_syscall): Likewise.
1352 (syscall_parse_xml): Likewise.
1353 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1354 (init_sysinfo): Rename to...
1355 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1356 Adjust function to deal with gdbarch.
1357 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1358 gdbarch as a parameter. Adjust code.
1359 (xml_get_syscall_name): Likewise.
1360 (xml_list_of_syscalls): Likewise.
1361 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1362 (get_syscall_by_number): Likewise.
1363 (get_syscall_by_name): Likewise.
1364 (get_syscall_names): Likewise.
1365 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1366 (get_syscall_by_number): Likewise.
1367 (get_syscall_by_name): Likewise.
1368 (get_syscall_names): Likewise.
1370 2014-11-20 Doug Evans <xdje42@gmail.com>
1372 Split struct symtab into two: struct symtab and compunit_symtab.
1373 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1374 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1375 to "struct compunit_symtab *". All callers updated.
1376 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1377 "struct symtab *" argument to "struct compunit_symtab *".
1378 All callers updated.
1379 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1380 result to "struct compunit_symtab *". All callers updated.
1381 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1382 Change result to "struct compunit_symtab *". All callers updated.
1383 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1384 hange type to "struct compunit_symtab *". All uses updated.
1385 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1386 Change type to "struct compunit_symtab *". All uses updated.
1387 * buildsym.c (struct buildsym_compunit): New struct.
1388 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1389 (buildsym_compunit): New static global.
1390 (finish_block_internal): Update to fetch objfile from
1392 (make_blockvector): Delete objfile argument.
1393 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1394 debugformat, producer.
1395 (start_buildsym_compunit): New function.
1396 (free_buildsym_compunit): Renamed from free_subfiles_list.
1397 All callers updated.
1398 (patch_subfile_names): Rewrite to use buildsym_compunit.
1399 (get_compunit_symtab): New function.
1400 (get_macro_table): Delete argument comp_dir. All callers updated.
1401 (start_symtab): Change result to "struct compunit_symtab *".
1402 All callers updated. Create the subfile of the main source file.
1403 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1404 (reset_symtab_globals): Update.
1405 (end_symtab_get_static_block): Update to use buildsym_compunit.
1406 (end_symtab_without_blockvector): Rewrite.
1407 (end_symtab_with_blockvector): Change result to
1408 "struct compunit_symtab *". All callers updated.
1409 Update to use buildsym_compunit. Don't set symtab->dirname,
1410 instead set it in the compunit.
1411 Explicitly make sure main symtab is first in its list.
1412 Set debugformat, producer, blockvector, block_line_section, and
1413 macrotable in the compunit.
1414 (end_symtab_from_static_block): Change result to
1415 "struct compunit_symtab *". All callers updated.
1416 (end_symtab, end_expandable_symtab): Ditto.
1417 (set_missing_symtab): Change symtab argument to
1418 "struct compunit_symtab *". All callers updated.
1419 (augment_type_symtab): Ditto.
1420 (record_debugformat): Update to use buildsym_compunit.
1421 (record_producer): Update to use buildsym_compunit.
1422 * buildsym.h (struct subfile) <dirname>: Delete.
1423 <producer, debugformat>: Delete.
1424 <buildsym_compunit>: New member.
1425 (get_compunit_symtab): Declare.
1426 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1427 from primary_symtab. Change type to "struct compunit_symtab *".
1429 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1430 All callers updated.
1431 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1432 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1433 symtab. Change type to "struct compunit_symtab *". All uses updated.
1434 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1435 All callers updated.
1436 (dw2_find_last_source_symtab): Ditto.
1437 (dw2_lookup_symbol): Ditto.
1438 (recursively_find_pc_sect_compunit_symtab): Renamed from
1439 recursively_find_pc_sect_symtab. Change result to
1440 "struct compunit_symtab *". All callers updated.
1441 (dw2_find_pc_sect_compunit_symtab): Renamed from
1442 dw2_find_pc_sect_symtab. Change result to
1443 "struct compunit_symtab *". All callers updated.
1444 (get_compunit_symtab): Renamed from get_symtab. Change result to
1445 "struct compunit_symtab *". All callers updated.
1446 (recursively_compute_inclusions): Change type of immediate_parent
1447 argument to "struct compunit_symtab *". All callers updated.
1448 (compute_compunit_symtab_includes): Renamed from
1449 compute_symtab_includes. All callers updated. Rewrite to compute
1450 includes of compunit_symtabs and not symtabs.
1451 (process_full_comp_unit): Update to work with struct compunit_symtab.
1452 (process_full_type_unit): Ditto.
1453 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1454 (dwarf_decode_lines): Remove special case handling of main subfile.
1455 (macro_start_file): Delete argument comp_dir. All callers updated.
1456 (dwarf_decode_macro_bytes): Ditto.
1457 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1458 use struct compunit_symtab.
1459 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1460 * jit.c (finalize_symtab): Build compunit_symtab.
1461 * jv-lang.c (get_java_class_symtab): Change result to
1462 "struct compunit_symtab *". All callers updated.
1463 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1464 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1465 comp_dir. Change type to "struct compunit_symtab *".
1467 (new_macro_table): Change comp_dir argument to cust,
1468 "struct compunit_symtab *". All callers updated.
1469 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1470 nr_primary_symtabs. All uses updated.
1471 (count_symtabs_and_blocks): Update to handle compunits.
1472 (report_command_stats): Update output, "primary symtabs" renamed to
1474 * mdebugread.c (new_symtab): Change result to
1475 "struct compunit_symtab *". All callers updated.
1476 (parse_procedure): Change type of search_symtab argument to
1477 "struct compunit_symtab *". All callers updated.
1478 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1480 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1481 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1482 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1484 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1486 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1487 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1488 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1489 symtab. Change type to "struct compunit_symtab *". All uses updated.
1490 * psymtab.c (psymtab_to_symtab): Change result type to
1491 "struct compunit_symtab *". All callers updated.
1492 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1493 find_pc_sect_symtab_from_partial. Change result type to
1494 "struct compunit_symtab *". All callers updated.
1495 (lookup_symbol_aux_psymtabs): Change result type to
1496 "struct compunit_symtab *". All callers updated.
1497 (find_last_source_symtab_from_partial): Ditto.
1498 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1499 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1500 and macro_table from compunit.
1501 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1502 type to "struct compunit_symtab *". All callers updated.
1503 (debug_qf_lookup_symbol): Ditto.
1504 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1505 debug_qf_find_pc_sect_symtab, change result type to
1506 "struct compunit_symtab *". All callers updated.
1507 * symfile.c (allocate_symtab): Delete objfile argument.
1509 (allocate_compunit_symtab): New function.
1510 (add_compunit_symtab_to_objfile): New function.
1511 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1512 Change result type to "struct compunit_symtab *". All uses updated.
1513 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1514 Change result type to "struct compunit_symtab *". All uses updated.
1515 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1517 (dump_symtab_1): Update test for primary source symtab.
1518 (maintenance_info_symtabs): Update to handle compunit symtabs.
1519 (maintenance_check_symtabs): Ditto.
1520 * symtab.c (set_primary_symtab): Delete.
1521 (compunit_primary_filetab): New function.
1522 (compunit_language): New function.
1523 (iterate_over_some_symtabs): Change type of arguments "first",
1524 "after_last" to "struct compunit_symtab *". All callers updated.
1525 Update to loop over symtabs in each compunit.
1526 (error_in_psymtab_expansion): Rename symtab argument to cust,
1527 and change type to "struct compunit_symtab *". All callers updated.
1528 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1529 Change result type to "struct compunit_symtab *". All callers updated.
1530 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1531 Change result type to "struct compunit_symtab *". All callers updated.
1532 (find_pc_sect_line): Only loop over symtabs within selected compunit
1533 instead of all symtabs in the objfile.
1534 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1535 <compunit_symtab> New member.
1536 <block_line_section>: Moved to compunit_symtab.
1537 <locations_valid>: Ditto.
1538 <epilogue_unwind_valid>: Ditto.
1539 <macro_table>: Ditto.
1541 <debugformat>: Ditto.
1544 <call_site_htab>: Ditto.
1548 (SYMTAB_COMPUNIT): New macro.
1549 (SYMTAB_BLOCKVECTOR): Update definition.
1550 (SYMTAB_OBJFILE): Update definition.
1551 (SYMTAB_DIRNAME): Update definition.
1552 (struct compunit_symtab): New type. Common members among all source
1553 symtabs within a compilation unit moved here. All uses updated.
1554 (COMPUNIT_OBJFILE): New macro.
1555 (COMPUNIT_FILETABS): New macro.
1556 (COMPUNIT_DEBUGFORMAT): New macro.
1557 (COMPUNIT_PRODUCER): New macro.
1558 (COMPUNIT_DIRNAME): New macro.
1559 (COMPUNIT_BLOCKVECTOR): New macro.
1560 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1561 (COMPUNIT_LOCATIONS_VALID): New macro.
1562 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1563 (COMPUNIT_CALL_SITE_HTAB): New macro.
1564 (COMPUNIT_MACRO_TABLE): New macro.
1565 (ALL_COMPUNIT_FILETABS): New macro.
1566 (compunit_symtab_ptr): New typedef.
1567 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1569 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1571 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1572 if the TYPE_CODE of range_type's base type does not match
1573 the TYPE_CODE of encoding_type's base type.
1575 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1577 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1580 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1582 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1583 (ada_is_redundant_index_type_desc): New function.
1584 (to_fixed_array_type): Ignore parallel XA type if redundant.
1586 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1588 * ada-lang.c (constrained_packed_array_type): Set the length
1589 of the return array as if both bounds where zero if that
1590 returned array's index type is dynamic.
1592 2014-11-19 Yao Qi <yao@codesourcery.com>
1594 * config/i386/go32.mh (CC): Remove.
1596 2014-11-18 Doug Evans <xdje42@gmail.com>
1598 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1601 2014-11-18 Doug Evans <xdje42@gmail.com>
1603 * buildsym.c (buildsym_objfile): New static global.
1604 (buildsym_comp_dir): New static global.
1605 (finish_block_internal): Delete arg objfile. All callers updated.
1606 (finish_block): Delete arg objfile. All callers updated.
1607 (start_subfile): Delete arg dirname. All callers updated.
1608 (patch_subfile_names): Update buildsym_comp_dir.
1609 (get_macro_table): Delete arg objfile. All callers updated.
1610 (start_symtab): New arg objfile. All callers updated.
1611 Rename arg dirname to comp_dir.
1612 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1613 (end_symtab_get_static_block): Delete arg objfile. All callers
1615 (end_symtab_without_blockvector): Ditto.
1616 (end_symtab_with_blockvector): Ditto.
1617 (end_symtab_from_static_block): Ditto.
1618 (end_symtab): Ditto.
1619 (end_expandable_symtab): Ditto.
1620 (augment_type_symtab): Ditto.
1621 * coffread.c (coff_start_symtab): New arg objfile. All callers
1624 2014-11-18 Doug Evans <xdje42@gmail.com>
1626 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1629 2014-11-18 Doug Evans <xdje42@gmail.com>
1631 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1632 symtab.dirname updated to use it.
1634 2014-11-18 Doug Evans <xdje42@gmail.com>
1636 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1637 symtab.objfile updated to use it.
1639 2014-11-18 Doug Evans <xdje42@gmail.com>
1641 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1643 2014-11-18 Doug Evans <xdje42@gmail.com>
1645 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1647 * findvar.c (default_read_var_value): Ditto.
1648 * jv-lang.c (add_class_symtab_symbol): Ditto.
1649 * parse.c (operator_check_standard): Ditto.
1650 * printcmd.c (address_info): Ditto.
1651 * symtab.c (fixup_symbol_section): Ditto.
1652 (skip_prologue_sal): Ditto.
1653 * tracepoint.c (scope_info): Ditto.
1654 * valops.c (find_function_in_inferior): Ditto.
1655 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1656 * python/py-symbol.c (set_symbol): Ditto.
1658 2014-11-18 Doug Evans <xdje42@gmail.com>
1660 * buildsym.c (main_subfile): New static global.
1661 (free_subfiles_list): New function.
1662 (start_symtab): Set main_subfile.
1663 (restart_symtab): Replace init of subfiles, current_subfile with
1664 call to free_subfiles_list.
1665 (watch_main_source_file_lossage): Use main_subfile.
1666 (reset_symtab_globals): Replace init of current_subfile with call
1667 to free_subfiles_list.
1668 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1669 functions, split out from ...
1670 (end_symtab_from_static_block): ... here. Rewrite to call them.
1672 2014-11-18 Doug Evans <xdje42@gmail.com>
1674 The result of symtab expansion is always a primary symtab.
1675 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1676 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1677 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1678 (psymtab_to_symtab): Add comment and assert.
1679 (map_matching_symbols_psymtab): Remove unnecessary test for
1682 2014-11-15 Doug Evans <xdje42@gmail.com>
1685 * symtab.c (find_pc_line_symtab): New function.
1686 * symtab.h (find_pc_line_symtab): Declare.
1687 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1689 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1690 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1691 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1692 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1693 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1694 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1696 2014-11-15 Doug Evans <xdje42@gmail.com>
1698 * symtab.c (expand_symtab_containing_pc): Renamed from
1699 find_pc_sect_symtab_via_partial. All callers updated.
1701 2014-11-15 Yao Qi <yao@codesourcery.com>
1703 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1705 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1707 * common/common-defs.h: Move <stdarg.h> #include ahead of
1710 2014-11-14 Pedro Alves <palves@redhat.com>
1712 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1713 [!PHONY_ICONV] (gdb_iconv): New function.
1714 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1716 2014-11-13 Doug Evans <dje@google.com>
1719 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1720 "(anonymous namespace)".
1722 2014-11-13 Doug Evans <dje@google.com>
1724 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1727 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1729 * NEWS (maint set target-async): Fix typo.
1731 2014-11-12 Pedro Alves <palves@redhat.com>
1733 * infrun.c (enum infwait_states, infwait_state): Delete.
1735 2014-11-12 Pedro Alves <palves@redhat.com>
1737 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1738 Rewrite stepping over a permanent breakpoint.
1739 (thread_still_needs_step_over, proceed): Don't set
1740 stepping_over_breakpoint for permanent breakpoints.
1741 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1742 single-step breakpoints out of the target on hardware step
1744 (process_event_stop_test): If stepping a permanent breakpoint
1745 doesn't hit the step-resume breakpoint, delete the step-resume
1747 (switch_back_to_stepped_thread): Also check if the stepped thread
1748 has advanced already on hardware step targets.
1749 (currently_stepping): Return true if the thread stepped a
1752 2014-11-12 Pedro Alves <palves@redhat.com>
1754 Mark locations as permanent, not the whole breakpoint.
1755 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1756 (mark_breakpoints_out): Don't mark permanent breakpoints as
1758 (breakpoint_init_inferior): Use mark_breakpoints_out.
1759 (breakpoint_here_p): Adjust.
1760 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1761 of permanent breakpoints.
1762 (make_breakpoint_permanent): Mark each location as permanent,
1763 instead of marking the breakpoint.
1764 (add_location_to_breakpoint): If the location is permanent, mark
1765 it as such, and as inserted.
1766 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1767 (bp_location_compare, update_global_location_list): Adjust.
1768 (update_breakpoint_locations): Don't make the breakpoint permanent
1770 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1772 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1773 (struct bp_location) <permanent>: New field.
1774 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1775 reference to bp_permanent.
1777 2014-11-12 Pedro Alves <palves@redhat.com>
1779 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1780 * arch-utils.h (default_skip_permanent_breakpoint): New
1782 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1783 Install default_skip_permanent_breakpoint as default method.
1784 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1785 (i386_gdbarch_init): Don't install it.
1786 * infrun.c (resume): Assume there's always a
1787 gdbarch_skip_permanent_breakpoint implementation.
1788 * gdbarch.h, gdbarch.c: Regenerate.
1790 2014-11-11 Daniel Colascione <dancol@dancol.org>
1792 Warn about cross-PID-namespace debugging.
1793 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1794 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1795 * linux-thread-db.c (check_pid_namespace_match): New function.
1796 (thread_db_inferior_created): Call it.
1798 2014-11-10 Doug Evans <xdje42@gmail.com>
1800 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1801 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1803 2014-11-10 Doug Evans <xdje42@gmail.com>
1805 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1807 2014-11-10 Doug Evans <xdje42@gmail.com>
1810 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1811 (lookup_static_symbol): Move definition to new location and rewrite.
1812 (lookup_symbol_in_objfile): New function.
1813 (lookup_symbol_global_iterator_cb): Call it.
1815 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1817 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1819 2014-11-07 Pedro Alves <palves@redhat.com>
1821 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1822 check if we did a "nexti" inside a prologue.
1823 * symtab.c (in_prologue): Delete function.
1824 * symtab.h (in_prologue): Delete declaration.
1826 2014-11-06 Doug Evans <xdje42@gmail.com>
1828 * symtab.h (lookup_global_symbol): Improve function comment.
1830 2014-11-06 Doug Evans <xdje42@gmail.com>
1832 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1833 All callers updated.
1834 * symtab.h (lookup_global_symbol): Update decl.
1835 (lookup_static_symbol): Move decl to better location.
1837 2014-11-06 Doug Evans <xdje42@gmail.com>
1839 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1841 2014-11-06 Doug Evans <xdje42@gmail.com>
1843 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1844 All callers updated.
1845 (lookup_symbol_in_all_objfiles): Renamed from
1846 lookup_symbol_aux_symtabs. All callers updated.
1847 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1848 All callers updated.
1849 (lookup_symbol_in_objfile_symtabs): Renamed from
1850 lookup_symbol_aux_objfile. All callers updated.
1852 2014-11-06 Doug Evans <xdje42@gmail.com>
1854 * symtab.c (lookup_symbol_in_block): Renamed from
1855 lookup_symbol_aux_block. All callers updated.
1857 2014-11-06 Doug Evans <xdje42@gmail.com>
1859 * symtab.c (lookup_static_symbol): Renamed from
1860 lookup_static_symbol_aux. All callers updated.
1861 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1862 All callers updated.
1864 2014-11-06 Doug Evans <xdje42@gmail.com>
1866 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1867 * block.c (block_lookup_symbol): Use it.
1868 * cp-support.c (make_symbol_overload_list_block): Use it.
1869 * symtab.c (iterate_over_symbols): Use it.
1871 2014-11-06 Doug Evans <xdje42@gmail.com>
1873 * symtab.c (lookup_block_symbol): Moved to ...
1874 * block.c (block_lookup_symbol): ... here and renamed.
1875 All callers updated.
1876 * block.h (block_lookup_symbol): Declare.
1877 * symtab.h (lookup_block_symbol): Delete.
1879 2014-11-06 Doug Evans <xdje42@gmail.com>
1881 * ada-lang.c (ada_make_symbol_completion_list): Use
1882 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1883 * symtab.c (lookup_objfile_from_block): Ditto.
1885 2014-11-06 Doug Evans <xdje42@gmail.com>
1887 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1890 2014-11-06 Doug Evans <xdje42@gmail.com>
1892 * objfiles.c (get_objfile_arch): Constify.
1893 * objfiles.h (get_objfile_arch): Update prototype.
1894 * solib.c (solib_global_lookup): Fetch arch from objfile,
1897 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1899 * nios2-tdep.c (wild_insn): Delete.
1900 (profiler_insn, irqentry_insn): Delete.
1901 (nios2_match_sequence): Delete.
1902 (nios2_analyze_prologue): Update comments. Remove matching
1903 of obsolete profiler_insn and irqentry_insn sequences.
1905 2014-11-05 Alan Modra <amodra@gmail.com>
1907 * charset.c (convert_between_encodings): Shrink obstack using
1909 * minsyms.c (install_minimal_symbols): Likewise.
1910 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1911 to char* before doing pointer arithmetic.
1913 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1915 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1917 2014-11-04 Pedro Alves <palves@redhat.com>
1919 * breakpoint.c (breakpoint_thread_match): Delete function.
1920 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1922 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1925 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1926 the method args also under EVAL_SKIP when evaluating method
1927 calls under EVAL_SKIP.
1929 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1931 * dwarf2loc.c (read_pieced_value): Do big endian
1932 processing only if gdb_regnum is not -1.
1933 (write_pieced_value): Ditto.
1935 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1937 * arm-linux-tdep.c (arm_linux_init_abi): Use
1938 info.byte_order_for_code to choose endianity of breakpoint
1939 instructions snippets.
1941 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1943 * arm-tdep.c (extract_arm_insn): Use
1944 gdbarch_byte_order_for_code to read arm instruction.
1946 2014-11-02 Doug Evans <xdje42@gmail.com>
1948 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1950 2014-11-02 Doug Evans <xdje42@gmail.com>
1952 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1953 main_subfile before returning.
1955 2014-10-31 Doug Evans <xdje42@gmail.com>
1957 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1958 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1960 2014-10-31 Doug Evans <xdje42@gmail.com>
1962 * valops.c (value_cast_pointers): Fix whitespace.
1963 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1966 2014-10-30 Doug Evans <dje@google.com>
1968 * NEWS: Mention ability add attributes to gdb.Objfile and
1969 gdb.Progspace objects.
1970 * python/py-objfile.c (objfile_object): New member dict.
1971 (objfpy_dealloc): Py_XDECREF dict.
1972 (objfpy_initialize): Initialize dict.
1973 (objfile_getset): Add __dict__.
1974 (objfile_object_type): Set tp_dictoffset member.
1975 * python/py-progspace.c (progspace_object): New member dict.
1976 (pspy_dealloc): Py_XDECREF dict.
1977 (pspy_initialize): Initialize dict.
1978 (pspace_getset): Add __dict__.
1979 (pspace_object_type): Set tp_dictoffset member.
1981 2014-10-30 Yao Qi <yao@codesourcery.com>
1983 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1984 replace '\\' with '\\\\'.
1986 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1990 2014-10-29 Pedro Alves <palves@redhat.com>
1993 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1994 instead of assuming a thread with a stepping range is always
1997 2014-10-29 Pedro Alves <palves@redhat.com>
2000 * event-top.c (change_line_handler): Call
2001 gdb_rl_callback_handler_remove instead of
2002 rl_callback_handler_remove.
2003 (callback_handler_installed): New global.
2004 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2005 (gdb_rl_callback_handler_reinstall): New functions.
2006 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
2007 gdb_rl_callback_handler_install instead of
2008 rl_callback_handler_remove and rl_callback_handler_install.
2009 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
2010 instead of rl_callback_handler_remove.
2011 * event-top.h (gdb_rl_callback_handler_remove)
2012 (gdb_rl_callback_handler_install)
2013 (gdb_rl_callback_handler_reinstall): New declarations.
2014 * infrun.c (reinstall_readline_callback_handler_cleanup): New
2016 (fetch_inferior_event): Install it.
2017 * top.c (gdb_readline_wrapper_line) Call
2018 gdb_rl_callback_handler_remove instead of
2019 rl_callback_handler_remove.
2020 (gdb_readline_wrapper_cleanup): Don't call
2021 rl_callback_handler_install.
2023 2014-10-29 Pedro Alves <palves@redhat.com>
2025 * event-top.c (command_line_handler): Clear the first byte of
2026 linebuffer, when it is first allocated.
2028 2014-10-29 Pedro Alves <palves@redhat.com>
2030 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
2033 2014-10-29 Pedro Alves <palves@redhat.com>
2037 * tui/tui-interp.c (tui_is_toplevel): Delete global.
2038 (tui_allowed_p): Delete function.
2039 * tui/tui.c: Include "interps.h".
2040 (tui_enable): Don't use tui_allowed_p. Error out here with
2041 detailed error messages if the TUI is the top level interpreter,
2042 or if output is not a terminal. Use newterm instead of initscr,
2043 and error out if initializing the terminal fails. Also error out if
2044 the terminal doesn't support cursor addressing.
2045 * tui/tui.h (tui_allowed_p): Delete declaration.
2047 2014-10-29 Joel Brobecker <brobecker@adacore.com>
2049 * arm-tdep.c (arm_skip_stack_protector): Return early if
2050 address loaded by first "ldr" instruction does not have
2051 a corresponding minimal symbol. Update comment.
2053 2014-10-29 Yao Qi <yao@codesourcery.com>
2055 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
2056 loaded address correctly of ldr instruction.
2058 2014-10-28 Pedro Alves <palves@redhat.com>
2061 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
2063 * infrun.c (resume) <stepping breakpoint instruction>: Set the
2064 thread's stepped_breakpoint field. Skip if reverse debugging.
2066 (init_thread_stepping_state, handle_signal_stop): Clear the
2067 thread's stepped_breakpoint field.
2069 2014-10-27 Pedro Alves <palves@redhat.com>
2071 * remote.c (remote_thread_alive): New, factored out from ...
2072 (remote_thread_alive): ... this.
2073 (remote_update_thread_list): Bail out before deleting threads if
2074 the target returned an empty list, and, the current thread has a
2077 2014-10-27 Pedro Alves <palves@redhat.com>
2079 * infrun.c (handle_signal_stop): Also skip handlers when a random
2080 signal arrives while handling a "stepi" or a "nexti". Set the
2081 thread's 'step_after_step_resume_breakpoint' flag.
2083 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
2085 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
2086 (arm_record_ld_st_imm_offset): Reimplement to cover all
2087 load/store cases for ARM opcode 010.
2088 (arm_record_ld_st_multiple): Reimplement to cover all
2089 load/store cases for ARM opcode 100.
2091 2014-10-26 Doug Evans <xdje42@gmail.com>
2093 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
2095 2014-10-26 Doug Evans <xdje42@gmail.com>
2097 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
2098 parameter "kind" to "block_index".
2099 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
2101 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
2103 2014-10-26 Doug Evans <xdje42@gmail.com>
2105 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
2107 2014-10-26 Doug Evans <xdje42@gmail.com>
2109 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
2112 2014-10-26 Doug Evans <xdje42@gmail.com>
2114 * parser-defs.h (block_found): Move decl from here ...
2115 * symtab.h (block_found): ... to here.
2117 2014-10-26 Doug Evans <xdje42@gmail.com>
2119 * symtab.h (struct field_of_this_result): Fix typo in comment.
2120 (lookup_symbol_in_language): Move function comment here.
2121 (lookup_symbol): Improve function comment.
2122 (basic_lookup_symbol_nonlocal): Ditto.
2123 (lookup_symbol_static, lookup_symbol_global): Ditto.
2124 (lookup_symbol_aux_block): Ditto.
2125 (lookup_language_this): Add function comment.
2126 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2128 (lookup_block_symbol): Improve function comment.
2129 (lookup_struct): Fix capitalization in function comment.
2130 (lookup_transparent_type): Add function comment.
2131 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2132 Improve function comment.
2133 (lookup_objfile_from_block): Add function comment.
2134 * symtab.c (lookup_symbol_in_language): Update function comment.
2135 (lookup_symbol, lookup_language_this): Ditto.
2136 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2137 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2138 (basic_lookup_symbol_nonlocal): Ditto.
2139 (lookup_symbol_static, lookup_symbol_global): Ditto.
2140 (lookup_transparent_type, lookup_block_symbol): Ditto.
2142 2014-10-25 Doug Evans <xdje42@gmail.com>
2144 * symtab.c (types_info): Delete forward decl.
2145 (functions_info, variables_info, sources_info): Ditto.
2146 (_initialize_symtab): Rewrite forward decl to use
2147 initialize_file_ftype.
2149 2014-10-25 Doug Evans <xdje42@gmail.com>
2151 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2153 2014-10-25 Doug Evans <xdje42@gmail.com>
2155 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2156 of local var child_die.
2158 2014-10-24 Don Breazeal <donb@codesourcery.com>
2160 * infrun.c (follow_fork_inferior): Update fork message printing
2161 to use target_terminal_ours_for_output instead of
2162 target_terminal_ours, to use _() for all format strings, to print
2163 "vfork" instead of "fork" for vforks, and to add a detach message.
2164 (handle_vfork_child_exec_or_exit): Update message printing to use
2165 target_terminal_ours_for_output instead of target_terminal_ours, to
2166 use _() for all format strings, and to fix some formatting.
2168 2014-10-24 Pedro Alves <palves@redhat.com>
2170 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2171 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2172 * config/vax/vax.mh: Delete.
2173 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2174 obsolete configurations section.
2175 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2176 * vax-nat.c: Delete file.
2178 2014-10-24 Pedro Alves <palves@redhat.com>
2180 * NEWS (Removed targets): Add OS/arch column.
2182 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2184 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2185 on the arg type of a constructor only if it is of reference type.
2187 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2189 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2190 accessors and constants from nios2 opcodes update.
2191 (nios2_get_next_pc): Likewise.
2193 2014-10-19 Doug Evans <xdje42@gmail.com>
2195 * gdbthread.h (set_running): Fix comment.
2196 (set_executing, finish_thread_state): Fix comment.
2198 2014-10-18 Doug Evans <xdje42@gmail.com>
2200 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2202 2014-10-17 Doug Evans <dje@google.com>
2204 * NEWS: Mention new event gdb.clear_objfiles.
2205 * python/py-event.h (emit_clear_objfiles_event): Clear
2206 * python/py-events.h (events_object): New member clear_objfiles.
2207 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2209 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2210 emit clear_objfiles event.
2211 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2213 (emit_clear_objfiles_event): New function.
2214 (clear_objfiles): New event.
2215 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2217 * python/python.c (_initialize_python): Call
2218 gdbpy_initialize_clear_objfiles_event.
2220 2014-10-17 Doug Evans <dje@google.com>
2222 * NEWS: Mention new gdb.Objfile.progspace attribute.
2223 * python/py-objfile.c (objfpy_get_progspace): New function.
2224 (objfile_getset): New entry for "progspace".
2226 2014-10-17 Pedro Alves <palves@redhat.com>
2229 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2230 returns a copy of the input.
2231 (run_command_1, continue_command, step_1, jump_command)
2232 (signal_command, until_command, advance_command, finish_command)
2233 (attach_command): Adjust and install a cleanup to free the
2236 2014-10-17 Pedro Alves <palves@redhat.com>
2239 * infcmd.c (continue_1): If continuing all threads in the
2240 foreground, make sure the inferior's terminal settings are put in
2243 2014-10-17 Pedro Alves <palves@redhat.com>
2246 * annotate.c (annotate_breakpoints_invalid): Use
2247 target_terminal_our_for_output instead of target_terminal_ours.
2248 Give back the terminal to the target.
2249 (annotate_frames_invalid): Likewise.
2251 2014-10-17 Pedro Alves <palves@redhat.com>
2253 * target.c (enum terminal_state): New enum.
2254 (terminal_state): New global.
2255 (target_terminal_init): New function.
2256 (target_terminal_inferior): Skip if inferior already owns the
2258 (target_terminal_ours, target_terminal_ours_for_output): New
2260 * target.h (target_terminal_init): Convert to function prototype.
2261 (target_terminal_ours_for_output): Convert to function prototype
2263 (target_terminal_ours): Convert to function prototype and tweak
2265 * windows-nat.c (do_initial_windows_stuff): Call
2266 target_terminal_init instead of child_terminal_init_with_pgrp.
2268 2014-10-17 Pedro Alves <palves@redhat.com>
2270 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2271 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2272 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2274 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2275 * ada-lang.h [__alpha__ && __osf__]
2276 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2277 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2278 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2280 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2282 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2283 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2284 * configure: Regenerate.
2285 * configure.ac: Remove references to osf.
2286 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2287 section. Remove all other references to osf.
2288 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2289 Remove all other references to osf.
2290 * dec-thread.c: Delete file.
2291 * defs.h (GDB_OSABI_OSF1): Delete.
2292 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2294 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2295 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2297 (unconditionally_kill_inferior)
2298 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2299 * solib-osf.c: Delete file.
2301 2014-10-17 Pedro Alves <palves@redhat.com>
2303 * remote.c (clear_threads_listing_context): Move higher up, out of
2304 the HAVE_LIBEXPAT guard.
2306 2014-10-16 Tristan Gingold <gingold@adacore.com>
2308 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2309 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2312 2014-10-15 Pedro Alves <palves@redhat.com>
2314 * dec-thread.c (dec_thread_count_gdb_threads)
2315 (dec_thread_add_gdb_thread): Delete.
2316 (dec_thread_update_thread_list): Delete.
2317 (dec_thread_find_new_threads): Rename to ...
2318 (dec_thread_update_thread_list): ... this. Delete GDB-size
2319 threads that are no longer found in dec_thread_list.
2320 (resync_thread_list): Delete.
2321 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2324 2014-10-15 Pedro Alves <palves@redhat.com>
2326 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2327 * remote.c (remote_update_thread_list): Skip calling prune_threads
2328 if any thread listing method is supported, and instead walk over
2329 the set of remote threads listed, deleting those that are not
2330 found in GDB's thread list.
2332 2014-10-15 Pedro Alves <palves@redhat.com>
2334 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2335 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2336 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2337 (bsd_uthread_target): Adjust.
2338 * corelow.c (core_open): Adjust.
2339 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2340 (dec_thread_update_thread_list): New function.
2341 (init_dec_thread_ops): Adjust.
2342 * gdbthread.h (prune_threads): New declaration.
2343 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2344 (thread_db_update_thread_list): ... this. Call prune_threads.
2345 (init_thread_db_ops): Adjust.
2346 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2347 (procfs_update_thread_list): ... this. Call prune_threads.
2348 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2350 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2351 (obsd_update_thread_list): ... this. Call prune_threads.
2352 (obsd_add_target): Adjust.
2353 * procfs.c (procfs_target): Adjust.
2354 (procfs_notice_thread): Update comment.
2355 (procfs_find_new_threads): Rename to ...
2356 (procfs_update_thread_list): ... this. Call prune_threads.
2357 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2359 (ravenscar_wait): Adjust.
2360 (ravenscar_find_new_threads): Rename to ...
2361 (ravenscar_update_thread_list): ... this. Call prune_threads.
2362 (init_ravenscar_thread_ops): Adjust.
2363 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2364 (record_btrace_update_thread_list): ... this. Adjust comment.
2365 (init_record_btrace_ops): Adjust.
2366 * remote.c (remote_threads_info): Rename to ...
2367 (remote_update_thread_list): ... this. Call prune_threads.
2368 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2370 * sol-thread.c (check_for_thread_db): Adjust.
2371 (sol_find_new_threads_callback): Rename to ...
2372 (sol_update_thread_list_callback): ... this.
2373 (sol_find_new_threads): Rename to ...
2374 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2375 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2376 * target-delegates.c: Regenerate.
2377 * target.c (target_find_new_threads): Rename to ...
2378 (target_update_thread_list): ... this.
2379 * target.h (struct target_ops): Rename to_find_new_threads field
2380 to to_update_thread_list.
2381 (target_find_new_threads): Rename to ...
2382 (target_update_thread_list): ... this.
2383 * thread.c (prune_threads): Make extern.
2384 (update_thread_list): Adjust.
2386 2014-10-15 Pedro Alves <palves@redhat.com>
2388 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2389 Add describing comment. Return -1 if the qL packet is not
2391 (struct thread_item, thread_item_t): Move higher up in
2392 the file. Add comments.
2393 (struct threads_parsing_context): Move higher up in
2394 the file, add comments, and remote to ...
2395 (struct threads_listing_context): ... this.
2396 (remote_newthread_step): Don't add the thread to GDB's thread
2397 database here. Instead push it to the thread_listing_context
2399 (remote_find_new_threads): Rename to ...
2400 (remote_get_threads_with_ql): ... this. Add target_ops and
2401 targets_listing_context parameters. Pass down context.
2402 (start_thread): Adjust.
2403 (clear_threads_parsing_context): Rename to ...
2404 (clear_threads_listing_context): ... this.
2405 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2406 remote_threads_info.
2407 (remote_get_threads_with_qthreadinfo): Ditto.
2408 (remote_threads_info): Reimplement.
2410 2014-10-15 Pedro Alves <palves@redhat.com>
2412 * infrun.c (resume): Don't force displaced-stepping for all
2413 single-steps on software single-stepping archs.
2415 2014-10-15 Pedro Alves <palves@redhat.com>
2417 * breakpoint.c (single_step_breakpoints): Delete global.
2418 (insert_single_step_breakpoint): Adjust to store the breakpoint
2419 pointer in the current thread.
2420 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2421 (cancel_single_step_breakpoints): Delete functions.
2422 (breakpoint_has_location_inserted_here): Make extern.
2423 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2425 * breakpoint.h (breakpoint_has_location_inserted_here): New
2427 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2428 (cancel_single_step_breakpoints): Remove declarations.
2429 * gdbthread.h (struct thread_control_state)
2430 <single_step_breakpoints>: New field.
2431 (delete_single_step_breakpoints)
2432 (thread_has_single_step_breakpoints_set)
2433 (thread_has_single_step_breakpoint_here): New declarations.
2434 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2435 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2436 (singlestep_pc): Delete globals.
2437 (infrun_thread_ptid_changed): Remove references to removed
2439 (resume_cleanups): Delete the current thread's single-step
2441 (maybe_software_singlestep): Remove references to removed globals.
2442 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2443 delete_single_step_breakpoints.
2444 (init_wait_for_inferior): Remove references to removed globals.
2445 (delete_thread_infrun_breakpoints): Delete the thread's
2446 single-step breakpoints too.
2447 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2448 single-step breakpoints here.
2449 (delete_stopped_threads_single_step_breakpoints): New function.
2450 (adjust_pc_after_break): Adjust to use
2451 thread_has_single_step_breakpoints_set.
2452 (handle_inferior_event): Remove references to removed globals.
2453 Use delete_stopped_threads_single_step_breakpoints.
2454 (handle_signal_stop): Adjust to per-thread single-step
2455 breakpoints. Swap test order to do cheaper tests first.
2456 (switch_back_to_stepped_thread): Extend debug output. Remove
2457 references to removed globals.
2458 * record-full.c (record_full_wait_1): Adjust to per-thread
2459 single-step breakpoints.
2460 * thread.c (delete_single_step_breakpoints)
2461 (thread_has_single_step_breakpoints_set)
2462 (thread_has_single_step_breakpoint_here): New functions.
2463 (clear_thread_inferior_resources): Also delete the thread's
2464 single-step breakpoints.
2466 2014-10-15 Pedro Alves <palves@redhat.com>
2468 * thread.c (delete_thread_breakpoint): New function.
2469 (delete_step_resume_breakpoint)
2470 (delete_exception_resume_breakpoint): Use it.
2471 (delete_at_next_stop): New function.
2472 (clear_thread_inferior_resources): Use delete_at_next_stop.
2474 2014-10-15 Pedro Alves <palves@redhat.com>
2476 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2477 (breakpoint_inserted_here_p): ... here. Remove special case for
2478 software single-step breakpoints.
2479 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2480 (software_breakpoint_inserted_here_p): ... here. Remove special
2481 case for software single-step breakpoints.
2482 (bp_target_info_copy_insertion_state)
2483 (deprecated_insert_raw_breakpoint)
2484 (deprecated_remove_raw_breakpoint): Delete functions.
2485 * breakpoint.h (deprecated_insert_raw_breakpoint)
2486 (deprecated_remove_raw_breakpoint): Remove declarations.
2488 2014-10-15 Pedro Alves <palves@redhat.com>
2491 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2492 Delete array globals.
2493 (single_step_breakpoints): New global.
2494 (breakpoint_xfer_memory): Remove special handling for single-step
2496 (update_breakpoints_after_exec): Delete bp_single_step
2498 (detach_breakpoints): Remove special handling for single-step
2500 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2501 (bpstat_stop_status): Add comment.
2502 (bpstat_what, bptype_string, print_one_breakpoint_location)
2503 (adjust_breakpoint_address, init_bp_location): Handle
2505 (new_single_step_breakpoint): New function.
2506 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2507 handling for single-step breakpoints.
2508 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2509 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2511 (detach_single_step_breakpoints, find_single_step_breakpoint):
2513 (breakpoint_has_location_inserted_here): New function.
2514 (single_step_breakpoint_inserted_here_p): Rewrite.
2515 * breakpoint.h: Remove FIXME.
2516 (enum bptype) <bp_single_step>: New enum value.
2517 (insert_single_step_breakpoint): Update comment.
2518 * infrun.c (resume_cleanups)
2519 (delete_step_thread_step_resume_breakpoint): Remove single-step
2521 (fetch_inferior_event): Install a cleanup that removes infrun
2523 (switch_back_to_stepped_thread) <expect thread advanced also>:
2524 Clear step-over info.
2526 2014-10-15 Pedro Alves <palves@redhat.com>
2528 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2529 (delete_thread_infrun_breakpoints): New function, with parts
2530 salvaged from delete_step_resume_breakpoint_callback.
2531 (delete_step_thread_step_resume_breakpoint): Delete.
2532 (for_each_just_stopped_thread_callback_func): New typedef.
2533 (for_each_just_stopped_thread): New function.
2534 (delete_just_stopped_threads_infrun_breakpoints): New function.
2535 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2536 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2538 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2540 2014-10-15 Pedro Alves <palves@redhat.com>
2542 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2543 trying to step past a non-steppable watchpoint.
2544 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2546 * infrun.c (struct step_over_info): Add new field
2547 'nonsteppable_watchpoint_p' and adjust comments.
2548 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2550 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2551 (stepping_past_nonsteppable_watchpoint): New function.
2552 (step_over_info_valid_p): Also return true if stepping past a
2553 nonsteppable watchpoint.
2554 (proceed): Adjust call to set_step_over_info. Remove reference to
2556 (init_wait_for_inferior): Remove reference to init_infwait_state.
2557 (waiton_ptid): Delete global.
2558 (struct execution_control_state)
2559 <stepped_after_stopped_by_watchpoint>: Delete field.
2560 (wait_for_inferior, fetch_inferior_event): Always pass
2561 minus_one_ptid to target_wait.
2562 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2564 (init_infwait_state): Delete function.
2565 (handle_inferior_event): Remove infwait_state handling.
2566 (handle_signal_stop) <watchpoints handling>: Adjust after
2567 stepped_after_stopped_by_watchpoint removal. Don't remove
2568 breakpoints here nor set infwait_state. Set the thread's
2569 stepping_over_watchpoint flag, and call keep_going instead.
2570 (keep_going): Handle stepping_over_watchpoint. Adjust
2571 set_step_over_info calls.
2572 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2575 2014-10-15 Pedro Alves <palves@redhat.com>
2577 * infrun.c (step_over_info_valid_p): New function.
2578 (resume): Use step_over_info_valid_p instead of checking the
2579 threads's trap_expected flag.
2581 2014-10-15 Doug Evans <dje@google.com>
2582 Walfred Tedeschi <walfred.tedeschi@intel.com>
2585 * python/lib/gdb/__init__.py (packages): Add "printer".
2586 * python/lib/gdb/command/bound_registers.py: Moved to ...
2587 * python/lib/gdb/printer/bound_registers.py: ... here.
2588 Add printer to global set of builtin printers. Rename printer from
2589 "bound" to "mpx_bound128".
2590 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2591 registered as global "builtin" printer.
2592 (add_builtin_pretty_printer): New function.
2593 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2594 gdb/printer/__init__.py.
2596 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2598 * Makefile.in (SFILES): Remove d-support.c.
2599 (COMMON_OBS): Remove d-support.o.
2600 * d-lang.h (d_parse_symbol): Remove declaration.
2601 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2602 * d-support.c: Remove file.
2604 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2606 * gdb/infrun.c (process_event_stop_test): Apply
2607 gdbarch_addr_bits_remove to longjmp resume address.
2609 2014-10-15 Pedro Alves <palves@redhat.com>
2611 * regformats/microblaze.dat: Delete file.
2613 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2615 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2616 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2618 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2620 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2623 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2627 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2628 with qualified args.
2630 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2632 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2633 of the case where the second operand is a pointer.
2634 <BINOP_SUB>: Likewise.
2636 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2638 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2639 only if it is not NULL.
2640 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2641 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2642 (struct probe_ops) <clear_semaphore>: Likewise.
2643 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2645 (stop_tracing): Likewise, for clear_semaphore.
2647 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2649 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2650 using language_c, instead of current_language.
2652 2014-10-13 Doug Evans <dje@google.com>
2654 * python/py-objfile.c (objfpy_initialize): New function.
2655 (objfpy_new, objfile_to_objfile_object): Call it.
2656 * python/py-progspace.c (pspy_initialize): New function.
2657 (pspy_new, pspace_to_pspace_object): Call it.
2659 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2660 Jan Kratochvil <jan.kratochvil@redhat.com>
2662 Fix "save breakpoints" for "catch" command.
2663 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2666 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2668 Fix "save breakpoints" for "disable $bpnum" command.
2669 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2671 2014-10-10 Pedro Alves <palves@redhat.com>
2673 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2674 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2675 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2676 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2678 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2679 * configure.ac: Remove references to IRIX.
2680 * configure.host: Add *-*-irix* to the obsolete hosts section.
2681 Remove all other references to irix.
2682 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2685 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2687 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2688 isn't valid, release the tdesc arch data and return NULL.
2690 2014-10-10 Pedro Alves <palves@redhat.com>
2692 * linux-tdep.c: Include observer.h.
2693 (linux_inferior_data): New global.
2694 (struct linux_info): New structure.
2695 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2696 (get_linux_inferior_data): New functions.
2697 (linux_vsyscall_range): Rename to ...
2698 (linux_vsyscall_range_raw): ... this.
2699 (linux_vsyscall_range): New function; handles caching.
2700 (_initialize_linux_tdep): Register linux_inferior_data. Install
2701 inferior_exit and inferior_appeared observers.
2703 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2704 Pedro Alves <palves@redhat.com>
2707 * solib-svr4.c (svr4_read_so_list): Rename to ...
2708 (svr4_current_sos_1): ... this and change the function comment.
2709 (svr4_current_sos): New function.
2711 2014-10-10 Pedro Alves <palves@redhat.com>
2713 * arch-utils.c (default_vsyscall_range): New function.
2714 * arch-utils.h (default_vsyscall_range): New declaration.
2715 * gdbarch.sh (vsyscall_range): New hook.
2716 * gdbarch.h, gdbarch.c: Regenerate.
2717 * linux-tdep.c (linux_vsyscall_range): New function.
2718 (linux_init_abi): Install linux_vsyscall_range as
2719 vsyscall_range gdbarch hook.
2720 * memrange.c (address_in_mem_range): New function.
2721 * memrange.h (address_in_mem_range): New declaration.
2722 * symfile-mem.c (find_vdso_size): Delete function.
2723 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2725 2014-10-10 Pedro Alves <palves@redhat.com>
2727 * infrun.c (normal_stop): Fix typo in comment.
2729 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2732 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2733 typo when using logical AND to determine instruction type.
2735 2014-10-09 Yao Qi <yao@codesourcery.com>
2737 * infrun.c (handle_signal_stop): Remove local variable
2740 2014-10-08 Stan Shebs <stan@codesourcery.com>
2742 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2744 2014-10-08 Gary Benson <gbenson@redhat.com>
2746 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2748 2014-10-08 Gary Benson <gbenson@redhat.com>
2750 * common/common-defs.h: Include common-exceptions.h.
2751 * exceptions.h: Do not include common-exceptions.h.
2753 2014-10-08 Gary Benson <gbenson@redhat.com>
2755 * common/common-defs.h: Include cleanups.h.
2756 * common/common-exceptions.c: Do not include cleanups.h.
2757 * utils.h: Likewise.
2759 2014-10-08 Gary Benson <gbenson@redhat.com>
2761 * ada-lang.c: Do not include exceptions.h.
2762 * ada-valprint.c: Likewise.
2763 * amd64-tdep.c: Likewise.
2764 * auto-load.c: Likewise.
2765 * block.c: Likewise.
2766 * break-catch-throw.c: Likewise.
2767 * breakpoint.c: Likewise.
2768 * btrace.c: Likewise.
2769 * c-lang.c: Likewise.
2770 * cli/cli-cmds.c: Likewise.
2771 * cli/cli-interp.c: Likewise.
2772 * cli/cli-script.c: Likewise.
2773 * completer.c: Likewise.
2774 * corefile.c: Likewise.
2775 * corelow.c: Likewise.
2776 * cp-abi.c: Likewise.
2777 * cp-support.c: Likewise.
2778 * cp-valprint.c: Likewise.
2779 * darwin-nat.c: Likewise.
2780 * dwarf2-frame-tailcall.c: Likewise.
2781 * dwarf2-frame.c: Likewise.
2782 * dwarf2loc.c: Likewise.
2783 * dwarf2read.c: Likewise.
2785 * event-loop.c: Likewise.
2786 * event-top.c: Likewise.
2787 * f-valprint.c: Likewise.
2788 * frame-unwind.c: Likewise.
2789 * frame.c: Likewise.
2790 * gdbtypes.c: Likewise.
2791 * gnu-v2-abi.c: Likewise.
2792 * gnu-v3-abi.c: Likewise.
2793 * guile/scm-auto-load.c: Likewise.
2794 * guile/scm-breakpoint.c: Likewise.
2795 * guile/scm-cmd.c: Likewise.
2796 * guile/scm-frame.c: Likewise.
2797 * guile/scm-lazy-string.c: Likewise.
2798 * guile/scm-param.c: Likewise.
2799 * guile/scm-symbol.c: Likewise.
2800 * guile/scm-type.c: Likewise.
2801 * hppa-hpux-tdep.c: Likewise.
2802 * i386-tdep.c: Likewise.
2803 * inf-loop.c: Likewise.
2804 * infcall.c: Likewise.
2805 * infcmd.c: Likewise.
2806 * infrun.c: Likewise.
2807 * interps.c: Likewise.
2808 * interps.h: Likewise.
2810 * linespec.c: Likewise.
2811 * linux-nat.c: Likewise.
2812 * linux-thread-db.c: Likewise.
2813 * m32r-rom.c: Likewise.
2815 * memory-map.c: Likewise.
2816 * mi/mi-cmd-break.c: Likewise.
2817 * mi/mi-cmd-stack.c: Likewise.
2818 * mi/mi-interp.c: Likewise.
2819 * mi/mi-main.c: Likewise.
2820 * monitor.c: Likewise.
2821 * nto-procfs.c: Likewise.
2822 * objc-lang.c: Likewise.
2823 * p-valprint.c: Likewise.
2824 * parse.c: Likewise.
2825 * ppc-linux-tdep.c: Likewise.
2826 * printcmd.c: Likewise.
2827 * probe.c: Likewise.
2828 * python/py-auto-load.c: Likewise.
2829 * python/py-breakpoint.c: Likewise.
2830 * python/py-cmd.c: Likewise.
2831 * python/py-finishbreakpoint.c: Likewise.
2832 * python/py-frame.c: Likewise.
2833 * python/py-framefilter.c: Likewise.
2834 * python/py-function.c: Likewise.
2835 * python/py-gdb-readline.c: Likewise.
2836 * python/py-inferior.c: Likewise.
2837 * python/py-infthread.c: Likewise.
2838 * python/py-lazy-string.c: Likewise.
2839 * python/py-linetable.c: Likewise.
2840 * python/py-param.c: Likewise.
2841 * python/py-prettyprint.c: Likewise.
2842 * python/py-symbol.c: Likewise.
2843 * python/py-type.c: Likewise.
2844 * python/py-value.c: Likewise.
2845 * python/python-internal.h: Likewise.
2846 * python/python.c: Likewise.
2847 * record-btrace.c: Likewise.
2848 * record-full.c: Likewise.
2849 * regcache.c: Likewise.
2850 * remote-fileio.c: Likewise.
2851 * remote-mips.c: Likewise.
2852 * remote.c: Likewise.
2853 * rs6000-aix-tdep.c: Likewise.
2854 * rs6000-nat.c: Likewise.
2856 * solib-darwin.c: Likewise.
2857 * solib-dsbt.c: Likewise.
2858 * solib-frv.c: Likewise.
2859 * solib-ia64-hpux.c: Likewise.
2860 * solib-spu.c: Likewise.
2861 * solib-svr4.c: Likewise.
2862 * solib.c: Likewise.
2863 * spu-tdep.c: Likewise.
2864 * stack.c: Likewise.
2865 * stap-probe.c: Likewise.
2866 * symfile-mem.c: Likewise.
2867 * symmisc.c: Likewise.
2868 * target.c: Likewise.
2869 * thread.c: Likewise.
2871 * tracepoint.c: Likewise.
2872 * tui/tui-interp.c: Likewise.
2873 * typeprint.c: Likewise.
2874 * utils.c: Likewise.
2875 * valarith.c: Likewise.
2876 * valops.c: Likewise.
2877 * valprint.c: Likewise.
2878 * value.c: Likewise.
2879 * varobj.c: Likewise.
2880 * windows-nat.c: Likewise.
2881 * xml-support.c: Likewise.
2883 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2885 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2887 (extended_mips16_next_pc): Update accordingly.
2889 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2891 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2893 (micromips_instruction_is_compact_branch): Likewise.
2894 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2895 or a compact jump, reaching a jump delay slot, or seeing a
2896 second non-prologue instruction.
2897 (micromips_scan_prologue): Also terminate scanning upon seeing a
2898 compact branch or jump, or reaching a branch or jump delay slot.
2899 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2900 or jump delay slot, or seeing a second non-prologue instruction.
2901 (mips32_instruction_has_delay_slot): Retain instruction
2902 examination code only, update arguments accordingly and move
2903 instruction fetch pieces to...
2904 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2905 (micromips_instruction_has_delay_slot): Likewise and to...
2906 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2907 (mips16_instruction_has_delay_slot): Likewise and to...
2908 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2909 (mips_single_step_through_delay): Update accordingly.
2910 (mips_adjust_breakpoint_address): Likewise.
2912 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2914 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2915 !mustbe32 also return 1 for 32-bit instructions.
2916 (mips16_instruction_has_delay_slot): Likewise. Add an
2917 explanatory comment.
2919 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2921 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2924 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2926 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2928 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2929 for the breakpoint's address. Don't preinitialize `placed_size'.
2930 (insert_bp_location): Set `reqstd_address' rather than
2932 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2933 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2935 (bkpt_remove_location): Likewise.
2936 (deprecated_insert_raw_breakpoint): Likewise.
2937 (deprecated_remove_raw_breakpoint): Likewise.
2938 (find_single_step_breakpoint): Likewise.
2939 * mem-break.c (default_memory_insert_breakpoint): Use
2940 `reqstd_address' for the breakpoint's address. Don't set
2941 `placed_address' or `placed_size' if breakpoint contents couldn't
2942 have been determined.
2943 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2944 the breakpoint's address.
2945 (remote_insert_hw_breakpoint): Likewise. Don't set
2946 `placed_address' or `placed_size' if breakpoint couldn't have been
2948 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2949 `reqstd_address' for the breakpoint's address.
2950 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2951 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2952 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2953 * microblaze-linux-tdep.c
2954 (microblaze_linux_memory_remove_breakpoint): Likewise.
2955 * monitor.c (monitor_insert_breakpoint): Likewise.
2956 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2957 (procfs_insert_hw_breakpoint): Likewise.
2958 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2959 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2960 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2961 * remote-mips.c (mips_insert_breakpoint): Likewise.
2962 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2964 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2966 * valops.c (value_assign): Check for bit field assignments
2967 before calling architecture-specific register value
2968 conversion functions.
2970 2014-10-03 Pierre Muller <muller@sourceware.org>
2972 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2974 2014-10-02 Pedro Alves <palves@redhat.com>
2976 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2977 threads_are_executing.
2978 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2980 * gdbthread.h (threads_are_executing): Declare.
2981 (handle_signal_stop) <random signals>: Don't print about the
2982 signal here if stopping.
2983 (end_stepping_range): Don't notify observers here.
2984 (normal_stop): Update the thread list. If stopped by a random
2985 signal or a stepping range ended, notify observers.
2986 * thread.c (threads_executing): New global.
2987 (init_thread_list): Clear 'threads_executing'.
2988 (set_executing): Set or clear 'threads_executing'.
2989 (threads_are_executing): New function.
2990 (update_threads_executing): New function.
2991 (update_thread_list): Use it.
2993 2014-10-02 Pedro Alves <palves@redhat.com>
2995 PR breakpoints/17431
2996 * breakpoint.c (update_breakpoints_after_exec): Don't create
2997 overlay, longjmp, std terminate nor exception breakpoints here.
2999 2014-10-02 Pedro Alves <palves@redhat.com>
3001 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
3003 * inferior.c (find_inferior_for_program_space): Give preference to
3004 the current inferior.
3005 * inferior.h (find_inferior_for_program_space): Update comment.
3006 * progspace.c (switch_to_program_space_and_thread): Prefer the
3007 current inferior if it's bound to the program space requested. If
3008 the inferior found doesn't have a PID yet, don't bother looking up
3010 * progspace.h (switch_to_program_space_and_thread): Adjust
3012 * thread.c (any_thread_of_process, any_live_thread_of_process):
3013 Give preference to the current thread.
3015 2014-10-01 Pedro Alves <palves@redhat.com>
3017 * breakpoint.c (insert_bp_location): Error out if inserting a
3018 software breakpoint at a read-only address.
3019 * target.c (memory_xfer_check_region): New function, factored out
3021 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
3023 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
3024 against the memory region attributes.
3026 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
3028 * NEWS: Announce new exit-code field in -list-thread-groups
3030 * inferior.c (exit_inferior_1): Don't clear exit code.
3031 (inferior_appeared): Clear exit code.
3032 * mi/mi-main.c (print_one_inferior): Add printing of the exit
3035 2014-10-01 Pedro Alves <palves@redhat.com>
3037 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
3038 GENERATED" along with emacs/vi read-only markers.
3039 * regformats/aarch64.dat: Regenerate.
3040 * regformats/arm-with-iwmmxt.dat: Regenerate.
3041 * regformats/arm-with-neon.dat: Regenerate.
3042 * regformats/arm-with-vfpv2.dat: Regenerate.
3043 * regformats/arm-with-vfpv3.dat: Regenerate.
3044 * regformats/i386/amd64-avx-linux.dat: Regenerate.
3045 * regformats/i386/amd64-avx.dat: Regenerate.
3046 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
3047 * regformats/i386/amd64-avx512.dat: Regenerate.
3048 * regformats/i386/amd64-linux.dat: Regenerate.
3049 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
3050 * regformats/i386/amd64-mpx.dat: Regenerate.
3051 * regformats/i386/amd64.dat: Regenerate.
3052 * regformats/i386/i386-avx-linux.dat: Regenerate.
3053 * regformats/i386/i386-avx.dat: Regenerate.
3054 * regformats/i386/i386-avx512-linux.dat: Regenerate.
3055 * regformats/i386/i386-avx512.dat: Regenerate.
3056 * regformats/i386/i386-linux.dat: Regenerate.
3057 * regformats/i386/i386-mmx-linux.dat: Regenerate.
3058 * regformats/i386/i386-mmx.dat: Regenerate.
3059 * regformats/i386/i386-mpx-linux.dat: Regenerate.
3060 * regformats/i386/i386-mpx.dat: Regenerate.
3061 * regformats/i386/i386.dat: Regenerate.
3062 * regformats/i386/x32-avx-linux.dat: Regenerate.
3063 * regformats/i386/x32-avx.dat: Regenerate.
3064 * regformats/i386/x32-avx512-linux.dat: Regenerate.
3065 * regformats/i386/x32-avx512.dat: Regenerate.
3066 * regformats/i386/x32-linux.dat: Regenerate.
3067 * regformats/i386/x32.dat: Regenerate.
3068 * regformats/microblaze-with-stack-protect.dat: Regenerate.
3069 * regformats/mips-dsp-linux.dat: Regenerate.
3070 * regformats/mips-linux.dat: Regenerate.
3071 * regformats/mips64-dsp-linux.dat: Regenerate.
3072 * regformats/mips64-linux.dat: Regenerate.
3073 * regformats/nios2-linux.dat: Regenerate.
3074 * regformats/rs6000/powerpc-32.dat: Regenerate.
3075 * regformats/rs6000/powerpc-32l.dat: Regenerate.
3076 * regformats/rs6000/powerpc-64l.dat: Regenerate.
3077 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
3078 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
3079 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
3080 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
3081 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
3082 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
3083 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
3084 * regformats/s390-linux32.dat: Regenerate.
3085 * regformats/s390-linux32v1.dat: Regenerate.
3086 * regformats/s390-linux32v2.dat: Regenerate.
3087 * regformats/s390-linux64.dat: Regenerate.
3088 * regformats/s390-linux64v1.dat: Regenerate.
3089 * regformats/s390-linux64v2.dat: Regenerate.
3090 * regformats/s390-te-linux64.dat: Regenerate.
3091 * regformats/s390x-linux64.dat: Regenerate.
3092 * regformats/s390x-linux64v1.dat: Regenerate.
3093 * regformats/s390x-linux64v2.dat: Regenerate.
3094 * regformats/s390x-te-linux64.dat: Regenerate.
3095 * regformats/tic6x-c62x-linux.dat: Regenerate.
3096 * regformats/tic6x-c62x.dat: Regenerate.
3097 * regformats/tic6x-c64x-linux.dat: Regenerate.
3098 * regformats/tic6x-c64x.dat: Regenerate.
3099 * regformats/tic6x-c64xp-linux.dat: Regenerate.
3100 * regformats/tic6x-c64xp.dat: Regenerate.
3102 2014-10-01 Pedro Alves <palves@redhat.com>
3104 * features/Makefile: Update comments.
3105 (XMLTOC): List all xml files we build C files from.
3106 (clean-cfiles): New rule.
3108 2014-10-01 Pedro Alves <palves@redhat.com>
3110 * features/i386/amd64-avx512-linux.c: Regenerate.
3111 * features/i386/amd64-avx512.c: Regenerate.
3112 * features/i386/x32-avx512-linux.c: Regenerate.
3113 * features/i386/x32-avx512.c: Regenerate.
3115 2014-10-01 Pedro Alves <palves@redhat.com>
3117 * features/Makefile (WHICH): Remove arm-with-m,
3118 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3120 2014-10-01 Pedro Alves <palves@redhat.com>
3122 * features/Makefile (clean): New rule.
3124 2014-10-01 Pedro Alves <palves@redhat.com>
3126 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3127 (zmm14h): Add missing end quotes.
3129 2014-10-01 Pedro Alves <palves@redhat.com>
3131 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3132 * features/aarch64.c: Regenerate.
3134 2014-09-30 Don Breazeal <donb@codesourcery.com>
3136 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3137 code so as to work with follow_fork_inferior.
3138 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3139 (inf_ttrace_create_inferior): Remove reference to
3140 inf_ttrace_vfork_ppid.
3141 (inf_ttrace_attach): Ditto.
3142 (inf_ttrace_detach): Ditto.
3143 (inf_ttrace_kill): Use current_inferior instead of
3144 inf_ttrace_vfork_ppid.
3145 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3146 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3147 inferior away from the parent.
3148 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3150 (follow_fork_inferior): New function.
3151 (follow_inferior_reset_breakpoints): Make function static.
3152 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3153 * linux-nat.c (linux_child_follow_fork): Move target-independent
3154 code to infrun.c:follow_fork_inferior.
3156 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3158 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3159 * gdbarch.c: Regenerate.
3160 * gdbarch.h: Likewise.
3161 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3162 gdbarch method 'regset_from_core_section'.
3163 (get_core_register_section): Remove handling for the case that
3164 regset == NULL and regset_from_core_section is defined.
3165 (get_core_registers): Drop check for deleted method.
3166 * procfs.c (procfs_do_thread_registers): Adjust comment.
3168 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3170 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3171 (linux_nat_make_corefile_notes): Remove.
3172 (linux_target_install_ops): Do not set target method
3173 'make_corefile_notes'.
3174 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3176 (linux_corefile_thread_callback): Instead of args->collect, call
3177 linux_collect_thread_registers.
3178 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3179 NULL unless there is a regset iterator.
3180 (linux_make_corefile_notes_1): Remove.
3181 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3182 by linux_make_corefile_notes.
3183 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3185 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3187 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3188 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3190 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3192 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3194 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3195 (xtensa_iterate_over_regset_sections): New.
3196 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3198 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3200 * vax-tdep.c (vax_regset_from_core_section): Remove.
3201 (vax_iterate_over_regset_sections): New.
3202 (vax_gdbarch_init): Adjust gdbarch initialization.
3204 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3206 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3207 (tilegx_regset_from_core_section): Remove.
3208 (tilegx_iterate_over_regset_sections): New.
3209 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3211 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3213 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3214 (sparc_iterate_over_regset_sections): New.
3215 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3216 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3218 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3219 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3220 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3221 target method 'make_corefile_notes'.
3223 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3225 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3226 'sizeof_gregset' and 'sizeof_fpregset'.
3227 * sh-tdep.c (sh_regset_from_core_section): Remove.
3228 (sh_iterate_over_regset_sections): New.
3229 (sh_gdbarch_init): Adjust gdbarch initialization.
3230 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3232 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3235 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3237 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3238 (score7_linux_iterate_over_regset_sections): New.
3239 (score_gdbarch_init): Adjust gdbarch initialization.
3241 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3243 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3245 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3246 method 'make_corefile_notes'.
3247 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3248 (ppcfbsd_regset_from_core_section): Remove.
3249 (ppcfbsd_iterate_over_regset_sections): New.
3250 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3252 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3253 (ppcnbsd_iterate_over_regset_sections): New.
3254 (ppcnbsd_init_abi): Adjust.
3255 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3256 (ppcobsd_iterate_over_regset_sections): New.
3257 (ppcobsd_init_abi): Adjust.
3258 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3259 (rs6000_aix_iterate_over_regset_sections): New.
3260 (rs6000_aix_init_osabi): Adjust.
3262 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3264 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3265 (nios2_regset_from_core_section): Remove.
3266 (nios2_iterate_over_regset_sections): New.
3267 (nios2_linux_init_abi): Adjust gdbarch initialization.
3269 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3271 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3272 (am33_iterate_over_regset_sections): New.
3273 (am33_linux_init_osabi): Adjust gdbarch initialization.
3275 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3277 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3278 (mips_linux_iterate_over_regset_sections): New.
3279 (mips_linux_init_abi): Adjust gdbarch initialization.
3280 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3281 (mips64obsd_iterate_over_regset_sections): New.
3282 (mips64obsd_init_abi): Adjust.
3283 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3284 (mipsnbsd_iterate_over_regset_sections): New.
3285 (mipsnbsd_init_abi): Adjust.
3287 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3289 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3290 (m88k_iterate_over_regset_sections): New.
3291 (m88k_gdbarch_init): Adjust gdbarch initialization.
3293 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3295 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3296 (ia64_linux_iterate_over_regset_sections): New.
3297 (ia64_linux_init_abi): Adjust gdbarch initialization.
3299 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3301 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3302 (m68kbsd_iterate_over_regset_sections): New.
3303 (m68kbsd_init_abi): Adjust gdbarch initialization.
3304 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3305 (m68k_linux_iterate_over_regset_sections): New.
3306 (m68k_linux_init_abi): Adjust gdbarch initialization.
3308 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3310 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3311 (m32r_linux_regset_from_core_section): Remove.
3312 (m32r_linux_iterate_over_regset_sections): New.
3313 (m32r_linux_init_abi): Adjust gdbarch initialization.
3315 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3317 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3318 (amd64obsd_iterate_over_regset_sections): New.
3319 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3320 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3322 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3323 regset_from_core_section initialization.
3324 * i386-tdep.c (i386_regset_from_core_section): Remove.
3325 (i386_iterate_over_regset_sections): New.
3326 (i386_gdbarch_init): Adjust gdbarch initialization.
3327 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3328 (i386_iterate_over_regset_sections): New prototype.
3329 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3331 (i386obsd_aout_iterate_over_regset_sections): New.
3332 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3333 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3335 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3336 (amd64fbsd_init_abi): Call fbsd_init_abi.
3337 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3338 (i386fbsd4_init_abi): Call fbsd_init_abi.
3339 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3340 target method 'make_corefile_notes'.
3341 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3343 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3345 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3346 (hppa_hpux_iterate_over_regset_sections): New.
3347 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3348 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3349 (hppa_linux_iterate_over_regset_sections): New.
3350 (hppa_linux_init_abi): Adjust.
3351 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3352 (hppanbsd_iterate_over_regset_sections): New.
3353 (hppanbsd_init_abi): Adjust.
3354 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3355 (hppaobsd_iterate_over_regset_sections): New.
3356 (hppaobsd_init_abi): Adjust.
3358 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3360 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3361 (frv_linux_iterate_over_regset_sections): New.
3362 (frv_linux_init_abi): Adjust gdbarch initialization.
3364 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3366 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3367 (armbsd_iterate_over_regset_sections): New prototype.
3368 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3369 (armbsd_iterate_over_regset_sections): New.
3370 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3373 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3375 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3376 (alpha_linux_iterate_over_regset_sections): New.
3377 (alpha_linux_init_abi): Adjust gdbarch initialization.
3378 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3380 (alphanbsd_iterate_over_regset_sections): New prototype.
3382 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3384 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3386 (aarch64_linux_iterate_over_regset_sections): New.
3387 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3389 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3391 * fbsd-tdep.c: New file.
3392 * fbsd-tdep.h: New file.
3393 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3394 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3395 (ALLDEPFILES): Add fbsd-tdep.c.
3397 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3399 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3401 * gdbarch.h: Regenerate.
3402 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3404 (get_core_register_section): Add parameter 'regset' and use it, if
3405 set. Add parameter 'min_size' and verify the bfd section size
3407 (get_core_registers_cb): Add parameter 'regset' and pass it to
3408 get_core_register section. For the "standard" register sections
3409 ".reg" and ".reg2", set an appropriate default for human_name.
3410 (get_core_registers): Don't abort when the gdbarch has an iterator
3411 but no regset_from_core_section. Add NULL/0 for parameters
3412 'regset'/'min_size' in calls to get_core_register_section.
3413 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3414 'regset' and use it instead of calling the
3415 regset_from_core_section gdbarch method.
3416 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3417 * i386-tdep.c (i386_supply_xstateregset)
3418 (i386_collect_xstateregset, i386_xstateregset): Moved to
3420 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3422 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3423 core file support only if the regset iterator hasn't been set.
3424 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3425 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3426 Moved from i386-tdep.c and renamed to *_linux*.
3427 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3428 each callback invocation. Allow any .reg-xstate size when reading
3430 * amd64-tdep.c (amd64_supply_xstateregset)
3431 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3433 (amd64_regset_from_core_section): Remove.
3434 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3435 install an amd64-specific regset_from_core_section gdbarch method.
3436 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3437 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3438 Moved from amd64-tdep.c and renamed to *_linux*.
3439 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3440 to each callback invocation. Allow any .reg-xstate size when
3441 reading from a core file.
3442 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3443 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3444 each callback invocation.
3445 (arm_linux_init_abi): No longer set the regset_from_core_section
3447 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3448 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3449 each callback invocation.
3450 (ppc_linux_init_abi): No longer set the regset_from_core_section
3452 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3453 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3454 (s390_regset_from_core_section): Remove.
3455 (s390_iterate_over_regset_sections): Add regset parameter to each
3456 callback invocation.
3457 (s390_gdbarch_init): No longer set the regset_from_core_section
3458 gdbarch method. Drop initialization of deleted tdep fields.
3460 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3462 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3463 (amd64_linux_iterate_over_regset_sections): New.
3464 (amd64_linux_init_abi_common): Don't install the regset section
3465 list, but the new iterator in gdbarch.
3466 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3467 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3468 (arm_linux_iterate_over_regset_sections): ...here. New function.
3469 (arm_linux_init_abi): Set iterator instead of section list.
3470 * corelow.c (get_core_registers_cb): New function, logic moved
3472 (get_core_registers): ...loop body here. Use new iterator method
3473 instead of walking through the regset section list.
3474 * gdbarch.sh: Remove 'core_regset_sections'. New method
3475 'iterate_over_regset_sections'. New typedef
3476 'iterate_over_regset_sections_cb'.
3477 * gdbarch.c: Regenerate.
3478 * gdbarch.h: Likewise.
3479 * i386-linux-tdep.c (i386_linux_regset_sections)
3480 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3482 (i386_linux_iterate_over_regset_sections): New.
3483 (i386_linux_init_abi): Don't choose a regset section list, but
3484 install new iterator in gdbarch.
3485 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3486 (linux_collect_regset_section_cb): New function, logic moved
3488 (linux_collect_thread_registers): ...loop body here. Use iterator
3489 method instead of walking through list.
3490 (linux_make_corefile_notes_1): Check for presence of iterator
3491 method instead of regset section list.
3492 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3493 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3494 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3495 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3496 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3497 (ppc_linux_init_abi): Don't choose from above regset section
3498 lists, but install new iterator in gdbarch.
3499 * regset.h (struct core_regset_section): Remove.
3500 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3501 have_linux_v1, have_linux_v2, and have_tdb.
3502 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3503 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3504 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3505 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3506 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3507 (s390_iterate_over_regset_sections): ...here. New function. Use
3509 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3510 regset section lists, but install new iterator.
3512 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3514 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3516 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3518 * progspace.c (print_program_space): Don't prune program spaces
3519 before printing them.
3521 2014-09-25 Pedro Alves <palves@redhat.com>
3523 * infrun.c (user_visible_resume_ptid): Don't check
3524 singlestep_breakpoints_inserted_p.
3526 2014-09-25 Pedro Alves <palves@redhat.com>
3528 * breakpoint.c (should_be_inserted): Add debug output.
3530 2014-09-25 Pedro Alves <palves@redhat.com>
3532 * infrun.c (stepping_past_instruction_at)
3533 (clear_exit_convenience_vars): Point at infrun.h instead of
3535 (handle_signal_stop): Fix typo.
3537 2014-09-24 Yao Qi <yao@codesourcery.com>
3539 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3542 2014-09-22 Gary Benson <gbenson@redhat.com>
3544 * target.c (target_stop): Updated comment.
3546 2014-09-22 Gary Benson <gbenson@redhat.com>
3548 * target/target.h (target_stop_ptid): Renamed as...
3549 (target_stop_and_wait): New function. Updated comment.
3551 (target_continue_ptid): Renamed as...
3552 (target_continue_no_signal): New function. Updated comment.
3555 2014-09-22 Pedro Alves <palves@redhat.com>
3557 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3559 * breakpoint.c (enum ugll_insert_mode): New enum.
3560 (always_inserted_mode): Now a plain boolean.
3561 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3562 (breakpoints_always_inserted_mode): Delete.
3563 (breakpoints_should_be_inserted_now): New function.
3564 (insert_breakpoints): Pass UGLL_INSERT to
3565 update_global_location_list instead of calling
3566 insert_breakpoint_locations manually.
3567 (create_solib_event_breakpoint_1): New, factored out from ...
3568 (create_solib_event_breakpoint): ... this.
3569 (create_and_insert_solib_event_breakpoint): Use
3570 create_solib_event_breakpoint_1 instead of calling
3571 insert_breakpoint_locations manually.
3572 (update_global_location_list): Change parameter type from boolean
3573 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3574 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3575 (update_global_location_list_nothrow): Change parameter type from
3576 boolean to enum ugll_insert_mode.
3577 (_initialize_breakpoint): "breakpoint always-inserted" option is
3578 now a boolean command. Update help text.
3579 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3580 (breakpoints_should_be_inserted_now): New declaration.
3581 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3582 Remove breakpoints_always_inserted_mode check.
3583 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3584 * remote.c (remote_start_remote): Likewise.
3586 2014-09-22 Pedro Alves <palves@redhat.com>
3588 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3589 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3590 Instead, pass UGLL_INSERT to update_global_location_list.
3591 (update_global_location_list): Change parameter type from boolean
3592 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3593 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3594 (create_solib_event_breakpoint_1): New, factored out from ...
3595 (create_solib_event_breakpoint): ... this.
3596 (create_and_insert_solib_event_breakpoint): Use
3597 create_solib_event_breakpoint_1 instead of calling
3598 insert_breakpoint_locations manually.
3599 (update_global_location_list): Handle UGLL_INSERT.
3601 2014-09-22 Pedro Alves <palves@redhat.com>
3603 * breakpoint.c (enum ugll_insert_mode): New enum.
3604 (update_global_location_list)
3605 (update_global_location_list_nothrow): Change parameter type from
3606 boolean to enum ugll_insert_mode. All callers adjusted.
3608 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3610 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3611 SystemTap support in GDB.
3613 2014-09-19 Don Breazeal <donb@codesourcery.com>
3615 * linux-nat.c (linux_handle_extended_wait): Call
3616 linux_ptrace_get_extended_event.
3617 (wait_lwp): Call linux_is_extended_waitstatus.
3618 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3619 and linux_is_extended_waitstatus.
3620 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3621 linux_ptrace_get_extended_event.
3622 (linux_ptrace_get_extended_event): New function.
3623 (linux_is_extended_waitstatus): New function.
3624 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3625 (linux_is_extended_waitstatus): New declarations.
3627 2014-09-19 Yao Qi <yao@codesourcery.com>
3629 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3630 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3631 comments. Callers update.
3632 (dwarf_decode_lines): Likewise.
3633 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3634 comments. Skip the line table if 'lowpc' is greater than
3635 'address'. Don't check
3636 dwarf2_per_objfile->has_section_at_zero.
3638 2014-09-18 Doug Evans <dje@google.com>
3640 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3641 * python/py-symtab.c (stpy_get_producer): New function.
3642 (symtab_object_getset): Add "producer" attribute.
3644 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3647 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3648 (do_captured_read_memory_integer): Remove.
3649 (safe_read_memory_integer): Use target_read_memory directly instead
3650 of catching errors in do_captured_read_memory_integer.
3652 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3654 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3657 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3659 * objc-lang.c (find_implementation_from_class): Remove dead code.
3661 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3664 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3665 "fprintf_unfiltered (gdb_stdlog...)".
3667 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3669 PR breakpoints/12526
3670 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3672 * breakpoint.c (watch_command_1): Use these fields to retain
3673 bitfield information.
3674 (extract_bitfield_from_watchpoint_value): New function.
3675 (watchpoint_check): Use it.
3676 (update_watchpoint): Use it. Optimize the address and length of a
3677 HW watchpoint pointing to a bitfield.
3678 * value.h (unpack_value_bitfield): New prototype.
3679 * value.c (unpack_value_bitfield): Make extern.
3681 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3683 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3685 * gnu-nat.c (inf_threads): New function.
3686 * gnu-nat.h (inf_threads_ftype): New typedef.
3687 (inf_threads): New declaration.
3688 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3689 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3690 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3691 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3692 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3693 (i386_gnu_dr_get_control): New functions.
3694 (reg_addr): New structure.
3695 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3696 i386 debugging register hooks.
3697 * NEWS: Mention this.
3699 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3701 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3702 vector data transfer instructions.
3703 (arm_record_coproc_data_proc): Updated.
3705 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3707 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3708 arm_record_exreg_ld_st_insn.
3709 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3712 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3714 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3715 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3716 processing instructions.
3718 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3720 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3721 for advance SIMD struct ld/st insn.
3722 (thumb2_record_decode_insn_handler): Replace stub handler with
3723 thumb2_record_asimd_struct_ld_st.
3725 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3727 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3728 for asimd, vfp and coprocessor insns.
3729 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3730 and coprocessor insns.
3731 (thumb2_record_coproc_insn): New function.
3732 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3734 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3737 2014-09-13 Doug Evans <xdje42@gmail.com>
3739 * NEWS: Mention new "queue-signal" command.
3740 * infcmd.c (queue_signal_command): New function.
3741 (_initialize_infcmd): Add new queue-signal command.
3743 2014-09-13 Doug Evans <xdje42@gmail.com>
3745 * linux-nat.c (wait_lwp): Add debugging printf.
3746 (linux_nat_wait_1): Ditto.
3748 2014-09-12 Pedro Alves <palves@redhat.com>
3750 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3751 (create_and_insert_solib_event_breakpoint): New functions.
3752 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3753 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3754 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3755 (remove_dbx_link_breakpoint): Delete function.
3756 (insert_dbx_link_bpt_in_file): Use
3757 create_and_insert_solib_event_breakpoint instead of
3758 deprecated_insert_raw_breakpoint.
3759 (procfs_wait): Don't check whether we hit __dbx_link here.
3760 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3762 * solib-irix.c (base_breakpoint): Delete global.
3763 (disable_break): Delete function.
3764 (enable_break): Use create_solib_event_breakpoint
3765 instead of deprecated_insert_raw_breakpoint.
3766 (irix_solib_handle_event): New function.
3767 (irix_solib_create_inferior_hook): Don't run the target or disable
3768 the mapping-complete breakpoint here.
3769 (_initialize_irix_solib): Install irix_solib_handle_event as
3770 so_ops->handle_event hook.
3772 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3773 Ulrich Weigand <uweigand@de.ibm.com>
3776 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3777 instead of read_memory_unsigned_integer.
3779 2014-09-12 Gary Benson <gbenson@redhat.com>
3781 * nat/linux-waitpid.c: Include common-defs.h.
3782 [GDBSERVER]: Add FIXME comment.
3783 [!GDBSERVER]: Don't include defs.h or signal.h.
3784 (linux_debug) [!GDBSERVER]: Remove empty block.
3786 2014-09-12 Gary Benson <gbenson@redhat.com>
3788 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3789 Don't include defs.h or server.h.
3791 2014-09-12 Gary Benson <gbenson@redhat.com>
3793 * nat/linux-btrace.c: Include common-defs.h.
3794 Don't include defs.h, server.h or gdbthread.h.
3795 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3797 2014-09-12 Gary Benson <gbenson@redhat.com>
3799 * common/agent.c: Include common-defs.h.
3800 Don't include defs.h or server.h.
3801 * common/buffer.c: Likewise.
3802 * common/common-debug.c: Likewise.
3803 * common/common-utils.c: Likewise.
3804 * common/errors.c: Likewise.
3805 * common/filestuff.c: Likewise.
3806 * common/format.c: Likewise.
3807 * common/gdb_vecs.c: Likewise.
3808 * common/print-utils.c: Likewise.
3809 * common/ptid.c: Likewise.
3810 * common/rsp-low.c: Likewise.
3811 * common/signals.c: Likewise.
3812 * common/vec.c: Likewise.
3813 * common/xml-utils.c: Likewise.
3814 * nat/linux-osdata.c: Likewise.
3815 * nat/linux-procfs.c: Likewise.
3816 * nat/linux-ptrace.c: Likewise.
3817 * nat/mips-linux-watch.c: Likewise.
3818 * target/waitstatus.c: Likewise.
3820 2014-09-12 Tom Tromey <tromey@redhat.com>
3821 Gary Benson <gbenson@redhat.com>
3823 * common/common-regcache.h: New file.
3824 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3825 * regcache.h: Include common-regcache.h.
3826 (regcache_read_pc): Don't declare.
3827 * regcache.c (get_thread_regcache_for_ptid): New function.
3828 * nat/linux-btrace.c: Don't include regcache.h.
3829 Include common-regcache.h.
3830 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3832 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3834 * regcache.h (struct regset): Declare.
3836 2014-09-11 Pedro Alves <palves@redhat.com>
3839 * main.c: Include "infrun.h".
3840 (catch_command_errors, catch_command_errors_const): Wait for the
3841 foreground command to complete.
3842 * top.c (maybe_wait_sync_command_done): New function, factored out
3844 (maybe_wait_sync_command_done): ... here.
3845 * top.h (maybe_wait_sync_command_done): New declaration.
3847 2014-09-11 Tom Tromey <tromey@redhat.com>
3848 Gary Benson <gbenson@redhat.com>
3850 * common/symbol.h: New file.
3851 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3852 * minsyms.c (find_minimal_symbol_address): New function.
3853 * common/agent.c: Include common/symbol.h.
3854 [!GDBSERVER]: Don't include objfiles.h.
3855 (agent_look_up_symbols): Use find_minimal_symbol_address.
3857 2014-09-11 Gary Benson <gbenson@redhat.com>
3859 * target/target.h (target_stop_ptid, target_continue_ptid):
3861 * target.c (target_stop_ptid, target_continue_ptid): New
3863 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3864 (agent_run_command): Always use target_stop_ptid and
3865 target_continue_ptid.
3867 2014-09-11 Tom Tromey <tromey@redhat.com>
3868 Gary Benson <gbenson@redhat.com>
3870 * target/target.h: New file.
3871 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3872 * target.h: Include target/target.h.
3873 (target_read_memory, target_write_memory): Don't declare.
3874 * target.c (target_read_uint32): New function.
3875 * common/agent.c: Include target/target.h.
3876 [!GDBSERVER]: Don't include target.h.
3877 (helper_thread_id): Type changed to uint32_t.
3878 (agent_get_helper_thread_id): Use target_read_uint32.
3879 (agent_run_command): Always use target_read_memory and
3880 target_write_memory.
3881 (agent_capability): Type changed to uint32_t.
3882 (agent_capability_check): Use target_read_uint32.
3884 2014-09-11 Gary Benson <gbenson@redhat.com>
3886 * common/common-debug.h (show_debug_regs): Declare.
3887 * common/common-debug.c (show_debug_regs): Define.
3888 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3889 all uses with show_debug_regs. Replace all uses that considered
3890 debug_hw_points as a multi-value integer with straight boolean
3892 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3893 with show_debug_regs.
3894 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3895 all uses with show_debug_regs.
3896 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3897 uses with show_debug_regs.
3899 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3901 * findvar.c (address_from_register): Handle targets requiring
3902 a special conversion routine even for plain pointer types.
3904 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3906 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3907 (store_register): Do not call exec_one_dummy_insn.
3909 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3911 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3912 dereference it first. Use value_enclosing_type instead of
3914 (ada_array_length): Likewise.
3916 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3918 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3919 Adjust function implementation and documentation accordingly.
3920 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3921 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3922 Update call to ada_value_ptr_subscript.
3924 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3926 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3927 instead of VAL's type.
3929 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3931 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3933 2014-09-09 Doug Evans <xdje42@gmail.com>
3936 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3937 last parameter to pkg-config, not first.
3938 * configure.ac: Pass --with-guile provided pkg-config path to
3939 GDB_GUILE_PROGRAM_NAMES.
3940 * configure: Regenerate.
3942 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3944 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3947 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3949 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3950 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3951 the list of sections determining GDB_OSABI_IRIX.
3953 2014-09-09 James Hogan <james.hogan@imgtec.com>
3955 * MAINTAINERS (Write After Approval): Add "James Hogan".
3957 2014-09-09 James Hogan <james.hogan@imgtec.com>
3959 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3961 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3963 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3965 2014-09-08 Doug Evans <xdje42@gmail.com>
3968 * guile.c: #include <signal.h>.
3969 (_initialize_guile): Block SIGCHLD while initializing Guile.
3971 Replaces the following, which is reverted.
3973 2014-07-26 Doug Evans <xdje42@gmail.com>
3976 * configure.ac: Add check for header gc/gc.h.
3977 Add check for function setenv.
3978 * configure: Regenerate.
3979 * config.in: Regenerate.
3980 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3982 2014-09-08 Doug Evans <xdje42@gmail.com>
3984 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3985 with named constant. Fix style of pointer comparison.
3986 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3988 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3991 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3992 decide whether we display the command on "show user".
3993 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3994 printing command name.
3995 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3996 * cli/cli-decode.c (cli_user_command_p): Create helper function
3997 to verify whether cmd_list_element is a user-defined command.
3999 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4002 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
4003 Fix goto out of TRY_CATCH.
4005 2014-09-06 Doug Evans <xdje42@gmail.com>
4006 Tom Tromey <tromey@redhat.com>
4009 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
4010 $_any_caller_matches.
4011 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
4012 * python/lib/gdb/function/caller_is.py: New file.
4014 2014-09-06 Doug Evans <xdje42@gmail.com>
4016 * infcmd.c (program_info): Fix typo.
4018 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
4021 * stap-probe.c (stap_parse_single_operand): Delete unused variable
4022 'number'. New variable 'has_digit'. Rewrite code to deal with
4023 subexpressions on SDT probes.
4025 2014-09-04 Pedro Alves <palves@redhat.com>
4027 * c-exp.y (parse_number): Skip handling base-switching prefixes if
4028 the input is only one character long.
4030 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
4033 * f-valprint.c (f_val_print): Specify the correct print option to
4034 use when printing integer values.
4036 2014-09-04 Gary Benson <gbenson@redhat.com>
4038 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
4039 Remove code to cope with LWPs wrapped as PIDs.
4040 Add assertions to ensure no wrapped LWPs are passed.
4042 2014-09-04 Pedro Alves <palves@redhat.com>
4044 * value.c (value_ranges_copy_adjusted): New function, factored out
4046 (value_contents_copy_raw): ... here.
4047 (unpack_value_bits_as_long_1): Rename back to ...
4048 (unpack_bits_as_long): ... this. Remove 'original_value' and
4049 'result' parameters. Change return type to LONGEST.
4050 (unpack_value_bits_as_long): Delete.
4051 (unpack_value_field_as_long_1): Delete.
4052 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
4053 (unpack_value_bitfield): New function.
4054 (value_field_bitfield): Reimplement using unpack_value_bitfield.
4055 (value_fetch_lazy): Use unpack_value_bitfield.
4056 * value.h (unpack_value_bits_as_long): Delete declaration.
4058 2014-09-03 Sasha Smundak <asmundak@google.com>
4060 * python/py-frame.c (frapy_read_register): New function.
4062 2014-09-03 James Hogan <james.hogan@imgtec.com>
4064 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
4065 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
4067 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
4070 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
4072 (add_cmd): Set "completer_handle_brkchars" to NULL.
4073 * cli/cli-decode.h (struct cmd_list_element)
4074 <completer_handle_brkchars>: New field.
4075 * command.h (completer_ftype_void): New typedef.
4076 (set_cmd_completer_handle_brkchars): New prototype.
4077 * completer.c (set_gdb_completion_word_break_characters): New
4079 (complete_line_internal): Call "completer_handle_brkchars"
4080 callback from command.
4081 * completer.h: Include "command.h".
4082 (set_gdb_completion_word_break_characters): New prototype.
4083 * python/py-cmd.c (cmdpy_completer_helper): New function.
4084 (cmdpy_completer_handle_brkchars): New function.
4085 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
4086 (cmdpy_init): Set completer_handle_brkchars to
4087 cmdpy_completer_handle_brkchars.
4089 2014-09-03 Gary Benson <gbenson@redhat.com>
4091 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
4092 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
4093 Loop conditions changed to equivalent form.
4094 (struct x86_debug_reg_state): Updated dr_ref_count comment.
4095 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
4096 ALL_DEBUG_ADDRESS_REGISTERS.
4098 2014-09-03 Joel Brobecker <brobecker@adacore.com>
4100 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4103 2014-09-02 Doug Evans <dje@google.com>
4105 * typeprint.c (find_global_typedef): Fix comment.
4107 2014-09-02 Gary Benson <gbenson@redhat.com>
4109 * i386-nat.h: Renamed as...
4110 * x86-nat.h: New file. All type, function and variable name
4111 prefixes changed from "i386_" to "x86_". All references updated.
4112 * i386-nat.c: Renamed as...
4113 * x86-nat.c: New file. All type, function and variable name
4114 prefixes changed from "i386_" to "x86_". All references updated.
4115 * common/i386-xstate.h: Renamed as...
4116 * common/x86-xstate.h: New file. All type, function and variable
4117 name prefixes changed from "i386_" to "x86_". All references
4119 * nat/i386-cpuid.h: Renamed as...
4120 * nat/x86-cpuid.h: New file. All type, function and variable name
4121 prefixes changed from "i386_" to "x86_". All references updated.
4122 * nat/i386-gcc-cpuid.h: Renamed as...
4123 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4124 name prefixes changed from "i386_" to "x86_". All references
4126 * nat/i386-dregs.h: Renamed as...
4127 * nat/x86-dregs.h: New file. All type, function and variable name
4128 prefixes changed from "i386_" to "x86_". All references updated.
4129 * nat/i386-dregs.c: Renamed as...
4130 * nat/x86-dregs.c: New file. All type, function and variable name
4131 prefixes changed from "i386_" to "x86_". All references updated.
4133 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4135 * varobj.c (_initialize_varobj): Move to the end of file.
4137 2014-08-29 Gary Benson <gbenson@redhat.com>
4139 * common/common-exceptions.h: New file.
4140 * common/common-exceptions.c: Likewise.
4141 * Makefile.in (SFILES): Add common/common-exceptions.c.
4142 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4143 (COMMON_OBS): Add common-exceptions.o.
4144 (common-exceptions.o): New rule.
4145 * exceptions.h (common-exceptions.h): Include.
4146 (gdb_setjmp.h): Do not include.
4147 (return_reason): Moved to common-exceptions.h.
4148 (enum return_reason): Likewise.
4149 (RETURN_MASK): Likewise.
4150 (typedef return_mask): Likewise.
4151 (enum errors): Likewise.
4152 (struct gdb_exception): Likewise.
4153 (exceptions_state_mc_init): Likewise.
4154 (exceptions_state_mc_action_iter): Likewise.
4155 (exceptions_state_mc_action_iter_1): Likewise.
4156 (TRY_CATCH): Likewise.
4157 (throw_exception): Likewise.
4158 (throw_verror): Likewise.
4159 (throw_vquit): Likewise.
4160 (throw_error): Likewise.
4161 (throw_quit): Likewise.
4162 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4163 (enum catcher_action): Likewise.
4164 (struct catcher): Likewise.
4165 (current_catcher): Likewise.
4166 (catcher_list_size): Likewise.
4167 (exceptions_state_mc_init): Likewise.
4168 (catcher_pop): Likewise.
4169 (exceptions_state_mc): Likewise.
4170 (exceptions_state_mc_action_iter): Likewise.
4171 (exceptions_state_mc_action_iter_1): Likewise.
4172 (throw_exception): Likewise.
4173 (exception_messages): Likewise.
4174 (exception_messages_size): Likewise.
4175 (throw_it): Likewise.
4176 (throw_verror): Likewise.
4177 (throw_vquit): Likewise.
4178 (throw_error): Likewise.
4179 (throw_quit): Likewise.
4180 (prepare_to_throw_exception): New function.
4182 2014-08-29 Gary Benson <gbenson@redhat.com>
4184 * common/gdb_setjmp.h: New file.
4185 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4186 * configure.ac: Move sigsetjmp check...
4187 * common/common.m4: ...here.
4188 * configure: Regenerate.
4189 * cp-support.c (SIGJMP_BUF): Delete.
4190 (SIGSETJMP): Likewise.
4191 (SIGLONGJMP): Likewise.
4192 * exceptions.h (gdb_setjmp.h): Include.
4193 (setjmp.h): Do not include.
4194 (EXCEPTIONS_SIGJMP_BUF): Delete.
4195 (EXCEPTIONS_SIGSETJMP): Likewise.
4196 (EXCEPTIONS_SIGLONGJMP): Likewise.
4197 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4199 * exceptions.c: Likewise.
4201 2014-08-29 Gary Benson <gbenson@redhat.com>
4203 * cleanups.h: Moved to...
4204 * common/cleanups.h: New file.
4205 * cleanups.c: Moved to...
4206 * common/cleanups.c: New file. Include common-defs.h and
4207 cleanups.h. Do not include defs.h.
4208 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4209 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4210 (cleanups.o): New rule.
4212 2014-08-29 Gary Benson <gbenson@redhat.com>
4214 * common/errors.h (internal_warning): New declaration.
4215 (internal_vwarning): Likewise.
4216 * common/errors.c (internal_warning): New function.
4217 * utils.h (internal_warning): Don't declare.
4218 (internal_vwarning): Likewise.
4219 * utils.c (internal_warning): Removed.
4221 2014-08-29 Gary Benson <gbenson@redhat.com>
4223 * main.c (captured_main): Use warning during startup.
4224 Prefix startup warning messages with command name.
4226 2014-08-29 Gary Benson <gbenson@redhat.com>
4228 * main.c (captured_main): Handle usage errors with error.
4230 2014-08-29 Gary Benson <gbenson@redhat.com>
4232 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4233 exit pair with a call to error. Wrap the message with _().
4235 2014-08-29 Gary Benson <gbenson@redhat.com>
4237 * main.c (captured_main): Replace a fprintf/exit
4238 pair with a call to error. Wrap the message with _().
4240 2014-08-29 Gary Benson <gbenson@redhat.com>
4242 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4243 pairs with calls to error. Wrap the message with _().
4245 2014-08-29 Gary Benson <gbenson@redhat.com>
4247 * utils.c (vwarning): Protect calls to target_terminal_ours
4250 2014-08-29 Gary Benson <gbenson@redhat.com>
4252 * exceptions.c (print_flush): Protect calls to
4253 target_terminal_ours and wrap_here.
4255 2014-08-29 Gary Benson <gbenson@redhat.com>
4257 * utils.h (filtered_printing_initialized): New declaration.
4258 * utils.c (abort_with_message): New function.
4259 (internal_vproblem): Use abort_with_message for first level
4260 recursive internal problems, and if gdb_stderr is not set up.
4261 Protect calls to target_terminal_ours, begin_line and query.
4263 2014-08-28 Doug Evans <dje@google.com>
4265 * symtab.c (in_prologue): Move definition to better spot.
4266 (skip_prologue_using_sal): Ditto.
4268 2014-08-28 Doug Evans <dje@google.com>
4270 * symtab.c (find_function_start_sal): Move definition to better spot.
4272 2014-08-28 Yao Qi <yao@codesourcery.com>
4274 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4275 found_stack_adjust in forward scan. Remove condition check
4276 on found_stack_adjust which is always true. Indent the code.
4278 2014-08-28 Yao Qi <yao@codesourcery.com>
4280 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4281 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4282 (dwarf_decode_lines): Remove argument
4283 want_line_info. Remove condition check on want_line_info.
4286 2014-08-27 Doug Evans <dje@google.com>
4288 * dwarf2read.c (dwarf_record_line): Fix typo.
4290 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4292 * target.h (struct target_ops::to_terminal_save_ours): Remove
4294 (target_terminal_save_ours): Remove macro.
4295 * target-delegates.c: Regenerate.
4296 * inf-child.c (inf_child_target): Don't set the nonexistent
4297 field to_terminal_save_ours.
4298 * inferior.h (child_terminal_save_ours): Remove declaration.
4299 * terminal.h (gdb_save_tty_state): New declaration.
4300 * inflow.c (child_terminal_save_ours): Rename to ...
4301 (gdb_save_tty_state): ... this.
4302 * tui/tui.c: Include terminal.h.
4303 (tui_enable): Use gdb_save_tty_state instead of
4304 target_terminal_save_ours.
4305 (tui_disable): Likewise.
4307 2014-08-25 Doug Evans <dje@google.com>
4309 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4310 Pass NULL instead of 0 for context pointer.
4312 2014-08-25 Yao Qi <yao@codesourcery.com>
4314 * dwarf2read.c: Fix grammatical error.
4316 2014-08-24 Yao Qi <yao@codesourcery.com>
4318 * dwarf2read.c (scan_partial_symbols): Update comments.
4319 Rename argument 'need_pc' with 'set_addrmap'.
4320 (add_partial_namespace): Rename argument 'need_pc' with
4322 (add_partial_module): Likewise.
4323 (add_partial_subprogram): Likewise. Update comments.
4324 (dwarf2_name): Fix typo.
4326 2014-08-22 Doug Evans <dje@google.com>
4329 * dwarf2read.c (dwarf_record_line_p): New function.
4330 (dwarf_decode_lines_1): Ignore subsequent line number entries
4331 for the same line if any entry had a non-zero discriminator.
4333 2014-08-22 Doug Evans <dje@google.com>
4335 * buildsym.h (record_line_ftype): New typedef.
4336 (record_line): Use it.
4337 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4338 (dwarf_decode_lines_1): Call them.
4340 2014-08-22 Yao Qi <yao@codesourcery.com>
4342 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4343 (ctf_end): Remove code.
4345 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4347 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4348 (linux_make_corefile_notes): call update_thread_list, protected against
4351 2014-08-21 Pedro Alves <palves@redhat.com>
4353 * infcmd.c (attach_command): Remove comment.
4355 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4357 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4358 unsigned LONGEST to ULONGEST.
4360 2014-08-20 Pedro Alves <palves@redhat.com>
4362 * Makefile.in (check-read1): New rule.
4364 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4366 * value.c (value_from_contents_and_address): Strip resolved_type's
4367 typedef layers before checking its TYPE_DATA_LOCATION.
4369 2014-08-20 Pedro Alves <palves@redhat.com>
4371 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4373 2014-08-20 Yao Qi <yao@codesourcery.com>
4375 * amd64-tdep.c (amd64_classify): Add a blank line after the
4376 example. Move "*/" to a new line.
4377 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4378 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4379 * dwarf2read.c (psymtab_include_file_name): Likewise.
4381 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4382 Pedro Alves <palves@redhat.com>
4386 * ada-lang.c (coerce_unspec_val_to_type): Use
4387 value_contents_copy_raw.
4388 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4389 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4390 * cp-valprint.c (cp_print_value_fields): Let the common printing
4391 code handle optimized out values.
4392 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4393 * d-valprint.c (dynamic_array_type): Use
4394 value_bits_any_optimized_out.
4395 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4396 check_any_valid fields.
4397 (check_pieced_value_bits): Delete and inline ...
4398 (check_pieced_synthetic_pointer): ... here.
4399 (check_pieced_value_validity): Delete.
4400 (check_pieced_value_invalid): Delete.
4401 (pieced_value_funcs): Remove check_validity and check_any_valid
4403 (read_pieced_value): Use mark_value_bits_optimized_out.
4404 (write_pieced_value): Switch to use
4405 mark_value_bytes_optimized_out.
4406 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4407 of assuming the whole value is optimized out.
4408 * findvar.c (read_frame_register_value): Remove special handling
4409 of optimized out registers.
4410 (value_from_register): Use mark_value_bytes_optimized_out.
4411 * frame-unwind.c (frame_unwind_got_optimized): Use
4412 mark_value_bytes_optimized_out.
4413 * jv-valprint.c (java_value_print): Adjust.
4414 (java_print_value_fields): Let the common printing code handle
4415 optimized out values.
4416 * mips-tdep.c (mips_print_register): Remove special handling of
4417 optimized out registers.
4418 * opencl-lang.c (lval_func_check_validity): Delete.
4419 (lval_func_check_any_valid): Delete.
4420 (opencl_value_funcs): Remove check_validity and check_any_valid
4422 * p-valprint.c (pascal_object_print_value_fields): Let the common
4423 printing code handle optimized out values.
4424 * stack.c (read_frame_arg): Remove special handling of optimized
4425 out values. Fetch both VAL and ENTRYVAL before comparing
4426 contents. Adjust to value_available_contents_eq rename.
4427 * valprint.c (valprint_check_validity)
4428 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4429 (val_print_array_elements): Adjust.
4430 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4431 (value_bits_any_optimized_out): New function.
4432 (value_entirely_covered_by_range_vector): New function, factored
4433 out from value_entirely_unavailable.
4434 (value_entirely_unavailable): Reimplement.
4435 (value_entirely_optimized_out): New function.
4436 (insert_into_bit_range_vector): New function, factored out from
4437 mark_value_bits_unavailable.
4438 (mark_value_bits_unavailable): Reimplement.
4439 (struct ranges_and_idx): New struct.
4440 (find_first_range_overlap_and_match): New function, factored out
4441 from value_available_contents_bits_eq.
4442 (value_available_contents_bits_eq): Rename to ...
4443 (value_contents_bits_eq): ... this. Check both unavailable
4444 contents and optimized out contents.
4445 (value_available_contents_eq): Rename to ...
4446 (value_contents_eq): ... this.
4447 (allocate_value_lazy): Remove reference to the old optimized_out
4449 (allocate_optimized_out_value): Use
4450 mark_value_bytes_optimized_out.
4451 (require_not_optimized_out): Adjust to check whether the
4452 optimized_out vec is empty.
4453 (ranges_copy_adjusted): New function, factored out from
4454 value_contents_copy_raw.
4455 (value_contents_copy_raw): Also copy the optimized out ranges.
4456 Assert the destination ranges aren't optimized out.
4457 (value_contents_copy): Update comment, remove call to
4458 require_not_optimized_out.
4459 (value_contents_equal): Adjust to check whether the optimized_out
4461 (set_value_optimized_out, value_optimized_out_const): Delete.
4462 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4464 (value_entirely_optimized_out, value_bits_valid): Delete.
4465 (value_copy): Take a VEC copy of the 'optimized_out' field.
4466 (value_primitive_field): Remove special handling of optimized out.
4467 (value_fetch_lazy): Assert that lazy values have no unavailable
4468 regions. Use value_bits_any_optimized_out. Remove some special
4469 handling for optimized out values.
4470 * value.h: Add intro comment about <optimized out> and
4472 (struct lval_funcs): Remove check_validity and check_any_valid
4474 (set_value_optimized_out, value_optimized_out_const): Remove.
4475 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4477 (value_bits_any_optimized_out): New declaration.
4478 (value_bits_valid): Delete declaration.
4479 (value_available_contents_eq): Rename to ...
4480 (value_contents_eq): ... this, and extend comments.
4482 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4484 Fix -fsanitize=address on unreadable inferior strings.
4485 * valprint.c (val_print_string): Fix access before BUFFER.
4487 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4489 * target.c (target_struct_size): Remove.
4490 (target_struct_allocsize): Remove.
4491 (DEFAULT_ALLOCSIZE): Remove.
4492 (target_ops_p): New typedef.
4493 (DEF_VEC_P (target_ops_p)): New vector type.
4494 (target_structs): Change type to VEC (target_ops_p).
4495 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4496 (find_default_run_target): Rewrite for loop following changes to
4499 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4501 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4502 Adjust code accordingly. Adjust function description comment.
4504 2014-08-19 Yao Qi <yao@codesourcery.com>
4506 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4509 2014-08-19 Alan Modra <amodra@gmail.com>
4511 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4512 * config.in: Regenerate.
4513 * configure: Regenerate.
4515 2014-08-19 Tom Tromey <tromey@redhat.com>
4516 Gary Benson <gbenson@redhat.com>
4518 * common/common-debug.h: New file.
4519 * common/common-debug.c: Likewise.
4520 * debug.c: Likewise.
4521 * Makefile.in (SFILES): Add common/common-debug.c.
4522 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4523 (COMMON_OBS): Add common-debug.o and debug.o.
4524 (common-debug.o): New rule.
4525 * common/common-defs.h: Include common-debug.h.
4526 * common/agent.c (debug_agent_printf): New function.
4527 (DEBUG_AGENT): Redefine.
4528 * nat/i386-dregs.c (debug_printf): Undefine.
4530 2014-08-19 Gary Benson <gbenson@redhat.com>
4532 * common/common-defs.h: Include print-utils.h.
4533 * utils.h: Do not include print-utils.h.
4535 2014-08-19 Tom Tromey <tromey@redhat.com>
4536 Gary Benson <gbenson@redhat.com>
4538 * common/common-types.h: New file.
4539 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4540 * common/common-defs.h: Include common-types.h.
4541 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4544 2014-08-19 Tom Tromey <tromey@redhat.com>
4545 Gary Benson <gbenson@redhat.com>
4547 * common/errors.h: New file.
4548 * common/errors.c: Likewise.
4549 * Makefile.in (SFILES): Add common/errors.c.
4550 (HFILES_NO_SRCDIR): Add common/errors.h.
4551 (COMMON_OBS): Add errors.o.
4552 (errors.o): New rule.
4553 * common/common-defs.h: Include errors.h.
4554 * utils.h (perror_with_name, error, verror, warning, vwarning):
4556 * common/common-utils.h: (malloc_failure, internal_error):
4559 2014-08-19 Gary Benson <gbenson@redhat.com>
4561 * utils.c (internal_vproblem): Always print the message.
4563 2014-08-18 Doug Evans <dje@google.com>
4565 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4567 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4569 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4570 Return 0 if TYPE is dynamic.
4571 (print_range): Add handling of dynamic ranges.
4573 2014-08-18 Keven Boell <keven.boell@intel.com>
4574 Joel Brobecker <brobecker@adacore.com>
4576 * gdbtypes.h (struct main_type): Add field "data_location".
4577 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4578 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4579 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4580 a dynamic data location.
4581 (resolve_dynamic_type): Add DW_AT_data_location handling.
4582 (copy_recursive, copy_type): Copy the data_location information
4584 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4585 * value.c (value_from_contents_and_address): Add
4586 DW_AT_data_location handling.
4588 2014-08-18 Keven Boell <keven.boell@intel.com>
4589 Joel Brobecker <brobecker@adacore.com>
4591 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4592 field "get_object_address".
4593 * dwarf2expr.c (execute_stack_op): Add handling for
4594 DW_OP_push_object_address.
4595 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4596 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4597 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4598 (dwarf_expr_get_obj_addr): New function.
4599 (dwarf_expr_ctx_funcs): Add get_object_address field.
4600 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4601 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4602 (dwarf2_evaluate_property): Add parameter "address". Use it.
4603 (needs_get_obj_addr): New function.
4604 (needs_frame_ctx_funcs): Add get_object_address field.
4605 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4606 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4607 (resolve_dynamic_array): Likewise.
4609 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4611 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4612 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4613 fixed value for records and unions for which some GNAT encodings
4616 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4618 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4619 rewrite to avoid "else if" and "else" constructs. Should be
4620 a no-op in practice.
4622 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4624 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4627 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4630 * eval.c: Update all calls to find_overload_match.
4631 * valarith.c: Likewise.
4632 (value_user_defined_cpp_op, value_user_defined_op): New
4633 argument NOSIDE. Update all callers.
4634 * valops.c (find_overload_match): New argument NOSIDE.
4635 * value.h (find_overload_match): Update signature.
4637 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4639 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4640 'items' methods instead of 'iteritems' method on dictionaries.
4642 2014-08-15 Doug Evans <dje@google.com>
4644 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4647 2014-08-15 Doug Evans <dje@google.com>
4649 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4651 2014-08-15 Doug Evans <dje@google.com>
4653 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4655 2014-08-15 Doug Evans <dje@google.com>
4657 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4660 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4662 * dcache.h: Include target.h, to avoid compile time warnings.
4664 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4666 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4667 frame_info" partial declaration.
4668 * gdbarch.h: Regenerate.
4670 2014-08-15 Yao Qi <yao@codesourcery.com>
4672 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4673 Add parameter 'decode_for_pst_p'. Callers update.
4675 2014-08-13 Yao Qi <yao@codesourcery.com>
4678 * configure.ac: Use local variable 'pos'.
4679 * configure: Regenerated.
4681 2014-08-11 Doug Evans <dje@google.com>
4683 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4684 message, it is redundant with "Reading symbols from ..." message.
4686 2014-08-10 Doug Evans <xdje42@gmail.com>
4688 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4690 2014-08-09 Yao Qi <yao@codesourcery.com>
4693 * remote.c (remote_xfer_partial): Remove dead code.
4695 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4697 * ia64-linux-tdep.c: Include "regset.h".
4698 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4699 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4700 (ia64_linux_supply_fpregset): New function.
4701 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4702 (ia64_linux_regset_from_core_section): New function.
4703 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4706 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4708 * m68klinux-tdep.c: Include "regset.h".
4709 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4710 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4711 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4712 (m68k_linux_regset_from_core_section): New function.
4713 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4716 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4718 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4719 function. Move logic to...
4720 (tilegx_linux_regmap): ... this new register map.
4721 (tilegx_linux_regset): Refer to register map, replace supply
4722 method by regcache_supply_regset, and add collect method.
4723 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4724 TILEGX_FIRST_EASY_REGNUM.
4726 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4728 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4729 that calls regcache_supply_regset and handles the EPC register
4730 separately. Move main logic to...
4731 (score7_linux_gregmap): ... this new register map.
4732 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4733 (score7_linux_gregset): Refer to register map. Add collect method.
4734 (score7_linux_regset_from_core_section): Replace
4735 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4736 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4737 (struct regset): Delete unused forward declaraction.
4738 (struct pt_regs): Delete structure definition.
4739 (elf_gregset_t): Delete typedef.
4741 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4743 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4744 (nios2_core_regset): Add collect method.
4746 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4748 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4749 platform-independent and don't write to read-only input buffer.
4750 (m32r_linux_collect_gregset): New function.
4751 (m32r_linux_gregset): Add collect method.
4753 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4755 * hppa-linux-tdep.c (greg_map): Rename to...
4756 (hppa_linux_gregmap): ... this. Also convert to
4757 regcache_map_entry format.
4758 (hppa_linux_supply_regset): Delete function.
4759 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4760 (hppa_linux_fpregmap): ... this new register map.
4761 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4762 register map, replace supply method by regcache_supply_regset, and
4763 add collect method regcache_collect_regset.
4765 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4767 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4768 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4769 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4770 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4771 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4772 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4773 (frv_linux_supply_gregset): Replace main logic by call to
4774 regcache_supply_regset, but keep clearing gr32-gr63.
4775 (frv_linux_supply_fpregset): Delete function.
4776 (frv_linux_gregset): Refer to appropriate register map and add
4777 regcache_collect_regset as the collect method.
4778 (frv_linux_fpregset): Likewise. Also exchange the supply method
4779 by regcache_supply_regset.
4781 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4783 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4784 by call to alpha_supply_int_regs.
4785 (alpha_linux_collect_gregset): New function.
4786 (alpha_linux_supply_fpregset): Replace logic by call to
4787 alpha_supply_fp_regs.
4788 (alpha_linux_collect_fpregset): New function.
4789 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4791 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4793 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4794 by call to regcache_collect_regset.
4795 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4796 instead of aarch64_linux_supply_gregset/_fpregset.
4797 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4798 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4799 header file instead.
4800 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4801 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4802 functions. Move logic to ...
4803 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4805 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4806 refer to new register maps, replace *_regset_from_core by
4807 regcache_supply_regset, and also use regcache_collect_regset.
4808 * aarch64-linux-tdep.h: Include "regset.h".
4809 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4811 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4812 macros, moved from C source file.
4813 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4814 variable declarations.
4816 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4818 * s390-linux-nat.c: Include "regset.h".
4819 (regmap_gregset): Delete macro.
4820 (s390_64_regmap_gregset): New register map for
4821 regcache_supply/_collect_regset.
4822 (s390_64_gregset): New regset.
4823 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4824 (regmap_fpregset): Delete macro.
4825 (s390_native_supply, s390_native_collect): Delete functions.
4826 (supply_gregset, fill_gregset): Replace s390-specific regmap
4827 handling by a call to regcache_supply/_collect_regset.
4828 (supply_fpregset, fill_fpregset): Call regcache_supply/
4829 _collect_regset instead of s390_native_supply/_collect.
4830 (fetch_regset, store_regset): Likewise. Also change the last
4831 parameter to a regset instead of a regmap.
4832 (s390_linux_fetch_inferior_registers)
4833 (390_linux_store_inferior_registers): Adjust last parameter in
4834 calls to fetch_regset and store_regset.
4835 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4836 (s390_gregmap): ... this. Also make static const and convert to
4837 regcache_map_entry format.
4838 (s390x_regmap_gregset): Delete.
4839 (s390_regmap_fpregset): Rename to...
4840 (s390_fpregmap): ... this. Make static const and convert to
4841 regcache_map_entry format.
4842 (s390_regmap_upper, s390_regmap_last_break)
4843 (s390x_regmap_last_break, s390_regmap_system_call)
4844 (s390_regmap_tdb): Likewise.
4845 (s390_supply_regset, s390_collect_regset): Remove functions.
4846 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4848 (s390_gregset, s390_fpregset, s390_upper_regset)
4849 (s390_last_break_regset, s390x_last_break_regset)
4850 (s390_system_call_regset, s390_tdb_regset): Make global and
4851 replace s390_supply/_collect_regset by regcache_supply/
4853 (s390x_gregset): Delete.
4854 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4855 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4856 (s390_regmap_fpregset, s390_regmap_last_break)
4857 (s390x_regmap_last_break, s390_regmap_system_call)
4858 (s390_regmap_tdb): Delete global variable declarations.
4859 (s390_gregset, s390_fpregset, s390_last_break_regset)
4860 (s390x_last_break_regset, s390_system_call_regset)
4861 (s390_tdb_regset): New global variable declarations.
4863 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4865 * regcache.c: Include "regset.h".
4866 (regcache_transfer_regset): New local function.
4867 (regcache_supply_regset, regcache_collect_regset): New functions.
4868 * regcache.h (struct regcache_map_entry): New structure.
4869 (REGCACHE_MAP_SKIP): New enum value.
4870 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4872 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4874 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4875 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4876 (ppc_linux_collect_gregset ): Likewise.
4877 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4878 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4879 (ppc_collect_vrregset): Likewise.
4880 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4883 2014-08-07 Yao Qi <yao@codesourcery.com>
4885 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4886 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4887 * remote.c (remote_read_bytes): Likewise.
4889 2014-08-07 Yao Qi <yao@codesourcery.com>
4891 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4893 2014-08-07 Yao Qi <yao@codesourcery.com>
4896 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4897 TARGET_XFER_OK instead of 0.
4899 2014-08-07 Gary Benson <gbenson@redhat.com>
4901 * common/common-defs.h: Include errno.h.
4902 * defs.h: Do not include errno.h.
4903 * ada-typeprint.c: Likewise.
4904 * c-typeprint.c: Likewise.
4905 * core-regset.c: Likewise.
4906 * corefile.c: Likewise.
4907 * corelow.c: Likewise.
4908 * event-loop.c: Likewise.
4909 * f-typeprint.c: Likewise.
4910 * gnu-nat.c: Likewise.
4911 * go32-nat.c: Likewise.
4912 * i386gnu-nat.c: Likewise.
4913 * m2-typeprint.c: Likewise.
4914 * nat/linux-btrace.c: Likewise.
4915 * p-typeprint.c: Likewise.
4916 * procfs.c: Likewise.
4917 * remote-sim.c: Likewise.
4918 * rs6000-nat.c: Likewise.
4919 * target.c: Likewise.
4920 * typeprint.c: Likewise.
4921 * ui-file.c: Likewise.
4922 * valops.c: Likewise.
4923 * valprint.c: Likewise.
4925 2014-08-07 Gary Benson <gbenson@redhat.com>
4927 * common/common-defs.h: Include string.h.
4928 * aarch64-tdep.c: Do not include string.h.
4929 * ada-exp.y: Likewise.
4930 * ada-lang.c: Likewise.
4931 * ada-lex.l: Likewise.
4932 * ada-typeprint.c: Likewise.
4933 * ada-valprint.c: Likewise.
4934 * aix-thread.c: Likewise.
4935 * alpha-linux-tdep.c: Likewise.
4936 * alpha-mdebug-tdep.c: Likewise.
4937 * alpha-nat.c: Likewise.
4938 * alpha-osf1-tdep.c: Likewise.
4939 * alpha-tdep.c: Likewise.
4940 * alphanbsd-tdep.c: Likewise.
4941 * amd64-dicos-tdep.c: Likewise.
4942 * amd64-linux-tdep.c: Likewise.
4943 * amd64-nat.c: Likewise.
4944 * amd64-sol2-tdep.c: Likewise.
4945 * amd64fbsd-tdep.c: Likewise.
4946 * amd64obsd-tdep.c: Likewise.
4947 * arch-utils.c: Likewise.
4948 * arm-linux-nat.c: Likewise.
4949 * arm-linux-tdep.c: Likewise.
4950 * arm-tdep.c: Likewise.
4951 * arm-wince-tdep.c: Likewise.
4952 * armbsd-tdep.c: Likewise.
4953 * armnbsd-nat.c: Likewise.
4954 * armnbsd-tdep.c: Likewise.
4955 * armobsd-tdep.c: Likewise.
4956 * avr-tdep.c: Likewise.
4957 * ax-gdb.c: Likewise.
4958 * ax-general.c: Likewise.
4959 * bcache.c: Likewise.
4960 * bfin-tdep.c: Likewise.
4961 * breakpoint.c: Likewise.
4962 * build-id.c: Likewise.
4963 * buildsym.c: Likewise.
4964 * c-exp.y: Likewise.
4965 * c-lang.c: Likewise.
4966 * c-typeprint.c: Likewise.
4967 * c-valprint.c: Likewise.
4968 * charset.c: Likewise.
4969 * cli-out.c: Likewise.
4970 * cli/cli-cmds.c: Likewise.
4971 * cli/cli-decode.c: Likewise.
4972 * cli/cli-dump.c: Likewise.
4973 * cli/cli-interp.c: Likewise.
4974 * cli/cli-logging.c: Likewise.
4975 * cli/cli-script.c: Likewise.
4976 * cli/cli-setshow.c: Likewise.
4977 * cli/cli-utils.c: Likewise.
4978 * coffread.c: Likewise.
4979 * common/agent.c: Likewise.
4980 * common/buffer.c: Likewise.
4981 * common/buffer.h: Likewise.
4982 * common/common-utils.c: Likewise.
4983 * common/filestuff.c: Likewise.
4984 * common/filestuff.c: Likewise.
4985 * common/format.c: Likewise.
4986 * common/print-utils.c: Likewise.
4987 * common/rsp-low.c: Likewise.
4988 * common/signals.c: Likewise.
4989 * common/vec.h: Likewise.
4990 * common/xml-utils.c: Likewise.
4991 * core-regset.c: Likewise.
4992 * corefile.c: Likewise.
4993 * corelow.c: Likewise.
4994 * cp-abi.c: Likewise.
4995 * cp-name-parser.y: Likewise.
4996 * cp-support.c: Likewise.
4997 * cp-valprint.c: Likewise.
4998 * cris-tdep.c: Likewise.
4999 * d-exp.y: Likewise.
5000 * darwin-nat.c: Likewise.
5001 * dbxread.c: Likewise.
5002 * dcache.c: Likewise.
5003 * demangle.c: Likewise.
5004 * dicos-tdep.c: Likewise.
5005 * disasm.c: Likewise.
5006 * doublest.c: Likewise.
5007 * dsrec.c: Likewise.
5008 * dummy-frame.c: Likewise.
5009 * dwarf2-frame.c: Likewise.
5010 * dwarf2loc.c: Likewise.
5011 * dwarf2read.c: Likewise.
5012 * elfread.c: Likewise.
5013 * environ.c: Likewise.
5015 * event-loop.c: Likewise.
5016 * exceptions.c: Likewise.
5018 * expprint.c: Likewise.
5019 * f-exp.y: Likewise.
5020 * f-lang.c: Likewise.
5021 * f-typeprint.c: Likewise.
5022 * f-valprint.c: Likewise.
5023 * fbsd-nat.c: Likewise.
5024 * findcmd.c: Likewise.
5025 * findvar.c: Likewise.
5026 * fork-child.c: Likewise.
5027 * frame.c: Likewise.
5028 * frv-linux-tdep.c: Likewise.
5029 * frv-tdep.c: Likewise.
5031 * gdb_bfd.c: Likewise.
5032 * gdbarch.c: Likewise.
5033 * gdbarch.sh: Likewise.
5034 * gdbtypes.c: Likewise.
5035 * gnu-nat.c: Likewise.
5036 * gnu-v2-abi.c: Likewise.
5037 * gnu-v3-abi.c: Likewise.
5038 * go-exp.y: Likewise.
5039 * go-lang.c: Likewise.
5040 * go32-nat.c: Likewise.
5041 * guile/guile.c: Likewise.
5042 * guile/scm-auto-load.c: Likewise.
5043 * hppa-hpux-tdep.c: Likewise.
5044 * hppa-linux-nat.c: Likewise.
5045 * hppanbsd-tdep.c: Likewise.
5046 * hppaobsd-tdep.c: Likewise.
5047 * i386-cygwin-tdep.c: Likewise.
5048 * i386-dicos-tdep.c: Likewise.
5049 * i386-linux-tdep.c: Likewise.
5050 * i386-nto-tdep.c: Likewise.
5051 * i386-sol2-tdep.c: Likewise.
5052 * i386-tdep.c: Likewise.
5053 * i386bsd-tdep.c: Likewise.
5054 * i386gnu-nat.c: Likewise.
5055 * i386nbsd-tdep.c: Likewise.
5056 * i386obsd-tdep.c: Likewise.
5057 * i387-tdep.c: Likewise.
5058 * ia64-libunwind-tdep.c: Likewise.
5059 * ia64-linux-nat.c: Likewise.
5060 * inf-child.c: Likewise.
5061 * inf-ptrace.c: Likewise.
5062 * inf-ttrace.c: Likewise.
5063 * infcall.c: Likewise.
5064 * infcmd.c: Likewise.
5065 * inflow.c: Likewise.
5066 * infrun.c: Likewise.
5067 * interps.c: Likewise.
5068 * iq2000-tdep.c: Likewise.
5069 * irix5-nat.c: Likewise.
5070 * jv-exp.y: Likewise.
5071 * jv-lang.c: Likewise.
5072 * jv-typeprint.c: Likewise.
5073 * jv-valprint.c: Likewise.
5074 * language.c: Likewise.
5075 * linux-fork.c: Likewise.
5076 * linux-nat.c: Likewise.
5077 * lm32-tdep.c: Likewise.
5078 * m2-exp.y: Likewise.
5079 * m2-typeprint.c: Likewise.
5080 * m32c-tdep.c: Likewise.
5081 * m32r-linux-nat.c: Likewise.
5082 * m32r-linux-tdep.c: Likewise.
5083 * m32r-rom.c: Likewise.
5084 * m32r-tdep.c: Likewise.
5085 * m68hc11-tdep.c: Likewise.
5086 * m68k-tdep.c: Likewise.
5087 * m68kbsd-tdep.c: Likewise.
5088 * m68klinux-nat.c: Likewise.
5089 * m68klinux-tdep.c: Likewise.
5090 * m88k-tdep.c: Likewise.
5091 * machoread.c: Likewise.
5092 * macrocmd.c: Likewise.
5094 * mdebugread.c: Likewise.
5095 * mem-break.c: Likewise.
5096 * memattr.c: Likewise.
5097 * memory-map.c: Likewise.
5098 * mep-tdep.c: Likewise.
5099 * mi/mi-cmd-break.c: Likewise.
5100 * mi/mi-cmd-disas.c: Likewise.
5101 * mi/mi-cmd-env.c: Likewise.
5102 * mi/mi-cmd-stack.c: Likewise.
5103 * mi/mi-cmd-var.c: Likewise.
5104 * mi/mi-cmds.c: Likewise.
5105 * mi/mi-console.c: Likewise.
5106 * mi/mi-getopt.c: Likewise.
5107 * mi/mi-interp.c: Likewise.
5108 * mi/mi-main.c: Likewise.
5109 * mi/mi-parse.c: Likewise.
5110 * microblaze-rom.c: Likewise.
5111 * microblaze-tdep.c: Likewise.
5112 * mingw-hdep.c: Likewise.
5113 * minidebug.c: Likewise.
5114 * minsyms.c: Likewise.
5115 * mips-irix-tdep.c: Likewise.
5116 * mips-linux-tdep.c: Likewise.
5117 * mips-tdep.c: Likewise.
5118 * mips64obsd-tdep.c: Likewise.
5119 * mipsnbsd-tdep.c: Likewise.
5120 * mipsread.c: Likewise.
5121 * mn10300-linux-tdep.c: Likewise.
5122 * mn10300-tdep.c: Likewise.
5123 * monitor.c: Likewise.
5124 * moxie-tdep.c: Likewise.
5125 * mt-tdep.c: Likewise.
5126 * nat/linux-btrace.c: Likewise.
5127 * nat/linux-osdata.c: Likewise.
5128 * nat/linux-procfs.c: Likewise.
5129 * nat/linux-ptrace.c: Likewise.
5130 * nat/linux-waitpid.c: Likewise.
5131 * nbsd-tdep.c: Likewise.
5132 * nios2-linux-tdep.c: Likewise.
5133 * nto-procfs.c: Likewise.
5134 * nto-tdep.c: Likewise.
5135 * objc-lang.c: Likewise.
5136 * objfiles.c: Likewise.
5137 * opencl-lang.c: Likewise.
5138 * osabi.c: Likewise.
5139 * osdata.c: Likewise.
5140 * p-exp.y: Likewise.
5141 * p-lang.c: Likewise.
5142 * p-typeprint.c: Likewise.
5143 * parse.c: Likewise.
5144 * posix-hdep.c: Likewise.
5145 * ppc-linux-nat.c: Likewise.
5146 * ppc-sysv-tdep.c: Likewise.
5147 * ppcfbsd-tdep.c: Likewise.
5148 * ppcnbsd-tdep.c: Likewise.
5149 * ppcobsd-tdep.c: Likewise.
5150 * printcmd.c: Likewise.
5151 * procfs.c: Likewise.
5152 * prologue-value.c: Likewise.
5153 * python/py-auto-load.c: Likewise.
5154 * python/py-gdb-readline.c: Likewise.
5155 * ravenscar-thread.c: Likewise.
5156 * regcache.c: Likewise.
5157 * registry.c: Likewise.
5158 * remote-fileio.c: Likewise.
5159 * remote-m32r-sdi.c: Likewise.
5160 * remote-mips.c: Likewise.
5161 * remote-notif.c: Likewise.
5162 * remote-sim.c: Likewise.
5163 * remote.c: Likewise.
5164 * reverse.c: Likewise.
5165 * rs6000-aix-tdep.c: Likewise.
5166 * ser-base.c: Likewise.
5167 * ser-go32.c: Likewise.
5168 * ser-mingw.c: Likewise.
5169 * ser-pipe.c: Likewise.
5170 * ser-tcp.c: Likewise.
5171 * ser-unix.c: Likewise.
5172 * serial.c: Likewise.
5173 * sh-tdep.c: Likewise.
5174 * sh64-tdep.c: Likewise.
5175 * shnbsd-tdep.c: Likewise.
5177 * sol-thread.c: Likewise.
5178 * solib-dsbt.c: Likewise.
5179 * solib-frv.c: Likewise.
5180 * solib-osf.c: Likewise.
5181 * solib-som.c: Likewise.
5182 * solib-spu.c: Likewise.
5183 * solib-target.c: Likewise.
5184 * solib.c: Likewise.
5185 * somread.c: Likewise.
5186 * source.c: Likewise.
5187 * sparc-nat.c: Likewise.
5188 * sparc-sol2-tdep.c: Likewise.
5189 * sparc-tdep.c: Likewise.
5190 * sparc64-tdep.c: Likewise.
5191 * sparc64fbsd-tdep.c: Likewise.
5192 * sparc64nbsd-tdep.c: Likewise.
5193 * sparcnbsd-tdep.c: Likewise.
5194 * spu-linux-nat.c: Likewise.
5195 * spu-multiarch.c: Likewise.
5196 * spu-tdep.c: Likewise.
5197 * stabsread.c: Likewise.
5198 * stack.c: Likewise.
5199 * std-regs.c: Likewise.
5200 * symfile.c: Likewise.
5201 * symmisc.c: Likewise.
5202 * symtab.c: Likewise.
5203 * target.c: Likewise.
5204 * thread.c: Likewise.
5205 * tilegx-linux-nat.c: Likewise.
5206 * tilegx-tdep.c: Likewise.
5208 * tracepoint.c: Likewise.
5209 * tui/tui-command.c: Likewise.
5210 * tui/tui-data.c: Likewise.
5211 * tui/tui-disasm.c: Likewise.
5212 * tui/tui-file.c: Likewise.
5213 * tui/tui-layout.c: Likewise.
5214 * tui/tui-out.c: Likewise.
5215 * tui/tui-regs.c: Likewise.
5216 * tui/tui-source.c: Likewise.
5217 * tui/tui-stack.c: Likewise.
5218 * tui/tui-win.c: Likewise.
5219 * tui/tui-windata.c: Likewise.
5220 * tui/tui-winsource.c: Likewise.
5221 * typeprint.c: Likewise.
5222 * ui-file.c: Likewise.
5223 * ui-out.c: Likewise.
5224 * user-regs.c: Likewise.
5225 * utils.c: Likewise.
5226 * v850-tdep.c: Likewise.
5227 * valarith.c: Likewise.
5228 * valops.c: Likewise.
5229 * valprint.c: Likewise.
5230 * value.c: Likewise.
5231 * varobj.c: Likewise.
5232 * vax-tdep.c: Likewise.
5233 * vaxnbsd-tdep.c: Likewise.
5234 * vaxobsd-tdep.c: Likewise.
5235 * windows-nat.c: Likewise.
5236 * xcoffread.c: Likewise.
5237 * xml-support.c: Likewise.
5238 * xstormy16-tdep.c: Likewise.
5239 * xtensa-linux-nat.c: Likewise.
5241 2014-08-07 Gary Benson <gbenson@redhat.com>
5243 * common/common-defs.h: Include gdb_assert.h.
5244 * aarch64-tdep.c: Do not include gdb_assert.h.
5245 * addrmap.c: Likewise.
5246 * aix-thread.c: Likewise.
5247 * alpha-linux-tdep.c: Likewise.
5248 * alpha-mdebug-tdep.c: Likewise.
5249 * alphanbsd-tdep.c: Likewise.
5250 * amd64-nat.c: Likewise.
5251 * amd64-tdep.c: Likewise.
5252 * amd64bsd-nat.c: Likewise.
5253 * amd64fbsd-nat.c: Likewise.
5254 * amd64fbsd-tdep.c: Likewise.
5255 * amd64nbsd-nat.c: Likewise.
5256 * amd64nbsd-tdep.c: Likewise.
5257 * amd64obsd-nat.c: Likewise.
5258 * amd64obsd-tdep.c: Likewise.
5259 * arch-utils.c: Likewise.
5260 * arm-tdep.c: Likewise.
5261 * armbsd-tdep.c: Likewise.
5263 * bcache.c: Likewise.
5264 * bfin-tdep.c: Likewise.
5265 * blockframe.c: Likewise.
5266 * breakpoint.c: Likewise.
5267 * bsd-kvm.c: Likewise.
5268 * bsd-uthread.c: Likewise.
5269 * buildsym.c: Likewise.
5270 * c-exp.y: Likewise.
5271 * c-lang.c: Likewise.
5272 * charset.c: Likewise.
5273 * cleanups.c: Likewise.
5274 * cli-out.c: Likewise.
5275 * cli/cli-decode.c: Likewise.
5276 * cli/cli-dump.c: Likewise.
5277 * cli/cli-logging.c: Likewise.
5278 * cli/cli-script.c: Likewise.
5279 * cli/cli-utils.c: Likewise.
5280 * coffread.c: Likewise.
5281 * common/common-utils.c: Likewise.
5282 * common/queue.h: Likewise.
5283 * common/signals.c: Likewise.
5284 * common/vec.h: Likewise.
5285 * complaints.c: Likewise.
5286 * completer.c: Likewise.
5287 * corelow.c: Likewise.
5288 * cp-abi.c: Likewise.
5289 * cp-name-parser.y: Likewise.
5290 * cp-namespace.c: Likewise.
5291 * cp-support.c: Likewise.
5292 * cris-tdep.c: Likewise.
5293 * dbxread.c: Likewise.
5294 * dictionary.c: Likewise.
5295 * doublest.c: Likewise.
5296 * dsrec.c: Likewise.
5297 * dummy-frame.c: Likewise.
5298 * dwarf2-frame-tailcall.c: Likewise.
5299 * dwarf2-frame.c: Likewise.
5300 * dwarf2expr.c: Likewise.
5301 * dwarf2loc.c: Likewise.
5302 * dwarf2read.c: Likewise.
5304 * event-loop.c: Likewise.
5305 * exceptions.c: Likewise.
5306 * expprint.c: Likewise.
5307 * f-valprint.c: Likewise.
5308 * fbsd-nat.c: Likewise.
5309 * findvar.c: Likewise.
5310 * frame-unwind.c: Likewise.
5311 * frame.c: Likewise.
5312 * frv-tdep.c: Likewise.
5313 * gcore.c: Likewise.
5314 * gdb-dlfcn.c: Likewise.
5315 * gdb_bfd.c: Likewise.
5316 * gdbarch.c: Likewise.
5317 * gdbarch.sh: Likewise.
5318 * gdbtypes.c: Likewise.
5319 * gnu-nat.c: Likewise.
5320 * gnu-v3-abi.c: Likewise.
5321 * go-lang.c: Likewise.
5322 * guile/scm-exception.c: Likewise.
5323 * guile/scm-gsmob.c: Likewise.
5324 * guile/scm-lazy-string.c: Likewise.
5325 * guile/scm-math.c: Likewise.
5326 * guile/scm-pretty-print.c: Likewise.
5327 * guile/scm-safe-call.c: Likewise.
5328 * guile/scm-utils.c: Likewise.
5329 * guile/scm-value.c: Likewise.
5330 * h8300-tdep.c: Likewise.
5331 * hppa-hpux-nat.c: Likewise.
5332 * hppa-tdep.c: Likewise.
5333 * hppanbsd-tdep.c: Likewise.
5334 * hppaobsd-tdep.c: Likewise.
5335 * i386-darwin-nat.c: Likewise.
5336 * i386-darwin-tdep.c: Likewise.
5337 * i386-nto-tdep.c: Likewise.
5338 * i386-tdep.c: Likewise.
5339 * i386bsd-nat.c: Likewise.
5340 * i386fbsd-tdep.c: Likewise.
5341 * i386gnu-nat.c: Likewise.
5342 * i386nbsd-tdep.c: Likewise.
5343 * i386obsd-tdep.c: Likewise.
5344 * i387-tdep.c: Likewise.
5345 * ia64-libunwind-tdep.c: Likewise.
5346 * ia64-tdep.c: Likewise.
5347 * inf-ptrace.c: Likewise.
5348 * inf-ttrace.c: Likewise.
5349 * infcall.c: Likewise.
5350 * infcmd.c: Likewise.
5351 * infrun.c: Likewise.
5352 * inline-frame.c: Likewise.
5353 * interps.c: Likewise.
5354 * jv-lang.c: Likewise.
5355 * jv-typeprint.c: Likewise.
5356 * linux-fork.c: Likewise.
5357 * linux-nat.c: Likewise.
5358 * linux-thread-db.c: Likewise.
5359 * m32c-tdep.c: Likewise.
5360 * m32r-linux-nat.c: Likewise.
5361 * m32r-tdep.c: Likewise.
5362 * m68k-tdep.c: Likewise.
5363 * m68kbsd-nat.c: Likewise.
5364 * m68kbsd-tdep.c: Likewise.
5365 * m88k-tdep.c: Likewise.
5366 * machoread.c: Likewise.
5367 * macroexp.c: Likewise.
5368 * macrotab.c: Likewise.
5369 * maint.c: Likewise.
5370 * mdebugread.c: Likewise.
5371 * memory-map.c: Likewise.
5372 * mep-tdep.c: Likewise.
5373 * mi/mi-common.c: Likewise.
5374 * microblaze-tdep.c: Likewise.
5375 * mingw-hdep.c: Likewise.
5376 * mips-linux-nat.c: Likewise.
5377 * mips-linux-tdep.c: Likewise.
5378 * mips-tdep.c: Likewise.
5379 * mips64obsd-tdep.c: Likewise.
5380 * mipsnbsd-tdep.c: Likewise.
5381 * mn10300-linux-tdep.c: Likewise.
5382 * mn10300-tdep.c: Likewise.
5383 * moxie-tdep.c: Likewise.
5384 * mt-tdep.c: Likewise.
5385 * nat/linux-btrace.c: Likewise.
5386 * nat/linux-osdata.c: Likewise.
5387 * nat/linux-ptrace.c: Likewise.
5388 * nat/mips-linux-watch.c: Likewise.
5389 * nios2-linux-tdep.c: Likewise.
5390 * nios2-tdep.c: Likewise.
5391 * objc-lang.c: Likewise.
5392 * objfiles.c: Likewise.
5393 * obsd-nat.c: Likewise.
5394 * opencl-lang.c: Likewise.
5395 * osabi.c: Likewise.
5396 * parse.c: Likewise.
5397 * ppc-linux-nat.c: Likewise.
5398 * ppc-sysv-tdep.c: Likewise.
5399 * ppcfbsd-nat.c: Likewise.
5400 * ppcfbsd-tdep.c: Likewise.
5401 * ppcnbsd-nat.c: Likewise.
5402 * ppcnbsd-tdep.c: Likewise.
5403 * ppcobsd-nat.c: Likewise.
5404 * ppcobsd-tdep.c: Likewise.
5405 * printcmd.c: Likewise.
5406 * procfs.c: Likewise.
5407 * prologue-value.c: Likewise.
5408 * psymtab.c: Likewise.
5409 * python/py-lazy-string.c: Likewise.
5410 * python/py-value.c: Likewise.
5411 * regcache.c: Likewise.
5412 * reggroups.c: Likewise.
5413 * registry.c: Likewise.
5414 * remote-sim.c: Likewise.
5415 * remote.c: Likewise.
5416 * rs6000-aix-tdep.c: Likewise.
5417 * rs6000-tdep.c: Likewise.
5418 * s390-linux-tdep.c: Likewise.
5419 * score-tdep.c: Likewise.
5420 * ser-base.c: Likewise.
5421 * ser-mingw.c: Likewise.
5422 * sh-tdep.c: Likewise.
5423 * sh64-tdep.c: Likewise.
5424 * solib-darwin.c: Likewise.
5425 * solib-spu.c: Likewise.
5426 * solib-svr4.c: Likewise.
5427 * source.c: Likewise.
5428 * sparc-nat.c: Likewise.
5429 * sparc-sol2-tdep.c: Likewise.
5430 * sparc-tdep.c: Likewise.
5431 * sparc64-sol2-tdep.c: Likewise.
5432 * sparc64-tdep.c: Likewise.
5433 * sparc64fbsd-tdep.c: Likewise.
5434 * sparc64nbsd-tdep.c: Likewise.
5435 * sparc64obsd-tdep.c: Likewise.
5436 * sparcnbsd-tdep.c: Likewise.
5437 * sparcobsd-tdep.c: Likewise.
5438 * spu-multiarch.c: Likewise.
5439 * spu-tdep.c: Likewise.
5440 * stabsread.c: Likewise.
5441 * stack.c: Likewise.
5442 * symfile.c: Likewise.
5443 * symtab.c: Likewise.
5444 * target-descriptions.c: Likewise.
5445 * target-memory.c: Likewise.
5446 * target.c: Likewise.
5447 * tic6x-linux-tdep.c: Likewise.
5448 * tic6x-tdep.c: Likewise.
5449 * tilegx-linux-nat.c: Likewise.
5450 * tilegx-tdep.c: Likewise.
5452 * tramp-frame.c: Likewise.
5453 * tui/tui-out.c: Likewise.
5454 * tui/tui-winsource.c: Likewise.
5455 * ui-out.c: Likewise.
5456 * user-regs.c: Likewise.
5457 * utils.c: Likewise.
5458 * v850-tdep.c: Likewise.
5459 * valops.c: Likewise.
5460 * value.c: Likewise.
5461 * varobj.c: Likewise.
5462 * vax-nat.c: Likewise.
5463 * xml-syscall.c: Likewise.
5464 * xml-tdesc.c: Likewise.
5465 * xstormy16-tdep.c: Likewise.
5466 * xtensa-linux-nat.c: Likewise.
5467 * xtensa-tdep.c: Likewise.
5469 2014-08-07 Gary Benson <gbenson@redhat.com>
5471 * common/common-defs.h: Include common-utils.h.
5472 * defs.h: Do not include common-utils.h.
5473 * common/gdb_assert.h: Likewise.
5474 * darwin-nat.h: Likewise.
5475 * nat/linux-btrace.c: Likewise.
5476 * target/waitstatus.h: Likewise.
5478 2014-08-07 Gary Benson <gbenson@redhat.com>
5480 * common/common-defs.h: Include ptid.h.
5481 * defs.h: Do not include ptid.h.
5482 * inferior.h: Likewise.
5483 * infrun.h: Likewise.
5484 * nat/linux-btrace.h: Likewise.
5485 * nat/linux-osdata.h: Likewise.
5486 * target/waitstatus.h: Likewise.
5488 2014-08-07 Gary Benson <gbenson@redhat.com>
5490 * common/common-defs.h: Include gdb_locale.h.
5491 * defs.h: Do not include gdb_locale.h.
5493 2014-08-07 Gary Benson <gbenson@redhat.com>
5495 * common/common-defs.h: Include gdb/signals.h.
5496 * defs.h: Do not include gdb/signals.h.
5498 2014-08-07 Gary Benson <gbenson@redhat.com>
5500 * common/common-defs.h: Include pathmax.h.
5501 * defs.h: Do not include pathmax.h.
5503 2014-08-07 Gary Benson <gbenson@redhat.com>
5505 * common/common-defs.h: Include libiberty.h.
5506 * defs.h: Do not include libiberty.h.
5507 * common/queue.h: Likewise.
5508 * cp-name-parser.y: Likewise.
5509 * mi/mi-cmd-catch.c: Likewise.
5510 * python/python.c: Likewise.
5512 2014-08-07 Gary Benson <gbenson@redhat.com>
5514 * common/common-defs.h: Include ansidecl.h.
5515 * defs.h: Do not include ansidecl.h.
5516 * common/buffer.h: Likewise.
5517 * common/common-utils.h: Likewise.
5519 2014-08-07 Gary Benson <gbenson@redhat.com>
5521 * common/common-defs.h: Include stddef.h.
5522 * defs.h: Do not include stddef.h.
5523 * common/common-utils.h: Likewise.
5524 * amd64fbsd-nat.c: Likewise.
5525 * bcache.c: Likewise.
5526 * charset.c: Likewise.
5527 * common/buffer.h: Likewise.
5528 * common/vec.h: Likewise.
5529 * i386bsd-nat.c: Likewise.
5530 * nat/linux-btrace.h: Likewise.
5531 * ppcfbsd-nat.c: Likewise.
5532 * ppcnbsd-tdep.h: Likewise.
5533 * ppcobsd-nat.c: Likewise.
5534 * ppcobsd-tdep.h: Likewise.
5535 * python/py-gdb-readline.c: Likewise.
5537 2014-08-07 Gary Benson <gbenson@redhat.com>
5539 * common/common-defs.h: Include stdarg.h.
5540 * defs.h: Do not include stdarg.h.
5541 * ada-lang.c: Likewise.
5542 * common/common-utils.h: Likewise.
5543 * guile/scm-string.c: Likewise.
5544 * guile/scm-utils.c: Likewise.
5545 * m32c-tdep.c: Likewise.
5547 2014-08-07 Gary Benson <gbenson@redhat.com>
5549 * common/common-defs.h: Include stdlib.h.
5550 * defs.h: Do not include stdlib.h.
5551 * addrmap.c: Likewise.
5552 * bcache.c: Likewise.
5553 * common/buffer.c: Likewise.
5554 * common/common-utils.c: Likewise.
5555 * cp-name-parser.y: Likewise.
5556 * go32-nat.c: Likewise.
5557 * mn10300-linux-tdep.c: Likewise.
5558 * nat/linux-osdata.c: Likewise.
5559 * tui/tui.c: Likewise.
5560 * windows-nat.c: Likewise.
5562 2014-08-07 Gary Benson <gbenson@redhat.com>
5564 * common/common-defs.h: Include stdio.h.
5565 * defs.h: Do not include stdio.h.
5566 * ada-lang.c: Likewise.
5567 * common/buffer.c: Likewise.
5568 * common/common-utils.c: Likewise.
5569 * cp-name-parser.y: Likewise.
5570 * gnu-nat.c: Likewise.
5571 * go32-nat.c: Likewise.
5572 * i386gnu-nat.c: Likewise.
5573 * proc-api.c: Likewise.
5574 * proc-events.c: Likewise.
5575 * proc-flags.c: Likewise.
5576 * proc-why.c: Likewise.
5577 * python/python-internal.h: Likewise.
5578 * target-memory.c: Likewise.
5579 * tui/tui-io.c: Likewise.
5580 * tui/tui.c: Likewise.
5582 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5584 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5585 (scan_dyntag_auxv): Same.
5587 2014-08-06 Yao Qi <yao@codesourcery.com>
5589 * amd64-linux-nat.c: Remove duplicated include
5591 * i386-linux-nat.c: Likewise.
5593 2014-08-06 Yao Qi <yao@codesourcery.com>
5595 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5596 operand" with "Special opcode" in comments.
5598 2014-08-05 Gary Benson <gbenson@redhat.com>
5600 * interps.c (initialize_interps): Remove prototype.
5601 (interpreter_initialized): Remove static global.
5602 (interp_add): Do not call initialize_interps.
5603 (initialize_interps): Remove function.
5605 2014-08-05 Gary Benson <gbenson@redhat.com>
5607 * utils.c (vwarning): Remove spurious va_end.
5609 2014-08-05 Alan Modra <amodra@gmail.com>
5611 * charset.c (convert_between_encodings): Cast result of obstack_base.
5612 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5613 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5614 (read_unwind_info): Use size_t for some locals.
5615 * jit.c (finalize_symtab): Likewise.
5616 * utils.c (hashtab_obstack_allocate): Likewise.
5617 * symmisc.c (print_objfile_statistics): Update format strings.
5619 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5621 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5622 (Changes in GDB 7.8): ... here.
5624 2014-08-04 Tom Tromey <tromey@redhat.com>
5626 * target.c (set_targetdebug): New function.
5627 (initialize_targets): Pass set_targetdebug when creating "set
5630 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5632 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5633 if detecting a variable-sized field that is not the last field.
5634 Fix struct type length computation.
5636 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5638 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5641 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5643 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5644 Remove "+ 8" offset in computation of CHAIN_VMA.
5646 2014-07-31 Doug Evans <dje@google.com>
5648 * inflow.c (child_terminal_inferior): Add comment.
5649 (child_terminal_ours_for_output): Add comment.
5650 (child_terminal_ours): Add comment.
5651 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5652 (linux_nat_terminal_ours): Add comment.
5654 2014-07-31 Gary Benson <gbenson@redhat.com>
5656 * common/btrace-common.h: Do not include defs.h or server.h.
5657 * nat/mips-linux-watch.h: Likewise.
5658 * gdb-dlfcn.h: Do not include defs.h.
5659 * tracefile.h: Likewise.
5661 2014-07-30 Roland McGrath <mcgrathr@google.com>
5663 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5665 2014-07-30 Tom Tromey <tromey@redhat.com>
5667 * bsd-kvm.c (bsd_kvm_open): Constify.
5668 * corelow.c (core_open): Constify.
5669 * ctf.c (ctf_open): Constify.
5670 * dbug-rom.c (dbug_open): Constify.
5671 * exec.c (exec_open): Constify.
5672 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5673 * microblaze-rom.c (picobug_open): Constify.
5674 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5676 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5677 * record-btrace.c (record_btrace_open): Constify.
5678 * record-full.c (record_full_core_open_1, record_full_open_1)
5679 (record_full_open): Constify.
5680 * remote-m32r-sdi.c (m32r_open): Constify.
5681 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5682 (rockhopper_open, lsi_open): Constify.
5683 * remote-sim.c (gdbsim_open): Constify.
5684 * remote.c (remote_open, extended_remote_open, remote_open_1):
5686 * target.h (struct target_ops) <to_open>: Make "arg" const.
5687 * tracefile-tfile.c (tfile_open): Constify.
5689 2014-07-30 Tom Tromey <tromey@redhat.com>
5691 * breakpoint.c (map_breakpoint_numbers): Update.
5692 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5693 (get_number_const): New function.
5694 (get_number): Rewrite using get_number_const.
5695 (init_number_or_range): Make "string" const.
5696 (number_is_in_list): Make "list" const.
5697 * cli/cli-utils.h (get_number_const): Declare.
5698 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5699 (init_number_or_range, number_is_in_list): Update.
5700 * printcmd.c (map_display_numbers): Update.
5701 * value.c (value_from_history_ref): Constify.
5702 * value.h (value_from_history_ref): Update.
5704 2014-07-30 Tom Tromey <tromey@redhat.com>
5706 * corefile.c (hook_type, call_extra_exec_file_hooks)
5707 (specify_exec_file_hook): Constify.
5708 * exec.c (exec_file_attach): Make "filename" const.
5709 * gdbcore.h (deprecated_exec_file_display_hook)
5710 (specify_exec_file_hook, exec_file_attach): Constify.
5711 * main.c (captured_main): Use catch_command_errors_const.
5713 2014-07-30 Tom Tromey <tromey@redhat.com>
5715 * target.c (open_target): New function.
5716 (add_target_with_completer, add_deprecated_target_alias): Use
5717 set_cmd_sfunc, set_cmd_context.
5718 (debug_to_open): Remove.
5719 (setup_target_debug): Update.
5721 2014-07-30 Yao Qi <yao@codesourcery.com>
5723 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5725 * parse.c (exp_iterate): Update comments.
5727 2014-07-30 Gary Benson <gbenson@redhat.com>
5729 * common/common-defs.h: New file.
5730 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5731 * defs.h: Include common-defs.h.
5732 Do not include config.h or build-gnulib/config.h.
5734 2014-07-30 Gary Benson <gbenson@redhat.com>
5736 * common/common-utils.h: Do not include config.h.
5737 * nat/linux-btrace.h: Likewise.
5739 2014-07-30 Gary Benson <gbenson@redhat.com>
5741 * btrace.c: Include defs.h.
5742 * common/ptid.c: Include defs.h or server.h as appropriate.
5743 * nat/mips-linux-watch.c: Likewise.
5745 2014-07-29 Tom Tromey <tromey@redhat.com>
5747 * target.c (target_is_pushed): Simplify.
5749 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5753 2014-07-29 Yao Qi <yao@codesourcery.com>
5756 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5758 2014-07-28 Doug Evans <xdje42@gmail.com>
5761 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5762 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5765 2014-07-28 Will Newton <will.newton@linaro.org>
5767 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5768 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5769 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5770 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5771 (THUMB2_EABI_SYSCALL): Likewise.
5772 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5774 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5775 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5777 2014-07-27 Doug Evans <xdje42@gmail.com>
5779 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5781 2014-07-27 Doug Evans <xdje42@gmail.com>
5783 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5785 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5786 Doug Evans <xdje42@gmail.com>
5789 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5790 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5791 * configure.ac: Try to use guild to compile an scm file, if it fails
5792 then disable guile support.
5793 * configure: Regenerate.
5794 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5796 (GUILE_COMPILED_FILES): New variable.
5797 (GUILE_FILES) Update.
5798 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5799 (stamp-guile): Compile scm files.
5800 * guile/guile.c (boot_guile_support): New function.
5801 (standard_throw_args_p): New function.
5802 (print_standard_throw_error, print_throw_error): New functions.
5803 (handle_boot_error): New function.
5804 (initialize_scheme_side): Rewrite to call boot_guile_support.
5805 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5806 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5808 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5809 Doug Evans <xdje42@gmail.com>
5812 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5813 * guile/lib/gdb/support.scm: New file.
5814 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5815 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5817 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5819 (%assert-type): Ditto, and renamed to assert-type.
5820 (%exception-print-style): Delete.
5822 2014-07-26 Doug Evans <xdje42@gmail.com>
5825 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5826 * configure: Regenerate.
5827 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5829 (PYTHON_FILES): New variable.
5830 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5831 (GUILE_FILES): New variable.
5832 (stamp-python, install-python, uninstall-python): Handle empty
5834 (stamp-guile, install-guile, uninstall-guile): Ditto.
5836 2014-07-26 Doug Evans <xdje42@gmail.com>
5839 * guile/lib/gdb.scm (pretty-printers): Export.
5840 (set-pretty-printers!): Export.
5841 * guile/lib/gdb/printing.scm (gdb module): Update.
5842 (prepend-pretty-printer!, append-pretty-printer!): Update.
5843 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5844 (pretty_printer_list_var): Delete.
5845 (pretty_printer_list): New static global.
5846 (gdbscm_pretty_printers): New function.
5847 (gdbscm_set_pretty_printers_x): New function.
5848 (ppscm_find_pretty_printer_from_gdb): Update.
5849 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5850 (gdbscm_initialize_pretty_printers): Update.
5852 2014-07-26 Doug Evans <xdje42@gmail.com>
5855 * configure.ac: Add check for header gc/gc.h.
5856 Add check for function setenv.
5857 * configure: Regenerate.
5858 * config.in: Regenerate.
5859 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5861 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5863 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5864 variation in gdbarch matching.
5866 2014-07-25 Tom Tromey <tromey@redhat.com>
5868 * exec.c (using_exec_ops): Remove.
5869 (exec_close_1): Update. Remove extraneous block, reindent.
5870 (add_target_sections): Use target_is_pushed.
5872 2014-07-25 Pedro Alves <palves@redhat.com>
5874 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5875 * monitor.c (monitor_create_inferior): Likewise.
5876 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5877 * remote-sim.c (gdbsim_create_inferior): Likewise.
5878 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5879 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5880 * windows-nat.c (do_initial_windows_stuff): Likewise.
5882 2014-07-25 Pedro Alves <palves@redhat.com>
5884 * NEWS: Mention signal passing and "signal" command changes.
5885 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5887 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5889 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5890 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5891 (jump_command): Adjust clear_proceed_status call.
5892 (signal_command): Warn if other thread that are resumed have
5893 signals that will be delivered. Adjust clear_proceed_status call.
5894 (until_next_command, finish_command)
5895 (proceed_after_attach_callback, attach_command_post_wait)
5896 (attach_command): Adjust clear_proceed_status call.
5897 * infrun.c (proceed_after_vfork_done): Likewise.
5898 (proceed_after_attach_callback): Adjust comment.
5899 (clear_proceed_status_thread): Clear stop_signal if not in pass
5901 (clear_proceed_status_callback): Delete.
5902 (clear_proceed_status): New 'step' parameter. Only clear the
5903 proceed status of threads the command being prepared is about to
5905 (proceed): If passed in an explicit signal, override stop_signal
5906 with it. Don't pass the last stop signal to the thread we're
5908 (init_wait_for_inferior): Adjust clear_proceed_status call.
5909 (switch_back_to_stepped_thread): Clear the signal if it should not
5911 * infrun.h (clear_proceed_status): New 'step' parameter.
5912 (user_visible_resume_ptid): Add comment.
5913 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5914 signal is in pass state.
5915 * remote.c (append_pending_thread_resumptions): Likewise.
5916 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5918 2014-07-25 Tom Tromey <tromey@redhat.com>
5920 * target.h (target_stopped_data_address)
5921 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5924 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5926 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5928 (avr_pointer_to_address): Likewise.
5930 2014-07-24 Tom Tromey <tromey@redhat.com>
5932 * monitor.c (compile_pattern): Update.
5933 * target.h (struct target_ops) <to_shortname, to_longname,
5936 2014-07-24 Tom Tromey <tromey@redhat.com>
5938 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5939 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5940 (add_info_alias, add_com): Make "doc" const.
5941 (print_doc_line): Make "str" const.
5942 (delete_cmd): Update.
5943 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5944 (print_doc_line): Update.
5945 * cli/cli-script.c (document_command): Update.
5946 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5947 (add_com, add_info, add_info_alias): Update.
5948 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5949 * python/py-cmd.c (cmdpy_destroyer): Update.
5951 2014-07-24 Tom Tromey <tromey@redhat.com>
5953 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5954 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5955 (help_cmd_list): Constify.
5956 (lookup_cmd): Update.
5957 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5959 (help_cmd_list, apropos_cmd): Update.
5960 * cli/cli-script.c (show_user): Update.
5961 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5962 * cli/cli-setshow.h (cmd_show_list): Update.
5963 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5964 (cmd_show_list): Update.
5965 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5966 * python/py-cmd.c (cmdpy_destroyer): Update.
5968 2014-07-24 Tom Tromey <tromey@redhat.com>
5970 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5971 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5973 * command.h (deprecate_cmd): Update.
5974 * maint.c (maintenance_do_deprecate): Add casts.
5976 2014-07-24 Tom Tromey <tromey@redhat.com>
5978 * cli/cli-decode.c (help_cmd): Make parameter "const".
5979 * cli/cli-decode.h (help_cmd): Update.
5981 2014-07-24 Tom Tromey <tromey@redhat.com>
5983 * stack.c (up_silently_base, down_silently_base): Make argument
5986 2014-07-24 Tom Tromey <tromey@redhat.com>
5988 * solib.c (solib_add): Make "pattern" const.
5989 * solib.h (solib_add): Update.
5991 2014-07-24 Tom Tromey <tromey@redhat.com>
5993 * remote.c (remote_serial_open, print_packet, putpkt)
5994 (putpkt_binary): Constify.
5995 * remote.h (putpkt): Update.
5997 2014-07-24 Tom Tromey <tromey@redhat.com>
5999 * monitor.c (monitor_open): Make "args" const.
6000 * monitor.h (monitor_open): Update.
6002 2014-07-24 Tom Tromey <tromey@redhat.com>
6004 * maint.c (match_bfd_flags): Make "string" const.
6005 (print_bfd_section_info): Remove casts.
6006 (print_objfile_section_info): Make "string" const.
6008 2014-07-24 Tom Tromey <tromey@redhat.com>
6010 * inf-child.c (inf_child_open_target): Make "arg" const.
6011 * inf-child.h (inf_child_open_target): Update.
6013 2014-07-24 Tom Tromey <tromey@redhat.com>
6015 * environ.c (unset_in_environ): Make "var" const.
6016 * environ.h (unset_in_environ): Update.
6018 2014-07-24 Tom Tromey <tromey@redhat.com>
6020 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
6022 (scan_filename_with_cleanup): Likewise.
6023 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
6024 Make arguments const.
6025 (restore_command): Update.
6027 2014-07-24 Pedro Alves <palves@redhat.com>
6029 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
6031 2014-07-24 Tom Tromey <tromey@redhat.com>
6032 Gary Benson <gbenson@redhat.com>
6034 * nat/linux-ptrace.c (additional_flags): New global.
6035 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
6036 additional_flags; don't check GDBSERVER.
6037 (linux_ptrace_set_additional_flags): New function.
6038 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6040 * linux-nat.c (_initialize_linux_nat): Call
6041 linux_ptrace_set_additional_flags.
6043 2014-07-24 Tom Tromey <tromey@redhat.com>
6045 * make-target-delegates (munge_type, write_debugmethod): New
6047 (debug_names): New global.
6048 ($TARGET_DEBUG_PRINTER): New global.
6049 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
6051 Write debug methods. Generate init_debug_target.
6052 * target-debug.h: New file.
6053 * target-delegates.c: Rebuild.
6054 * target.c: Include target-debug.h.
6055 (debug_target): Hoist definition.
6056 (target_kill, target_get_section_table, target_memory_map)
6057 (target_flash_erase, target_flash_done, target_detach)
6058 (target_disconnect, target_wait, target_resume)
6059 (target_pass_signals, target_program_signals, target_follow_fork)
6060 (target_mourn_inferior, target_search_memory)
6061 (target_thread_address_space, target_close)
6062 (target_find_new_threads, target_core_of_thread)
6063 (target_verify_memory, target_insert_mask_watchpoint)
6064 (target_remove_mask_watchpoint): Remove targetdebug code.
6065 (debug_to_post_attach, debug_to_prepare_to_store)
6066 (debug_to_files_info, debug_to_insert_breakpoint)
6067 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
6068 (debug_to_region_ok_for_hw_watchpoint)
6069 (debug_to_can_accel_watchpoint_condition)
6070 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
6071 (debug_to_watchpoint_addr_within_range)
6072 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
6073 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
6074 (debug_to_terminal_init, debug_to_terminal_inferior)
6075 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
6076 (debug_to_terminal_save_ours, debug_to_terminal_info)
6077 (debug_to_load, debug_to_post_startup_inferior)
6078 (debug_to_insert_fork_catchpoint)
6079 (debug_to_remove_fork_catchpoint)
6080 (debug_to_insert_vfork_catchpoint)
6081 (debug_to_remove_vfork_catchpoint)
6082 (debug_to_insert_exec_catchpoint)
6083 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
6084 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
6085 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
6086 (setup_target_debug): Call init_debug_target.
6087 * target.h (TARGET_DEBUG_PRINTER): New macro.
6088 (struct target_ops) <to_resume, to_wait, to_pass_signals,
6089 to_program_signals>: Use TARGET_DEBUG_PRINTER.
6091 2014-07-24 Gary Benson <gbenson@redhat.com>
6093 * exceptions.h (throw_vfatal): Renamed to...
6094 (throw_vquit): New declaration.
6095 (throw_quit): Likewise.
6096 * exceptions.c (throw_vfatal): Renamed to...
6097 (throw_vquit): New function.
6098 (throw_quit): Likewise.
6099 (throw_error): Call throw_verror rather than throw_it.
6100 * utils.h (vfatal): Removed.
6102 * utils.c (vfatal): Removed.
6104 (internal_verror): Replaced call to fatal with call to throw_quit.
6105 (quit): Replaced calls to fatal with calls to throw_quit.
6107 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
6109 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6112 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
6114 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6115 less than zero in conditional expression.
6117 2014-07-23 Tom Tromey <tromey@redhat.com>
6119 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6120 ($INTRO_PART): Don't match whitespace.
6121 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6123 ($METHOD): Add $METHOD_TRAILER.
6125 (scan_target_h): New sub.
6126 Change main loop not to collect state.
6127 * target-delegates.c: Rebuild.
6129 2014-07-23 Gary Benson <gbenson@redhat.com>
6131 * cp-support.c (gdb_demangle): Fix build on systems without
6134 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6136 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6137 for reference entry value target data value.
6139 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6141 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6142 value_available_contents_eq.
6144 2014-07-22 Pedro Alves <palves@redhat.com>
6146 * value.c (allocate_optimized_out_value): Don't mark value as
6149 2014-07-22 Jiong Wang <jiong.wang@arm.com>
6151 * MAINTAINERS (Write After Approval): Update my email address.
6153 2014-07-20 Doug Evans <dje@google.com>
6156 * remote.c (putpkt_binary): Add text to error message.
6158 2014-07-20 Yao Qi <yao@codesourcery.com>
6160 * eval.c: Remove "Chill" from comments.
6161 * gdbtypes.h: Likewise.
6162 * symtab.h: Likewise.
6164 2014-07-20 Yao Qi <yao@codesourcery.com>
6166 * std-operator.def: Update comments to TERNOP_SLICE.
6168 2014-07-20 Yao Qi <yao@codesourcery.com>
6170 * std-operator.def: Remove BINOP_RANGE.
6171 * breakpoint.c (watchpoint_exp_is_const): Update.
6172 * expprint.c (dump_subexp_body_standard): Likewise.
6173 * eval.c (init_array_element): Remove dead code.
6174 (evaluate_subexp_standard): Likewise.
6176 2014-07-20 Yao Qi <yao@codesourcery.com>
6178 * std-operator.def: Remove BINOP_IN.
6179 * breakpoint.c (watchpoint_exp_is_const): Update.
6180 * eval.c (evaluate_subexp_standard): Likewise.
6181 * expprint.c (dump_subexp_body_standard): Likewise.
6183 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6185 * microblaze-tdep.c (microblaze_register_names): Add
6186 the rshr and rslr register names.
6187 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6188 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6189 Use of tdesc_numbered_register. Use of
6190 microblaze_register_g_packet_guesses. Use of
6191 tdesc_use_registers. Use of set_gdbarch_register_type.
6192 (microblaze_register_g_packet_guesses): New.
6193 * microblaze-tdep.h (microblaze_reg_num): Add
6194 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6195 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6196 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6197 * features/microblaze-core.xml: New file.
6198 * features/microblaze-stack-protect.xml: New file.
6199 * features/microblaze-with-stack-protect.c: New file.
6200 * features/microblaze-with-stack-protect.xml: New file.
6201 * features/microblaze.xml: New file.
6202 * features/microblaze.c: New file.
6203 * features/Makefile (microblaze-with-stack-protect): Add
6204 microblaze-with-stack-protect microblaze and microblaze-expedite.
6205 * regformats/microblaze-with-stack-protect.dat: New file.
6206 * regformats/microblaze.dat: New file.
6207 * doc/gdb.texinfo (MicroBlaze Features): Added.
6209 2014-07-18 Tom Tromey <tromey@redhat.com>
6211 * exec.c (exec_ops): Now static.
6212 * exec.h (exec_ops): Don't declare.
6214 2014-07-18 Tom Tromey <tromey@redhat.com>
6216 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6217 to find_target_beneath.
6218 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6219 find_target_beneath.
6220 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6222 2014-07-18 Tom Tromey <tromey@redhat.com>
6225 * utils.c (quit): Use target_supports_terminal_ours.
6226 * target.h (target_supports_terminal_ours): Declare.
6227 * target.c (target_supports_delete_record): Don't check
6228 to_delete_record against NULL.
6229 (target_supports_terminal_ours): New function.
6231 2014-07-18 Tom Tromey <tromey@redhat.com>
6234 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6235 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6236 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6237 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6238 * windows-nat.c (windows_xfer_partial): Always delegate.
6239 * record-btrace.c (record_btrace_xfer_partial): Simplify
6241 (record_btrace_fetch_registers, record_btrace_store_registers)
6242 (record_btrace_prepare_to_store, record_btrace_resume)
6243 (record_btrace_wait, record_btrace_find_new_threads)
6244 (record_btrace_thread_alive): Likewise.
6245 * procfs.c (procfs_xfer_partial): Always delegate.
6246 * corelow.c (core_xfer_partial): Always delegate.
6247 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6249 2014-07-18 Tom Tromey <tromey@redhat.com>
6251 * exec.c (exec_make_note_section): Move earlier.
6253 2014-07-17 Doug Evans <dje@google.com>
6256 * maint.c (count_symtabs_and_blocks): Handle NULL
6257 current_program_space.
6258 (report_command_stats): Check global enabled flag in addition to
6259 recorded enabled flag.
6260 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6262 2014-07-16 Pedro Alves <palves@redhat.com>
6264 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6266 2014-07-16 Tom Tromey <tromey@redhat.com>
6268 * target.h (struct target_ops) <to_delete_record>: Reformat
6271 2014-07-16 Tom Tromey <tromey@redhat.com>
6273 * target-delegates.c: Rebuild.
6275 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6277 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6278 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6279 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6280 (avr_pointer_to_address): Likewise.
6281 (avr_address_class_type_flags): New function.
6282 (avr_address_class_type_flags_to_name): Likewise.
6283 (avr_address_class_name_to_type_flags): Likewise.
6284 (avr_gdbarch_init): Set address_class_type_flags,
6285 address_class_type_flags_to_name and
6286 address_class_name_to_type_flags.
6288 2014-07-15 Pedro Alves <palves@redhat.com>
6290 * linux-nat.c (kill_callback): Save errno and work with saved
6293 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6295 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6297 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6299 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6300 breakpoint support correctly.
6302 2014-07-14 Pedro Alves <palves@redhat.com>
6304 * utils.c (prompt_for_continue): Call target_terminal_ours.
6306 2014-07-14 Pedro Alves <palves@redhat.com>
6308 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6309 catch_errors. Don't re-enable stdin or notify observers where,
6311 (fetch_inferior_event_wrapper): Delete.
6313 2014-07-14 Pedro Alves <palves@redhat.com>
6316 * top.c: Include "inf-loop.h".
6317 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6319 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6321 (gdb_readline_wrapper): Store whether the target is async, and
6324 2014-07-14 Pedro Alves <palves@redhat.com>
6327 * top.c (gdb_readline_wrapper_line): Tweak comment.
6328 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6329 the input handler callback.
6331 2014-07-14 Pedro Alves <palves@redhat.com>
6334 * main.c: Include event-top.h.
6335 (handle_command_errors): New function.
6336 (catch_command_errors, catch_command_errors_const): Use it.
6338 2014-07-14 Pedro Alves <palves@redhat.com>
6340 * exceptions.c (catch_command_errors, catch_command_errors_const):
6342 * exceptions.h (catch_command_errors_ftype)
6343 (catch_command_errors_const_ftype): Moved to main.c.
6344 (catch_command_errors, catch_command_errors_const): Delete
6346 * main.c (catch_command_errors_ftype)
6347 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6348 (catch_command_errors, catch_command_errors_const)): Moved here
6349 from exceptions.c and make static.
6351 2014-07-14 Pedro Alves <palves@redhat.com>
6353 * exceptions.c (print_any_exception): Delete.
6354 (catch_exceptions_with_msg): Use exception_print instead of
6355 print_any_exception.
6356 (catch_errors): Use exception_fprintf instead of
6357 print_any_exception.
6358 (catch_command_errors, catch_command_errors_const): Use
6359 exception_print instead of print_any_exception.
6361 2014-07-14 Pedro Alves <palves@redhat.com>
6363 * infcall.c (run_inferior_call): Set 'sync_execution' while
6364 running the inferior call.
6366 2014-07-14 Pedro Alves <palves@redhat.com>
6368 * value.c (value_contents_equal): Delete function.
6369 * value.h (value_contents_equal): Delete declaration.
6371 2014-07-14 Tom Tromey <tromey@redhat.com>
6374 * gdbtypes.c (is_dynamic_type_internal): New function, from
6376 (is_dynamic_type): Rewrite.
6377 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6378 (resolve_dynamic_struct): Likewise.
6379 (resolve_dynamic_type_internal): New function, from
6380 resolve_dynamic_type.
6381 (resolve_dynamic_type): Rewrite.
6383 2014-07-14 Tom Tromey <tromey@redhat.com>
6385 * target.c (target_require_runnable): Also check record_stratum.
6388 2014-07-11 Yao Qi <yao@codesourcery.com>
6390 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6391 thumb_instruction_restores_sp return true.
6393 2014-07-11 Yao Qi <yao@codesourcery.com>
6395 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6396 (thumb_in_function_epilogue_p): Call
6397 thumb_instruction_restores_sp.
6399 2014-07-11 Yao Qi <yao@codesourcery.com>
6401 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6403 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6405 2014-07-11 Gary Benson <gbenson@redhat.com>
6407 * amd64-linux-nat.c (gdbcore.h): Remove include.
6408 (regset.h): Likewise.
6409 (nat/linux-btrace.h): Likewise.
6410 (btrace.h): Likewise.
6411 (gdb_assert.h): Likewise.
6412 (string.h): Likewise.
6413 (sys/uio.h): Likewise.
6414 (sys/debugreg.h): Likewise.
6415 (sys/syscall.h): Likewise.
6416 (sys/procfs.h): Likewise.
6417 (sys/user.h): Likewise.
6418 (asm/ptrace.h): Likewise.
6419 (i386-nat.h): Likewise.
6420 * i386-linux-nat.c (i386-nat.h): Likewise.
6421 (regset.h): Likewise.
6422 (target.h): Likewise.
6423 (linux-nat.h): Likewise.
6424 (nat/linux-btrace.h): Likewise.
6425 (btrace.h): Likewise.
6426 (gdb_assert.h): Likewise.
6427 (string.h): Likewise.
6428 (sys/uio.h): Likewise.
6429 (sys/user.h): Likewise.
6430 (sys/procfs.h): Likewise.
6431 (sys/reg.h): Likewise.
6432 (sys/debugreg.h): Likewise.
6433 (ORIG_EAX): Remove definition.
6435 2014-07-11 Gary Benson <gbenson@redhat.com>
6437 * i386-linux-nat.h: New file.
6438 * x86-linux-nat.h: Likewise.
6439 * x86-linux-nat.c: Likewise.
6440 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6441 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6442 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6443 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6444 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6445 (PTRACE_SETREGSET): Likewise.
6446 (arch_lwp_info): Now in x86-linux-nat.c.
6447 (have_ptrace_getregset): Now in x86-linux-nat.h.
6448 (x86_linux_dr_get): Now in x86-linux-nat.c.
6449 (x86_linux_dr_set): Likewise.
6450 (x86_linux_dr_get_addr): Likewise.
6451 (x86_linux_dr_get_control): Likewise.
6452 (x86_linux_dr_get_status): Likewise.
6453 (update_debug_registers_callback): Likewise.
6454 (x86_linux_dr_set_control): Likewise.
6455 (x86_linux_dr_set_addr): Likewise.
6456 (x86_linux_prepare_to_resume): Likewise.
6457 (x86_linux_new_thread): Likewise.
6458 (x86_linux_new_fork): Likewise.
6459 (x86_linux_get_thread_area): Likewise.
6460 (super_post_startup_inferior): Likewise.
6461 (x86_linux_child_post_startup_inferior): Likewise.
6462 (AMD64_LINUX_USER64_CS): Likewise.
6463 (AMD64_LINUX_X32_DS): Likewise.
6464 (x86_linux_read_description): Likewise.
6465 (x86_linux_enable_btrace): Likewise.
6466 (x86_linux_disable_btrace): Likewise.
6467 (x86_linux_teardown_btrace): Likewise.
6468 (x86_linux_read_btrace): Likewise.
6469 (x86_linux_create_target): Likewise.
6470 (x86_linux_add_target): Likewise.
6471 * i386-linux-nat.c (x86-linux-nat.h): New include.
6472 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6473 (PTRACE_SETREGSET): Likewise.
6474 (arch_lwp_info): Now in x86-linux-nat.c.
6475 (have_ptrace_getregset): Now in x86-linux-nat.h.
6476 (x86_linux_dr_get): Now in x86-linux-nat.c.
6477 (x86_linux_dr_set): Likewise.
6478 (x86_linux_dr_get_addr): Likewise.
6479 (x86_linux_dr_get_control): Likewise.
6480 (x86_linux_dr_get_status): Likewise.
6481 (update_debug_registers_callback): Likewise.
6482 (x86_linux_dr_set_control): Likewise.
6483 (x86_linux_dr_set_addr): Likewise.
6484 (x86_linux_prepare_to_resume): Likewise.
6485 (x86_linux_new_thread): Likewise.
6486 (x86_linux_new_fork): Likewise.
6487 (x86_linux_get_thread_area): Likewise.
6488 (super_post_startup_inferior): Likewise.
6489 (x86_linux_child_post_startup_inferior): Likewise.
6490 (AMD64_LINUX_USER64_CS): Likewise.
6491 (AMD64_LINUX_X32_DS): Likewise.
6492 (x86_linux_read_description): Likewise.
6493 (x86_linux_enable_btrace): Likewise.
6494 (x86_linux_disable_btrace): Likewise.
6495 (x86_linux_teardown_btrace): Likewise.
6496 (x86_linux_read_btrace): Likewise.
6497 (x86_linux_create_target): Likewise.
6498 (x86_linux_add_target): Likewise.
6500 2014-07-11 Gary Benson <gbenson@redhat.com>
6502 * amd64-linux-nat.c: Comment and whitespace changes.
6503 * i386-linux-nat.c: Comment and whitespace changes.
6505 2014-07-11 Gary Benson <gbenson@redhat.com>
6507 * amd64-linux-nat.c (x86_linux_create_target): New function.
6508 (x86_linux_add_target): Likewise.
6509 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6510 * i386-linux-nat.c (x86_linux_create_target): New function.
6511 (x86_linux_add_target): Likewise.
6512 (_initialize_i386_linux_nat): Delegate to the above new functions.
6514 2014-07-11 Gary Benson <gbenson@redhat.com>
6516 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6517 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6518 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6519 (ps_get_thread_area): Delegate to the above.
6521 2014-07-11 Gary Benson <gbenson@redhat.com>
6523 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6524 x86_linux_read_description. All uses updated. amd64-specific
6525 code conditionalized. Conditionalized i386-specific code added.
6526 Redundant cast removed.
6527 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6528 x86_linux_read_description. All uses updated. i386-specific
6529 code conditionalized. Conditionalized amd64-specific code added.
6530 One sizeof replaced with the actual type it is describing.
6532 2014-07-11 Gary Benson <gbenson@redhat.com>
6534 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6535 x86_linux_dr_get. All uses updated.
6536 (amd64_linux_dr_set): Renamed to
6537 x86_linux_dr_set. All uses updated.
6538 (amd64_linux_dr_get_addr): Renamed to
6539 x86_linux_dr_get_addr. All uses updated.
6540 (amd64_linux_dr_get_control): Renamed to
6541 x86_linux_dr_get_control. All uses updated.
6542 (amd64_linux_dr_get_status): Renamed to
6543 x86_linux_dr_get_status. All uses updated.
6544 (amd64_linux_dr_set_control): Renamed to
6545 x86_linux_dr_set_control. All uses updated.
6546 (amd64_linux_dr_set_addr): Renamed to
6547 x86_linux_dr_set_addr. All uses updated.
6548 (amd64_linux_prepare_to_resume): Renamed to
6549 x86_linux_prepare_to_resume. All uses updated.
6550 (amd64_linux_new_thread): Renamed to
6551 x86_linux_new_thread. All uses updated.
6552 (amd64_linux_new_fork): Renamed to
6553 x86_linux_new_fork. All uses updated.
6554 (amd64_linux_child_post_startup_inferior): Renamed to
6555 x86_linux_child_post_startup_inferior. All uses updated.
6556 (amd64_linux_enable_btrace): Renamed to
6557 x86_linux_enable_btrace. All uses updated.
6558 (amd64_linux_disable_btrace): Renamed to
6559 x86_linux_disable_btrace. All uses updated.
6560 (amd64_linux_teardown_btrace): Renamed to
6561 x86_linux_teardown_btrace. All uses updated.
6562 (amd64_linux_read_btrace): Renamed to
6563 x86_linux_read_btrace. All uses updated.
6564 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6565 x86_linux_dr_get. All uses updated.
6566 (i386_linux_dr_set): Renamed to
6567 x86_linux_dr_set. All uses updated.
6568 (i386_linux_dr_get_addr): Renamed to
6569 x86_linux_dr_get_addr. All uses updated.
6570 (i386_linux_dr_get_control): Renamed to
6571 x86_linux_dr_get_control. All uses updated.
6572 (i386_linux_dr_get_status): Renamed to
6573 x86_linux_dr_get_status. All uses updated.
6574 (i386_linux_dr_set_control): Renamed to
6575 x86_linux_dr_set_control. All uses updated.
6576 (i386_linux_dr_set_addr): Renamed to
6577 x86_linux_dr_set_addr. All uses updated.
6578 (i386_linux_prepare_to_resume): Renamed to
6579 x86_linux_prepare_to_resume. All uses updated.
6580 (i386_linux_new_thread): Renamed to
6581 x86_linux_new_thread. All uses updated.
6582 (i386_linux_new_fork): Renamed to
6583 x86_linux_new_fork. All uses updated.
6584 (i386_linux_child_post_startup_inferior): Renamed to
6585 x86_linux_child_post_startup_inferior. All uses updated.
6586 (i386_linux_enable_btrace): Renamed to
6587 x86_linux_enable_btrace. All uses updated.
6588 (i386_linux_disable_btrace): Renamed to
6589 x86_linux_disable_btrace. All uses updated.
6590 (i386_linux_teardown_btrace): Renamed to
6591 x86_linux_teardown_btrace. All uses updated.
6592 (i386_linux_read_btrace): Renamed to
6593 x86_linux_read_btrace. All uses updated.
6595 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6597 * remote.c (extended_remote_post_attach): New function.
6598 (init_extended_remote_ops): Install it as to_post_attach method.
6600 2014-07-09 Pedro Alves <palves@redhat.com>
6602 * infcmd.c (attach_command_post_wait): Don't call
6603 target_terminal_inferior here.
6604 (attach_command): Call it here instead.
6606 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6608 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6610 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6611 from varobj.c, with additional checks.
6612 (c_varobj_ops): Fill in is_path_expr_parent field.
6613 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6614 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6616 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6618 (varobj_default_is_path_expr_parent): New function.
6619 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6620 (varobj_default_is_path_expr_parent): Declare new function.
6622 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6624 * infcmd.c (finish_backward): Turn internal error into normal error.
6626 2014-07-07 Pedro Alves <palves@redhat.com>
6629 * remote.c (async_handle_remote_sigint)
6630 (async_handle_remote_sigint_twice): Call
6631 gdb_call_async_signal_handler instead of
6632 mark_async_signal_handler.
6634 2014-07-07 Tom Tromey <tromey@redhat.com>
6636 * target-delegates.c: Rebuild.
6637 * target.c (target_info_record): Remove.
6638 * record.c (info_record_command): Unconditionally call
6640 * target.h (struct target_ops) <to_info_record>: Use
6641 TARGET_DEFAULT_IGNORE.
6642 (target_info_record): Remove.
6644 2014-07-07 Tom Tromey <tromey@redhat.com>
6646 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6647 TARGET_DEFAULT_NORETURN.
6648 * target.c (generic_tls_error): New function.
6649 (target_translate_tls_address): Don't search target stack.
6650 * target-delegates.c: Rebuild.
6651 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6653 * linux-thread-db.c (thread_db_get_thread_local_address):
6654 Unconditionally call beneath target.
6656 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6658 * cli/cli-logging.c (pop_output_files): Assign targerr to
6661 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6663 * MAINTAINERS (Write After Approval): Update my email address.
6665 2014-07-02 Gary Benson <gbenson@redhat.com>
6667 * proc-service.c (ps_xfer_memory): Update comment.
6668 (ps_pstop): Remove unused function.
6669 (ps_pcontinue): Likewise.
6670 (ps_lstop): Likewise.
6671 (ps_lcontinue): Likewise.
6672 (ps_lgetxregsize): Likewise.
6673 (ps_lgetxregs): Likewise.
6674 (ps_lsetxregs): Likewise.
6675 (ps_plog): Likewise.
6676 (ps_ptread): Likewise.
6677 (ps_ptwrite): Likewise.
6679 2014-07-01 Mark Wielaard <mjw@redhat.com>
6681 * dwarf2read.c (add_array_cv_type): New function.
6682 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6683 (read_tag_volatile_type): Likewise.
6685 2014-07-01 Tom Tromey <tromey@redhat.com>
6687 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6688 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6689 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6690 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6691 * command.h (cmd_cfunc_ftype): Move earlier.
6692 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6693 (add_com, add_info): Use cmd_cfunc_ftype.
6695 2014-06-30 Tom Tromey <tromey@redhat.com>
6697 * symtab.c (operator_chars): Make parameters and return type
6699 (file_matches): Make "files" const.
6700 (struct search_symbols_data) <files>: Now const.
6701 (search_symbols): Make "regexp" and "files" parameters const.
6703 (symtab_symbol_info): Remove cast.
6704 (rbreak_command): Update.
6705 * symtab.h (search_symbols): Update.
6707 2014-06-27 Yao Qi <yao@codesourcery.com>
6709 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6710 Change parameter type to 'struct thread_info *'. Caller
6712 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6714 * dummy-frame.c (struct dummy_frame_id): New.
6715 (dummy_frame_id_eq): New function.
6716 (struct dummy_frame) <id>: Change its type to 'struct
6718 (dummy_frame_push): Add parameter ptid and save it in
6720 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6722 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6724 (lookup_dummy_frame): Change parameter type to 'struct
6725 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6726 instead of frame_id_eq.
6727 (dummy_frame_pop): Add parameter ptid. Callers updated.
6728 Update comments. Compose dummy_frame_id and pass it to
6730 (dummy_frame_discard): Add parameter ptid.
6731 (dummy_frame_sniffer): Compose dummy_frame_id and call
6732 dummy_frame_id_eq instead of frame_id_eq.
6733 (fprint_dummy_frames): Print ptid.
6734 * dummy-frame.h: Remove comments.
6735 (dummy_frame_push): Add ptid in declaration.
6736 (dummy_frame_pop, dummy_frame_discard): Likewise.
6738 2014-06-26 Tom Tromey <tromey@redhat.com>
6740 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6741 * command.h (error_no_arg): Update.
6743 2014-06-26 Tom Tromey <tromey@redhat.com>
6745 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6746 (do_show_command): Make "arg" const.
6747 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6749 2014-06-26 Tom Tromey <tromey@redhat.com>
6751 * record-full.c (record_full_get_bookmark): Make "args" const.
6752 (record_full_goto_bookmark): Make "raw_bookmark" const.
6753 * record.c (record_goto): New function.
6754 (cmd_record_goto): Use it. Now static.
6755 * record.h (record_goto): Declare.
6756 (cmd_record_goto): Remove declaration.
6757 * target-delegates.c: Rebuild.
6758 * target.h (struct target_ops) <to_get_bookmark,
6759 to_goto_bookmark>: Make parameter const.
6761 2014-06-26 Tom Tromey <tromey@redhat.com>
6763 * defs.h (generic_load): Update.
6764 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6765 * monitor.c (monitor_load): Make "args" const.
6766 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6767 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6769 (mips_load): Make "file" const.
6770 * remote-sim.c (gdbsim_load): Make "args" const.
6771 * remote.c (remote_load): Make "name" const.
6772 * symfile.c (generic_load): Make "args" const.
6773 * target-delegates.c: Rebuild.
6774 * target.c (target_load): Make "arg" const.
6775 (debug_to_load): Make "args" const.
6776 * target.h (struct target_ops) <to_load>: Make parameter const.
6777 (target_load): Update.
6779 2014-06-26 Tom Tromey <tromey@redhat.com>
6782 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6783 (dwarf2_physname, read_partial_die)
6784 (guess_partial_die_structure_name, fixup_partial_die)
6785 (guess_full_die_structure_name, anonymous_struct_prefix)
6786 (dwarf2_name): Use per-BFD obstack.
6788 2014-06-26 Yao Qi <yao@codesourcery.com>
6790 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6791 dummyframe and this_id into inner block below.
6793 2014-06-26 Yao Qi <yao@codesourcery.com>
6795 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6796 with "signal_pass[0]" in the initialization of signal_pass.
6798 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6800 * record-btrace.c (record_btrace_generating_corefile)
6801 (record_btrace_prepare_to_generate_core)
6802 (record_btrace_done_generating_core): New.
6803 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6804 (record_btrace_store_registers, record_btrace_prepare_to_store):
6805 Forward request when generating a core file.
6806 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6807 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6808 to_done_generating_core.
6810 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6812 * target.h (target_ops) <to_prepare_to_generate_core>
6813 <to_done_generating_core>: New.
6814 (target_prepare_to_generate_core, target_done_generating_core): New.
6815 * target.c (target_prepare_to_generate_core)
6816 (target_done_generating_core): New.
6817 * target-delegates.c: Regenerate.
6818 * gcore.c: (write_gcore_file): Rename to ...
6819 (write_gcore_file_1): ...this.
6820 (write_gcore_file): Call target_prepare_to_generate_core
6821 and target_done_generating_core.
6823 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6825 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6826 * gcore.c (write_gcore_file): Free memory returned from
6827 make_corefile_notes.
6828 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6829 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6831 2014-06-24 Yao Qi <yao@codesourcery.com>
6833 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6834 (arm_linux_init_abi): Set skip_trampoline_code with
6835 gdbarch_skip_trampoline_code instead of
6836 find_solib_trampoline_target.
6838 2014-06-24 Yao Qi <yao@codesourcery.com>
6840 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6841 arm_skip_bx_reg returns non-zero.
6843 2014-06-24 Yao Qi <yao@codesourcery.com>
6845 * arm-tdep.c (arm_skip_bx_reg): New function.
6846 (arm_skip_stub): Call arm_skip_bx_reg.
6848 2014-06-23 Don Breazeal <donb@codesourcery.com>
6850 * MAINTAINERS: Add myself as write-after-approval maintainer.
6852 2014-06-23 Pedro Alves <palves@redhat.com>
6854 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6855 DR_CONTROL before setting DR0..DR3.
6856 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6857 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6858 bits of DR_CONTROL related to the debug register slot being
6859 disabled. If all slots are vacant, clear local slowdown as well,
6860 and assert DR_CONTROL is 0.
6862 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6864 * python/lib/gdb/command/xmethods.py
6865 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6866 current progspace only if the string "progspace" matches LOCUS_RE.
6868 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6870 Fix --with-system-readline with readline-6.3 patch 5.
6871 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6872 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6875 2014-06-20 Tom Tromey <tromey@redhat.com>
6877 * dwarf2read.c (dw2_get_real_path): Use correct type in
6879 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6881 2014-06-20 Gary Benson <gbenson@redhat.com>
6883 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6884 * common/glibc_thread_db.h: Likewise.
6885 * common/i386-cpuid.h: Likewise.
6886 * common/i386-gcc-cpuid.h: Likewise.
6887 * common/linux-btrace.h: Likewise.
6888 * common/linux-osdata.h: Likewise.
6889 * common/linux-procfs.h: Likewise.
6890 * common/linux-ptrace.h: Likewise.
6891 * common/mips-linux-watch.h: Likewise.
6892 * common/linux-btrace.c: Moved to nat.
6893 * common/linux-osdata.c: Likewise.
6894 * common/linux-procfs.c: Likewise.
6895 * common/linux-ptrace.c: Likewise.
6896 * common/mips-linux-watch.c: Likewise.
6897 * nat/gdb_thread_db.h: Moved from common.
6898 * nat/glibc_thread_db.h: Likewise.
6899 * nat/i386-cpuid.h: Likewise.
6900 * nat/i386-gcc-cpuid.h: Likewise.
6901 * nat/linux-btrace.c: Likewise.
6902 * nat/linux-btrace.h: Likewise.
6903 * nat/linux-osdata.c: Likewise.
6904 * nat/linux-osdata.h: Likewise.
6905 * nat/linux-procfs.c: Likewise.
6906 * nat/linux-procfs.h: Likewise.
6907 * nat/linux-ptrace.c: Likewise.
6908 * nat/linux-ptrace.h: Likewise.
6909 * nat/mips-linux-watch.c: Likewise.
6910 * nat/mips-linux-watch.h: Likewise.
6911 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6912 (object file files): Reordered.
6913 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6914 of glibc_thread_db.h.
6916 2014-06-20 Gary Benson <gbenson@redhat.com>
6918 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6919 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6920 (i386_dr_low): Likewise.
6921 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6922 (i386_dr_low_set_addr): Likewise.
6923 (i386_dr_low_get_addr): Likewise.
6924 (i386_dr_low_can_set_control): Likewise.
6925 (i386_dr_low_set_control): Likewise.
6926 (i386_dr_low_get_control): Likewise.
6927 (i386_dr_low_get_status): Likewise.
6928 (i386_get_debug_register_length): Likewise.
6929 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6930 (i386_dr_low): Likewise.
6931 * nat/i386-dregs.c (i386-low.h): Remove include.
6932 (i386-nat.h): Likewise.
6933 (nat/i386-dregs.h): New include.
6934 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6935 (i386_dr_low_set_addr): Likewise.
6936 (i386_dr_low_get_addr): Likewise.
6937 (i386_dr_low_can_set_control): Likewise.
6938 (i386_dr_low_set_control): Likewise.
6939 (i386_dr_low_get_control): Likewise.
6940 (i386_dr_low_get_status): Likewise.
6941 (i386_get_debug_register_length): Likewise.
6942 (debug_hw_points): Likewise.
6944 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6946 * Makefile.in (SFILES): Add d-exp.y.
6947 (YYFILES): Add d-exp.c.
6948 (YYOBJ): Add d-exp.o.
6949 (local-maintainer-clean): Delete d-exp.c.
6950 * d-exp.y: New file.
6951 * d-lang.h (d_parse): New declaration.
6952 (d_error): New declaration.
6953 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6954 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6955 PREC_ORDER operators.
6956 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6958 2014-06-19 Yao Qi <yao@codesourcery.com>
6960 * gdbthread.h (any_running): Remove the declaration.
6961 * thread.c (any_running): Remove.
6963 2014-06-19 Yao Qi <yao@codesourcery.com>
6965 * gdbthread.h (struct thread_info) <state>: Change its type to
6966 'enum thread_state'. Update comments.
6968 2014-06-19 Pedro Alves <palves@redhat.com>
6970 * gdbthread.h (ALL_THREADS): Delete.
6971 (ALL_NON_EXITED_THREADS): New macro.
6972 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6973 instead of ALL_THREADS.
6974 * infrun.c (find_thread_needs_step_over)
6975 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6976 instead of ALL_THREADS.
6977 * record-btrace.c (record_btrace_open)
6978 (record_btrace_stop_recording, record_btrace_close)
6979 (record_btrace_is_replaying, record_btrace_resume)
6980 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6981 * remote.c (append_pending_thread_resumptions): Likewise.
6982 * thread.c (thread_apply_all_command): Likewise.
6984 2014-06-19 Gary Benson <gbenson@redhat.com>
6986 * i386-nat.c (i386_stopped_by_watchpoint):
6987 Use i386_dr_stopped_by_watchpoint.
6988 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6989 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6991 2014-06-19 Gary Benson <gbenson@redhat.com>
6993 * nat/i386-dregs.c: New file.
6994 * Makefile.in (i386-dregs.o): New rule.
6995 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6996 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6997 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6998 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6999 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
7000 * config/i386/go32.mh (NATDEPFILES): Likewise.
7001 * config/i386/linux.mh (NATDEPFILES): Likewise.
7002 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7003 * config/i386/mingw.mh (NATDEPFILES): Likewise.
7004 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
7005 * i386-nat.h (debug_hw_points): New declaration.
7006 * i386-nat.c (breakpoint.h): Remove include.
7007 (command.h): Likewise.
7008 (target.h): Likewise.
7009 (gdb_assert.h): Likewise.
7010 (debug_hw_points): Made nonstatic.
7011 (debug_printf): Now in i386-dregs.c.
7012 (TARGET_HAS_DR_LEN_8): Likewise.
7013 (DR_CONTROL_SHIFT): Likewise.
7014 (DR_CONTROL_SIZE): Likewise.
7015 (DR_RW_EXECUTE): Likewise.
7016 (DR_RW_WRITE): Likewise.
7017 (DR_RW_READ): Likewise.
7018 (DR_RW_IORW): Likewise.
7019 (DR_LEN_1): Likewise.
7020 (DR_LEN_2): Likewise.
7021 (DR_LEN_4): Likewise.
7022 (DR_LEN_8): Likewise.
7023 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7024 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7025 (DR_ENABLE_SIZE): Likewise.
7026 (DR_LOCAL_SLOWDOWN): Likewise.
7027 (DR_GLOBAL_SLOWDOWN): Likewise.
7028 (DR_CONTROL_RESERVED): Likewise.
7029 (I386_DR_CONTROL_MASK): Likewise.
7030 (I386_DR_VACANT): Likewise.
7031 (I386_DR_LOCAL_ENABLE): Likewise.
7032 (I386_DR_GLOBAL_ENABLE): Likewise.
7033 (I386_DR_DISABLE): Likewise.
7034 (I386_DR_SET_RW_LEN): Likewise.
7035 (I386_DR_GET_RW_LEN): Likewise.
7036 (I386_DR_WATCH_HIT): Likewise.
7037 (i386_wp_op_t): Likewise.
7038 (i386_show_dr): Likewise.
7039 (i386_length_and_rw_bits): Likewise.
7040 (i386_insert_aligned_watchpoint): Likewise.
7041 (i386_remove_aligned_watchpoint): Likewise.
7042 (i386_handle_nonaligned_watchpoint): Likewise.
7043 (i386_update_inferior_debug_regs): Likewise.
7044 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
7045 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
7046 (i386_region_ok_for_watchpoint):
7047 Use i386_dr_region_ok_for_watchpoint.
7048 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
7050 2014-06-19 Gary Benson <gbenson@redhat.com>
7052 * i386-nat.c (i386_insert_hw_breakpoint): Use
7053 i386_insert_watchpoint.
7054 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
7056 2014-06-19 Gary Benson <gbenson@redhat.com>
7058 * i386-nat.c (i386_dr_show): Renamed to
7059 i386_show_dr and made static. All uses updated.
7060 (i386_dr_length_and_rw_bits): Renamed to
7061 i386_length_and_rw_bits and made static.
7063 (i386_dr_insert_aligned_watchpoint): Renamed to
7064 i386_insert_aligned_watchpoint and made static.
7066 (i386_dr_remove_aligned_watchpoint): Renamed to
7067 i386_remove_aligned_watchpoint and made static.
7069 (i386_dr_update_inferior_debug_regs): Renamed to
7070 i386_update_inferior_debug_regs and made static.
7072 * nat/i386-dregs.h (i386_dr_show): Removed.
7073 (i386_dr_length_and_rw_bits): Likewise.
7074 (i386_dr_insert_aligned_watchpoint): Likewise.
7075 (i386_dr_remove_aligned_watchpoint): Likewise.
7076 (i386_dr_update_inferior_debug_regs): Likewise.
7078 2014-06-19 Gary Benson <gbenson@redhat.com>
7080 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
7081 * configure: Regenerate.
7082 * config.in: Likewise.
7083 * main.c (signal.h): New include.
7084 (setup_alternate_signal_stack): New function.
7085 (captured_main): Call the above.
7086 * cp-support.c (signal.h): New include.
7087 (catch_demangler_crashes): New flag.
7088 (SIGJMP_BUF): New define.
7089 (SIGSETJMP): Likewise.
7090 (SIGLONGJMP): Likewise.
7091 (gdb_demangle_jmp_buf): New static global.
7092 (gdb_demangle_attempt_core_dump): Likewise.
7093 (gdb_demangle_signal_handler): New function.
7094 (gdb_demangle): If catch_demangler_crashes is set, install the
7095 above signal handler before calling bfd_demangle, and restore
7096 the original signal handler afterwards. Display the offending
7097 symbol and call demangler_warning the first time a segmentation
7099 (_initialize_cp_support): New maint set/show command.
7101 2014-06-19 Gary Benson <gbenson@redhat.com>
7103 * utils.h (resource_limit_kind): New enum.
7104 (can_dump_core): New declaration.
7105 (warn_cant_dump_core): Likewise.
7106 (dump_core): Likewise.
7107 * utils.c (dump_core): Made nonstatic. Added new
7108 parameter "limit_kind".
7109 (can_dump_core): Made nonstatic. Moved printing code to...
7110 (warn_cant_dump_core): New function.
7111 (can_dump_core_warn): Likewise.
7112 (internal_vproblem): Replace calls to can_dump_core with
7113 calls to can_dump_core_warn. Supply new argument to each.
7115 2014-06-19 Gary Benson <gbenson@redhat.com>
7117 * utils.h (demangler_vwarning): New declaration.
7118 (demangler_warning): Likewise.
7119 * utils.c (struct internal_problem)
7120 <user_settable_should_quit>: New field.
7121 <user_settable_should_dump_core>: Likewise
7122 (internal_error_problem): Add values for above new fields.
7123 (internal_warning_problem): Likewise.
7124 (demangler_warning_problem): New static global.
7125 (demangler_vwarning): New function.
7126 (demangler_warning): Likewise.
7127 (add_internal_problem_command): Selectively add commands.
7128 (_initialize_utils): New internal problem command.
7129 * maint.c (maintenance_demangler_warning): New function.
7130 (_initialize_maint_cmds): New command.
7132 2014-06-18 Tom Tromey <tromey@redhat.com>
7134 * f-valprint.c (info_common_command_for_block): Update.
7135 * symtab.h (struct general_symbol_info) <common_block>: Now
7138 2014-06-18 Tom Tromey <tromey@redhat.com>
7140 * symtab.h (struct symtab) <blockvector>: Now const.
7141 * ada-lang.c (ada_add_global_exceptions): Update.
7142 * buildsym.c (augment_type_symtab): Update.
7143 * dwarf2read.c (dw2_lookup_symbol): Update.
7144 * jit.c (finalize_symtab): Update.
7145 * jv-lang.c (add_class_symtab_symbol): Update.
7146 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7148 * objfiles.c (objfile_relocate1): Update.
7149 * psymtab.c (lookup_symbol_aux_psymtabs)
7150 (maintenance_check_psymtabs): Update.
7151 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7153 * spu-tdep.c (spu_catch_start): Update.
7154 * symmisc.c (dump_symtab_1): Update.
7155 * symtab.c (lookup_global_symbol_from_objfile)
7156 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7157 (basic_lookup_transparent_type_quick)
7158 (basic_lookup_transparent_type, find_pc_sect_symtab)
7159 (find_pc_sect_line, search_symbols): Update.
7160 * block.c (find_block_in_blockvector): Make "bl" const.
7161 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7163 (blockvector_contains_pc): Make "bv" const.
7164 (block_for_pc_sect): Update.
7165 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7166 (blockvector_contains_pc): Update.
7167 * breakpoint.c (resolve_sal_pc): Update.
7168 * inline-frame.c (block_starting_point_at): Update.
7170 2014-06-18 Tom Tromey <tromey@redhat.com>
7172 * completer.c (complete_line): Make "line_buffer" const.
7173 * completer.h (complete_line): Update.
7175 2014-06-18 Tom Tromey <tromey@redhat.com>
7177 * symtab.c (add_macro_name): Remove unneeded cast.
7179 2014-06-18 Tom Tromey <tromey@redhat.com>
7181 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7182 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7184 2014-06-18 Tom Tromey <tromey@redhat.com>
7186 * probe.c (info_probes_for_ops): Make "arg" const.
7187 * probe.h (info_probes_for_ops): Update.
7189 2014-06-18 Tom Tromey <tromey@redhat.com>
7191 * varobj.c (varobj_create): Update.
7192 * valops.c (value_of_this): Update.
7193 * tracepoint.c (add_local_symbols, scope_info): Update.
7194 * symtab.h (struct general_symbol_info) <block>: Now const.
7195 * symtab.c (skip_prologue_sal)
7196 (default_make_symbol_completion_list_break_on)
7197 (skip_prologue_using_sal): Update.
7198 * stack.h (iterate_over_block_locals)
7199 (iterate_over_block_local_vars): Update.
7200 * stack.c (print_frame_args): Update.
7201 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7203 (get_selected_block): Make return type const.
7204 * python/py-frame.c (frapy_block): Update.
7205 * python/py-block.c (gdbpy_block_for_pc): Update.
7206 * p-exp.y (%union) <bval>: Now const.
7207 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7208 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7209 * m2-exp.y (%union) <bval>: Now const.
7210 * linespec.c (get_current_search_block): Make return type const.
7211 (create_sals_line_offset, find_label_symbols): Update.
7212 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7214 (block_starting_point_at): Make "block" const.
7215 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7216 (check_exception_resume): Update.
7217 * guile/scm-frame.c (gdbscm_frame_block): Update.
7218 * guile/scm-block.c (gdbscm_lookup_block): Update.
7219 * frame.h (get_frame_block): Update.
7220 (get_selected_block): Make return type const.
7221 * frame.c (frame_id_inner): Update.
7222 * f-valprint.c (info_common_command_for_block)
7223 (info_common_command): Update.
7224 * dwarf2loc.c (dwarf2_find_location_expression)
7225 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7226 (locexpr_describe_location_piece): Update.
7227 * c-exp.y (%union) <bval>: Now const.
7228 * breakpoint.c (resolve_sal_pc): Update.
7229 * blockframe.c (get_frame_block):Make return type const.
7230 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7231 (block_innermost_frame): Update.
7232 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7233 (block_for_pc, block_for_pc_sect): Update.
7234 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7236 (block_for_pc_sect, block_for_pc): Make return type const.
7237 * ax-gdb.c (gen_expr): Update.
7238 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7239 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7240 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7241 (ada_read_var_value): Update.
7242 * ada-exp.y (struct name_info) <block>: Now const.
7244 (block_lookup): Constify.
7246 2014-06-18 Gary Benson <gbenson@redhat.com>
7248 * nat/i386-dregs.h: New file.
7249 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7250 * i386-nat.h (i386-dregs.h): New include.
7251 (DR_FIRSTADDR): Now in i386-dregs.h.
7252 (DR_LASTADDR): Likewise.
7253 (DR_NADDR): Likewise.
7254 (DR_STATUS): Likewise.
7255 (DR_CONTROL): Likewise.
7256 (i386_debug_reg_state): Likewise.
7257 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7259 2014-06-18 Don Breazeal <donb@codesourcery.com>
7261 * breakpoint.c (set_longjmp_breakpoint): Call
7262 momentary_breakpoint_from_master with additional argument.
7263 (set_longjmp_breakpoint_for_call_dummy): Call
7264 momentary_breakpoint_from_master with additional argument.
7265 (set_std_terminate_breakpoint): Call
7266 momentary_breakpoint_from_master with additional argument.
7267 (momentary_breakpoint_from_master): Add argument to function
7268 definition and use it to initialize structure member flag.
7269 (clone_momentary_breakpoint): Call
7270 momentary_breakpoint_from_master with additional argument.
7271 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7272 member flags set in momentary_breakpoint_from_master.
7274 2014-06-18 Gary Benson <gbenson@redhat.com>
7276 * i386-nat.c (i386_show_dr): Renamed to
7277 i386_dr_show and made nonstatic. All uses updated.
7278 (i386_length_and_rw_bits): Renamed to
7279 i386_dr_length_and_rw_bits and made nonstatic.
7281 (i386_insert_aligned_watchpoint): Renamed to
7282 i386_dr_insert_aligned_watchpoint and made nonstatic.
7284 (i386_remove_aligned_watchpoint): Renamed to
7285 i386_dr_remove_aligned_watchpoint and made nonstatic.
7287 (i386_update_inferior_debug_regs): Renamed to
7288 i386_dr_update_inferior_debug_regs and made nonstatic.
7291 2014-06-18 Gary Benson <gbenson@redhat.com>
7293 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7294 (i386_dr_low_can_set_control): Likewise.
7295 (i386_dr_low_set_addr): Likewise.
7296 (i386_dr_low_set_control): Likewise.
7297 (i386_dr_low_get_addr): Likewise.
7298 (i386_dr_low_get_status): Likewise.
7299 (i386_dr_low_get_control): Likewise.
7300 (i386_insert_aligned_watchpoint): Use new macros.
7301 (i386_update_inferior_debug_regs): Likewise.
7302 (i386_stopped_data_address): Likewise.
7304 2014-06-18 Gary Benson <gbenson@redhat.com>
7306 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7307 New parameter. All uses updated.
7309 2014-06-18 Gary Benson <gbenson@redhat.com>
7311 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7314 2014-06-18 Gary Benson <gbenson@redhat.com>
7316 * i386-nat.c (debug_printf): New macro.
7317 (i386_get_debug_register_length): Likewise.
7318 (TARGET_HAS_DR_LEN_8): Use above macro.
7319 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7320 and printf_unfiltered. Use phex to format values.
7322 2014-06-18 Gary Benson <gbenson@redhat.com>
7324 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7327 2014-06-18 Gary Benson <gbenson@redhat.com>
7329 * i386-nat.c: Comment changes.
7331 2014-06-18 Gary Benson <gbenson@redhat.com>
7333 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7335 2014-06-18 Gary Benson <gbenson@redhat.com>
7337 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7338 (i386_insert_aligned_watchpoint): Likewise.
7339 (i386_remove_aligned_watchpoint): Likewise.
7340 (i386_handle_nonaligned_watchpoint): Likewise.
7342 2014-06-18 Gary Benson <gbenson@redhat.com>
7344 * i386-nat.c: Whitespace changes.
7346 2014-06-17 Samuel Bronson <naesten@gmail.com>
7348 * MAINTAINERS: Update Roland McGrath's email address.
7349 Thanks to Sergio Durigan Junior for pointing out that he left
7350 Red Hat a while ago, and giving me a current address.
7352 2014-06-17 Tom Tromey <tromey@redhat.com>
7354 * utils.h (savestring): Remove declaration.
7356 2014-06-17 Tom Tromey <tromey@redhat.com>
7358 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7360 2014-06-16 Keith Seitz <keiths@redhat.com>
7363 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7364 to update the varobj if inferior_ptid is null_ptid.
7366 2014-06-16 Tom Tromey <tromey@redhat.com>
7368 * target.h (struct target_ops) <to_info_proc>: Make parameter
7370 (target_info_proc): Update.
7371 * target.c (target_info_proc): Make "args" const.
7372 * procfs.c (procfs_info_proc): Update.
7373 * linux-tdep.c (linux_info_proc): Update.
7374 (linux_core_info_proc_mappings): Make "args" const.
7375 (linux_core_info_proc): Update.
7376 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7377 * gdbarch.c: Rebuild.
7378 * gdbarch.h: Rebuild.
7379 * corelow.c (core_info_proc): Update.
7381 2014-06-16 Tom Tromey <tromey@redhat.com>
7383 * target.h (struct target_ops) <to_disconnect>: Make parameter
7385 (target_disconnect): Update.
7386 * target.c (target_disconnect): Make "args" const.
7387 * target-delegates.c: Rebuild.
7388 * remote.c (remote_disconnect): Update.
7389 * record.h (record_disconnect): Update.
7390 * record.c (record_disconnect): Update.
7391 * inf-child.c (inf_child_disconnect): Update.
7393 2014-06-16 Tom Tromey <tromey@redhat.com>
7395 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7396 * target.c (debug_to_rcmd, default_rcmd): Update.
7397 * target-delegates.c: Rebuild.
7398 * remote.c (remote_rcmd): Update.
7399 * monitor.c (monitor_rcmd): Update.
7401 2014-06-16 Pedro Alves <palves@redhat.com>
7403 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7404 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7405 have OBJF_SHARED set.
7406 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7407 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7408 instead of OBJF_USERLOADED.
7409 * objfiles.h (OBJF_SHARED): Update comment.
7410 (userloaded_objfile_contains_address_p): Rename to ...
7411 (shared_objfile_contains_address_p): ... this, and update
7413 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7415 (remove_symbol_file_command): Skip objfiles that don't have
7418 2014-06-16 Tom Tromey <tromey@redhat.com>
7420 * minsyms.h (prim_record_minimal_symbol)
7421 (prim_record_minimal_symbol_and_info): Update comments.
7423 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7425 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7426 or --without-guile, according to how GDB was built.
7428 2014-06-13 Tom Tromey <tromey@redhat.com>
7430 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7432 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7434 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7436 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7437 help_list.Pass all_commands, not -1, to help_list.
7438 * cli/cli-dump.c (dump_command, append_command)
7439 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7440 (binary_dump_command, binary_append_command): Pass all_commands,
7441 not -1, to help_list.
7442 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7444 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7446 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7448 * top.c (set_history): Pass all_commands, not -1, to help_list.
7449 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7450 all_commands, not -1, to help_list.
7451 * symfile.c (overlay_command): Pass all_commands, not -1, to
7453 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7455 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7457 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7459 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7460 not -1, to help_list.
7461 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7462 not -1, to help_list.
7463 * maint.c (maintenance_command, maintenance_info_command)
7464 (maintenance_print_command, maintenance_set_cmd): Pass
7465 all_commands, not -1, to help_list.
7466 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7468 * language.c (set_check): Pass all_commands, not -1, to help_list.
7469 * infcmd.c (unset_command): Pass all_commands, not -1, to
7471 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7473 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7475 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7477 * breakpoint.c (save_command): Pass all_commands, not -1, to
7479 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7480 all_commands, not -1, to help_list.
7482 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7484 * regcache.c (struct register_to_invalidate): New structure.
7485 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7487 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7489 2014-06-12 Yao Qi <yao@codesourcery.com>
7491 * varobj.c (varobj_get_num_children): Call
7492 varobj_is_dynamic_p.
7493 (varobj_list_children): Likewise.
7494 (varobj_update): Likewise. Update comments.
7496 2014-06-12 Yao Qi <yao@codesourcery.com>
7498 * varobj.c (varobj_pretty_printed_p): Rename to ...
7499 (varobj_is_dynamic_p): ... this. New function.
7500 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7501 (varobj_is_dynamic_p): Declare.
7502 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7503 (mi_print_value_p, varobj_update_one): Likewise.
7505 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7506 Yao Qi <yao@codesourcery.com>
7508 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7509 (varobj_get_iterator): Wrap up code for pretty-printer by
7510 "#if HAVE_PYTHON" and "#endif".
7511 (update_dynamic_varobj_children): Likewise.
7513 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7514 Yao Qi <yao@codesourcery.com>
7516 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7517 gdb_python_initialized is false. Move some code from varobj.c.
7518 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7519 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7520 (struct varobj_item): Moved to varobj-iter.h".
7521 (varobj_clear_saved_item): New function.
7522 (update_dynamic_varobj_children): Move python-related code to
7524 (free_variable): Call varobj_clear_saved_item and
7527 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7528 Yao Qi <yao@codesourcery.com>
7530 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7531 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7532 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7533 (py-varobj.o): New rule.
7534 * python/py-varobj.c: New file.
7535 * python/python-internal.h (py_varobj_get_iterator): Declare.
7536 * varobj-iter.h: New file.
7537 * varobj.c: Include "varobj-iter.h"
7538 (struct varobj) <child_iter>: Change its type from "PyObject *"
7539 to "struct varobj_iter *".
7540 <saved_item>: Likewise.
7541 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7542 [HAVE_PYTHON] (varobj_get_iterator): New function.
7543 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7544 python-specific code to python/py-varobj.c.
7545 (install_visualizer): Call varobj_iter_delete instead of
7547 * varobj.h (varobj_ensure_python_env): Declare.
7549 2014-06-12 Yao Qi <yao@codesourcery.com>
7551 * varobj.c (struct varobj_item): New structure.
7552 (create_child_with_value): Update declaration.
7553 (varobj_add_child): Replace arguments 'name' and 'value' with
7554 'item'. All callers updated.
7555 (install_dynamic_child): Likewise.
7556 (update_dynamic_varobj_children): Likewise.
7557 (varobj_add_child): Likewise.
7558 (create_child_with_value): Likewise.
7560 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7562 * NEWS: Create a new section for the next release branch.
7563 Rename the section of the current branch, now that it has
7566 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7568 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7569 * version.in: Bump version to 7.8.50.DATE-cvs.
7571 2014-06-11 Pedro Alves <palves@redhat.com>
7574 * ser-mingw.c (net_windows_socket_check_pending): New function.
7575 (net_windows_select_thread): Ignore spurious wakeups. Use
7576 net_windows_socket_check_pending.
7577 (net_windows_wait_handle): Check for pending events with
7578 ioctlsocket, through net_windows_socket_check_pending, instead of
7579 checking the socket's event.
7581 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7583 * python/python-internal.h (gdb_PyObject_GetAttrString)
7584 (gdb_PyObject_HasAttrString): New inline function definitions.
7585 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7586 char * of the second argument to PyObject_GetAttrString.
7588 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7590 * serial.c (serial_write): Fix index of character to be printed
7591 in call to serial_logchar when serial debug traces are enabled.
7593 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7595 * gdbtypes (resolve_dynamic_range): Add function description.
7597 2014-06-09 Pedro Alves <palves@redhat.com>
7599 * linux-nat.c (linux_child_follow_fork): Initialize status with
7600 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7601 inner block. Only pass the signal to PTRACE_DETACH if in pass
7604 2014-06-09 Gary Benson <gbenson@redhat.com>
7606 * common/signals.c (gdb_signal_from_host): Reorder to separate
7607 the always-available ANSI-standard signals from the signals that
7609 (do_gdb_signal_to_host): Likewise.
7610 * proc-events.c (signal_table): Likewise.
7612 2014-06-08 Hui Zhu <hui@codesourcery.com>
7614 * common/linux-ptrace.c (linux_disable_event_reporting): New
7616 * common/linux-ptrace.h (linux_disable_event_reporting): New
7618 * linux-nat.c (linux_child_follow_fork): Do a single step before
7621 2014-06-07 Keith Seitz <keiths@redhat.com>
7625 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7626 from symbol_matches_domain in symtab.c. All local callers
7627 of symbol_matches_domain updated.
7628 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7629 search STRUCT_DOMAIN.
7630 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7631 independently. standard_lookup will do that automatically.
7632 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7633 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7634 (cp_lookup_symbol_in_namespace): Likewise.
7635 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7636 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7637 may return a STRUCT_DOMAIN match.
7638 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7639 * cp-support.c: Include language.h.
7640 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7642 * psymtab.c (match_partial_symbol): Compare the requested
7643 domain with the symbol's domain directly.
7644 (lookup_partial_symbol): Likewise.
7645 * symtab.c (lookup_symbol_in_language): Explain when/why
7646 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7647 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7648 appropriate languages.
7649 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7650 and moved to ada-lang.c
7651 (lookup_block_symbol): Explain that this function only returns
7652 symbol matching the requested DOMAIN.
7653 Compare the requested domain with the symbol's domain directly.
7654 (iterate_over_symbols): Compare the requested domain with the
7655 symbol's domain directly.
7656 * symtab.h (symbol_matches_domain): Remove.
7658 2014-06-06 Doug Evans <xdje42@gmail.com>
7660 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7661 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7662 (gdbscm_guile_version_is_at_least): Declare.
7663 (gdbscm_scm_string_to_int): Declare.
7664 * guile/guile.c (gdbscm_guile_major_version): New global.
7665 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7666 (guile_datadir): New static global.
7667 (gdbscm_guile_data_directory): New function.
7668 (initialize_scheme_side): Update.
7669 (misc_guile_functions): Add guile-data-directory.
7670 (initialize_gdb_module): Fetch guile version number.
7671 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7672 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7673 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7674 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7676 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7677 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7678 * guile/scm-value.c (gdbscm_value_to_string): Only call
7679 scm_port_conversion_strategy if Guile version >= 2.0.6.
7681 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7683 * main.c (print_gdb_help): Add -q and --silent.
7685 2014-06-06 Gary Benson <gbenson@redhat.com>
7687 * common/signals.c: Remove preprocessor conditionals for
7688 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7689 SIGSEGV and SIGTERM.
7690 * proc-events.c: Likewise.
7692 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7694 * symfile.c (symfile_free_objfile): Remove restriction to
7696 * symfile-mem.c (symbol_file_add_from_memory): Call
7697 add_target_sections_of_objfile.
7699 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7701 * guile/scm-value.c (gdbscm_history_append_x): Use
7702 'vlscm_get_value_smob_arg_unsafe' instead of
7703 'vlscm_scm_to_value'.
7705 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7708 * utils.c (printchar): Don't escape at all if quoter is NUL.
7709 Update function documentation to clarify effect of parameter
7711 * remote.c (escape_buffer): Pass '\\' as the quoter to
7712 fputstrn_unfiltered.
7713 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7714 generate the output.
7715 (mi_solib_unloaded): Same.
7717 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7719 * development.sh: Delete.
7720 * Makefile.in (config.status): Adjust dependency on development.sh.
7721 * configure.ac: Adjust development.sh source call.
7722 * configure: Regenerate.
7724 2014-06-04 Doug Evans <xdje42@gmail.com>
7726 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7727 is_scheme_bkpt, spec.
7728 (bpscm_make_breakpoint_smob): Initialize new members.
7729 (gdbscm_create_breakpoint_x): Split into two ...
7730 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7731 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7732 (scheme_function breakpoint_functions): Update.
7733 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7734 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7735 register-breakpoint!.
7737 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7740 * mem-break.c (z_type_supported): Return zero if
7741 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7743 2014-06-04 Tom Tromey <tromey@redhat.com>
7745 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7746 value_from_contents_and_address_unresolved.
7747 (ada_template_to_fixed_record_type_1): Likewise.
7748 (ada_which_variant_applies): Likewise.
7749 * value.h (value_from_contents_and_address_unresolved): Declare.
7750 * value.c (value_from_contents_and_address_unresolved): New
7752 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7753 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7754 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7756 2014-06-04 Tom Tromey <tromey@redhat.com>
7758 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7760 2014-06-04 Tom Tromey <tromey@redhat.com>
7762 * procfs.c (procfs_attach): Make "args" const.
7763 * windows-nat.c (windows_attach): Make "args" const.
7764 * nto-procfs.c (procfs_attach): Make "args" const.
7765 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7766 * go32-nat.c (go32_attach): Make "args" const.
7767 * gnu-nat.c (gnu_attach): Make "args" const.
7768 * darwin-nat.c (darwin_attach): Make "args" const.
7769 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7770 * linux-nat.c (linux_nat_attach): Make "args" const.
7771 * remote.c (extended_remote_attach_1, extended_remote_attach):
7773 * target.h (struct target_ops) <to_attach>: Make "args" const.
7774 (find_default_attach): Likewise.
7775 * utils.c (parse_pid_to_attach): Make "args" const.
7776 * utils.h (parse_pid_to_attach): Update.
7778 2014-06-04 Tom Tromey <tromey@redhat.com>
7780 * target-delegates.c: Rebuild.
7781 * target.c (default_thread_address_space): New function.
7782 (target_thread_address_space): Simplify.
7783 * target.h (struct target_ops) <to_thread_address_space>: Add
7784 TARGET_DEFAULT_FUNC.
7786 2014-06-04 Doug Evans <xdje42@gmail.com>
7788 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7790 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7792 * record-btrace.c: Include event-loop.h and inf-loop.h.
7793 (record_btrace_resume_exec_dir)
7794 (record_btrace_async_inferior_event_handler)
7795 (record_btrace_handle_async_inferior_event): New.
7796 (record_btrace_open): Create async event handler.
7797 (record_btrace_close): Delete async event handler.
7798 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7799 Mark async event handler.
7800 (record_btrace_execution_direction): New.
7801 (init_record_btrace_ops): Initialize to_execution_direction.
7803 2014-06-03 Doug Evans <xdje42@gmail.com>
7805 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7806 (gdbscm_make_parameter): Ditto.
7808 2014-06-03 Doug Evans <dje@google.com>
7810 * exec.c (exec_close_1): Call clear_section_table instead of
7811 resize_section_table.
7812 (clear_section_table): New function.
7813 (resize_section_table): Make static. Rename arg num_added to
7815 * exec.h (clear_section_table): Declare.
7816 (resize_section_table): Delete.
7817 * progspace.c (release_program_space): Call clear_section_table
7818 instead of resize_section_table.
7820 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7822 * NEWS (Python Scripting): Add entry about the new xmethods
7825 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7827 * python/py-xmethods.c: New file.
7828 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7829 (objfpy_dealloc): XDECREF on the new xmethods field.
7830 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7832 (objfpy_get_xmethods): New function.
7833 (objfile_getset): New entry 'xmethods'.
7834 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7835 (pspy_dealloc): XDECREF on the new xmethods field.
7836 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7838 (pspy_get_xmethods): New function.
7839 (pspace_getset): New entry 'xmethods'.
7840 * python/python-internal.h: Add declarations for new functions.
7841 * python/python.c (_initialize_python): Invoke
7842 gdbpy_initialize_xmethods.
7843 * python/lib/gdb/__init__.py (xmethods): New
7845 * python/lib/gdb/xmethod.py: New file.
7846 * python/lib/gdb/command/xmethods.py: New file.
7848 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7850 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7851 best match method returned by find_overload_match is an xmethod.
7852 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7853 the best matching operator returned by find_overload_match is an
7855 * valops.c: #include "extension.h".
7856 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7857 Return void. The list of matching source methods is returned in
7858 "fn_list" and a vector of matching debug method workers is
7859 returned in "xm_worker_vec". Update all callers.
7860 (value_find_oload_method_list): Likewise.
7861 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7862 non-NULL, then the index of the best matching method in this
7863 vector is returned. Update all callers.
7864 (find_overload_match): Include xmethods while performing overload
7867 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7869 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7870 * extension-priv.h (struct extension_language_ops): Add the
7872 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7873 get_matching_xmethod_workers, get_xmethod_argtypes,
7874 invoke_xmethod, free_xmethod_worker,
7875 free_xmethod_worker_vec): New functions.
7876 * extension.h: #include "common/vec.h".
7877 New function declarations.
7878 (struct xmethod_worker): New struct.
7879 (VEC (xmethod_worker_ptr)): New vector type.
7880 (xmethod_worker_ptr): New typedef.
7881 (xmethod_worker_vec): Likewise.
7882 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7884 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7885 (struct builtin_type): New field "xmethod".
7886 * valarith.c (value_ptradd): Assert that the value argument is not
7888 * valops.c (value_must_coerce_to_target): Return 0 for
7889 lval_xcallable values.
7890 * value.c (struct value): New field XM_WORKER in the field
7892 (value_address, value_raw_address): Return 0 for lval_xcallable
7894 (set_value_address): Assert that the value is not an
7896 (value_free): Free the associated xmethod worker when freeing
7897 lval_xcallable values.
7898 (set_value_component_location): Assert that the WHOLE value is not
7900 (value_of_xmethod, call_xmethod): New functions.
7901 * value.h: Declare "struct xmethod_worker".
7902 Declare new functions value_of_xmethod, call_xmethod.
7904 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7905 Pedro Alves <palves@redhat.com>
7907 PR breakpoints/17000
7908 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7909 New function, extracted from software_breakpoint_inserted_here_p.
7910 (software_breakpoint_inserted_here_p): Replace factored out code
7911 by call to find_non_raw_software_breakpoint_inserted_here.
7912 (bp_target_info_copy_insertion_state): New function.
7913 (bkpt_insert_location): Handle the case of a single-step
7914 breakpoint already inserted at the same address.
7915 (bkpt_remove_location): Handle the case of a single-step
7916 breakpoint still inserted at the same address.
7917 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7918 breakpoint already inserted at the same address.
7919 (deprecated_remove_raw_breakpoint): Handle the case of a
7920 non-raw breakpoint still inserted at the same address.
7921 (find_single_step_breakpoint): New function, extracted from
7922 single_step_breakpoint_inserted_here_p.
7923 (find_single_step_breakpoint): New function,
7924 factored out from single_step_breakpoint_inserted_here_p.
7925 (single_step_breakpoint_inserted_here_p): Reimplement.
7927 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7929 Pushed by Joel Brobecker <brobecker@adacore.com>
7930 * source.c (show_substitute_path_command): Fix display of matching
7933 2014-06-03 Gary Benson <gbenson@redhat.com>
7935 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7937 2014-06-02 Doug Evans <xdje42@gmail.com>
7939 Add parameter support for Guile.
7940 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7941 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7942 (scm-param.o): New rule.
7943 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7944 (gdbscm_misc_error): Declare.
7945 (gdbscm_canonicalize_command_name): Declare.
7946 (gdbscm_scm_to_host_string): Declare.
7947 (gdbscm_scm_from_host_string): Declare.
7948 (gdbscm_initialize_parameters): Declare.
7949 * guile/guile.c (initialize_gdb_module): Call
7950 gdbscm_initialize_parameters.
7951 * guile/lib/gdb.scm: Export parameter symbols.
7952 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7953 cmdscm_canonicalize_name and made public. All callers updated.
7954 * guile/scm-exception.c (gdbscm_misc_error): New function.
7955 * guile/scm-param.c: New file.
7956 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7957 (gdbscm_scm_to_host_string): New function.
7958 (gdbscm_scm_from_host_string): New function.
7959 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7961 2014-06-02 Doug Evans <xdje42@gmail.com>
7963 Add command support for Guile.
7964 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7965 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7966 (scm-cmd.o): New rule.
7967 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7968 (gdbscm_user_error_p): Declare.
7969 (gdbscm_parse_command_name): Declare.
7970 (gdbscm_valid_command_class_p): Declare.
7971 (gdbscm_initialize_commands): Declare.
7972 * guile/guile.c (initialize_gdb_module): Call
7973 gdbscm_initialize_commands.
7974 * guile/lib/gdb.scm: Export command symbols.
7975 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7976 (throw-user-error): New function.
7977 * guile/scm-cmd.c: New file.
7978 * guile/scm-exception.c (user_error_symbol): New static global.
7979 (gdbscm_user_error_p): New function.
7980 (gdbscm_initialize_exceptions): Set user_error_symbol.
7981 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7983 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7985 * top.c (command_loop): Handle comments here...
7986 (command_line_input): ... not here.
7988 2014-06-02 Doug Evans <xdje42@gmail.com>
7990 Add progspace support for Guile.
7991 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7992 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7993 (scm-progspace.o): New rule.
7994 * guile/guile-internal.h (pspace_smob): New typedef.
7995 (psscm_pspace_smob_pretty_printers): Declare.
7996 (psscm_pspace_smob_from_pspace): Declare.
7997 (psscm_scm_from_pspace): Declare.
7998 * guile/guile.c (initialize_gdb_module): Call
7999 gdbscm_initialize_pspaces.
8000 * guile/lib/gdb.scm: Export progspace symbols.
8001 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
8003 (append-pretty-printer!): Ditto.
8004 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
8006 * guile/scm-progspace.c: New file.
8008 2014-06-03 Alan Modra <amodra@gmail.com>
8010 * ppc64-tdep.c (ppc64_standard_linkage8): New.
8011 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
8013 2014-06-02 Doug Evans <dje@google.com>
8015 Add support for skeletonless type units.
8016 * dwarf2read.c (struct dwarf2_per_objfile): New member
8017 n_allocated_type_units.
8018 (struct dwarf2_per_objfile) <tu_stats>: New member
8019 nr_all_type_units_reallocs.
8020 (create_signatured_type_table_from_index): Initialize
8021 n_allocated_type_units
8022 (create_all_type_units): Ditto.
8023 (add_type_unit): Move up in file. New arg slot.
8024 All callers updated. Increase space for all_type_units more
8026 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
8027 (lookup_dwo_signatured_type): Handle skeletonless TUs.
8028 (lookup_dwp_signatured_type): Ditto.
8029 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
8030 All callers updated.
8031 (build_type_psymtabs_1): Leave type_unit_groups as
8032 NULL if no TUs present.
8033 (print_tu_stats): New function.
8034 (process_skeletonless_type_unit): New function.
8035 (process_dwo_file_for_skeletonless_type_units): New
8037 (process_skeletonless_type_units): New function.
8038 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
8039 Call print tu_stats if debugging enabled.
8041 2014-06-02 Pedro Alves <palves@redhat.com>
8043 * breakpoint.c (build_target_command_list): Don't build a command
8044 list if we have any duplicate location that isn't a dprintf.
8046 2014-06-02 Pedro Alves <palves@redhat.com>
8048 * breakpoint.c (dprintf_breakpoint_hit): New function.
8049 (initialize_breakpoint_ops): Install it as dprintf's
8050 breakpoint_hit method.
8052 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8054 * source.c (substitute_path_rule_matches): Simplify using
8055 filename_ncmp instead of FILENAME_CMP.
8057 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8059 * source.c (substitute_path_rule_matches): Remove trailing spaces.
8061 2014-06-01 Ludovic Courtès <ludo@gnu.org>
8063 * configure.ac: When Guile is available, check for the
8064 availability of 'scm_new_smob'.
8065 * configure, config.h.in: Regenerate.
8066 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
8069 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8071 * frame.c (struct frame_info): Add stop_string field.
8072 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
8073 (get_prev_frame_always): Old content moved into
8074 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
8075 TRY_CATCH, handle MEMORY_ERROR exceptions.
8076 (frame_stop_reason_string): New function definition.
8077 * frame.h (unwind_stop_reason_to_string): Extend comment to
8078 mention frame_stop_reason_string.
8079 (frame_stop_reason_string): New function declaration.
8080 * stack.c (frame_info): Switch to frame_stop_reason_string.
8081 (backtrace_command_1): Switch to frame_stop_reason_string.
8082 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
8083 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
8084 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
8086 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8088 * frame.c (frame_stop_reason_string): Rename to ...
8089 (unwind_stop_reason_to_string): this.
8090 * frame.h (frame_stop_reason_string): Rename to ...
8091 (unwind_stop_reason_to_string): this.
8092 * stack.c (frame_info): Update call to frame_stop_reason_string.
8093 (backtrace_command_1): Likewise.
8094 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
8095 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
8097 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8099 * frame.c (remove_prev_frame): New function.
8100 (get_prev_frame_if_no_cycle): Create / discard cleanup using
8103 2014-05-29 Pedro Alves <palves@redhat.com>
8105 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
8106 and make it const. When a single-step decays to a continue,
8107 clear 'step', not 'hw_step'. Pass whether the caller wanted
8108 to step to user_visible_resume_ptid, not what we ask the
8111 2014-05-29 Pedro Alves <palves@redhat.com>
8113 * infrun.c (process_event_stop_test, handle_step_into_function)
8114 (handle_step_into_function_backward): Adjust.
8115 Don't set the even thread's stop_step and call stop_waiting before
8116 calling end_stepping_range. Instead do that ...
8117 (end_stepping_range): ... here. Take an ecs pointer parameter.
8119 2014-05-29 Pedro Alves <palves@redhat.com>
8121 * infrun.c (stop_stepping): Rename to ...
8122 (stop_waiting): ... this.
8123 (proceed): Update comment.
8124 (process_event_stop_test, handle_inferior_event)
8125 (handle_signal_stop, handle_step_into_function)
8126 (handle_step_into_function_backward): Update.
8128 2014-05-29 Pedro Alves <palves@redhat.com>
8130 * infcall.c (run_inferior_call): Don't check whether the current
8131 thread is running after the proceed call.
8133 2014-05-29 Pedro Alves <palves@redhat.com>
8134 Tom Tromey <tromey@redhat.com>
8136 * NEWS: Mention "maint set target-async", "set mi-async", and that
8137 background execution commands are now always available.
8138 * target.h (target_async_permitted): Update comment.
8139 * target.c (target_async_permitted, target_async_permitted_1):
8141 (set_target_async_command): Rename to ...
8142 (maint_set_target_async_command): ... this.
8143 (show_target_async_command): Rename to ...
8144 (maint_show_target_async_command): ... this.
8145 (_initialize_target): Adjust.
8146 * infcmd.c (prepare_execution_command): Make extern.
8147 * inferior.h (prepare_execution_command): Declare.
8148 * infrun.c (set_observer_mode): Leave target async alone.
8149 * mi/mi-interp.c (mi_interpreter_init): Install
8150 mi_on_sync_execution_done as sync_execution_done observer.
8151 (mi_on_sync_execution_done): New function.
8152 (mi_execute_command_input_handler): Don't print the prompt if we
8153 just started a synchronous command with an async target.
8154 (mi_on_resume): Check sync_execution before printing prompt.
8155 * mi/mi-main.h (mi_async_p): Declare.
8156 * mi/mi-main.c: Include gdbcmd.h.
8157 (mi_async_p): New function.
8158 (mi_async, mi_async_1): New globals.
8159 (set_mi_async_command, show_mi_async_command, mi_async): New
8161 (exec_continue): Call prepare_execution_command.
8162 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8163 (mi_execute_async_cli_command): Use mi_async_p.
8164 (_initialize_mi_main): Install "set mi-async". Make
8165 "target-async" a deprecated alias.
8167 2014-05-29 Pedro Alves <palves@redhat.com>
8169 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8170 (_initialize_cli_interp): Adjust.
8171 * event-loop.c: Include "observer.h".
8172 (start_event_loop): Notify 'command_error' observers instead of
8173 calling display_gdb_prompt. Remove FIXME comment.
8174 * event-top.c (display_gdb_prompt): Remove call into the
8176 * inf-loop.c: Include "observer.h".
8177 (inferior_event_handler): Notify 'command_error' observers instead
8178 of calling display_gdb_prompt.
8179 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8180 observers instead of calling display_gdb_prompt.
8181 * interps.c (interp_set): Don't call display_gdb_prompt.
8182 (current_interp_display_prompt_p): Delete.
8183 * interps.h (interp_prompt_p): Delete declaration.
8184 (interp_prompt_p_ftype): Delete.
8185 (struct interp_procs) <prompt_proc_p>: Delete field.
8186 (current_interp_display_prompt_p): Delete declaration.
8187 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8188 (_initialize_mi_interp): Adjust.
8189 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8190 'command_error' observers.
8191 (tui_on_sync_execution_done, tui_on_command_error): New
8193 (tui_display_prompt_p): Delete.
8194 (_initialize_tui_interp): Adjust.
8196 2014-05-29 Pedro Alves <palves@redhat.com>
8199 * cli/cli-interp.c: Include infrun.h and observer.h.
8200 (cli_uiout, cli_interp): New globals.
8201 (cli_on_signal_received, cli_on_end_stepping_range)
8202 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8204 (cli_interpreter_init): Install them as 'end_stepping_range',
8205 'signal_received' 'signal_exited', 'exited' and 'no_history'
8207 (_initialize_cli_interp): Remove cli_interp local.
8208 * infrun.c (handle_inferior_event): Call the several stop reason
8209 observers instead of printing the stop reason directly.
8210 (end_stepping_range): New function.
8211 (print_end_stepping_range_reason, print_signal_exited_reason)
8212 (print_exited_reason, print_signal_received_reason)
8213 (print_no_history_reason): Make static, and add an uiout
8214 parameter. Print to that instead of to CURRENT_UIOUT.
8215 * infrun.h (print_end_stepping_range_reason)
8216 (print_signal_exited_reason, print_exited_reason)
8217 (print_signal_received_reason print_no_history_reason): New
8219 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8221 <cli_uiout>: New field.
8222 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8223 uiout for CLI output. Install 'signal_received',
8224 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8226 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8227 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8228 (mi_on_no_history): New functions.
8229 (ui_out_free_cleanup): Delete function.
8230 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8231 instead use the one already stored in the MI interpreter data.
8232 (mi_ui_out): Adjust.
8233 * tui/tui-interp.c: Include infrun.h and observer.h.
8234 (tui_interp): New global.
8235 (tui_on_signal_received, tui_on_end_stepping_range)
8236 (tui_on_signal_exited, tui_on_exited)
8237 (tui_on_no_history): New functions.
8238 (tui_init): Install them as 'end_stepping_range',
8239 'signal_received' 'signal_exited', 'exited' and 'no_history'
8241 (_initialize_tui_interp): Delete tui_interp local.
8243 2014-05-29 Pedro Alves <palves@redhat.com>
8246 * linux-nat.c (linux_nat_resume_callback): Rename the second
8247 parameter to 'except'. Skip LP if it points to EXCEPT.
8248 (linux_nat_resume): Don't mark the event lwp as not stopped
8249 before resuming sibling lwps. Instead ask
8250 linux_nat_resume_callback to skip the event lwp. Mark it as not
8251 stopped after actually resuming it.
8252 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8254 (wait_lwp): Mark the lwp as stopped here.
8255 (stop_wait_callback): Mark the lwp as not stopped right after
8256 resuming it. Don't mark lwps as stopped here.
8257 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8258 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8260 2014-05-29 Pedro Alves <palves@redhat.com>
8263 * infrun.c (resume): Determine how much to resume depending on
8264 whether the caller wanted a step, not whether we can hardware step
8265 the target. Mark all threads that we intend to run as running,
8266 unless we're calling an inferior function.
8267 (normal_stop): If the thread is running an infcall, don't finish
8269 * target.c (target_resume): Don't mark threads as running here.
8271 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8273 * serial.c (_initialize_serial): Remove support for
8274 the "set remotebaud" and "show remotebaud" commands.
8275 * NEWS: Add entry documenting the removal of that command.
8277 2014-05-28 Yao Qi <yao@codesourcery.com>
8279 * charset.c: Fix typo in comments.
8281 2014-05-27 Gary Benson <gbenson@redhat.com>
8283 * utils.c (internal_vproblem): Prompt for a bug report.
8285 2014-05-26 Andy Wingo <wingo@igalia.com>
8287 * guile/scm-arch.c (arscm_mark_arch_smob):
8288 * guile/scm-block.c (bkscm_mark_block_smob)
8289 (bkscm_mark_block_syms_progress_smob):
8290 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8291 * guile/scm-exception.c (exscm_mark_exception_smob):
8292 * guile/scm-frame.c (frscm_mark_frame_smob):
8293 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8294 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8295 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8296 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8297 (ppscm_mark_pretty_printer_worker_smob):
8298 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8299 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8300 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8301 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8303 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8306 2014-05-26 Andy Wingo <wingo@igalia.com>
8307 Doug Evans <xdje42@gmail.com>
8309 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8310 empty_base_class. All uses updated.
8311 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8312 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8314 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8315 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8316 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8317 (gdbscm_gsmob_has_property_p, add_property_name)
8318 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8319 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8320 (gdb-object-has-property?, gdb-object-properties): Remove.
8321 (gdb-object-kind): Renamed from gsmob-kind.
8323 2014-05-26 Andy Wingo <wingo@igalia.com>
8325 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8326 * configure: Regenerate.
8328 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8330 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8332 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8334 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8335 (replay_memory_access_read_only, replay_memory_access_read_write)
8336 (replay_memory_access_types, replay_memory_access)
8337 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8338 (cmd_set_record_btrace, cmd_show_record_btrace)
8339 (cmd_show_replay_memory_access): New.
8340 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8341 (record_btrace_remove_breakpoint): Replace
8342 record_btrace_allow_memory_access with replay_memory_access.
8343 (_initialize_record_btrace): Add commands.
8344 * NEWS: Announce it.
8346 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8348 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8350 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8352 * MAINTAINERS (Write After Approval): Move self back from
8355 2014-05-22 Pedro Alves <palves@redhat.com>
8357 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8358 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8359 (disable_randomization, enum exec_direction_kind)
8360 (execution_direction, stop_registers, start_remote)
8361 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8362 (wait_for_inferior, normal_stop, get_last_target_status)
8363 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8364 (insert_step_resume_breakpoint_at_sal)
8365 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8366 (set_step_info, print_stop_event, signal_stop_state)
8367 (signal_print_state, signal_pass_state, signal_stop_update)
8368 (signal_print_update, signal_pass_update)
8369 (update_signals_program_target, clear_exit_convenience_vars)
8370 (displaced_step_dump_bytes, update_observer_mode)
8371 (signal_catch_update, gdb_signal_from_command): Move
8373 * infrun.h: ... to this new file.
8374 * amd64-tdep.c: Include infrun.h.
8375 * annotate.c: Include infrun.h.
8376 * arch-utils.c: Include infrun.h.
8377 * arm-linux-tdep.c: Include infrun.h.
8378 * arm-tdep.c: Include infrun.h.
8379 * break-catch-sig.c: Include infrun.h.
8380 * breakpoint.c: Include infrun.h.
8381 * common/agent.c: Include infrun.h instead of inferior.h.
8382 * corelow.c: Include infrun.h.
8383 * event-top.c: Include infrun.h.
8384 * go32-nat.c: Include infrun.h.
8385 * i386-tdep.c: Include infrun.h.
8386 * inf-loop.c: Include infrun.h.
8387 * infcall.c: Include infrun.h.
8388 * infcmd.c: Include infrun.h.
8389 * infrun.c: Include infrun.h.
8390 * linux-fork.c: Include infrun.h.
8391 * linux-nat.c: Include infrun.h.
8392 * linux-thread-db.c: Include infrun.h.
8393 * monitor.c: Include infrun.h.
8394 * nto-tdep.c: Include infrun.h.
8395 * procfs.c: Include infrun.h.
8396 * record-btrace.c: Include infrun.h.
8397 * record-full.c: Include infrun.h.
8398 * remote-m32r-sdi.c: Include infrun.h.
8399 * remote-mips.c: Include infrun.h.
8400 * remote-notif.c: Include infrun.h.
8401 * remote-sim.c: Include infrun.h.
8402 * remote.c: Include infrun.h.
8403 * reverse.c: Include infrun.h.
8404 * rs6000-tdep.c: Include infrun.h.
8405 * s390-linux-tdep.c: Include infrun.h.
8406 * solib-irix.c: Include infrun.h.
8407 * solib-osf.c: Include infrun.h.
8408 * solib-svr4.c: Include infrun.h.
8409 * target.c: Include infrun.h.
8410 * top.c: Include infrun.h.
8411 * windows-nat.c: Include infrun.h.
8412 * mi/mi-interp.c: Include infrun.h.
8413 * mi/mi-main.c: Include infrun.h.
8414 * python/py-threadevent.c: Include infrun.h.
8416 2014-05-22 Pedro Alves <palves@redhat.com>
8418 * infrun.c (handle_inferior_event): Store the exit code for
8419 --return-child-result here, instead of ...
8420 (print_exited_reason): ... here.
8422 2014-05-21 Pedro Alves <palves@redhat.com>
8425 * gdbthread.h (struct thread_control_state): New field
8427 * infrun.c (follow_fork): Copy the new thread control field to the
8429 (clear_proceed_status_thread): Clear the new thread control field.
8430 (proceed): Set the new thread control field.
8431 * interps.h (command_interp): Declare.
8432 * interps.c (command_interpreter): New global.
8433 (command_interp): New function.
8434 (interp_exec): Set `command_interpreter' while here.
8435 * cli-out.c (cli_uiout_dtor): New function.
8436 (cli_ui_out_impl): Install it.
8437 * mi/mi-interp.c: Include cli-out.h.
8438 (mi_cmd_interpreter_exec): Add comment.
8439 (restore_current_uiout_cleanup): New function.
8440 (ui_out_free_cleanup): New function.
8441 (mi_on_normal_stop): If finishing an execution command started by
8442 a CLI command, or any kind of breakpoint-like event triggered,
8443 print the stop event to the output (CLI) stream.
8444 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8446 2014-05-21 Pedro Alves <palves@redhat.com>
8448 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8449 current source line having changed.
8450 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8451 * infrun.c (normal_stop): Adjust call to
8452 set_current_sal_from_frame.
8453 * source.c (clear_lines_listed_range): New function.
8454 (set_current_source_symtab_and_line, identify_source_line): Clear
8455 the lines listed range.
8456 (line_info): Handle the first "info line" after the current source
8457 line having changed.
8458 * stack.c (print_stack_frame): Remove center handling.
8459 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8462 2014-05-21 Pedro Alves <palves@redhat.com>
8464 * inf-child.c (inf_child_mourn_inferior): New function.
8465 * inf-child.h (inf_child_mourn_inferior): New declaration.
8466 * darwin-nat.c (darwin_mourn_inferior): Use
8467 inf_child_mourn_inferior.
8468 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8469 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8470 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8471 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8472 * windows-nat.c (windows_mourn_inferior): Likewise.
8474 2014-05-21 Doug Evans <xdje42@gmail.com>
8476 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8478 2014-05-21 Doug Evans <xdje42@gmail.com>
8480 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8481 (gdbscm_out_of_range_error): Ditto.
8482 (gdbscm_memory_error): Ditto.
8483 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8484 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8485 (gdbscm_out_of_range_error): Update.
8486 (gdbscm_memory_error): Update.
8487 (gdbscm_scm_to_target_string_unsafe): Delete.
8489 2014-05-21 Pedro Alves <palves@redhat.com>
8491 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8493 (inf_child_open_target): New function.
8494 (inf_child_open): Use inf_child_open_target to push the target
8495 instead of erroring out.
8496 (inf_child_disconnect, inf_child_close)
8497 (inf_child_maybe_unpush_target): New functions.
8498 (inf_child_target): Install inf_child_disconnect and
8499 inf_child_close. Store a pointer to the returned object.
8500 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8502 * target.c (auto_connect_native_target): New global.
8503 (show_default_run_target): New function.
8504 (find_default_run_target): Return NULL if automatically connecting
8505 to the native target is disabled.
8506 (_initialize_target): Install set/show auto-connect-native-target.
8507 * NEWS: Mention "set auto-connect-native-target", and "target
8509 * linux-nat.c (super_close): New global.
8510 (linux_nat_close): Call super_close.
8511 (linux_nat_add_target): Store a pointer to the base class's
8513 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8514 inf_child_maybe_unpush.
8515 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8517 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8518 the inferior. Use inf_child_maybe_unpush_target.
8519 (inf_ttrace_attach): Don't push the target if it is already
8521 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8522 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8523 after mourning the inferior. Use inf_child_maybe_unpush_target.
8524 (darwin_attach_pid): Don't push the target if it is already
8526 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8527 mourning the inferior. Use inf_child_maybe_unpush_target.
8528 (gnu_detach): Use inf_child_maybe_unpush_target.
8529 * go32-nat.c (go32_create_inferior): Don't push the target if it
8531 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8532 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8533 (procfs_open): Rename to ...
8534 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8535 comments. Can target_preopen before changing node. Call
8536 inf_child_open_target to push the target explicitly.
8537 (procfs_attach): Don't push the target if it is already pushed.
8538 (procfs_detach): Use inf_child_maybe_unpush_target.
8539 (procfs_create_inferior): Don't push the target if it is already
8541 (nto_native_ops): New global.
8542 (procfs_open): Reimplement.
8543 (procfs_native_open): New function.
8544 (init_procfs_targets): Install procfs_native_open as to_open of
8545 "target native". Store a pointer to the "native" target in
8547 * procfs.c (procfs_attach): Don't push the target if it is already
8549 (procfs_detach): Use inf_child_maybe_unpush_target.
8550 (procfs_mourn_inferior): Only unpush the target after mourning the
8551 inferior. Use inf_child_maybe_unpush_target.
8552 (procfs_init_inferior): Don't push the target if it is already
8554 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8555 if it is already pushed.
8557 2014-05-21 Pedro Alves <palves@redhat.com>
8559 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8560 and "procfs" targets are now called "native" instead.
8562 2014-05-21 Pedro Alves <palves@redhat.com>
8564 * go32-nat.c (go32_open): Delete.
8565 (go32_target): Don't override the to_open method.
8567 2014-05-21 Pedro Alves <palves@redhat.com>
8569 * nto-procfs.c (procfs_can_run): New function.
8570 (nto_procfs_ops): New global.
8571 (init_procfs_targets): New, based on procfs_target. Install
8572 "target native" in addition to "target procfs".
8573 (_initialize_procfs): Call init_procfs_targets instead of adding
8576 2014-05-21 Pedro Alves <palves@redhat.com>
8578 * windows-nat.c (windows_target): Don't override to_shortname,
8579 to_longname or to_doc.
8581 2014-05-21 Pedro Alves <palves@redhat.com>
8583 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8586 2014-05-21 Pedro Alves <palves@redhat.com>
8588 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8589 to_shortname, to_longname or to_doc.
8591 2014-05-21 Pedro Alves <palves@redhat.com>
8593 * go32-nat.c (go32_target): Don't override to_shortname,
8594 to_longname or to_doc.
8596 2014-05-21 Pedro Alves <palves@redhat.com>
8598 * inf-child.c (inf_child_open): Remove mention of "child".
8599 (inf_child_target): Rename target to "native" instead of "child".
8601 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8603 * Makefile.in (SFILES): Delete "regset.c".
8604 (COMMON_OBS): Delete "regset.o".
8606 * regset.h (regset_alloc): Delete prototype.
8608 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8610 * sparc-linux-tdep.c (sparc32_linux_gregset)
8611 (sparc32_linux_fpregset): New static regset structures.
8612 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8613 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8615 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8616 (sparc64_linux_fpregset): New static regset structures.
8617 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8618 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8619 New static regset structures.
8620 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8621 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8622 New static regset structures.
8623 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8624 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8625 New static regset structures.
8626 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8627 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8628 New static regset structures.
8629 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8631 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8633 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8634 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8635 register maps ("regmaps") from "*regset" to "*regmap". Do this
8636 for all regmap types and variables.
8637 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8638 (sparc32_linux_supply_core_gregset)
8639 (sparc32_linux_collect_core_gregset)
8640 (sparc32_linux_supply_core_fpregset)
8641 (sparc32_linux_collect_core_fpregset): Likewise.
8642 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8643 (sparc_gregmap, sparc_fpregmap): ... these.
8644 (sparc_supply_gregset, sparc_collect_gregset)
8645 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8646 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8647 (_initialize_sparc_nat): Rename regmaps.
8648 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8649 (sparc_gregmap, sparc_fpregmap): ... these.
8650 (sparc_supply_gregset, sparc_collect_gregset)
8651 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8652 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8654 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8655 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8657 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8659 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8660 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8661 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8663 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8664 (sparc32_bsd_fpregset): Rename to...
8665 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8666 (sparc32_bsd_fpregmap): ... these.
8667 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8668 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8669 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8670 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8671 (struct sparc_gregmap, struct sparc_fpregmap)
8672 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8673 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8674 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8675 (sparc32_supply_regset, sparc32_collect_gregset)
8676 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8678 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8679 (sparc64_linux_ptrace_gregmap): ... this.
8680 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8681 (_initialize_sparc64_linux_nat): Rename regmaps.
8682 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8683 (sparc64_linux_core_gregmap): ... this.
8684 (sparc64_linux_supply_core_gregset)
8685 (sparc64_linux_collect_core_gregset)
8686 (sparc64_linux_supply_core_fpregset)
8687 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8688 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8689 (sparc64_sol2_fpregset): Rename to...
8690 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8691 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8692 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8694 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8695 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8696 (sparc64_bsd_fpregset): Rename to...
8697 (struct sparc_gregmap, sparc64_sol2_gregmap)
8698 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8699 (sparc64_bsd_fpregmap): ... these.
8700 (sparc64_supply_gregset, sparc64_collect_gregset)
8701 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8703 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8704 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8705 (sparc64fbsd_gregmap): ... this.
8706 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8707 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8709 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8710 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8711 (sparc64nbsd_collect_fpregset): Likewise.
8712 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8713 (sparc64nbsd_gregmap): ... this.
8714 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8716 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8717 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8718 (sparc64obsd_gregmap): ... this.
8719 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8721 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8722 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8723 (sparc32nbsd_gregmap): ... this.
8724 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8727 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8729 * score-tdep.c (score7_linux_gregset): New static regset
8731 (score7_linux_regset_from_core_section): Remove dynamic regset
8733 (score_gdbarch_init): Drop allocation of tdep structure.
8734 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8736 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8738 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8740 (am33_regset_from_core_section): Remove dynamic regset
8743 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8745 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8746 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8748 (mips_linux_regset_from_core_section): Remove dynamic regset
8750 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8751 'gregset64', 'fpregset', and 'fpregset64'.
8752 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8753 deleted tdep fields.
8755 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8757 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8759 (amd64_regset_from_core_section): Remove dynamic regset
8761 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8763 (amd64obsd_regset_from_core_section): Remove dynamic regset
8765 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8767 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8768 x86-common regset supply function.
8769 * i386-tdep.c (i386_collect_gregset): Make static.
8770 (i386_gregset): New global regset structure.
8771 (i386_fpregset, i386_xstateregset): New static regset structures.
8772 (i386_regset_from_core_section): Remove dynamic regset
8774 (i386_gdbarch_init): Remove initialization of tdep fields
8775 'gregset', 'fpregset', and 'xstateregset'.
8776 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8777 'fpregset', and 'xstateregset'.
8778 (i386_collect_gregset): Remove prototype.
8779 (i386_gregset): New declaration.
8780 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8782 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8785 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8787 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8788 (arm_linux_vfpregset): New static regset structures.
8789 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8791 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8792 and 'vfpregset' fields.
8794 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8796 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8797 (aarch64_linux_fpregset): New static regset structures.
8798 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8799 of regset structures.
8800 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8803 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8805 * regset.h (struct regset): Remove gdbarch field.
8806 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8807 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8808 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8810 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8811 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8812 (ppc32_linux_vsxregset): Likewise.
8813 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8814 via the regcache instead of the regset.
8815 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8816 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8817 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8818 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8821 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8823 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8824 Constify structures.
8825 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8826 (alphanbsd_aout_gregset): Likewise.
8827 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8828 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8830 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8831 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8833 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8834 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8835 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8836 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8837 * m88k-tdep.c (m88k_gregset): Likewise.
8838 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8839 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8840 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8841 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8842 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8843 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8844 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8845 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8846 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8848 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8849 * sh-tdep.h (sh_corefile_gregset): Likewise.
8850 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8851 * vax-tdep.c (vax_gregset): Likewise.
8853 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8855 Fix TLS access for -static -pthread.
8856 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8857 (try_thread_db_load_1): Initialize it.
8858 (thread_db_get_thread_local_address): Call it if LM is zero.
8859 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8860 * target.h (struct target_ops) (to_get_thread_local_address): Add
8861 load_module_addr comment.
8863 2014-05-21 Pedro Alves <palves@redhat.com>
8865 * dcache.c (dcache_read_memory_partial): If reading the cache line
8866 fails, fallback to reading just the memory the caller wanted.
8868 2014-05-20 Doug Evans <dje@google.com>
8870 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8871 instead of get_current_arch.
8873 2014-05-20 Pedro Alves <palves@redhat.com>
8875 * NEWS: Mention that compare-sections now works with all targets.
8877 * remote.c (PACKET_qCRC): New enum value.
8878 (remote_verify_memory): Don't send qCRC if the target has no
8879 execution. Use packet_support/packet_ok. If the target doesn't
8880 support the qCRC packet, fallback to a deep memory copy.
8881 (compare_sections_command): Say "target image" instead of "remote
8883 (_initialize_remote): Add PACKET_qCRC to the list of config
8884 packets that have no associated command. Extend comment.
8885 * target.c (simple_verify_memory, default_verify_memory): New
8887 * target.h (struct target_ops) <to_verify_memory>: Default to
8888 default_verify_memory.
8889 (simple_verify_memory): New declaration.
8890 * target-delegates.c: Regenerate.
8892 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8894 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8896 2014-05-20 Hui Zhu <hui@codesourcery.com>
8897 Yao Qi <yao@codesourcery.com>
8900 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8901 and change address of sp and pc.
8903 2014-05-19 Tom Tromey <tromey@redhat.com>
8905 * gdbtypes.c (rank_function): Use XNEWVEC.
8906 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8908 2014-05-19 Doug Evans <dje@google.com>
8910 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8911 build_type_unit_groups and moved closer to only caller. Remove
8912 arguments. All references updated. Remove outdated .gdb_index
8914 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8915 build_type_psymtabs_1.
8917 2014-05-19 Doug Evans <dje@google.com>
8919 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8920 n_type_unit_groups, all_type_unit_groups. All uses removed.
8921 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8922 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8923 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8924 (add_type_unit_group_to_table): Delete.
8926 2014-05-19 Doug Evans <dje@google.com>
8928 * eval.c (evaluate_subexp_standard): Add some comments.
8930 2014-05-17 Doug Evans <xdje42@gmail.com>
8932 * progspace.c (remove_program_space): Delete, unused.
8933 * progspace.h (remove_program_space): Ditto.
8935 2014-05-17 Doug Evans <xdje42@gmail.com>
8937 * inferior.c (prune_inferiors): Fix comment.
8938 (remove_inferior_command): Call prune_program_spaces.
8940 2014-05-16 Doug Evans <dje@google.com>
8942 New command line option -D.
8944 * main.c (set_gdb_data_directory): New function.
8945 (captured_main): Recognize -D. Flag error for --data-directory "".
8946 Call set_gdb_data_directory.
8947 (print_gdb_help): Print --data-directory, -D.
8948 * main.h (set_gdb_data_directory): Declare.
8949 * top.c (staged_gdb_datadir): New static global.
8950 (set_gdb_datadir): Call set_gdb_data_directory
8951 (show_gdb_datadir): New function.
8952 (init_main): Update init of data-directory parameter.
8954 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8956 Import the "dirfd" gnulib module.
8957 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8958 * gnulib/aclocal.m4: Update.
8959 * gnulib/config.in: Update.
8960 * gnulib/configure: Update.
8961 * gnulib/import/Makefile.am: Update.
8962 * gnulib/import/Makefile.in: Update.
8963 * gnulib/import/dirfd.c: New.
8964 * gnulib/import/m4/dirfd.m4: New.
8965 * gnulib/import/m4/gnulib-cache.m4: Update.
8966 * gnulib/import/m4/gnulib-comp.m4: Update.
8968 2014-05-16 Pierre Muller <muller@sourceware.org>
8969 Yao Qi <yao@codesourcery.com>
8971 * valprint.c (print_wchar): Move the code on checking whether
8972 W is a printable wide char to the default branch of switch
8973 statement below. Call wchar_printable instead of gdb_iswprint.
8975 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8977 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8978 ldr.w and ldrd instructions.
8980 2014-05-15 Doug Evans <dje@google.com>
8982 * dwarf2read.c (read_structure_type): Delete outdated comments.
8984 2014-05-14 Tom Tromey <tromey@redhat.com>
8986 * macrocmd.c (print_macro_definition): Reindent.
8988 2014-05-13 Doug Evans <xdje42@gmail.com>
8990 * python/py-cmd.c (cmdpy_completer): Add comment.
8991 (completers): Make const.
8993 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8995 * infrun.c (resume): Remove should_resume (unused). Move up
8996 declaration of resume_ptid.
8998 2014-05-13 Tom Tromey <tromey@redhat.com>
9000 * language.h (unop_type_check): Remove.
9001 (binop_type_check): Don't declare.
9003 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
9005 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
9006 call to regcache_raw_collect.
9008 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9010 * mi/mi-console.c (mi_console_raw_packet): Use the value from
9011 mi_console->quote as the quoting character.
9013 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9015 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
9017 2014-04-29 Tom Tromey <tromey@redhat.com>
9019 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
9020 "show debug varobj".
9022 2014-05-07 Kyle McMartin <kyle@redhat.com>
9024 Pushed by Joel Brobecker <brobecker@adacore.com>.
9025 * aarch64-tdep.c (aarch64_software_single_step): New function.
9026 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
9027 with aarch64_software_single_step.
9029 2014-05-05 Joel Brobecker <brobecker@adacore.com>
9033 2014-05-05 Keith Seitz <keiths@redhat.com>
9035 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
9036 variable or history value is successfully parsed.
9038 2014-05-05 Yao Qi <yao@codesourcery.com>
9039 Pedro Alves <palves@redhat.com>
9041 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
9042 address of blocks that intersects the requested range. Trim
9043 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
9045 * ctf.c (ctf_xfer_partial): Likewise.
9047 2014-05-05 Yao Qi <yao@codesourcery.com>
9049 * printcmd.c (display_command): Remove the check to
9050 target_has_execution.
9052 2014-05-03 Mark Kettenis <kettenis@gnu.org>
9054 * ppcobsd-nat.c: Include "obsd-nat.h".
9055 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
9057 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9059 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9061 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
9062 and 16-bit signed and unsigned arguments. Update comment.
9063 (stap_parse_probe_arguments): Extend code to handle such
9064 arguments. Use warning instead of complaint to notify about
9065 unrecognized bitness.
9067 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9069 PR breakpoints/16889
9070 * stap-probe.c (stap_parse_probe_arguments): Simplify
9071 check for non-prefixed probes (i.e., probes whose
9072 arguments do not start with "N@"). Always set the
9073 argument type to a sane value.
9075 2014-05-01 David Taylor <dtaylor@emc.com>
9077 * remote.c (compare_sections_command): Add -r option to compare
9078 all loadable read-only sections.
9080 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
9082 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
9083 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
9085 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
9086 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
9087 Remove unused CORE_ADDR argument. Update all callers.
9089 2014-04-29 Pedro Alves <palves@redhat.com>
9091 * remote.c (struct packet_config) <detect>: Extend comment.
9092 (add_packet_config_cmd): Don't set the config's detect or support
9094 (init_all_packet_configs): Also initialize the config's 'detect'
9096 (reset_all_packet_configs_support): New function.
9097 (remote_open_1): Call reset_all_packet_configs_support instead of
9098 init_all_packet_configs.
9099 (_initialize_remote): Initialize all packet configs. Assert that
9100 all packets have an associated command, except a few known
9103 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9105 * dwarf2read.c (read_subrange_type): Handle dynamic
9106 DW_AT_lower_bound attributes.
9108 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9110 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
9111 dynamic bounds before computing its upper bound.
9112 (ada_discrete_type_low_bound): Same as above with the lower bound.
9114 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9116 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9117 range types. Adjust the array handling implementation to
9118 take advantage of this change.
9119 (resolve_dynamic_range): New function, mostly extracted from
9120 resolve_dynamic_bounds.
9121 (resolve_dynamic_array): New function, mostly extracted from
9122 resolve_dynamic_bounds.
9123 (resolve_dynamic_bounds): Delete.
9124 (resolve_dynamic_type): Reimplement. Add handling of
9125 TYPE_CODE_RANGE types.
9127 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9129 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9130 handling of parallel ___XA types.
9132 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9134 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9135 unnecessary second call to static_unwrap_type.
9137 2014-04-27 Hui Zhu <hui@codesourcery.com>
9139 * stack.c (print_frame_info): Call do_gdb_disassembly with
9140 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9142 2014-04-26 Doug Evans <xdje42@gmail.com>
9144 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9146 2014-04-25 Pedro Alves <palves@redhat.com>
9149 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9150 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9151 and newline from built string.
9152 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9153 (linux_ptrace_attach_fail_reason): ... this.
9154 * linux-nat.c (linux_nat_attach): Adjust to use
9155 linux_ptrace_attach_fail_reason.
9157 2014-04-25 Pedro Alves <palves@redhat.com>
9159 * remote.c (struct remote_state): Remove multi_process_aware,
9160 non_stop_aware, cond_tracepoints, cond_breakpoints,
9161 breakpoint_commands, fast_tracepoints, static_tracepoints,
9162 install_in_trace, disconnected_tracing,
9163 enable_disable_tracepoints, string_tracing, and
9164 augmented_libraries_svr4_read fields.
9165 (remote_multi_process_p): Move further below in the file.
9166 (struct packet_config): Add comments.
9167 (update_packet_config): Delete function.
9168 (show_packet_config_cmd): Use packet_config_support.
9169 (add_packet_config_cmd): Use NULL as set callback.
9170 (packet_ok): "set remote foo-packet"-style commands no longer
9171 change config->supported -- adjust.
9172 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9173 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9174 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9175 (PACKET_QNonStop, PACKET_multiprocess_feature)
9176 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9177 (PACKET_DisconnectedTracing_feature)
9178 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9179 (set_remote_protocol_packet_cmd): Delete function.
9180 (packet_config_support, packet_support): New functions.
9181 (set_remote_protocol_Z_packet_cmd): Don't call
9182 update_packet_config.
9183 (remote_query_attached, remote_pass_signals)
9184 (remote_program_signals, remote_threads_info)
9185 (remote_threads_extra_info, remote_start_remote): Use
9187 (remote_start_remote): Use packet_config_support and
9189 (init_all_packet_configs): Set all packets to unknown support,
9190 instead of calling update_packet_config.
9191 (remote_check_symbols): Use packet_support.
9192 (remote_supported_packet): Unconditionally set the packet config's
9194 (remote_multi_process_feature, remote_non_stop_feature)
9195 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9196 (remote_breakpoint_commands_feature)
9197 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9198 (remote_install_in_trace_feature)
9199 (remote_disconnected_tracing_feature)
9200 (remote_enable_disable_tracepoint_feature)
9201 (remote_string_tracing_feature)
9202 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9203 (remote_protocol_features): Adjust to use remote_supported_packet
9204 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9205 "ConditionalTracepoints", "ConditionalBreakpoints",
9206 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9207 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9208 "EnableDisableTracepoints", and "tracenz".
9209 (remote_query_supported): Use packet_support.
9210 (remote_open_1): Adjust.
9211 (extended_remote_attach_1): Use packet_support. Switch on the
9212 result of packet_ok instead of checking whether the packet ended
9214 (remote_vcont_resume): Use packet_support.
9215 (remote_resume, remote_stop_ns, fetch_register_using_p)
9216 (remote_prepare_to_store, store_register_using_P)
9217 (check_binary_download, remote_write_bytes): Use packet_support.
9218 (remote_vkill): Use packet_support. Switch on the result of
9219 packet_ok instead of checking whether the packet ended up
9221 (extended_remote_supports_disable_randomization): Use
9223 (extended_remote_run): Switch on the result of packet_ok instead
9224 of checking whether the packet ended up disabled.
9225 (remote_insert_breakpoint, remote_remove_breakpoint)
9226 (remote_insert_watchpoint, remote_remove_watchpoint)
9227 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9229 (remote_search_memory): Use packet_config_support.
9230 (remote_get_thread_local_address, remote_get_tib_address)
9231 (remote_hostio_send_command, remote_can_execute_reverse): Use
9233 (remote_supports_cond_tracepoints)
9234 (remote_supports_cond_breakpoints)
9235 (remote_supports_fast_tracepoints)
9236 (remote_supports_static_tracepoints)
9237 (remote_supports_install_in_trace)
9238 (remote_supports_enable_disable_tracepoint)
9239 (remote_supports_string_tracing)
9240 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9241 the packet config says the feature is enabled or disabled.
9242 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9243 (remote_get_trace_status): Use packet_support.
9244 (remote_set_disconnected_tracing): Adjust to check whether the
9245 feature is enabled with packet_support.
9246 (remote_set_trace_buffer_size, remote_use_agent)
9247 (remote_can_use_agent, remote_supports_btrace): Use
9249 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9250 Use packet_config_support.
9251 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9252 the packet config says the feature is enabled or disabled.
9253 (set_range_stepping): Use packet_support.
9255 2014-04-25 Tom Tromey <tromey@redhat.com>
9257 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9260 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9262 * NEWS: Mention support for C99 variable length arrays.
9264 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9266 * ada-lang.c (standard_exc): Expand introductory comment.
9268 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9269 Walfred Tedeschi <walfred.tedeschi@intel.com>
9271 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9273 (amd64_linux_read_description): Add code to handle AVX512 xstate
9274 mask and return respective tdesc.
9275 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9276 and features/i386/x32-avx512-linux.c.
9277 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9278 (amd64_linux_core_read_description): Add code to handle AVX512
9279 xstate mask and return respective tdesc.
9280 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9281 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9283 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9284 (tdesc_amd64_avx512_linux): New prototype.
9285 (tdesc_x32_avx512_linux): Likewise.
9286 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9287 features/i386/x32-avx512.c.
9288 (amd64_ymm_avx512_names): New register names for pseudo
9290 (amd64_ymmh_avx512_names): New register names for raw registers
9292 (amd64_k_names): New register names for K registers.
9293 (amd64_zmmh_names): New register names for ZMM raw registers.
9294 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9295 (amd64_xmm_avx512_names): New register names for XMM16-31
9297 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9299 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9300 if feature is present.
9301 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9302 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9303 (AMD64_NUM_REGS): Adjust to new number of registers.
9304 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9305 registers supplied via XSTATE by AVX512 registers.
9306 (i386_linux_read_description): Add case for AVX512.
9307 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9308 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9309 (i386_linux_core_read_description): Add case for AVX512.
9310 (i386_linux_init_abi): Install supported register note section
9312 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9314 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9315 registers to be number of zmm7h + 1.
9316 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9317 * i386-tdep.c: Include features/i386/i386-avx512.c.
9318 (i386_zmm_names): Add ZMM pseudo register names array.
9319 (i386_zmmh_names): Add ZMM raw register names array.
9320 (i386_k_names): Add K raw register names array.
9321 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9322 registers. AVX512 has 16 more ZMM registers than there are YMM
9324 (i386_zmmh_regnum_p): Add function to look up register number of
9326 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9327 (i386_k_regnum_p): Likewise for K raw registers.
9328 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9329 registers added by AVX512.
9330 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9331 registers added by AVX512.
9332 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9334 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9335 (i386_pseudo_register_name): Add ZMM pseudo registers.
9336 (i386_zmm_type): Construct and return vector registers type for ZMM
9338 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9339 ZMM0-31 pseudo registers and K registers.
9340 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9341 and YMM16-31 registers from register cache.
9342 (i386_pseudo_register_write): Add code to write K, ZMM and
9344 (i386_register_reggroup_p): Add code to include/exclude AVX512
9345 registers in/from respective register groups.
9346 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9347 registers if feature is present in xcr0.
9348 (i386_gdbarch_init): Add code to initialize AVX512 feature
9349 variables in tdep structure, wire in pseudo registers and call
9350 initialize_tdesc_i386_avx512.
9351 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9353 (i386_regnum): Add AVX512 registers.
9354 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9355 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9356 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9357 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9359 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9360 (i386_ymm_avx512_regnum_p): Likewise.
9361 (i386_k_regnum_p): Likewise.
9362 (i386_zmm_regnum_p): Likewise.
9363 (i386_zmmh_regnum_p): Likewise.
9364 * i387-tdep.c : Update year in copyright notice.
9365 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9367 (XSAVE_YMM_AVX512_ADDR): New macro.
9368 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9370 (XSAVE_XMM_AVX512_ADDR): New macro.
9371 (xsave_avx512_k_offset): New table for K register offsets in
9373 (XSAVE_AVX512_K_ADDR): New macro.
9374 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9376 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9377 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9379 (i387_collect_xsave): Add code to collect AVX512 registers from
9381 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9382 of XMM16-31 registers.
9383 (I387_NUM_K_REGS): New define for number of K registers.
9384 (I387_K0_REGNUM): New define for K0 register number.
9385 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9386 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9387 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9389 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9390 (I387_XMM16_REGNUM): New define for XMM16 register number.
9391 (I387_YMM0_REGNUM): New define for YMM0 register number.
9392 (I387_KEND_REGNUM): New define for last K register number.
9393 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9394 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9396 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9398 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9400 * features/Makefile: Add AVX512 related files.
9401 * features/i386/32bit-avx512.xml: New file.
9402 * features/i386/64bit-avx512.xml: Likewise.
9403 * features/i386/amd64-avx512-linux.c: Likewise.
9404 * features/i386/amd64-avx512-linux.xml: Likewise.
9405 * features/i386/amd64-avx512.c: Likewise.
9406 * features/i386/amd64-avx512.xml: Likewise.
9407 * features/i386/i386-avx512-linux.c: Likewise.
9408 * features/i386/i386-avx512-linux.xml: Likewise.
9409 * features/i386/i386-avx512.c: Likewise.
9410 * features/i386/i386-avx512.xml: Likewise.
9411 * features/i386/x32-avx512-linux.c: Likewise.
9412 * features/i386/x32-avx512-linux.xml: Likewise.
9413 * features/i386/x32-avx512.c: Likewise.
9414 * features/i386/x32-avx512.xml: Likewise.
9415 * regformats/i386/amd64-avx512-linux.dat: New file.
9416 * regformats/i386/amd64-avx512.dat: Likewise.
9417 * regformats/i386/i386-avx512-linux.dat: Likewise.
9418 * regformats/i386/i386-avx512.dat: Likewise.
9419 * regformats/i386/x32-avx512-linux.dat: Likewise.
9420 * regformats/i386/x32-avx512.dat: Likewise.
9421 * NEWS: Add note about new support for AVX512.
9424 2014-04-23 Pedro Alves <palves@redhat.com>
9426 * breakpoint.c (insert_bp_location): Tolerate errors if the
9427 breakpoint is set in a user-loaded objfile.
9428 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9429 location is marked shlib_disabled. If the breakpoint is set in a
9430 user-loaded objfile is a GDB-side memory breakpoint, validate it
9431 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9432 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9434 * mem-break.c (memory_validate_breakpoint): New function.
9435 * objfiles.c (userloaded_objfile_contains_address_p): New
9437 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9438 * target.h (memory_validate_breakpoint): New declaration.
9440 2014-04-23 Pedro Alves <palves@redhat.com>
9442 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9443 the breakpoint is set in a shared library, only suppress
9444 errors for software breakpoints, not hardware breakpoints.
9446 2014-04-22 Pedro Alves <palves@redhat.com>
9448 * infrun.c (schedlock_applies): New function, factored out from
9449 find_thread_needs_step_over.
9450 (find_thread_needs_step_over): Use it.
9451 (switch_back_to_stepped_thread): Always clear trap_expected if the
9452 step over is finished. Return early if scheduler locking applies.
9453 Look for the stepping thread and a potential step-over thread with
9455 (currently_stepping_or_nexting_callback): Delete.
9457 2014-04-22 Nick Clifton <nickc@redhat.com>
9459 * NEWS: Mention that ARM sim now supports tracing.
9461 2014-04-22 Yao Qi <yao@codesourcery.com>
9463 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9465 * tracefile.c (tracefile_fetch_registers): ... it. New
9467 * tracefile.h (tracefile_fetch_registers): Declare.
9468 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9469 tracefile_fetch_registers.
9471 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9474 * windows-nat.c (thread_rec): Don't display a warning when
9475 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9476 fails for any reason, set th->suspended to -1, so that we don't
9477 try to resume such a thread. Also, don't return NULL in these
9478 cases, to avoid completely ruin the session due to "PC register is
9479 not available" error.
9480 (do_windows_fetch_inferior_registers): Check errors in
9481 GetThreadContext call.
9482 (windows_continue): Accept an additional argument KILLED; if not
9483 zero, ignore errors in the SetThreadContext call, since the
9484 inferior was killed and is shutting down.
9485 (windows_resume, get_windows_debug_event)
9486 (windows_create_inferior, windows_mourn_inferior)
9487 (windows_kill_inferior): All callers of windows_continue changed
9488 to adjust to its new calling sequence.
9490 2014-04-19 Yao Qi <yao@codesourcery.com>
9492 * ctf.c (ctf_open): Call post_create_inferior.
9494 2014-04-19 Yao Qi <yao@codesourcery.com>
9496 * ctf.c (handle_id): New static variable.
9497 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9498 value. Get the declaration of event "register" and get length
9499 of field "contents".
9501 2014-04-19 Yao Qi <yao@codesourcery.com>
9503 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9505 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9507 * valops.c (oload_method_static): Remove unnecessary argument
9508 METHOD. Update all callers.
9510 2014-04-18 Pedro alves <palves@redhat.com>
9511 Tom Tromey <tromey@redhat.com>
9514 * frame.c (get_prev_frame_1): Rename to ...
9515 (get_prev_frame_always): ... this, and make extern. Adjust.
9516 (skip_artificial_frames): Use get_prev_frame_always.
9517 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9518 (get_frame_unwind_stop_reason): Adjust to rename.
9519 * frame.h (get_prev_frame_always): Declare.
9520 * inline-frame.c: Include frame.h.
9521 (inline_frame_this_id): Use get_prev_frame_always.
9523 2014-04-18 Tristan Gingold <gingold@adacore.com>
9525 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9526 code by using bfd_mach_o_get_base_address.
9528 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9530 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9531 (spu_ax_pseudo_register_collect): New function.
9532 (spu_ax_pseudo_register_push_stack): Likewise.
9533 (spu_dwarf_reg_to_regnum): Likewise.
9534 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9536 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9538 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9539 Replace FRAME argument with FRAME_ID.
9540 * gdbarch.c, gdbarch.h: Regenerate.
9541 * findvar.c (default_value_from_register): Add GDBARCH argument;
9542 replace FRAME by FRAME_ID. No longer call get_frame_id.
9543 (value_from_register): Update call to gdbarch_value_from_register.
9544 * value.h (default_value_from_register): Update prototype.
9545 * s390-linux-tdep.c (s390_value_from_register): Update interface
9546 and call to default_value_from_register.
9547 * spu-tdep.c (spu_value_from_register): Likewise.
9549 * findvar.c (address_from_register): Remove TYPE argument.
9550 Do not call value_from_register; use gdbarch_value_from_register
9551 with null_frame_id instead.
9552 * value.h (address_from_register): Update prototype.
9553 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9554 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9555 address_from_register interface change.
9557 2014-04-17 Yao Qi <yao@codesourcery.com>
9559 * gdbtypes.h: Update comments to link to types and macros'
9562 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9564 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9566 2014-04-16 Keith Seitz <keiths@redhat.com>
9569 * dwarf2read.c (skip_one_die): Check that all relative-offset
9570 sibling DIEs fall within range of the current reader's buffer.
9571 (read_partial_die): Likewise.
9573 2014-04-16 Keith Seitz <keiths@redhat.com>
9576 * cp-namespace.c (lookup_symbol_file): If the type name of
9577 `this' is NULL, return immediately.
9579 2014-04-14 Keith Seitz <keiths@redhat.com>
9582 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9583 from symbol_matches_domain in symtab.c. All local callers
9584 of symbol_matches_domain updated.
9585 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9586 search STRUCT_DOMAIN.
9587 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9588 independently. standard_lookup will do that automatically.
9589 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9590 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9591 (cp_lookup_symbol_in_namespace): Likewise.
9592 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9593 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9594 may return a STRUCT_DOMAIN match.
9595 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9596 * cp-support.c: Include language.h.
9597 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9599 * psymtab.c (match_partial_symbol): Compare the requested
9600 domain with the symbol's domain directly.
9601 (lookup_partial_symbol): Likewise.
9602 * symtab.c (lookup_symbol_in_language): Explain when/why
9603 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9604 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9605 appropriate languages.
9606 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9607 and moved to ada-lang.c
9608 (lookup_block_symbol): Explain that this function only returns
9609 symbol matching the requested DOMAIN.
9610 Compare the requested domain with the symbol's domain directly.
9611 (iterate_over_symbols): Compare the requested domain with the
9612 symbol's domain directly.
9613 * symtab.h (symbol_matches_domain): Remove.
9615 2014-04-14 Tom Tromey <tromey@redhat.com>
9618 * c-exp.y (type_aggregate_p): New function.
9619 (qualified_name, classify_inner_name): Use it.
9620 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9621 and TYPE_TARGET_TYPE of an enum type.
9622 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9624 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9625 handle TYPE_DECLARED_CLASS.
9626 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9628 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9629 * valops.c (enum_constant_from_type): New function.
9630 (value_aggregate_elt): Use it.
9631 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9634 2014-04-14 Tom Tromey <tromey@redhat.com>
9636 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9637 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9639 * value.h (value_aggregate_elt): Update.
9641 2014-04-14 Tom Tromey <tromey@redhat.com>
9643 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9645 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9647 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9648 (evaluate_subexp_standard): Pass noside argument.
9649 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9650 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9651 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9652 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9653 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9655 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9657 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9658 points to a constant blob.
9660 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9662 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9663 property and store it as the high bound and flag the range accordingly.
9664 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9665 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9666 * gdbtypes.h (enum range_flags): New enum.
9667 (struct range_bounds): Add flags member.
9669 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9671 * c-typeprint.c (c_type_print_varspec_suffix): Added
9672 check for not yet resolved high bound. If unresolved, print
9673 "variable length" string to the console instead of random
9676 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9678 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9680 (ada_template_to_fixed_record_type_1): Likewise.
9681 (ada_to_fixed_type_1): Likewise.
9682 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9683 (cp_print_value): Likewise.
9684 * d-valprint.c (dynamic_array_type): Likewise.
9685 * findvar.c (address_of_variable): Likewise.
9686 * jv-valprint.c (java_value_print): Likewise.
9687 * valops.c (value_ind): Likewise.
9688 * value.c (coerce_ref): Likewise.
9690 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9692 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9693 value and retrieve the dynamic type size.
9695 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9697 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9698 passed to sizeof is dynamic evaluate the argument to compute the length.
9700 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9701 Joel Brobecker <brobecker@adacore.com>
9703 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9704 (dwarf2_evaluate_property): New function.
9705 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9706 * dwarf2read.c (attr_to_dynamic_prop): New function.
9707 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9709 * gdbtypes.c: Include dwarf2loc.h.
9710 (is_dynamic_type): New function.
9711 (resolve_dynamic_type): New function.
9712 (resolve_dynamic_bounds): New function.
9713 (get_type_length): New function.
9714 (check_typedef): Use get_type_length to compute type length.
9715 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9716 (TYPE_LOW_BOUND_KIND): New macro.
9717 (is_dynamic_type): New function prototype.
9718 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9719 to resolve dynamic properties of the type. Update comment.
9720 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9722 2014-04-14 Richard Henderson <rth@redhat.com>
9724 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9726 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9727 Doug Evans <xdje42@gmail.com>
9729 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9730 dereference TYPE_CODE_REF values.
9732 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9734 Revert the following changes due to regressions:
9736 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9737 (dwarf2_evaluate_property): New function.
9738 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9739 * dwarf2read.c (attr_to_dynamic_prop): New function.
9740 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9742 * gdbtypes.c: Include dwarf2loc.h.
9743 (is_dynamic_type): New function.
9744 (resolve_dynamic_type): New function.
9745 (resolve_dynamic_bounds): New function.
9746 (get_type_length): New function.
9747 (check_typedef): Use get_type_length to compute type length.
9748 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9749 (TYPE_LOW_BOUND_KIND): New macro.
9750 (is_dynamic_type): New function prototype.
9751 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9752 to resolve dynamic properties of the type. Update comment.
9753 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9755 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9756 passed to sizeof is dynamic evaluate the argument to compute the length.
9758 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9759 value and retrieve the dynamic type size.
9761 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9762 (ada_template_to_fixed_record_type_1): Likewise.
9763 (ada_to_fixed_type_1): Likewise.
9764 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9765 (cp_print_value): Likewise.
9766 * d-valprint.c (dynamic_array_type): Likewise.
9767 * eval.c (evaluate_subexp_with_coercion): Likewise.
9768 * findvar.c (address_of_variable): Likewise.
9769 * jv-valprint.c (java_value_print): Likewise.
9770 * valops.c (value_ind): Likewise.
9771 * value.c (coerce_ref): Likewise.
9773 * c-typeprint.c (c_type_print_varspec_suffix): Added
9774 check for not yet resolved high bound. If unresolved, print
9775 "variable length" string to the console instead of random
9778 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9779 property and store it as the high bound and flag the range accordingly.
9780 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9781 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9782 * gdbtypes.h (enum range_flags): New enum.
9783 (struct range_bounds): Add flags member.
9785 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9786 points to a constant blob.
9788 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9789 (evaluate_subexp_standard): Pass noside argument.
9790 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9791 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9792 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9793 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9794 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9796 2014-04-11 Keith Seitz <keiths@redhat.com>
9799 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9800 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9803 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9805 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9806 (evaluate_subexp_standard): Pass noside argument.
9807 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9808 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9809 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9810 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9811 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9813 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9815 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9816 points to a constant blob.
9818 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9820 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9821 property and store it as the high bound and flag the range accordingly.
9822 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9823 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9824 * gdbtypes.h (enum range_flags): New enum.
9825 (struct range_bounds): Add flags member.
9827 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9829 * c-typeprint.c (c_type_print_varspec_suffix): Added
9830 check for not yet resolved high bound. If unresolved, print
9831 "variable length" string to the console instead of random
9834 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9836 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9837 (ada_template_to_fixed_record_type_1): Likewise.
9838 (ada_to_fixed_type_1): Likewise.
9839 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9840 (cp_print_value): Likewise.
9841 * d-valprint.c (dynamic_array_type): Likewise.
9842 * eval.c (evaluate_subexp_with_coercion): Likewise.
9843 * findvar.c (address_of_variable): Likewise.
9844 * jv-valprint.c (java_value_print): Likewise.
9845 * valops.c (value_ind): Likewise.
9846 * value.c (coerce_ref): Likewise.
9848 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9850 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9851 value and retrieve the dynamic type size.
9853 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9855 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9856 passed to sizeof is dynamic evaluate the argument to compute the length.
9858 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9860 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9861 (dwarf2_evaluate_property): New function.
9862 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9863 * dwarf2read.c (attr_to_dynamic_prop): New function.
9864 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9866 * gdbtypes.c: Include dwarf2loc.h.
9867 (is_dynamic_type): New function.
9868 (resolve_dynamic_type): New function.
9869 (resolve_dynamic_bounds): New function.
9870 (get_type_length): New function.
9871 (check_typedef): Use get_type_length to compute type length.
9872 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9873 (TYPE_LOW_BOUND_KIND): New macro.
9874 (is_dynamic_type): New function prototype.
9875 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9876 to resolve dynamic properties of the type. Update comment.
9877 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9879 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9881 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9882 declaring high/low bounds and change uses accordingly. Call
9883 create_range_type instead of create_static_range_type.
9884 * gdbtypes.c (create_range_type): New function.
9885 (create_range_type): Convert bounds into struct bound_prop and pass
9886 them to create_range_type.
9887 * gdbtypes.h (struct bound_prop): New struct.
9888 (create_range_type): New function prototype.
9889 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9890 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9891 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9893 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9895 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9897 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9898 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9899 * ada-lang.c: All uses of create_range_type updated.
9900 * coffread.c: All uses of create_range_type updated.
9901 * dwarf2read.c: All uses of create_range_type updated.
9902 * f-exp.y: All uses of create_range_type updated.
9903 * m2-valprint.c: All uses of create_range_type updated.
9904 * mdebugread.c: All uses of create_range_type updated.
9905 * stabsread.c: All uses of create_range_type updated.
9906 * valops.c: All uses of create_range_type updated.
9907 * valprint.c: All uses of create_range_type updated.
9909 2014-04-10 Pedro Alves <palves@redhat.com>
9911 * breakpoint.c (single_step_breakpoints)
9912 (single_step_gdbarch): Move up in the file.
9913 (one_breakpoint_xfer_memory): New function, factored out from ...
9914 (breakpoint_xfer_memory): ... here. Also process single-step
9917 2014-04-09 Tristan Gingold <gingold@adacore.com>
9919 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9921 (darwin_decode_exception_message): Free port only after use.
9923 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9925 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9926 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9927 when setting the size of call_length.
9929 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9931 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9932 dereference TYPE_CODE_REF values.
9934 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9936 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9937 end of warning message.
9939 2014-04-03 Doug Evans <dje@google.com>
9941 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9942 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9944 2014-04-02 Alan Modra <amodra@gmail.com>
9946 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9947 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9948 (struct symbol_file_add_from_memory_args): Add size field.
9949 (find_vdso_size): New function.
9950 (add_vsyscall_page): Attempt to find vdso size.
9952 2014-04-01 Doug Evans <dje@google.com>
9954 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9956 2014-04-01 Tristan Gingold <gingold@adacore.com>
9958 * darwin-nat.c (darwin_encode_reply): Add prototype.
9959 (darwin_decode_exception_message): Reply to unknown inferiors.
9960 (darwin_decode_message): Handle message by id. Ignore message
9961 to unknown inferior.
9962 (darwin_wait): Discard unknown messages, add debug trace.
9964 2014-03-31 Doug Evans <dje@google.com>
9966 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9969 2014-03-31 Doug Evans <dje@google.com>
9971 New option "set print symbol-loading".
9973 * solib.c (solib_read_symbols): Only print symbol loading messages
9975 (solib_add): If symbol loading is in "brief" mode, notify user
9976 symbols are being loaded.
9977 (reload_shared_libraries_1): Ditto.
9978 * symfile.c (print_symbol_loading_off): New static global.
9979 (print_symbol_loading_brief): New static global.
9980 (print_symbol_loading_full): New static global.
9981 (print_symbol_loading_enums): New static global.
9982 (print_symbol_loading): New static global.
9983 (print_symbol_loading_p): New function.
9984 (symbol_file_add_with_addrs): Only print symbol loading messages
9986 (_initialize_symfile): Register "print symbol-loading" set/show
9988 * symfile.h (print_symbol_loading_p): Declare.
9990 2014-03-30 Doug Evans <xdje42@gmail.com>
9992 * infrun.c (set_last_target_status): New function.
9993 (handle_inferior_event): Call it.
9995 2014-03-30 Doug Evans <xdje42@gmail.com>
9997 * inferior.h (enum stop_kind): Improve comment.
9999 2014-03-28 Joel Brobecker <brobecker@adacore.com>
10001 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
10002 a reference, strip the reference layer before calling
10003 the lang_ops value_has_mutated callback.
10005 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
10007 Remove some globals from our parser.
10008 * language.c (unk_lang_parser): Add "struct parser_state"
10010 * language.h (struct language_defn) <la_parser>: Likewise.
10011 * parse.c (expout, expout_size, expout_ptr): Remove variables.
10012 (initialize_expout): Add "struct parser_state" argument.
10013 Rewrite function to use the parser state.
10014 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
10015 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
10016 write_exp_elt_longcst, write_exp_elt_dblcst,
10017 write_exp_elt_decfloatcst, write_exp_elt_type,
10018 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10019 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
10020 write_dollar_variable): Likewise.
10021 (parse_exp_in_context_1): Use parser state.
10022 (insert_type_address_space): Add "struct parser_state" argument.
10024 (increase_expout_size): New function.
10025 * parser-defs.h: Forward declare "struct language_defn" and
10026 "struct parser_state".
10027 (expout, expout_size, expout_ptr): Remove extern declarations.
10028 (parse_gdbarch, parse_language): Rewrite macro declarations to
10029 accept the parser state.
10030 (struct parser_state): New struct.
10031 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
10032 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
10033 write_exp_elt_decfloatcst, write_exp_elt_type,
10034 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10035 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
10036 write_exp_msymbol, write_dollar_variable,
10037 mark_struct_expression, insert_type_address_space): Add "struct
10038 parser_state" argument.
10039 (increase_expout_size): New function.
10040 * utils.c (do_clear_parser_state): New function.
10041 (make_cleanup_clear_parser_state): Likewise.
10042 * utils.h (make_cleanup_clear_parser_state): New function
10044 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
10045 Update calls to write_exp* in order to pass the parser state.
10046 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
10047 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
10048 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10049 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
10050 * stap-probe.c (stap_parse_register_operand): Likewise.
10051 (stap_parse_single_operand): Likewise.
10052 (stap_parse_argument_1): Likewise.
10053 (stap_parse_argument): Use parser state.
10054 * stap-probe.h: Include "parser-defs.h".
10055 (struct stap_parse_info) <pstate>: New field.
10056 * c-exp.y (parse_type): Rewrite to use parser state.
10057 (yyparse): Redefine to c_parse_internal.
10058 (pstate): New global variable.
10059 (parse_number): Add "struct parser_state" argument.
10060 (write_destructor_name): Likewise.
10061 (type_exp): Update calls to write_exp* and similars in order to
10063 (exp1, exp, variable, qualified_name, space_identifier,
10064 typename, typebase): Likewise.
10065 (write_destructor_name, parse_number, lex_one_token,
10066 classify_name, classify_inner_name, c_parse): Add "struct
10067 parser_state" argument. Update function to use parser state.
10068 * c-lang.h: Forward declare "struct parser_state".
10069 (c_parse): Add "struct parser_state" argument.
10070 * ada-exp.y (parse_type): Rewrite macro to use parser state.
10071 (yyparse): Redefine macro to ada_parse_internal.
10072 (pstate): New variable.
10073 (write_int, write_object_renaming, write_var_or_type,
10074 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
10075 type_int, type_long, type_long_long, type_float, type_double,
10076 type_long_double, type_char, type_boolean, type_system_address):
10077 Add "struct parser_state" argument.
10078 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
10079 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
10080 var_or_type, aggregate, aggregate_component_list,
10081 positional_list, others, component_group,
10082 component_associations): Update calls to write_exp* and similar
10083 functions in order to use parser state.
10084 (ada_parse, write_var_from_sym, write_int,
10085 write_exp_op_with_string, write_object_renaming,
10086 find_primitive_type, write_selectors, write_ambiguous_var,
10087 write_var_or_type, write_name_assoc, type_int, type_long,
10088 type_long_long, type_float, type_double, type_long_double,
10089 type_char, type_boolean, type_system_address): Add "struct
10090 parser_state" argument. Adjust function to use parser state.
10091 * ada-lang.c (parse): Likewise.
10092 * ada-lang.h: Forward declare "struct parser_state".
10093 (ada_parse): Add "struct parser_state" argument.
10094 * ada-lex.l (processInt, processReal): Likewise. Adjust all
10095 calls to both functions.
10096 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
10098 (yyparse): Redefine macro to f_parse_internal.
10099 (pstate): New variable.
10100 (parse_number): Add "struct parser_state" argument.
10101 (type_exp, exp, subrange, typebase): Update calls to write_exp*
10102 and similars in order to use parser state.
10103 (parse_number): Adjust code to use parser state.
10105 (f_parse): New function.
10106 * f-lang.h: Forward declare "struct parser_state".
10107 (f_parse): Add "struct parser_state" argument.
10108 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
10110 (yyparse): Redefine macro for java_parse_internal.
10111 (pstate): New variable.
10112 (push_expression_name, push_expression_name, insert_exp): Add
10113 "struct parser_state" argument.
10114 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10115 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10116 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10117 PostIncrementExpression, PostDecrementExpression,
10118 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10119 UnaryExpressionNotPlusMinus, CastExpression,
10120 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10121 RelationalExpression, EqualityExpression, AndExpression,
10122 ExclusiveOrExpression, InclusiveOrExpression,
10123 ConditionalAndExpression, ConditionalOrExpression,
10124 ConditionalExpression, Assignment, LeftHandSide): Update
10125 calls to write_exp* and similars in order to use parser state.
10126 (parse_number): Ajust code to use parser state.
10128 (java_parse): New function.
10129 (push_variable): Add "struct parser_state" argument. Adjust
10130 code to user parser state.
10131 (push_fieldnames, push_qualified_expression_name,
10132 push_expression_name, insert_exp): Likewise.
10133 * jv-lang.h: Forward declare "struct parser_state".
10134 (java_parse): Add "struct parser_state" argument.
10135 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10137 (yyparse): Redefine macro to m2_parse_internal.
10138 (pstate): New variable.
10139 (type_exp, exp, fblock, variable, type): Update calls to
10140 write_exp* and similars to use parser state.
10142 (m2_parse): New function.
10143 * m2-lang.h: Forward declare "struct parser_state".
10144 (m2_parse): Add "struct parser_state" argument.
10145 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10146 * objc-lang.h: Forward declare "struct parser_state".
10147 (end_msglist): Add "struct parser_state" argument.
10148 * p-exp.y (parse_type): Rewrite macro to use parser state.
10149 (yyparse): Redefine macro to pascal_parse_internal.
10150 (pstate): New variable.
10151 (parse_number): Add "struct parser_state" argument.
10152 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10153 write_exp* and similars in order to use parser state.
10154 (parse_number, yylex): Adjust code to use parser state.
10155 (pascal_parse): New function.
10156 * p-lang.h: Forward declare "struct parser_state".
10157 (pascal_parse): Add "struct parser_state" argument.
10158 * go-exp.y (parse_type): Rewrite macro to use parser state.
10159 (yyparse): Redefine macro to go_parse_internal.
10160 (pstate): New variable.
10161 (parse_number): Add "struct parser_state" argument.
10162 (type_exp, exp1, exp, variable, type): Update calls to
10163 write_exp* and similars in order to use parser state.
10164 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10165 to use parser state.
10166 (go_parse): Likewise.
10167 * go-lang.h: Forward declare "struct parser_state".
10168 (go_parse): Add "struct parser_state" argument.
10170 2014-03-27 Doug Evans <dje@google.com>
10172 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10174 2014-03-27 Doug Evans <dje@google.com>
10176 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10177 Remove argument abbrev_section. All callers updated.
10179 2014-03-27 Doug Evans <dje@google.com>
10181 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10182 addr_base, ranges_base.
10184 2014-03-26 Keith Seitz <keiths@redhat.com>
10186 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10187 types, not VAR_DOMAIN.
10189 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10191 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10193 * features/nios2-linux.c: Regenerated.
10194 * features/nios2.c: Regenerated.
10196 2014-03-25 Pedro Alves <palves@redhat.com>
10198 * cli/cli-script.c (script_from_file): Force the interpreter to
10201 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10203 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10204 small stack allocation.
10206 2014-03-24 Tristan Gingold <gingold@adacore.com>
10208 * darwin-nat.c (exc_server): Remove unused prototype.
10209 (darwin_dump_message): Correctly display data on x86_64.
10210 (darwin_encode_reply): Fix style.
10211 Add comments and fix indentation.
10213 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10215 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10217 2014-03-22 Doug Evans <xdje42@gmail.com>
10219 * infcmd.c: Whitespace fixes.
10220 (interrupt_command): Merge two function comments into one.
10222 2014-03-22 Doug Evans <xdje42@gmail.com>
10224 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10227 2014-03-22 Yao Qi <yao@codesourcery.com>
10229 * remote.c (target_read_live_memory): Remove.
10230 (memory_xfer_live_readonly_partial): Rename it to
10231 remote_xfer_live_readonly_partial. Remove argument 'object'.
10232 All callers updated. Call remote_read_bytes_1
10233 instead of target_read_live_memory.
10234 * tracepoint.c (set_traceframe_number): Remove.
10235 (make_cleanup_restore_traceframe_number): Likewise .
10236 * tracepoint.h (set_traceframe_number): Remove declaration.
10237 (make_cleanup_restore_traceframe_number): Likewise.
10239 2014-03-22 Yao Qi <yao@codesourcery.com>
10241 * remote.c (remote_read_bytes): Move code on reading from the
10243 (remote_read_bytes_1): ... here. New function.
10245 2014-03-22 Yao Qi <yao@codesourcery.com>
10247 * ctf.c (ctf_xfer_partial): Check the return value of
10248 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10249 return TARGET_XFER_UNAVAILABLE.
10250 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10251 * target.c (target_read_live_memory): Move it to remote.c.
10252 (memory_xfer_live_readonly_partial): Likewise.
10253 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10254 * remote.c (target_read_live_memory): Moved from target.c.
10255 (memory_xfer_live_readonly_partial): Likewise.
10256 (remote_read_bytes): Factored out from
10257 memory_xfer_partial_1.
10259 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10261 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10264 2014-03-21 Pedro Alves <palves@redhat.com>
10266 * infrun.c (normal_stop): Extend comment.
10268 2014-03-21 Hui Zhu <hui@codesourcery.com>
10269 Pedro Alves <palves@redhat.com>
10271 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10273 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10274 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10275 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10277 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10279 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10280 `z' formatted output modifier.
10282 2014-03-20 Tom Tromey <tromey@redhat.com>
10283 Sergio Durigan Junior <sergiodj@redhat.com>
10285 * probe.c (parse_probes): Turn assert into an ordinary error.
10286 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10287 exceptions when parsing probes. Rearrange the code for clarity.
10289 2014-03-20 Tom Tromey <tromey@redhat.com>
10292 * top.c (execute_command): Only dispatch events if the command
10293 started the target.
10295 2014-03-20 Tom Tromey <tromey@redhat.com>
10298 * infcall.c: Include event-top.h.
10299 (run_inferior_call): Call async_disable_stdin if needed.
10301 2014-03-20 Pedro Alves <palves@redhat.com>
10303 * infrun.c (prepare_to_proceed): Delete.
10304 (thread_still_needs_step_over): New function.
10305 (find_thread_needs_step_over): New function.
10306 (proceed): If the current thread needs a step-over, set its
10307 steping_over_breakpoint flag. Adjust to use
10308 find_thread_needs_step_over instead of prepare_to_proceed.
10309 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10310 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10312 (switch_back_to_stepped_thread): Step over breakpoints of all
10313 threads not the stepping thread, before switching back to the
10316 2014-03-20 Pedro Alves <palves@redhat.com>
10318 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10320 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10321 * infrun.c (saved_singlestep_ptid)
10322 (stepping_past_singlestep_breakpoint): Delete.
10323 (resume): Remove stepping_past_singlestep_breakpoint handling.
10324 (proceed): Store the prev_pc of the stepping thread too.
10325 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10327 (enum infwait_states): Delete infwait_thread_hop_state.
10328 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10330 (handle_inferior_event): Adjust.
10331 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10332 handling and the thread-hop code. Before removing single-step
10333 breakpoints, check whether the thread hit a single-step breakpoint
10334 of another thread. If it did, the trap is not a random signal.
10335 (switch_back_to_stepped_thread): If the event thread hit a
10336 single-step breakpoint, unblock it before switching to the
10337 stepping thread. Handle the case of the stepped thread having
10339 (keep_going): Handle the case of the current thread moving past a
10340 single-step breakpoint.
10342 2014-03-20 Pedro Alves <palves@redhat.com>
10344 PR breakpoints/7143
10345 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10346 are being stepped over.
10347 (breakpoint_address_match): Make extern.
10348 * breakpoint.h (breakpoint_address_match): New declaration.
10349 * inferior.h (stepping_past_instruction_at): New declaration.
10350 * infrun.c (struct step_over_info): New type.
10351 (step_over_info): New global.
10352 (set_step_over_info, clear_step_over_info)
10353 (stepping_past_instruction_at): New functions.
10354 (handle_inferior_event): Clear the step-over info when
10355 trap_expected is cleared.
10356 (resume): Remove now stale comment.
10357 (clear_proceed_status): Clear step-over info.
10358 (proceed): Adjust step-over handling to set or clear the step-over
10359 info instead of removing all breakpoints.
10360 (handle_signal_stop): When setting up a thread-hop, don't remove
10362 (stop_stepping): Clear step-over info.
10363 (keep_going): Adjust step-over handling to set or clear step-over
10364 info and then always inserting breakpoints, instead of removing
10365 all breakpoints when stepping over one.
10367 2014-03-20 Pedro Alves <palves@redhat.com>
10369 * infrun.c (previous_inferior_ptid): Adjust comment.
10370 (deferred_step_ptid): Delete.
10371 (infrun_thread_ptid_changed, prepare_to_proceed)
10372 (init_wait_for_inferior): Adjust.
10373 (handle_signal_stop): Delete deferred_step_ptid handling.
10375 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10378 * defs.h (sync_quit_force_run): New declaration.
10379 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10380 * event-top.c (async_sigterm_handler): New declaration.
10381 (async_sigterm_token): New variable.
10382 (async_init_signals): Create also async_sigterm_token.
10383 (async_sigterm_handler): New function.
10384 (sync_quit_force_run): New variable.
10385 (handle_sigterm): Replace quit_force call by other calls.
10386 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10388 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10390 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10391 offset into SPE pseudo registers.
10393 2014-03-18 Pedro Alves <palves@redhat.com>
10396 * inferior.h (print_stop_event): Declare.
10397 * infrun.c (print_stop_event): New, factored out from ...
10398 (normal_stop): ... this.
10399 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10400 of bpstat_print/print_stack_frame.
10402 2014-03-17 Tom Tromey <tromey@redhat.com>
10404 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10406 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10408 * ada-lang.c (decode_constrained_packed_array): Perform a
10409 minimal coercion for reference with coerce_ref instead of
10412 2014-03-17 Tristan Gingold <gingold@adacore.com>
10414 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10415 (darwin_solib_create_inferior_hook): Emit a warning if version
10418 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10420 * python/py-value.c (get_field_flag): Cast flag_name argument to
10421 PyObject_GetAttrString to support Python 2.4.
10423 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10425 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10426 (Global Maintainers): Remove Jan Kratochvil.
10428 2014-03-14 Pedro Alves <palves@redhat.com>
10430 * inferior.h (terminal_ours_for_output): Rename to ...
10431 (child_terminal_ours_for_output): ... this.
10432 (terminal_save_ours): Rename to ...
10433 (child_terminal_save_ours): ... this.
10434 (terminal_ours): Rename to ...
10435 (child_terminal_ours): ... this.
10436 (terminal_inferior): Rename to ...
10437 (child_terminal_inferior): ... this.
10438 (terminal_init_inferior): Rename to ...
10439 (child_terminal_init_inferior): ... this.
10440 (terminal_init_inferior_with_pgrp): Rename to ...
10441 (child_terminal_init_inferior_with_pgrp): ... this.
10442 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10443 (child_terminal_init_with_pgrp): ... this.
10444 (terminal_save_ours): Rename to ...
10445 (child_terminal_save_ours): ... this.
10446 (terminal_init_inferior): Rename to ...
10447 (child_terminal_init): ... this. Adjust.
10448 (terminal_inferior): Rename to ...
10449 (child_terminal_inferior): ... this.
10450 (terminal_ours_for_output): Rename to ...
10451 (child_terminal_ours_for_output): ... this. Adjust.
10452 (terminal_ours): Rename to ...
10453 (child_terminal_ours): ... this.
10454 (terminal_ours_1): Rename to ...
10455 (child_terminal_ours_1): ... this. Adjust.
10456 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10457 * windows-nat.c (do_initial_windows_stuff): Adjust.
10458 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10459 (gnu_terminal_init): ... this. Adjust.
10460 (gnu_target): Adjust.
10461 * inf-child.c (inf_child_target): Adjust.
10463 2014-03-13 Doug Evans <xdje42@gmail.com>
10466 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10469 2014-03-13 Doug Evans <xdje42@gmail.com>
10471 * value.c (record_latest_value): Call release_value_or_incref
10472 instead of release_value.
10474 2014-03-13 Pedro Alves <palves@redhat.com>
10476 * procfs.c (procfs_target): Don't override to_shortname,
10477 to_longname or to_doc.
10479 2014-03-13 Pedro Alves <palves@redhat.com>
10481 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10482 Unix in user visible strings.
10484 2014-03-12 Stan Shebs <stan@codesourcery.com>
10486 * gdbtypes.h: Annotate comments for Doxygen, add a page
10487 block comment with some general info.
10489 2014-03-12 Pedro Alves <palves@redhat.com>
10491 * infcmd.c (prepare_execution_command): New function, factored out
10492 from several execution commands.
10493 (run_command_1, continue_command, step_1, jump_command)
10494 (signal_command, until_command, advance_command, finish_command)
10495 (attach_command): Use prepare_execution_command.
10497 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10499 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10500 (MAX_BPTS): Define.
10501 (MAX_WPTS): Define.
10502 (struct arm_linux_thread_points): Removed.
10503 (struct arm_linux_process_info): New.
10504 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10505 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10506 (arm_linux_find_breakpoints_by_tid): Removed.
10507 (struct arch_lwp_info): New.
10508 (arm_linux_find_process_pid): New functions.
10509 (arm_linux_add_process): New functions.
10510 (arm_linux_process_info_get): New functions.
10511 (arm_linux_forget_process): New function.
10512 (arm_linux_get_debug_reg_state): New function.
10513 (struct update_registers_data): New.
10514 (update_registers_callback): New function.
10515 (arm_linux_insert_hw_breakpoint1): Updated.
10516 (arm_linux_remove_hw_breakpoint1): Updated.
10517 (arm_linux_insert_hw_breakpoint): Updated.
10518 (arm_linux_remove_hw_breakpoint): Updated.
10519 (arm_linux_insert_watchpoint): Updated.
10520 (arm_linux_remove_watchpoint): Updated.
10521 (arm_linux_new_thread): Updated.
10522 (arm_linux_prepare_to_resume): New function.
10523 (arm_linux_new_fork): New function.
10524 (_initialize_arm_linux_nat): Updated.
10526 2014-03-12 Pedro Alves <palves@redhat.com>
10528 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10530 2014-03-12 Tom Tromey <tromey@redhat.com>
10532 * inf-child.c (return_zero): New function.
10533 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10534 * aix-thread.c (aix_thread_inferior_created): New function.
10535 (aix_thread_attach): Remove.
10536 (init_aix_thread_ops): Don't set to_attach.
10537 (_initialize_aix_thread): Register inferior_created observer.
10538 * corelow.c (init_core_ops): Don't set to_attach or
10539 to_create_inferior.
10540 * exec.c (init_exec_ops): Don't set to_attach or
10541 to_create_inferior.
10542 * infcmd.c (run_command_1): Use find_run_target. Make direct
10544 (attach_command): Use find_attach_target. Make direct target
10546 * record-btrace.c (init_record_btrace_ops): Don't set
10547 to_create_inferior.
10548 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10550 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10551 set to_create_inferior.
10552 * target.c (complete_target_initialization): Add assertion.
10553 (target_create_inferior): Remove.
10554 (find_default_attach, find_default_create_inferior): Remove.
10555 (find_attach_target, find_run_target): New functions.
10556 (find_default_is_async_p, find_default_can_async_p)
10557 (target_supports_non_stop, target_attach): Remove.
10558 (init_dummy_target): Don't set to_create_inferior or
10559 to_supports_non_stop.
10560 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10561 TARGET_DEFAULT_FUNC.
10562 <to_create_inferior>: Add comment.
10563 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10564 TARGET_DEFAULT_RETURN.
10565 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10566 (find_attach_target, find_run_target): Declare.
10567 (target_create_inferior): Remove.
10568 (target_has_execution_1): Update comment.
10569 (target_supports_non_stop): Remove.
10570 * target-delegates.c: Rebuild.
10572 2014-03-12 Pedro Alves <palves@redhat.com>
10574 * inf-child.h: Update comment to not mention Unix.
10576 2014-03-12 Pedro Alves <palves@redhat.com>
10578 * inf-child.c: Update top comment to not mention Unix. Add
10579 generic comment describing how this target is meant to be used.
10580 (inf_child_post_attach, inf_child_post_startup_inferior)
10581 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10584 2014-03-12 Pedro Alves <palves@redhat.com>
10586 * nto-procfs.c: Include inf-child.h.
10587 (procfs_ops): Delete global.
10588 (procfs_can_run): Delete method.
10589 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10590 target pointer instead of referencing procfs_ops.
10591 (procfs_prepare_to_store): Delete.
10592 (init_procfs_ops): Delete function.
10593 (procfs_target): New function, based on init_procfs_ops, but
10594 inherit inf_child_target.
10595 (_initialize_procfs): Use procfs_target.
10597 2014-03-12 Pedro Alves <palves@redhat.com>
10599 * windows-nat.c: Include inf-child.h.
10600 (windows_ops): Delete global.
10601 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10603 (init_windows_ops): Delete function.
10604 (windows_target): New function, based on init_windows_ops, but
10605 inherit inf_child_target.
10606 (_initialize_windows_nat): Use windows_target. Install x86
10607 specific target methods here.
10609 2014-03-10 Doug Evans <xdje42@gmail.com>
10611 * guile/guile.c (call_initialize_gdb_module): New function.
10612 (initialize_guile): Replace call to scm_init_guile with call to
10615 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10617 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10618 in call to TYPE_CODE macro.
10620 2014-03-10 Jerome Guitton <guitton@adacore.com>
10622 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10623 Resolve tagged types to full view.
10625 2014-03-10 Hui Zhu <hui@codesourcery.com>
10627 * target.h (target_insert_breakpoint): Remove "hardware" from its
10630 2014-03-07 Doug Evans <dje@google.com>
10632 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10634 2014-03-07 Doug Evans <dje@google.com>
10636 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10637 Remove unused local comp_dir_attr. Assert exactly one of
10638 stub_comp_unit_die, stub_comp_dir is non-NULL.
10640 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10642 * target.h (complete_target_initialization, add_target):
10645 2014-03-07 Pedro Alves <palves@redhat.com>
10647 * go32-nat.c: Include inf-child.h.
10648 (go32_ops): Delete global.
10649 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10651 (go32_create_inferior): Push the passed in target pointer instead
10652 of referencing go32_ops.
10653 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10654 (go32_target): New function, based on init_go32_ops, but inherit
10656 (_initialize_go32_nat): Use go32_target. Move parts of
10657 init_go32_ops here.
10659 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10661 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10662 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10663 SYMBOL_VALUE_ADDRESS.
10664 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10666 2014-03-06 Yao Qi <yao@codesourcery.com>
10668 * breakpoint.c (get_tracepoint_by_number): Remove argument
10669 optional_p. All callers updated. Adjust comments. Update
10671 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10673 2014-03-06 Yao Qi <yao@codesourcery.com>
10675 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10676 early if get_number returns zero. Use 'p' instead of 'args'.
10678 2014-03-06 Yao Qi <yao@codesourcery.com>
10680 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10683 2014-03-06 Yao Qi <yao@codesourcery.com>
10685 PR breakpoints/16508
10686 * tracepoint.c (check_trace_running): New function.
10687 (trace_find_command): Move code to check_trace_running and
10688 call check_trace_running.
10689 (trace_find_pc_command): Likewise.
10690 (trace_find_tracepoint_command): Likewise.
10691 (trace_find_line_command): Likewise.
10692 (trace_find_range_command): Likewise.
10693 * tracepoint.h (check_trace_running): Likewise.
10694 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10696 2014-03-06 Yao Qi <yao@codesourcery.com>
10698 * target.h (struct target_ops) <to_traceframe_info>: Use
10699 TARGET_DEFAULT_NORETURN (tcomplain ()).
10700 * target-delegates.c: Regenerated.
10702 2014-03-05 Pedro Alves <palves@redhat.com>
10705 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10706 void. Update comment.
10707 (dcache_xfer_memory): Delete.
10708 (dcache_read_memory_partial): New, based on the read bits of
10709 dcache_xfer_memory.
10710 (dcache_update): Add status parameter. Use ULONGEST for len, and
10711 adjust. Discard cache lines if the reason for the update was
10713 * dcache.h (dcache_xfer_memory): Delete declaration.
10714 (dcache_read_memory_partial): New declaration.
10715 (dcache_update): Update prototype.
10716 * target.c (raw_memory_xfer_partial): Update the dcache here.
10717 (memory_xfer_partial_1): Don't handle dcache writes here.
10719 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10721 * remote-sim.c (gdbsim_load): Add const to prog.
10723 2014-03-03 Tom Tromey <tromey@redhat.com>
10725 * elfread.c (probe_key): Change to bfd_data.
10726 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10727 now per-BFD, not per-objfile.
10728 * stap-probe.c (stap_probe_destroy): Update comment.
10729 (handle_stap_probe): Allocate on the per-BFD obstack.
10731 2014-03-03 Tom Tromey <tromey@redhat.com>
10733 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10734 * breakpoint.c (create_longjmp_master_breakpoint): Use
10736 (add_location_to_breakpoint, bkpt_probe_insert_location)
10737 (bkpt_probe_remove_location): Update.
10738 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10739 * elfread.c (elf_symfile_relocate_probe): Remove.
10740 (elf_probe_fns): Update.
10741 (insert_exception_resume_breakpoint): Change type of "probe"
10742 parameter to bound_probe.
10743 (check_exception_resume): Update.
10744 * objfiles.c (objfile_relocate1): Don't relocate probes.
10745 * probe.c (bound_probe_s): New typedef.
10746 (parse_probes): Use get_probe_address. Set sal's objfile.
10747 (find_probe_by_pc): Return a bound_probe.
10748 (collect_probes): Return a VEC(bound_probe_s).
10749 (compare_probes): Update.
10750 (gen_ui_out_table_header_info): Change type of "probes"
10752 (info_probes_for_ops): Update.
10753 (get_probe_address): New function.
10754 (probe_safe_evaluate_at_pc): Update.
10755 * probe.h (struct probe_ops) <get_probe_address>: New field.
10756 <set_semaphore, clear_semaphore>: Add objfile parameter.
10757 (struct probe) <objfile>: Remove field.
10759 <address>: Update comment.
10760 (struct bound_probe): New.
10761 (find_probe_by_pc): Return a bound_probe.
10762 (get_probe_address): Declare.
10763 * solib-svr4.c (struct probe_and_action) <address>: New field.
10764 (hash_probe_and_action, equal_probe_and_action): Update.
10765 (register_solib_event_probe): Add address parameter.
10766 (solib_event_probe_at): Update.
10767 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10769 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10770 (stap_get_probe_address): New function.
10771 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10772 (compile_probe_arg): Update.
10773 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10775 (handle_stap_probe): Don't relocate the probe.
10776 (stap_relocate): Remove.
10777 (stap_gen_info_probes_table_values): Update.
10778 (stap_probe_ops): Remove stap_relocate.
10779 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10780 (debug_sym_probe_fns): Update.
10781 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10782 * symtab.c (init_sal): Use memset.
10783 * symtab.h (struct symtab_and_line) <objfile>: New field.
10784 * tracepoint.c (start_tracing, stop_tracing): Update.
10786 2014-03-03 Tom Tromey <tromey@redhat.com>
10788 * probe.h (parse_probes, find_probe_by_pc)
10789 (find_probes_in_objfile): Fix comments.
10791 2014-03-02 Doug Evans <xdje42@gmail.com>
10793 * infrun.c (handle_signal_stop): Replace test for
10794 TARGET_WAITKIND_STOPPED with an assert.
10796 2014-03-02 Doug Evans <xdje42@gmail.com>
10798 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10800 2014-03-02 Doug Evans <xdje42@gmail.com>
10802 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10804 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10806 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10808 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10810 * i386obsd-nat.c: Include "obsd-nat.h".
10811 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10813 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10815 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10817 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10819 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10821 * mips64obsd-nat.c: Include "obsd-nath".
10822 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10824 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10826 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10828 * amd64obsd-nat.c: Include "obsd-nat,h.
10829 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10831 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10833 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10835 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10836 (find_overload_match): Update call to find_oload_champ.
10837 (find_oload_champ_namespace_loop): Likewise
10839 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10841 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10843 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10844 * config/sparc/obsd64.mh: New file.
10845 * sparc64obsd-nat.c: New file.
10847 * obsd-nat.h: New file.
10848 * obsd-nat.c: New file.
10849 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10850 (ALLDEPFILES): Add obsd-nat.c.
10852 2014-02-28 Tom Tromey <tromey@redhat.com>
10854 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10855 * cli-out.h (cli_ui_out_impl): Now const.
10856 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10857 * ui-out.c (struct ui_out) <impl>: Now const.
10858 (default_ui_out_impl): Now const.
10859 (ui_out_new): Make 'impl' parameter const.
10860 * ui-out.h (ui_out_new): Update.
10862 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10864 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10866 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10868 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10870 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10872 Additional PR 8882 fix.
10873 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10875 2014-02-27 Pedro Alves <palves@redhat.com>
10877 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10880 2014-02-27 Pedro Alves <palves@redhat.com>
10883 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10884 * nat/linux-waitpid.c: Include string.h.
10885 (status_to_str): Moved here and made extern.
10886 * nat/linux-waitpid.h (status_to_str): New declaration.
10888 2014-02-27 Hui Zhu <hui@codesourcery.com>
10891 * infrun.c (ptid_match): Move ...
10892 * common/ptid.c (ptid_match): ... here.
10893 * inferior.h (ptid_match): Move ...
10894 * common/ptid.h (ptid_match): ... here.
10896 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10898 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10899 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10902 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10904 * obsd-tdep.c (obsd_auxv_parse): New function.
10905 (obsd_init_abi): Set auxv_parse.
10907 * gdbarch.sh (auxv_parse): New.
10908 * gdbarch.h: Regenerated.
10909 * gdbarch.c: Regenerated.
10910 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10912 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10914 * guile/scm-value.c (gdbscm_history_append_x): New function.
10915 (value_functions): Add it.
10917 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10919 * dwarf2read.c (attr_value_as_address): New function.
10920 (dwarf2_find_base_address, read_call_site_scope): Use
10921 attr_value_as_address in place of DW_ADDR.
10922 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10923 the low and high addresses. Slight rework of the handling
10924 of the high pc being a constant form, and limit it to
10925 DWARF verson 4 or higher.
10926 (dwarf2_record_block_ranges): Likewise.
10927 (read_partial_die): Likewise.
10928 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10930 2014-02-26 Tom Tromey <tromey@redhat.com>
10932 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10934 2014-02-26 Tom Tromey <tromey@redhat.com>
10936 * elfread.c (elf_read_minimal_symbols): Return early if
10937 minimal symbols have already been read. Add "ei" parameter.
10938 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10939 * minsyms.c (prim_record_minimal_symbol_full): Update.
10940 * objfiles.h (struct objstats) <n_minsyms>: Move...
10941 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10942 * symmisc.c (print_objfile_statistics): Update.
10944 2014-02-26 Tom Tromey <tromey@redhat.com>
10946 * elfread.c (elf_read_minimal_symbols): New function, from
10948 (elf_symfile_read): Call it.
10950 2014-02-26 Tom Tromey <tromey@redhat.com>
10952 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10953 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10954 (lookup_minimal_symbol_solib_trampoline)
10955 (lookup_minimal_symbol_by_pc_section_1)
10956 (lookup_minimal_symbol_and_objfile): Update.
10957 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10958 Don't allocate a minimal symbol if minsyms have already been read.
10959 (build_minimal_symbol_hash_tables): Update.
10960 (install_minimal_symbols): Do nothing if minsyms already read.
10961 Use the per-BFD obstack.
10962 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10963 * objfiles.c (allocate_objfile): Call
10964 terminate_minimal_symbol_table later.
10965 (have_minimal_symbols): Update.
10966 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10967 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10968 Move from struct objfile.
10969 <minsyms_read>: New field.
10970 (struct objfile) <msymbols, minimal_symbol_count,
10971 msymbol_hash, msymbol_demangled_hash>: Move.
10972 (ALL_OBJFILE_MSYMBOLS): Update.
10973 * symfile.c (read_symbols): Set minsyms_read.
10974 (reread_symbols): Update.
10975 * symmisc.c (dump_objfile, dump_msymbols): Update.
10977 2014-02-26 Tom Tromey <tromey@redhat.com>
10979 * minsyms.c (msymbols_sort): Remove.
10980 * minsyms.h (msymbols_sort): Remove.
10981 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10982 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10983 * elfread.c (elf_symtab_read): Don't add section offsets.
10984 * xcoffread.c (record_minimal_symbol): Don't add section offset
10985 to minimal symbol address.
10986 * somread.c (text_offset, data_offset): Remove.
10987 (som_symtab_read): Don't add section offsets to minimal symbol
10989 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10990 Don't add section offsets to minimal symbols.
10991 * coffread.c (coff_symtab_read): Don't add section offsets
10992 to minimal symbol addresses.
10993 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10994 to minimal symbol addresses.
10995 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10996 section offset to minimal symbol addresses.
10997 * mdebugread.c (parse_partial_symbols): Don't add section
10998 offset to minimal symbol addresses.
10999 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
11000 offset to minimal symbol addresses.
11002 2014-02-26 Tom Tromey <tromey@redhat.com>
11004 * ada-lang.c (ada_main_name): Update.
11005 (ada_add_standard_exceptions): Update.
11006 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11007 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11008 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
11009 * auxv.c (ld_so_xfer_auxv): Update.
11010 * avr-tdep.c (avr_scan_prologue): Update.
11011 * ax-gdb.c (gen_var_ref): Update.
11012 * blockframe.c (get_pc_function_start)
11013 (find_pc_partial_function_gnu_ifunc): Update.
11014 * breakpoint.c (create_overlay_event_breakpoint)
11015 (create_longjmp_master_breakpoint)
11016 (create_std_terminate_master_breakpoint)
11017 (create_exception_master_breakpoint): Update.
11018 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11019 * c-valprint.c (c_val_print): Update.
11020 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11021 * common/agent.c (agent_look_up_symbols): Update.
11022 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11023 * dwarf2loc.c (call_site_to_target_addr): Update.
11024 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
11025 * elfread.c (elf_gnu_ifunc_record_cache)
11026 (elf_gnu_ifunc_resolve_by_got): Update.
11027 * findvar.c (default_read_var_value): Update.
11028 * frame.c (inside_main_func): Update.
11029 * frv-tdep.c (frv_frame_this_id): Update.
11030 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11031 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11033 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
11034 (hppa_hpux_find_dummy_bpaddr): Update.
11035 * hppa-tdep.c (hppa_symbol_address): Update.
11036 * infcmd.c (until_next_command): Update.
11037 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
11039 * linespec.c (minsym_found, add_minsym): Update.
11040 * linux-nat.c (get_signo): Update.
11041 * linux-thread-db.c (inferior_has_bug): Update.
11042 * m32c-tdep.c (m32c_return_value)
11043 (m32c_m16c_address_to_pointer): Update.
11044 * m32r-tdep.c (m32r_frame_this_id): Update.
11045 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11046 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11047 * maint.c (maintenance_translate_address): Update.
11048 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
11049 (frob_address): New function.
11050 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
11051 frob_address. Rename parameter to "pc_in".
11052 (compare_minimal_symbols, compact_minimal_symbols): Use raw
11054 (find_solib_trampoline_target, minimal_symbol_upper_bound):
11056 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11057 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
11058 * objc-lang.c (find_objc_msgsend): Update.
11059 * objfiles.c (objfile_relocate1): Update.
11060 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11061 * p-valprint.c (pascal_val_print): Update.
11062 * parse.c (write_exp_msymbol): Update.
11063 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
11064 (ppc_elfv2_skip_entrypoint): Update.
11065 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11066 * printcmd.c (build_address_symbolic, msym_info)
11067 (address_info): Update.
11068 * proc-service.c (ps_pglobal_lookup): Update.
11069 * psymtab.c (find_pc_sect_psymtab_closer)
11070 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
11071 Change msymbol parameter to bound_minimal_symbol.
11072 * ravenscar-thread.c (get_running_thread_id): Update.
11073 * remote.c (remote_check_symbols): Update.
11074 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
11076 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11077 * solib-dsbt.c (lm_base): Update.
11078 * solib-frv.c (lm_base, main_got): Update.
11079 * solib-irix.c (locate_base): Update.
11080 * solib-som.c (som_solib_create_inferior_hook)
11081 (link_map_start): Update.
11082 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
11083 * solib-svr4.c (elf_locate_base, enable_break): Update.
11084 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11085 (flush_ea_cache): Update.
11086 * stabsread.c (define_symbol, scan_file_globals): Update.
11087 * stack.c (find_frame_funname): Update.
11088 * symfile-debug.c (debug_qf_expand_symtabs_matching)
11089 (debug_qf_find_pc_sect_symtab): Update.
11090 * symfile.c (simple_read_overlay_table)
11091 (simple_overlay_update): Update.
11092 * symfile.h (struct quick_symbol_functions)
11093 <find_pc_sect_symtab>: Change type of msymbol to
11094 bound_minimal_symbol.
11095 * symmisc.c (dump_msymbols): Update.
11096 * symtab.c (find_pc_sect_symtab_via_partial)
11097 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
11098 (search_symbols, print_msymbol_info): Update.
11099 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
11100 (MSYMBOL_VALUE_ADDRESS): Redefine.
11101 (BMSYMBOL_VALUE_ADDRESS): New macro.
11102 * tracepoint.c (scope_info): Update.
11103 * tui/tui-disasm.c (tui_find_disassembly_address)
11104 (tui_get_begin_asm_address): Update.
11105 * valops.c (find_function_in_inferior): Update.
11106 * value.c (value_static_field, value_fn_field): Update.
11108 2014-02-26 Tom Tromey <tromey@redhat.com>
11110 * ada-lang.c (ada_update_initial_language): Update.
11111 (ada_main_name, ada_has_this_exception_support): Update.
11112 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11113 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11114 * arm-tdep.c (arm_skip_stub): Update.
11115 * auxv.c (ld_so_xfer_auxv): Update.
11116 * avr-tdep.c (avr_scan_prologue): Update.
11117 * ax-gdb.c (gen_var_ref): Update.
11118 * breakpoint.c (struct breakpoint_objfile_data)
11119 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11120 type to bound_minimal_symbol.
11121 (create_overlay_event_breakpoint)
11122 (create_longjmp_master_breakpoint)
11123 (create_std_terminate_master_breakpoint)
11124 (create_exception_master_breakpoint): Update.
11125 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11126 * c-exp.y (classify_name): Update.
11127 * coffread.c (coff_symfile_read): Update.
11128 * common/agent.c (agent_look_up_symbols): Update.
11129 * d-lang.c (d_main_name): Update.
11130 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11131 * dec-thread.c (enable_dec_thread): Update.
11132 * dwarf2loc.c (call_site_to_target_addr): Update.
11133 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11134 * eval.c (evaluate_subexp_standard): Update.
11135 * findvar.c (struct minsym_lookup_data) <result>: Change type
11136 to bound_minimal_symbol.
11138 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11139 * frame.c (inside_main_func): Update.
11140 * frv-tdep.c (frv_frame_this_id): Update.
11141 * gcore.c (call_target_sbrk): Update.
11142 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11143 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11145 * go-lang.c (go_main_name): Update.
11146 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11147 (hppa_hpux_find_import_stub_for_addr): Update.
11148 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11149 Update. Change return type.
11150 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11152 * jit.c (jit_breakpoint_re_set_internal): Update.
11153 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11155 * linux-nat.c (get_signo): Update.
11156 * linux-thread-db.c (inferior_has_bug): Update
11157 * m32c-tdep.c (m32c_return_value)
11158 (m32c_m16c_address_to_pointer): Update.
11159 * m32r-tdep.c (m32r_frame_this_id): Update.
11160 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11161 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11162 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11163 lookup_minimal_symbol. Change return type.
11164 (lookup_minimal_symbol): Remove.
11165 (lookup_bound_minimal_symbol): Update.
11166 (lookup_minimal_symbol_text): Change return type.
11167 (lookup_minimal_symbol_solib_trampoline): Change return type.
11168 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11169 (lookup_minimal_symbol_solib_trampoline): Change return type.
11170 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11171 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11172 (value_nsstring, find_imps): Update.
11173 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11174 * p-lang.c (pascal_main_name): Update.
11175 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11176 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11177 * proc-service.c (ps_pglobal_lookup): Update.
11178 * ravenscar-thread.c (get_running_thread_msymbol): Change
11180 (has_ravenscar_runtime, get_running_thread_id): Update.
11181 * remote.c (remote_check_symbols): Update.
11182 * sol-thread.c (ps_pglobal_lookup): Update.
11183 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11184 * solib-dsbt.c (lm_base): Update.
11185 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11187 * solib-irix.c (locate_base): Update.
11188 * solib-som.c (som_solib_create_inferior_hook)
11189 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11191 * solib-spu.c (spu_enable_break): Update.
11192 * solib-svr4.c (elf_locate_base, enable_break): Update.
11193 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11194 (flush_ea_cache): Update.
11195 * stabsread.c (define_symbol): Update.
11196 * symfile.c (simple_read_overlay_table): Update.
11197 * symtab.c (find_pc_sect_line): Update.
11198 * tracepoint.c (scope_info): Update.
11199 * tui-disasm.c (tui_get_begin_asm_address): Update.
11200 * value.c (value_static_field): Update.
11202 2014-02-26 Tom Tromey <tromey@redhat.com>
11204 * minsyms.c (prim_record_minimal_symbol_full): Use
11205 SET_MSYMBOL_VALUE_ADDRESS.
11206 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11207 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11208 SET_MSYMBOL_VALUE_ADDRESS.
11209 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11210 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11212 2014-02-26 Tom Tromey <tromey@redhat.com>
11214 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11215 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11216 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11217 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11218 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11219 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11220 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11221 * ada-lang.c (ada_main_name): Update.
11222 (ada_lookup_simple_minsym): Update.
11223 (ada_make_symbol_completion_list): Update.
11224 (ada_add_standard_exceptions): Update.
11225 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11226 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11227 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11228 * arm-tdep.c (skip_prologue_function): Update.
11229 (arm_skip_stack_protector, arm_skip_stub): Update.
11230 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11231 (arm_wince_skip_main_prologue): Update.
11232 * auxv.c (ld_so_xfer_auxv): Update.
11233 * avr-tdep.c (avr_scan_prologue): Update.
11234 * ax-gdb.c (gen_var_ref): Update.
11235 * block.c (call_site_for_pc): Update.
11236 * blockframe.c (get_pc_function_start): Update.
11237 (find_pc_partial_function_gnu_ifunc): Update.
11238 * breakpoint.c (create_overlay_event_breakpoint): Update.
11239 (create_longjmp_master_breakpoint): Update.
11240 (create_std_terminate_master_breakpoint): Update.
11241 (create_exception_master_breakpoint): Update.
11242 (resolve_sal_pc): Update.
11243 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11244 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11246 * c-valprint.c (c_val_print): Update.
11247 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11248 * coffread.c (coff_symfile_read): Update.
11249 * common/agent.c (agent_look_up_symbols): Update.
11250 * dbxread.c (find_stab_function_addr): Update.
11251 (end_psymtab): Update.
11252 * dwarf2loc.c (call_site_to_target_addr): Update.
11253 (func_verify_no_selftailcall): Update.
11254 (tailcall_dump): Update.
11255 (call_site_find_chain_1): Update.
11256 (dwarf_expr_reg_to_entry_parameter): Update.
11257 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11258 (elf_gnu_ifunc_resolve_by_got): Update.
11259 * f-valprint.c (info_common_command): Update.
11260 * findvar.c (read_var_value): Update.
11261 * frame.c (get_prev_frame_1): Update.
11262 (inside_main_func): Update.
11263 * frv-tdep.c (frv_skip_main_prologue): Update.
11264 (frv_frame_this_id): Update.
11265 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11266 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11267 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11268 (gnuv3_skip_trampoline): Update.
11269 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11270 (hppa64_hpux_in_solib_call_trampoline): Update.
11271 (hppa_hpux_skip_trampoline_code): Update.
11272 (hppa64_hpux_search_dummy_call_sequence): Update.
11273 (hppa_hpux_find_import_stub_for_addr): Update.
11274 (hppa_hpux_find_dummy_bpaddr): Update.
11275 * hppa-tdep.c (hppa_symbol_address)
11276 (hppa_lookup_stub_minimal_symbol): Update.
11277 * i386-tdep.c (i386_skip_main_prologue): Update.
11278 (i386_pe_skip_trampoline_code): Update.
11279 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11280 * infcall.c (get_function_name): Update.
11281 * infcmd.c (until_next_command): Update.
11282 * jit.c (jit_breakpoint_re_set_internal): Update.
11283 (jit_inferior_init): Update.
11284 * linespec.c (minsym_found): Update.
11285 (add_minsym): Update.
11286 * linux-fork.c (info_checkpoints_command): Update.
11287 * linux-nat.c (get_signo): Update.
11288 * linux-thread-db.c (inferior_has_bug): Update.
11289 * m32c-tdep.c (m32c_return_value): Update.
11290 (m32c_m16c_address_to_pointer): Update.
11291 (m32c_m16c_pointer_to_address): Update.
11292 * m32r-tdep.c (m32r_frame_this_id): Update.
11293 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11294 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11295 * maint.c (maintenance_translate_address): Update.
11296 * minsyms.c (add_minsym_to_hash_table): Update.
11297 (add_minsym_to_demangled_hash_table): Update.
11298 (msymbol_objfile): Update.
11299 (lookup_minimal_symbol): Update.
11300 (iterate_over_minimal_symbols): Update.
11301 (lookup_minimal_symbol_text): Update.
11302 (lookup_minimal_symbol_by_pc_name): Update.
11303 (lookup_minimal_symbol_solib_trampoline): Update.
11304 (lookup_minimal_symbol_by_pc_section_1): Update.
11305 (lookup_minimal_symbol_and_objfile): Update.
11306 (prim_record_minimal_symbol_full): Update.
11307 (compare_minimal_symbols): Update.
11308 (compact_minimal_symbols): Update.
11309 (build_minimal_symbol_hash_tables): Update.
11310 (install_minimal_symbols): Update.
11311 (terminate_minimal_symbol_table): Update.
11312 (find_solib_trampoline_target): Update.
11313 (minimal_symbol_upper_bound): Update.
11314 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11315 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11316 (mips_skip_pic_trampoline_code): Update.
11317 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11318 * objc-lang.c (selectors_info): Update.
11319 (classes_info): Update.
11320 (find_methods): Update.
11321 (find_imps): Update.
11322 (find_objc_msgsend): Update.
11323 * objfiles.c (objfile_relocate1): Update.
11324 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11325 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11326 * p-valprint.c (pascal_val_print): Update.
11327 * parse.c (write_exp_msymbol): Update.
11328 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11329 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11330 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11331 * printcmd.c (build_address_symbolic): Update.
11332 (sym_info): Update.
11333 (address_info): Update.
11334 * proc-service.c (ps_pglobal_lookup): Update.
11335 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11336 (find_pc_sect_psymtab): Update.
11337 * python/py-framefilter.c (py_print_frame): Update.
11338 * ravenscar-thread.c (get_running_thread_id): Update.
11339 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11341 * remote.c (remote_check_symbols): Update.
11342 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11343 (rs6000_skip_trampoline_code): Update.
11344 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11345 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11346 * solib-dsbt.c (lm_base): Update.
11347 * solib-frv.c (lm_base): Update.
11348 (main_got): Update.
11349 * solib-irix.c (locate_base): Update.
11350 * solib-som.c (som_solib_create_inferior_hook): Update.
11351 (som_solib_desire_dynamic_linker_symbols): Update.
11352 (link_map_start): Update.
11353 * solib-spu.c (spu_enable_break): Update.
11354 (ocl_enable_break): Update.
11355 * solib-svr4.c (elf_locate_base): Update.
11356 (enable_break): Update.
11357 * spu-tdep.c (spu_get_overlay_table): Update.
11358 (spu_catch_start): Update.
11359 (flush_ea_cache): Update.
11360 * stabsread.c (define_symbol): Update.
11361 (scan_file_globals): Update.
11362 * stack.c (find_frame_funname): Update.
11363 (frame_info): Update.
11364 * symfile.c (simple_read_overlay_table): Update.
11365 (simple_overlay_update): Update.
11366 * symmisc.c (dump_msymbols): Update.
11367 * symtab.c (fixup_section): Update.
11368 (find_pc_sect_line): Update.
11369 (skip_prologue_sal): Update.
11370 (search_symbols): Update.
11371 (print_msymbol_info): Update.
11372 (rbreak_command): Update.
11373 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11374 (completion_list_objc_symbol): Update.
11375 (default_make_symbol_completion_list_break_on): Update.
11376 * tracepoint.c (scope_info): Update.
11377 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11378 (tui_get_begin_asm_address): Update.
11379 * valops.c (find_function_in_inferior): Update.
11380 * value.c (value_static_field): Update.
11381 (value_fn_field): Update.
11383 2014-02-26 Tom Tromey <tromey@redhat.com>
11385 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11386 bound minimal symbols. Move code that knows about minsym
11388 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11390 * minsyms.h (minimal_symbol_upper_bound): Declare.
11391 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11392 minimal_symbol_upper_bound.
11394 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11396 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11397 Use the type's name if its basic type does not have a tag.
11399 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11401 * dwarf2read.c (read_subrange_type): Add comment.
11403 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11405 * dwarf2read.c (update_enumeration_type_from_children): New
11406 function, mostly extracted from process_structure_scope.
11407 (read_enumeration_type): Call update_enumeration_type_from_children.
11408 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11409 and flag_flag_enum fields.
11411 2014-02-26 Pedro Alves <palves@redhat.com>
11413 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11414 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11415 to_xfer_partial method.
11417 2014-02-26 Pedro Alves <palves@redhat.com>
11419 * target.c (complete_target_initialization): Don't install
11420 default_xfer_partial as to_xfer_partial hook.
11421 (nomemory): Delete.
11422 (update_current_target): Don't INHERIT nor de_fault
11423 deprecated_xfer_memory. Delete de_fault macro.
11424 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11425 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11426 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11429 2014-02-26 Pedro Alves <palves@redhat.com>
11431 * go32-nat.c (my_write_child): New function.
11432 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11433 (go32_xfer_partial): New function.
11434 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11435 Instead install a to_xfer_partial hook.
11437 2014-02-26 Pedro Alves <palves@redhat.com>
11439 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11440 to_xfer_partial helper. Rewrite.
11441 (procfs_xfer_partial): New function.
11442 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11443 Install a to_xfer_partial hook.
11445 2014-02-26 Pedro Alves <palves@redhat.com>
11447 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11448 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11449 (m32r_xfer_partial): New function.
11450 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11451 Install a to_xfer_partial hook.
11453 2014-02-26 Pedro Alves <palves@redhat.com>
11455 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11457 (mips_xfer_partial): New function.
11458 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11459 hook. Install a to_xfer_partial hook.
11461 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11463 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11464 * gdbtypes.c (create_array_type_with_stride): New function,
11465 renaming create_array_type, but with an added parameter
11466 called "bit_stride".
11467 (create_array_type): Re-implement using
11468 create_array_type_with_stride.
11469 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11470 and DW_AT_bit_stride attributes.
11472 2014-02-26 Pedro Alves <palves@redhat.com>
11474 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11475 task-specific breakpoints.
11477 2014-02-25 Pedro Alves <palves@redhat.com>
11479 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11480 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11482 2014-02-25 Stan Shebs <stan@codesourcery.com>
11484 * defs.h: Annotate comments for Doxygen.
11486 2014-02-25 Tom Tromey <tromey@redhat.com>
11488 * target.h (target_ignore): Don't declare.
11489 * target.c (target_ignore): Remove.
11491 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11494 * auto-load.c (auto_load_objfile_script_1): Change filename to
11497 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11499 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11500 documentation. Adjust prototype to match the target_ops
11501 to_xfer_partial method. Adjust implementation accordingly.
11503 2014-02-25 Hui Zhu <hui@codesourcery.com>
11505 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11506 to_traceframe_info.
11508 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11510 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11511 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11512 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11513 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11514 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11515 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11516 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11517 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11519 (rl78_register_type): Use a data pointer type for SP and
11520 new pseudo registers mentioned above. Use a 16 bit integer
11521 type for all other register pairs.
11522 (rl78_register_name, rl78_g10_register_name): Update for
11523 new pseudo registers.
11524 (rl78_pseudo_register_read): Likewise.
11525 (rl78_pseudo_register_write): Likewise.
11526 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11527 to the newly added pseudo registers.
11529 2014-02-24 Doug Evans <dje@google.com>
11531 * value.c (record_latest_value): Fix comment.
11532 * printcmd.c (print_command_1): Remove code to handle -1 return from
11533 record_latest_value.
11535 2014-02-24 Pedro Alves <palves@redhat.com>
11537 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11538 deprecated_xfer_memory hook.
11539 (procfs_xfer_partial): Call procfs_xfer_memory instead
11540 of the deprecated_xfer_memory target hook.
11541 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11544 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11546 * windows-nat.c (windows_xfer_shared_libraries): Return
11547 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11548 requested object is TARGET_OBJECT_LIBRARIES.
11550 2014-02-24 Yao Qi <yao@codesourcery.com>
11552 * target.h (enum target_xfer_status)
11553 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11554 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11556 * corefile.c (memory_error_message): User updated.
11557 * exec.c (section_table_read_available_memory): Likewise.
11558 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11559 * target.c (target_xfer_status_to_string): Likewise.
11560 (raw_memory_xfer_partial): Likewise.
11561 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11562 * valops.c (read_value_memory): Likewise.
11563 * exec.h: Update comments.
11565 2014-02-24 Yao Qi <yao@codesourcery.com>
11567 * target.c (target_xfer_status_to_string): Rename argument err
11569 * target.h (target_xfer_status_to_string): Update declaration.
11570 Replace target_xfer_error_to_string with
11571 target_xfer_status_to_string in comment.
11573 2014-02-24 Yao Qi <yao@codesourcery.com>
11575 * mips-linux-nat.c (super_close): Update its type.
11576 (mips_linux_close): Pass 'self' to super_close.
11578 2014-02-24 Yao Qi <yao@codesourcery.com>
11580 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11581 * corefile.c (read_memory): Adjusted.
11582 * target.c (target_write_with_progress): Adjusted.
11584 2014-02-23 Yao Qi <yao@codesourcery.com>
11586 Revert two patches:
11588 2013-10-25 Yao Qi <yao@codesourcery.com>
11590 * remote.c (remote_traceframe_info): Return early if
11591 traceframe is not selected.
11593 2013-07-19 Yao Qi <yao@codesourcery.com>
11595 * target.c (update_current_target): Change the default action
11596 of 'to_traceframe_info' from tcomplain to return_zero.
11597 * target.h (struct target_ops) <to_traceframe_info>: Add more
11600 2014-02-23 Yao Qi <yao@codesourcery.com>
11602 * valops.c (read_value_memory): Rewrite it. Call
11603 target_xfer_partial in a loop.
11604 * exec.h (section_table_available_memory): Remove declaration.
11605 Move comments to ...
11606 * exec.c (section_table_available_memory): ... here. Make it
11609 2014-02-23 Yao Qi <yao@codesourcery.com>
11611 * exec.c (section_table_read_available_memory): New function.
11612 * exec.h (section_table_read_available_memory): Declare.
11613 * ctf.c (ctf_xfer_partial): Call
11614 section_table_read_available_memory.
11615 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11617 2014-02-23 Yao Qi <yao@codesourcery.com>
11619 * ctf.c (ctf_xfer_partial): Move code to ...
11620 * exec.c (exec_read_partial_read_only): ... it. New function.
11621 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11622 * tracefile.c: Include "exec.h".
11623 * exec.h (exec_read_partial_read_only): Declare.
11625 2014-02-23 Yao Qi <yao@codesourcery.com>
11627 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11628 (tfile_has_memory): Remove.
11629 (init_tfile_ops): Don't set fields to_has_all_memory and
11630 to_has_memory of tfile_ops.
11631 * tracefile.c (tracefile_has_all_memory): New function.
11632 (tracefile_has_memory): New function.
11633 (init_tracefile_ops): Initialize fields to_has_all_memory and
11634 to_has_memory of 'ops'.
11636 2014-02-23 Yao Qi <yao@codesourcery.com>
11638 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11639 (ctf_thread_alive, ctf_get_trace_status): Remove.
11640 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11641 init_tracefile_ops.
11642 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11643 (tfile_has_stack, tfile_has_registers): Remove.
11644 (tfile_thread_alive): Remove.
11645 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11646 init_tracefile_ops.
11647 * tracefile.c (tracefile_has_stack): New function.
11648 (tracefile_has_registers): New function.
11649 (tracefile_thread_alive): New function.
11650 (tracefile_get_trace_status): New function.
11651 (init_tracefile_ops): New function.
11652 * tracefile.h (init_tracefile_ops): Declare.
11654 2014-02-23 Yao Qi <yao@codesourcery.com>
11656 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11657 (O_LARGEFILE): Likewise.
11658 (tfile_ops): Likewise.
11659 (TRACE_HEADER_SIZE): Likewise.
11660 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11661 (cur_data_size): Likewise.
11662 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11663 (tfile_close, tfile_files_info): Likewise.
11664 (tfile_get_trace_status): Likewise.
11665 (tfile_get_tracepoint_status): Likewise.
11666 (tfile_get_traceframe_address): Likewise.
11667 (tfile_trace_find, match_blocktype): Likewise.
11668 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11669 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11670 (tfile_get_trace_state_variable_value): Likewise.
11671 (tfile_has_all_memory, tfile_has_memory): Likewise.
11672 (tfile_has_stack, tfile_has_registers): Likewise.
11673 (tfile_thread_alive, build_traceframe_info): Likewise.
11674 (tfile_traceframe_info, init_tfile_ops): Likewise.
11675 (_initialize_tracepoint): Don't call init_tfile_ops
11676 and add_target_with_completer.
11677 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11678 exec.h, completer.h and filenames.h.
11679 (_initialize_tracefile_tfile): New function.
11681 2014-02-23 Yao Qi <yao@codesourcery.com>
11683 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11685 (HFILES_NO_SRCDIR): Add tracefile.h.
11686 * ctf.c: Include "tracefile.h".
11687 * tracefile.h: New file.
11688 * tracefile.c: New file
11689 * tracefile-tfile.c: New file.
11690 * tracepoint.c: Include "tracefile.h".
11691 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11692 (stop_reason_names): Add const.
11693 (trace_file_writer_xfree): Move it to tracefile.c.
11694 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11695 (trace_save_ctf): Likewise.
11696 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11697 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11698 (tfile_write_header, tfile_write_regblock_type): Likewise.
11699 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11700 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11701 (tfile_write_raw_data, tfile_end): Likewise.
11702 (tfile_trace_file_writer_new): Likewise.
11703 (free_uploaded_tp): Make it extern.
11704 (free_uploaded_tsv): Make it extern.
11705 (_initialize_tracepoint): Move code to register command 'tsave'
11707 * tracepoint.h (stop_reason_names): Declare.
11708 (struct trace_frame_write_ops): Move it to tracefile.h.
11709 (struct trace_file_write_ops): Likewise.
11710 (struct trace_file_writer): Likewise.
11711 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11713 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11716 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11718 (get_cores_used_by_process): New parameter num_cores, use it.
11719 (linux_xfer_osdata_processes): Pass num_cores to it.
11720 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11723 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11725 * target.c (memory_xfer_partial): Fix length arg in call to
11726 breakpoint_xfer_memory.
11728 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11731 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11732 number comes after the + or - signs. Adjust length of register
11733 name to be extracted.
11735 2014-02-20 Tom Tromey <tromey@redhat.com>
11737 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11738 (ada_varobj_ops): Mark "extern".
11740 2014-02-20 Tom Tromey <tromey@redhat.com>
11742 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11744 2014-02-20 Doug Evans <xdje42@gmail.com>
11746 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11747 All callers updated.
11748 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11749 All callers updated.
11750 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11751 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11753 2014-02-20 lin zuojian <manjian2006@gmail.com>
11754 Joel Brobecker <brobecker@adacore.com>
11755 Doug Evans <xdje42@gmail.com>
11758 * dwarf2read.c (struct die_info): New member in_process.
11759 (reset_die_in_process): New function.
11760 (process_die): Set it at the start, reset when returning.
11761 (inherit_abstract_dies): Only call process_die if origin_child_die
11762 not already being processed.
11764 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11766 * windows-nat.c (handle_unload_dll): Add function documentation.
11767 (do_initial_windows_stuff): Add comment explaining why we wait
11768 until after inferior initialization has finished before
11769 processing all DLLs.
11771 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11773 * windows-nat.c (get_module_name): Delete.
11774 (windows_get_exec_module_filename): New function, mostly
11775 inspired from get_module_name.
11776 (windows_pid_to_exec_file): Replace call to get_module_name
11777 by call to windows_get_exec_module_filename.
11779 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11781 * windows-nat.c (handle_load_dll): Rewrite this function's
11782 introductory comment. Remove code using get_module_name
11783 to get the DLL's name.
11785 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11787 * windows-nat.c (get_windows_debug_event): Ignore
11788 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11789 if windows_initialization_done == 0.
11790 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11791 Adjust implementation to always load all DLLs.
11792 (do_initial_windows_stuff): Replace call to
11793 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11795 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11797 * windows-nat.c (_initialize_windows_nat): Deprecate the
11798 "dll-symbols" command. Turn the "add-shared-symbol-files"
11799 and "assf" aliases into commands, and deprecate them as well.
11800 * NEWS: Add entry explaining that "dll-symbols" and its two
11801 aliases are now deprecated.
11803 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11805 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11806 new-line in debug string. Remove trailing spaces.
11808 2014-02-19 Stan Shebs <stan@codesourcery.com>
11810 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11812 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11814 * NEWS: Add entry for the new feature
11815 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11818 2014-02-19 Stan Shebs <stan@codesourcery.com>
11820 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11822 2014-02-19 Pedro Alves <palves@redhat.com>
11824 * common/ptid.h (struct ptid): Mention that process_stratum
11825 targets should prefer ptid.lwp.
11827 2014-02-19 Pedro Alves <palves@redhat.com>
11829 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11830 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11831 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11832 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11833 store remote thread ids rather than ptid.tid.
11834 (_initialize_remote): Adjust.
11836 2014-02-19 Tom Tromey <tromey@redhat.com>
11838 * target.c (target_get_unwinder): Rewrite.
11839 (target_get_tailcall_unwinder): Rewrite.
11840 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11841 (record_btrace_to_get_tailcall_unwinder): New function.
11842 (init_record_btrace_ops): Update.
11843 * target.h (struct target_ops) <to_get_unwinder,
11844 to_get_tailcall_unwinder>: Now function pointers. Use
11845 TARGET_DEFAULT_RETURN.
11847 2014-02-19 Tom Tromey <tromey@redhat.com>
11849 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11851 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11855 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11857 * target-delegates.c: Rebuild.
11858 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11859 TARGET_DEFAULT_FUNC.
11860 * target.c (default_target_decr_pc_after_break): Rename from
11861 forward_target_decr_pc_after_break. Simplify.
11862 (target_decr_pc_after_break): Rely on delegation.
11864 2014-02-19 Tom Tromey <tromey@redhat.com>
11866 * target.c (update_current_target): Do not INHERIT to_doc or
11867 to_magic. Do not de_fault to_open or to_close.
11869 2014-02-19 Tom Tromey <tromey@redhat.com>
11871 * gcore.h (objfile_find_memory_regions): Declare.
11872 * gcore.c (objfile_find_memory_regions): No longer static. Add
11874 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11875 * exec.c: Include gcore.h.
11876 (exec_set_find_memory_regions): Remove.
11877 (exec_find_memory_regions): Remove.
11878 (exec_do_find_memory_regions): Remove.
11879 (init_exec_ops): Update.
11880 * defs.h (exec_set_find_memory_regions): Remove.
11882 2014-02-19 Tom Tromey <tromey@redhat.com>
11884 * target-delegates.c: Rebuild.
11885 * target.h (struct target_ops) <to_extra_thread_info,
11886 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11887 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11888 not 0, in TARGET_DEFAULT_RETURN.
11890 2014-02-19 Tom Tromey <tromey@redhat.com>
11892 * target.c (complete_target_initialization): Remove casts. Use
11893 return_zero_has_execution.
11894 (return_zero): Add "ignore" argument.
11895 (return_zero_has_execution): New function.
11896 (init_dummy_target): Remove casts. Use
11897 return_zero_has_execution.
11899 2014-02-19 Tom Tromey <tromey@redhat.com>
11901 * target.c (update_current_target): Update comments. Do not
11902 INHERIT to_stratum.
11904 2014-02-19 Tom Tromey <tromey@redhat.com>
11906 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11908 * corelow.c (core_read_description): Delegate when needed.
11909 * remote.c (remote_read_description): Delegate when needed.
11910 * target-delegates.c: Rebuild.
11911 * target.c (target_read_description): Rewrite.
11912 * target.h (struct target_ops) <to_read_description>: Update
11913 comment. Use TARGET_DEFAULT_RETURN.
11915 2014-02-19 Tom Tromey <tromey@redhat.com>
11917 * target-delegates.c: Rebuild.
11918 * target.c (update_current_target): Don't inherit or default
11920 (find_default_run_target): Check against delegate_can_run.
11921 * target.h (struct target_ops) <to_can_run>: Use
11922 TARGET_DEFAULT_RETURN.
11924 2014-02-19 Tom Tromey <tromey@redhat.com>
11926 * target-delegates.c: Rebuild.
11927 * target.c (target_disconnect): Unconditionally delegate.
11928 * target.h (struct target_ops) <to_disconnect>: Use
11929 TARGET_DEFAULT_NORETURN.
11931 2014-02-19 Tom Tromey <tromey@redhat.com>
11933 * record.c (record_stop): Unconditionally delegate.
11934 * target-delegates.c: Rebuild.
11935 * target.c (target_stop_recording): Unconditionally delegate.
11936 * target.h (struct target_ops) <to_stop_recording>: Use
11937 TARGET_DEFAULT_IGNORE.
11939 2014-02-19 Tom Tromey <tromey@redhat.com>
11941 * target-delegates.c: Rebuild.
11942 * target.c (target_enable_btrace): Unconditionally delegate.
11943 * target.h (struct target_ops) <to_enable_btrace>: Use
11944 TARGET_DEFAULT_NORETURN.
11946 2014-02-19 Tom Tromey <tromey@redhat.com>
11948 * target-delegates.c: Rebuild.
11949 * target.c (target_read_btrace): Unconditionally delegate.
11950 * target.h (struct target_ops) <to_read_btrace>: Use
11951 TARGET_DEFAULT_NORETURN.
11953 2014-02-19 Tom Tromey <tromey@redhat.com>
11955 * target-delegates.c: Rebuild.
11956 * target.c (target_teardown_btrace): Unconditionally delegate.
11957 * target.h (struct target_ops) <to_teardown_btrace>: Use
11958 TARGET_DEFAULT_NORETURN.
11960 2014-02-19 Tom Tromey <tromey@redhat.com>
11962 * target-delegates.c: Rebuild.
11963 * target.c (target_disable_btrace): Unconditionally delegate.
11964 * target.h (struct target_ops) <to_disable_btrace>: Use
11965 TARGET_DEFAULT_NORETURN.
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11969 * target-delegates.c: Rebuild.
11970 * target.c (default_search_memory): New function.
11971 (simple_search_memory): Update comment.
11972 (target_search_memory): Unconditionally delegate.
11973 * target.h (struct target_ops) <to_search_memory>: Use
11974 TARGET_DEFAULT_FUNC.
11976 2014-02-19 Tom Tromey <tromey@redhat.com>
11978 * auxv.c (default_auxv_parse): No longer static.
11979 (target_auxv_parse): Unconditionally delegate.
11980 * auxv.h (default_auxv_parse): Declare.
11981 * target-delegates.c: Rebuild.
11982 * target.c: Include auxv.h.
11983 * target.h (struct target_ops) <to_auxv_parse>: Use
11984 TARGET_DEFAULT_FUNC.
11986 2014-02-19 Tom Tromey <tromey@redhat.com>
11988 * target-delegates.c: Rebuild.
11989 * target.c (target_memory_map): Unconditionally delegate.
11990 * target.h (struct target_ops) <to_memory_map>: Use
11991 TARGET_DEFAULT_RETURN.
11993 2014-02-19 Tom Tromey <tromey@redhat.com>
11995 * target-delegates.c: Rebuild.
11996 * target.c (target_thread_alive): Unconditionally delegate.
11997 * target.h (struct target_ops) <to_thread_alive>: Use
11998 TARGET_DEFAULT_RETURN.
12000 2014-02-19 Tom Tromey <tromey@redhat.com>
12002 * target-delegates.c: Rebuild.
12003 * target.c (target_save_record): Unconditionally delegate.
12004 * target.h (struct target_ops) <to_save_record>: Use
12005 TARGET_DEFAULT_NORETURN.
12007 2014-02-19 Tom Tromey <tromey@redhat.com>
12009 * target-delegates.c: Rebuild.
12010 * target.c (target_delete_record): Unconditionally delegate.
12011 * target.h (struct target_ops) <to_delete_record>: Use
12012 TARGET_DEFAULT_NORETURN.
12014 2014-02-19 Tom Tromey <tromey@redhat.com>
12016 * target-delegates.c: Rebuild.
12017 * target.c (target_record_is_replaying): Unconditionally
12019 * target.h (struct target_ops) <to_record_is_replaying>: Use
12020 TARGET_DEFAULT_RETURN.
12022 2014-02-19 Tom Tromey <tromey@redhat.com>
12024 * target-delegates.c: Rebuild.
12025 * target.c (target_goto_record_begin): Unconditionally delegate.
12026 * target.h (struct target_ops) <to_goto_record_begin>: Use
12027 TARGET_DEFAULT_NORETURN.
12029 2014-02-19 Tom Tromey <tromey@redhat.com>
12031 * target-delegates.c: Rebuild.
12032 * target.c (target_goto_record_end): Unconditionally delegate.
12033 * target.h (struct target_ops) <to_goto_record_end>: Use
12034 TARGET_DEFAULT_NORETURN.
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12038 * target-delegates.c: Rebuild.
12039 * target.c (target_goto_record): Unconditionally delegate.
12040 * target.h (struct target_ops) <to_goto_record>: Use
12041 TARGET_DEFAULT_NORETURN.
12043 2014-02-19 Tom Tromey <tromey@redhat.com>
12045 * target-delegates.c: Rebuild.
12046 * target.c (target_insn_history): Unconditionally delegate.
12047 * target.h (struct target_ops) <to_insn_history>: Use
12048 TARGET_DEFAULT_NORETURN.
12050 2014-02-19 Tom Tromey <tromey@redhat.com>
12052 * target-delegates.c: Rebuild.
12053 * target.c (target_insn_history_from): Unconditionally delegate.
12054 * target.h (struct target_ops) <to_insn_history_from>: 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_range): Unconditionally delegate.
12061 * target.h (struct target_ops) <to_insn_history_range>: Use
12062 TARGET_DEFAULT_NORETURN.
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12066 * target-delegates.c: Rebuild.
12067 * target.c (target_call_history): Unconditionally delegate.
12068 * target.h (struct target_ops) <to_call_history>: Use
12069 TARGET_DEFAULT_NORETURN.
12071 2014-02-19 Tom Tromey <tromey@redhat.com>
12073 * target-delegates.c: Rebuild.
12074 * target.c (target_call_history_from): Unconditionally delegate.
12075 * target.h (struct target_ops) <to_call_history_from>: 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_range): Unconditionally delegate.
12082 * target.h (struct target_ops) <to_call_history_range>: Use
12083 TARGET_DEFAULT_NORETURN.
12085 2014-02-19 Tom Tromey <tromey@redhat.com>
12087 * target-delegates.c: Rebuild.
12088 * target.c (target_verify_memory): Unconditionally delegate.
12089 * target.h (struct target_ops) <to_verify_memory>: Use
12090 TARGET_DEFAULT_NORETURN.
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12094 * target-delegates.c: Rebuild.
12095 * target.c (target_core_of_thread): Unconditionally delegate.
12096 * target.h (struct target_ops) <to_core_of_thread>: Use
12097 TARGET_DEFAULT_RETURN.
12099 2014-02-19 Tom Tromey <tromey@redhat.com>
12101 * target-delegates.c: Rebuild.
12102 * target.c (target_flash_done): Unconditionally delegate.
12103 * target.h (struct target_ops) <to_flash_done>: Use
12104 TARGET_DEFAULT_NORETURN.
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12108 * target-delegates.c: Rebuild.
12109 * target.c (target_flash_erase): Unconditionally delegate.
12110 * target.h (struct target_ops) <to_flash_erase>: Use
12111 TARGET_DEFAULT_NORETURN.
12113 2014-02-19 Tom Tromey <tromey@redhat.com>
12115 * target-delegates.c: Rebuild.
12116 * target.c (target_get_section_table): Unconditionally delegate.
12117 * target.h (struct target_ops) <to_get_section_table>: Use
12118 TARGET_DEFAULT_RETURN.
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12122 * target-delegates.c: Rebuild.
12123 * target.c (target_pid_to_str): Unconditionally delegate.
12124 (init_dummy_target): Don't initialize to_pid_to_str.
12125 (default_pid_to_str): Rename from dummy_pid_to_str.
12126 * target.h (struct target_ops) <to_pid_to_str>: Use
12127 TARGET_DEFAULT_FUNC.
12129 2014-02-19 Tom Tromey <tromey@redhat.com>
12131 * target-delegates.c: Rebuild.
12132 * target.c (target_find_new_threads): Unconditionally delegate.
12133 * target.h (struct target_ops) <to_find_new_threads>: Use
12134 TARGET_DEFAULT_RETURN.
12136 2014-02-19 Tom Tromey <tromey@redhat.com>
12138 * target-delegates.c: Rebuild.
12139 * target.c (target_program_signals): Unconditionally delegate.
12140 * target.h (struct target_ops) <to_program_signals>: Use
12141 TARGET_DEFAULT_IGNORE.
12143 2014-02-19 Tom Tromey <tromey@redhat.com>
12145 * target-delegates.c: Rebuild.
12146 * target.c (target_pass_signals): Unconditionally delegate.
12147 * target.h (struct target_ops) <to_pass_signals>: Use
12148 TARGET_DEFAULT_IGNORE.
12150 2014-02-19 Tom Tromey <tromey@redhat.com>
12152 * target-delegates.c: Rebuild.
12153 * target.c (default_mourn_inferior): New function.
12154 (target_mourn_inferior): Unconditionally delegate.
12155 * target.h (struct target_ops) <to_mourn_inferior>: Use
12156 TARGET_DEFAULT_FUNC.
12158 2014-02-19 Tom Tromey <tromey@redhat.com>
12160 * target-delegates.c: Rebuild.
12161 * target.c (default_follow_fork): New function.
12162 (target_follow_fork): Unconditionally delegate.
12163 * target.h (struct target_ops) <to_follow_fork>: Use
12164 TARGET_DEFAULT_FUNC.
12166 2014-02-19 Tom Tromey <tromey@redhat.com>
12168 * target-delegates.c: Rebuild.
12169 * target.c (target_kill): Unconditionally delegate.
12170 * target.h (struct target_ops) <to_kill>: Use
12171 TARGET_DEFAULT_NORETURN.
12173 2014-02-19 Tom Tromey <tromey@redhat.com>
12175 * target-delegates.c: Rebuild.
12176 * target.c (target_masked_watch_num_registers): Unconditionally
12178 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12179 Use TARGET_DEFAULT_RETURN.
12181 2014-02-19 Tom Tromey <tromey@redhat.com>
12183 * target-delegates.c: Rebuild.
12184 * target.c (target_remove_mask_watchpoint): Unconditionally
12186 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12187 TARGET_DEFAULT_RETURN.
12189 2014-02-19 Tom Tromey <tromey@redhat.com>
12191 * target-delegates.c: Rebuild.
12192 * target.c (target_insert_mask_watchpoint): Unconditionally
12194 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12195 TARGET_DEFAULT_RETURN.
12197 2014-02-19 Tom Tromey <tromey@redhat.com>
12199 * target-delegates.c: Rebuild.
12200 * target.c (target_ranged_break_num_registers): Unconditionally
12202 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12203 Use TARGET_DEFAULT_RETURN.
12205 2014-02-19 Tom Tromey <tromey@redhat.com>
12207 * target-delegates.c: Rebuild.
12208 * target.c (target_fetch_registers): Unconditionally delegate.
12209 * target.h (struct target_ops) <to_fetch_registers>: Use
12210 TARGET_DEFAULT_NORETURN.
12212 2014-02-19 Tom Tromey <tromey@redhat.com>
12214 * target-delegates.c: Rebuild.
12215 * target.c (update_current_target): Don't inherit or default
12217 * target.h (struct target_ops) <to_stop>: Use
12218 TARGET_DEFAULT_IGNORE.
12220 2014-02-19 Tom Tromey <tromey@redhat.com>
12222 * target-delegates.c: Rebuild.
12223 * target.c (update_current_target): Don't inherit or default
12224 to_can_run_breakpoint_commands.
12225 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12226 Use TARGET_DEFAULT_RETURN.
12228 2014-02-19 Tom Tromey <tromey@redhat.com>
12230 * target-delegates.c: Rebuild.
12231 * target.c (update_current_target): Don't inherit or default
12232 to_supports_evaluation_of_breakpoint_conditions.
12233 * target.h (struct target_ops)
12234 <to_supports_evaluation_of_breakpoint_conditions>: Use
12235 TARGET_DEFAULT_RETURN.
12237 2014-02-19 Tom Tromey <tromey@redhat.com>
12239 * target-delegates.c: Rebuild.
12240 * target.c (update_current_target): Don't inherit or default
12241 to_augmented_libraries_svr4_read.
12242 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12243 Use TARGET_DEFAULT_RETURN.
12245 2014-02-19 Tom Tromey <tromey@redhat.com>
12247 * target-delegates.c: Rebuild.
12248 * target.c (update_current_target): Don't inherit or default
12250 * target.h (struct target_ops) <to_can_use_agent>: Use
12251 TARGET_DEFAULT_RETURN.
12253 2014-02-19 Tom Tromey <tromey@redhat.com>
12255 * target-delegates.c: Rebuild.
12256 * target.c (update_current_target): Don't inherit or default
12258 * target.h (struct target_ops) <to_use_agent>: Use
12259 TARGET_DEFAULT_NORETURN.
12261 2014-02-19 Tom Tromey <tromey@redhat.com>
12263 * target-delegates.c: Rebuild.
12264 * target.c (update_current_target): Don't inherit or default
12265 to_traceframe_info.
12266 (return_null): Remove.
12267 * target.h (struct target_ops) <to_traceframe_info>: Use
12268 TARGET_DEFAULT_RETURN.
12270 2014-02-19 Tom Tromey <tromey@redhat.com>
12272 * target-delegates.c: Rebuild.
12273 * target.c (update_current_target): Don't inherit or default
12274 to_static_tracepoint_markers_by_strid.
12275 * target.h (struct target_ops)
12276 <to_static_tracepoint_markers_by_strid>: Use
12277 TARGET_DEFAULT_NORETURN.
12279 2014-02-19 Tom Tromey <tromey@redhat.com>
12281 * target-delegates.c: Rebuild.
12282 * target.c (update_current_target): Don't inherit or default
12283 to_static_tracepoint_marker_at.
12284 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12285 Use TARGET_DEFAULT_RETURN.
12287 2014-02-19 Tom Tromey <tromey@redhat.com>
12289 * target-delegates.c: Rebuild.
12290 * target.c (update_current_target): Don't inherit or default
12291 to_set_permissions.
12292 * target.h (struct target_ops) <to_set_permissions>: Use
12293 TARGET_DEFAULT_IGNORE.
12295 2014-02-19 Tom Tromey <tromey@redhat.com>
12297 * target-delegates.c: Rebuild.
12298 * target.c (update_current_target): Don't inherit or default
12299 to_get_tib_address.
12300 * target.h (struct target_ops) <to_get_tib_address>: Use
12301 TARGET_DEFAULT_NORETURN.
12303 2014-02-19 Tom Tromey <tromey@redhat.com>
12305 * target-delegates.c: Rebuild.
12306 * target.c (update_current_target): Don't inherit or default
12307 to_set_trace_notes.
12308 * target.h (struct target_ops) <to_set_trace_notes>: Use
12309 TARGET_DEFAULT_RETURN.
12311 2014-02-19 Tom Tromey <tromey@redhat.com>
12313 * target-delegates.c: Rebuild.
12314 * target.c (update_current_target): Don't initialize
12315 to_set_trace_buffer_size.
12316 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12317 TARGET_DEFAULT_IGNORE.
12319 2014-02-19 Tom Tromey <tromey@redhat.com>
12321 * target-delegates.c: Rebuild.
12322 * target.c (update_current_target): Don't inherit or default
12323 to_set_circular_trace_buffer.
12324 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12325 TARGET_DEFAULT_IGNORE.
12327 2014-02-19 Tom Tromey <tromey@redhat.com>
12329 * target-delegates.c: Rebuild.
12330 * target.c (update_current_target): Don't inherit or default
12331 to_set_disconnected_tracing.
12332 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12333 TARGET_DEFAULT_IGNORE.
12335 2014-02-19 Tom Tromey <tromey@redhat.com>
12337 * target-delegates.c: Rebuild.
12338 * target.c (update_current_target): Don't inherit or default
12339 to_get_min_fast_tracepoint_insn_len.
12340 (return_minus_one): Remove.
12341 * target.h (struct target_ops)
12342 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12344 2014-02-19 Tom Tromey <tromey@redhat.com>
12346 * target-delegates.c: Rebuild.
12347 * target.c (update_current_target): Don't inherit or default
12348 to_get_raw_trace_data.
12349 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12350 TARGET_DEFAULT_NORETURN.
12352 2014-02-19 Tom Tromey <tromey@redhat.com>
12354 * target-delegates.c: Rebuild.
12355 * target.c (update_current_target): Don't inherit or default
12356 to_upload_trace_state_variables.
12357 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12358 Use TARGET_DEFAULT_RETURN.
12360 2014-02-19 Tom Tromey <tromey@redhat.com>
12362 * target-delegates.c: Rebuild.
12363 * target.c (update_current_target): Don't inherit or default
12364 to_upload_tracepoints.
12365 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12366 TARGET_DEFAULT_RETURN.
12368 2014-02-19 Tom Tromey <tromey@redhat.com>
12370 * target-delegates.c: Rebuild.
12371 * target.c (update_current_target): Don't inherit or default
12372 to_save_trace_data.
12373 * target.h (struct target_ops) <to_save_trace_data>: Use
12374 TARGET_DEFAULT_NORETURN.
12376 2014-02-19 Tom Tromey <tromey@redhat.com>
12378 * target-delegates.c: Rebuild.
12379 * target.c (update_current_target): Don't inherit or default
12380 to_get_trace_state_variable_value.
12381 * target.h (struct target_ops)
12382 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12384 2014-02-19 Tom Tromey <tromey@redhat.com>
12386 * target-delegates.c: Rebuild.
12387 * target.c (update_current_target): Don't inherit or default
12389 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12391 2014-02-19 Tom Tromey <tromey@redhat.com>
12393 * target-delegates.c: Rebuild.
12394 * target.c (update_current_target): Don't inherit or default
12396 * target.h (struct target_ops) <to_trace_stop>: Use
12397 TARGET_DEFAULT_NORETURN.
12399 2014-02-19 Tom Tromey <tromey@redhat.com>
12401 * target-delegates.c: Rebuild.
12402 * target.c (update_current_target): Don't inherit or default
12403 to_get_tracepoint_status.
12404 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12405 TARGET_DEFAULT_NORETURN.
12407 2014-02-19 Tom Tromey <tromey@redhat.com>
12409 * target-delegates.c: Rebuild.
12410 * target.c (update_current_target): Don't inherit or default
12411 to_get_trace_status.
12412 * target.h (struct target_ops) <to_get_trace_status>: Use
12413 TARGET_DEFAULT_RETURN.
12415 2014-02-19 Tom Tromey <tromey@redhat.com>
12417 * target-delegates.c: Rebuild.
12418 * target.c (update_current_target): Don't inherit or default
12420 * target.h (struct target_ops) <to_trace_start>: Use
12421 TARGET_DEFAULT_NORETURN.
12423 2014-02-19 Tom Tromey <tromey@redhat.com>
12425 * target-delegates.c: Rebuild.
12426 * target.c (update_current_target): Don't inherit or default
12427 to_trace_set_readonly_regions.
12428 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12429 Use TARGET_DEFAULT_NORETURN.
12431 2014-02-19 Tom Tromey <tromey@redhat.com>
12433 * target-delegates.c: Rebuild.
12434 * target.c (update_current_target): Don't inherit or default
12435 to_disable_tracepoint.
12436 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12437 TARGET_DEFAULT_NORETURN.
12439 2014-02-19 Tom Tromey <tromey@redhat.com>
12441 * target-delegates.c: Rebuild.
12442 * target.c (update_current_target): Don't inherit or default
12443 to_enable_tracepoint.
12444 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12445 TARGET_DEFAULT_NORETURN.
12447 2014-02-19 Tom Tromey <tromey@redhat.com>
12449 * target-delegates.c: Rebuild.
12450 * target.c (update_current_target): Don't inherit or default
12451 to_download_trace_state_variable.
12452 * target.h (struct target_ops) <to_download_trace_state_variable>:
12453 Use TARGET_DEFAULT_NORETURN.
12455 2014-02-19 Tom Tromey <tromey@redhat.com>
12457 * target-delegates.c: Rebuild.
12458 * target.c (update_current_target): Don't inherit or default
12459 to_can_download_tracepoint.
12460 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12461 TARGET_DEFAULT_RETURN.
12463 2014-02-19 Tom Tromey <tromey@redhat.com>
12465 * target-delegates.c: Rebuild.
12466 * target.c (update_current_target): Don't inherit or default
12467 to_download_tracepoint.
12468 * target.h (struct target_ops) <to_download_tracepoint>: Use
12469 TARGET_DEFAULT_NORETURN.
12471 2014-02-19 Tom Tromey <tromey@redhat.com>
12473 * target-delegates.c: Rebuild.
12474 * target.c (update_current_target): Don't inherit or default
12476 * target.h (struct target_ops) <to_trace_init>: Use
12477 TARGET_DEFAULT_RETURN.
12479 2014-02-19 Tom Tromey <tromey@redhat.com>
12481 * target-delegates.c: Rebuild.
12482 * target.c (update_current_target): Don't inherit or default
12483 to_supports_string_tracing.
12484 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12485 TARGET_DEFAULT_RETURN.
12487 2014-02-19 Tom Tromey <tromey@redhat.com>
12489 * target-delegates.c: Rebuild.
12490 * target.c (update_current_target): Don't inherit or default
12491 to_supports_enable_disable_tracepoint.
12492 * target.h (struct target_ops)
12493 <to_supports_enable_disable_tracepoint>: Use
12494 TARGET_DEFAULT_RETURN.
12496 2014-02-19 Tom Tromey <tromey@redhat.com>
12498 * target-delegates.c: Rebuild.
12499 * target.c (update_current_target): Don't inherit or default
12500 to_supports_multi_process.
12501 * target.h (struct target_ops) <to_supports_multi_process>: Use
12502 TARGET_DEFAULT_RETURN.
12504 2014-02-19 Tom Tromey <tromey@redhat.com>
12506 * target-delegates.c: Rebuild.
12507 * target.c (update_current_target): Don't inherit or default
12508 to_get_ada_task_ptid.
12509 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12510 TARGET_DEFAULT_FUNC.
12512 2014-02-19 Tom Tromey <tromey@redhat.com>
12514 * target-delegates.c: Rebuild.
12515 * target.c (update_current_target): Don't inherit or default
12516 to_thread_architecture.
12517 * target.h (struct target_ops) <to_thread_architecture>: Use
12518 TARGET_DEFAULT_FUNC.
12520 2014-02-19 Tom Tromey <tromey@redhat.com>
12522 * target-delegates.c: Rebuild.
12523 * target.c (update_current_target): Don't inherit or default
12524 to_execution_direction.
12525 * target.h (struct target_ops) <to_execution_direction>: Use
12526 TARGET_DEFAULT_FUNC.
12528 2014-02-19 Tom Tromey <tromey@redhat.com>
12530 * target-delegates.c: Rebuild.
12531 * target.c (update_current_target): Don't inherit or default
12532 to_can_execute_reverse.
12533 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12534 TARGET_DEFAULT_RETURN.
12535 (target_can_execute_reverse): Unconditionally delegate.
12537 2014-02-19 Tom Tromey <tromey@redhat.com>
12539 * target-delegates.c: Rebuild.
12540 * target.c (update_current_target): Don't inherit or default
12542 (dummy_goto_bookmark): Remove.
12543 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12544 * target.h (struct target_ops) <to_goto_bookmark>: Use
12545 TARGET_DEFAULT_NORETURN.
12547 2014-02-19 Tom Tromey <tromey@redhat.com>
12549 * target-delegates.c: Rebuild.
12550 * target.c (update_current_target): Don't inherit or default
12552 (dummy_get_bookmark): Remove.
12553 (init_dummy_target): Don't inherit or default to_get_bookmark.
12554 * target.h (struct target_ops) <to_get_bookmark>: Use
12555 TARGET_DEFAULT_NORETURN
12557 2014-02-19 Tom Tromey <tromey@redhat.com>
12559 * target-delegates.c: Rebuild.
12560 * target.c (update_current_target): Don't inherit or default
12561 to_make_corefile_notes.
12562 (init_dummy_target): Don't initialize to_make_corefile_notes.
12563 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12564 TARGET_DEFAULT_FUNC.
12566 2014-02-19 Tom Tromey <tromey@redhat.com>
12568 * target-delegates.c: Rebuild.
12569 * target.c (update_current_target): Don't inherit or default
12570 to_find_memory_regions.
12571 (init_dummy_target): Don't initialize to_find_memory_regions.
12572 * target.h (struct target_ops) <to_find_memory_regions>: Use
12573 TARGET_DEFAULT_FUNC.
12575 2014-02-19 Tom Tromey <tromey@redhat.com>
12577 * target-delegates.c: Rebuild.
12578 * target.c (update_current_target): Don't inherit or default
12580 * target.h (struct target_ops) <to_log_command>: Use
12581 TARGET_DEFAULT_IGNORE.
12582 (target_log_command): Unconditionally delegate.
12584 2014-02-19 Tom Tromey <tromey@redhat.com>
12586 * target-delegates.c: Rebuild.
12587 * target.c (update_current_target): Don't inherit or default
12588 to_pid_to_exec_file.
12589 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12590 TARGET_DEFAULT_RETURN.
12592 2014-02-19 Tom Tromey <tromey@redhat.com>
12594 * target-delegates.c: Rebuild.
12595 * target.c (update_current_target): Don't inherit or default
12597 (target_thread_name): Unconditionally delegate.
12598 * target.h (struct target_ops) <to_thread_name>: Use
12599 TARGET_DEFAULT_RETURN.
12601 2014-02-19 Tom Tromey <tromey@redhat.com>
12603 * target-delegates.c: Rebuild.
12604 * target.c (update_current_target): Don't inherit or default
12605 to_extra_thread_info.
12606 * target.h (struct target_ops) <to_extra_thread_info>: Use
12607 TARGET_DEFAULT_RETURN.
12609 2014-02-19 Tom Tromey <tromey@redhat.com>
12611 * target-delegates.c: Rebuild.
12612 * target.c (update_current_target): Don't inherit or default
12614 * target.h (struct target_ops) <to_has_exited>: Use
12615 TARGET_DEFAULT_RETURN..
12617 2014-02-19 Tom Tromey <tromey@redhat.com>
12619 * target-delegates.c: Rebuild.
12620 * target.c (update_current_target): Don't inherit or default
12621 to_set_syscall_catchpoint.
12622 (return_one): Remove.
12623 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12624 TARGET_DEFAULT_RETURN.
12626 2014-02-19 Tom Tromey <tromey@redhat.com>
12628 * target-delegates.c: Rebuild.
12629 * target.c (update_current_target): Don't inherit or default
12630 to_insert_exec_catchpoint.
12631 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12632 TARGET_DEFAULT_RETURN.
12634 2014-01-08 Tom Tromey <tromey@redhat.com>
12636 * target-delegates.c: Rebuild.
12637 * target.c (update_current_target): Don't inherit or default
12638 to_insert_exec_catchpoint.
12639 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12640 TARGET_DEFAULT_RETURN.
12642 2014-02-19 Tom Tromey <tromey@redhat.com>
12644 * target-delegates.c: Rebuild.
12645 * target.c (update_current_target): Don't inherit or default
12646 to_remove_vfork_catchpoint.
12647 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12648 TARGET_DEFAULT_RETURN.
12650 2014-02-19 Tom Tromey <tromey@redhat.com>
12652 * target-delegates.c: Rebuild.
12653 * target.c (update_current_target): Don't inherit or default
12654 to_insert_vfork_catchpoint.
12655 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12656 TARGET_DEFAULT_RETURN.
12658 2014-02-19 Tom Tromey <tromey@redhat.com>
12660 * target-delegates.c: Rebuild.
12661 * target.c (update_current_target): Don't inherit or default
12662 to_remove_fork_catchpoint.
12663 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12664 TARGET_DEFAULT_RETURN.
12666 2014-02-19 Tom Tromey <tromey@redhat.com>
12668 * target-delegates.c: Rebuild.
12669 * target.c (update_current_target): Don't inherit or default
12670 to_insert_fork_catchpoint.
12671 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12672 TARGET_DEFAULT_RETURN.
12674 2014-02-19 Tom Tromey <tromey@redhat.com>
12676 * target-delegates.c: Rebuild.
12677 * target.c (update_current_target): Don't inherit or default
12678 to_post_startup_inferior.
12679 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12680 TARGET_DEFAULT_IGNORE.
12682 2014-02-19 Tom Tromey <tromey@redhat.com>
12684 * target-delegates.c: Rebuild.
12685 * target.c (update_current_target): Don't inherit or default
12687 * target.h (struct target_ops) <to_load>: Use
12688 TARGET_DEFAULT_NORETURN.
12690 2014-02-19 Tom Tromey <tromey@redhat.com>
12692 * target-delegates.c: Rebuild.
12693 * target.c (update_current_target): Don't inherit or default
12695 * target.h (struct target_ops) <to_terminal_info>: Use
12696 TARGET_DEFAULT_FUNC.
12698 2014-02-19 Tom Tromey <tromey@redhat.com>
12700 * target-delegates.c: Rebuild.
12701 * target.c (update_current_target): Don't inherit or default
12702 to_terminal_save_ours.
12703 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12704 TARGET_DEFAULT_IGNORE.
12706 2014-02-19 Tom Tromey <tromey@redhat.com>
12708 * target-delegates.c: Rebuild.
12709 * target.c (update_current_target): Don't inherit or default
12711 * target.h (struct target_ops) <to_terminal_ours>: Use
12712 TARGET_DEFAULT_IGNORE.
12714 2014-02-19 Tom Tromey <tromey@redhat.com>
12716 * target-delegates.c: Rebuild.
12717 * target.c (update_current_target): Don't inherit or default
12718 to_terminal_ours_for_output.
12719 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12720 TARGET_DEFAULT_IGNORE.
12722 2014-02-19 Tom Tromey <tromey@redhat.com>
12724 * target-delegates.c: Rebuild.
12725 * target.c (update_current_target): Don't inherit or default
12726 to_terminal_inferior.
12727 * target.h (struct target_ops) <to_terminal_inferior>: Use
12728 TARGET_DEFAULT_IGNORE.
12730 2014-02-19 Tom Tromey <tromey@redhat.com>
12732 * target-delegates.c: Rebuild.
12733 * target.c (update_current_target): Don't inherit or default
12735 * target.h (struct target_ops) <to_terminal_init>: Use
12736 TARGET_DEFAULT_IGNORE.
12738 2014-02-19 Tom Tromey <tromey@redhat.com>
12740 * target-delegates.c: Rebuild.
12741 * target.c (update_current_target): Don't inherit or default
12742 to_can_accel_watchpoint_condition.
12743 * target.h (struct target_ops)
12744 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12746 2014-02-19 Tom Tromey <tromey@redhat.com>
12748 * target-delegates.c: Rebuild.
12749 * target.c (update_current_target): Don't inherit or default
12750 to_region_ok_for_hw_watchpoint.
12751 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12752 Use TARGET_DEFAULT_FUNC.
12754 2014-02-19 Tom Tromey <tromey@redhat.com>
12756 * target-delegates.c: Rebuild.
12757 * target.c (update_current_target): Don't inherit or default
12758 to_watchpoint_addr_within_range.
12759 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12760 Use TARGET_DEFAULT_FUNC.
12762 2014-02-19 Tom Tromey <tromey@redhat.com>
12764 * target-delegates.c: Rebuild.
12765 * target.c (update_current_target): Don't inherit or default
12766 to_remove_watchpoint.
12767 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12768 TARGET_DEFAULT_NORETURN.
12770 2014-02-19 Tom Tromey <tromey@redhat.com>
12772 * target-delegates.c: Rebuild.
12773 * target.c (update_current_target): Don't inherit or default
12774 to_insert_watchpoint.
12775 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12776 TARGET_DEFAULT_RETURN.
12778 2014-02-19 Tom Tromey <tromey@redhat.com>
12780 * target-delegates.c: Rebuild.
12781 * target.c (update_current_target): Don't inherit or default
12782 to_remove_hw_breakpoint.
12783 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12784 TARGET_DEFAULT_RETURN.
12786 2014-02-19 Tom Tromey <tromey@redhat.com>
12788 * target-delegates.c: Rebuild.
12789 * target.c (update_current_target): Don't inherit or default
12790 to_insert_hw_breakpoint.
12791 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12792 TARGET_DEFAULT_RETURN.
12794 2014-02-19 Tom Tromey <tromey@redhat.com>
12796 * target-delegates.c: Rebuild.
12797 * target.c (update_current_target): Don't inherit or default
12798 to_can_use_hw_breakpoint.
12799 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12800 TARGET_DEFAULT_RETURN.
12802 2014-02-19 Tom Tromey <tromey@redhat.com>
12804 * target-delegates.c: Rebuild.
12805 * target.c (update_current_target): Don't inherit or default
12807 * target.h (struct target_ops) <to_files_info>: Use
12808 TARGET_DEFAULT_IGNORE.
12810 2014-02-19 Tom Tromey <tromey@redhat.com>
12812 * target-delegates.c: Rebuild.
12813 * target.c (update_current_target): Don't inherit or default
12815 * target.h (struct target_ops) <to_store>: Use
12816 TARGET_DEFAULT_NORETURN.
12818 2014-02-19 Tom Tromey <tromey@redhat.com>
12820 * target-delegates.c: Rebuild.
12821 * target.c (update_current_target): Don't inherit or default
12823 * target.h (struct target_ops) <to_post_attach>: Use
12824 TARGET_DEFAULT_IGNORE.
12826 2014-02-19 Tom Tromey <tromey@redhat.com>
12828 * target-delegates.c: Rebuild.
12829 * target.c (update_current_target): Don't inherit or default
12831 (default_rcmd): New function.
12832 (do_monitor_command): Unconditionally delegate.
12833 * target.h (struct target_ops) <to_rmcd>: Use
12834 TARGET_DEFAULT_FUNC.
12836 2014-02-19 Tom Tromey <tromey@redhat.com>
12838 * target-delegates.c: Rebuild.
12839 * target.c (init_dummy_target): Don't initialize to_attach.
12840 (target_attach): Unconditionally delegate.
12841 * target.h (struct target_ops) <to_attach>: Use
12842 TARGET_DEFAULT_FUNC.
12844 2014-02-19 Tom Tromey <tromey@redhat.com>
12846 * target-delegates.c: Rebuild.
12847 * target.c (target_detach): Unconditionally delegate.
12848 (init_dummy_target): Don't initialize to_detach.
12849 * target.h (struct target_ops) <to_detach>: Use
12850 TARGET_DEFAULT_IGNORE.
12852 2014-02-19 Tom Tromey <tromey@redhat.com>
12854 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12856 (target_augmented_libraries_svr4_read): Add argument.
12857 * target.c (update_current_target): Update.
12858 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12861 2014-02-19 Tom Tromey <tromey@redhat.com>
12863 * target.h (struct target_ops) <to_call_history_range>: Add
12865 * target.c (target_call_history_range): Add argument.
12866 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12868 (record_btrace_call_history_from): Update.
12870 2014-02-19 Tom Tromey <tromey@redhat.com>
12872 * target.h (struct target_ops) <to_call_history_from>: Add
12874 * target.c (target_call_history_from): Add argument.
12875 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12878 2014-02-19 Tom Tromey <tromey@redhat.com>
12880 * target.h (struct target_ops) <to_call_history>: Add argument.
12881 * target.c (target_call_history): Add argument.
12882 * record-btrace.c (record_btrace_call_history): Add 'self'
12885 2014-02-19 Tom Tromey <tromey@redhat.com>
12887 * target.h (struct target_ops) <to_insn_history_range>: Add
12889 * target.c (target_insn_history_range): Add argument.
12890 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12892 (record_btrace_insn_history_from): Update.
12894 2014-02-19 Tom Tromey <tromey@redhat.com>
12896 * target.h (struct target_ops) <to_insn_history_from>: Add
12898 * target.c (target_insn_history_from): Add argument.
12899 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12902 2014-02-19 Tom Tromey <tromey@redhat.com>
12904 * target.h (struct target_ops) <to_insn_history>: Add argument.
12905 * target.c (target_insn_history): Add argument.
12906 * record-btrace.c (record_btrace_insn_history): Add 'self'
12909 2014-02-19 Tom Tromey <tromey@redhat.com>
12911 * target.h (struct target_ops) <to_goto_record>: Add argument.
12912 * target.c (target_goto_record): Add argument.
12913 * record-full.c (record_full_goto): Add 'self' argument.
12914 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12916 2014-02-19 Tom Tromey <tromey@redhat.com>
12918 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12919 * target.c (target_goto_record_end): Add argument.
12920 * record-full.c (record_full_goto_end): Add 'self' argument.
12921 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12923 2014-02-19 Tom Tromey <tromey@redhat.com>
12925 * target.h (struct target_ops) <to_goto_record_begin>: Add
12927 * target.c (target_goto_record_begin): Add argument.
12928 * record-full.c (record_full_goto_begin): Add 'self' argument.
12929 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12932 2014-02-19 Tom Tromey <tromey@redhat.com>
12934 * target.h (struct target_ops) <to_record_is_replaying>: Add
12936 * target.c (target_record_is_replaying): Add argument.
12937 * record-full.c (record_full_is_replaying): Add 'self' argument.
12938 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12940 (record_btrace_xfer_partial, record_btrace_store_registers)
12941 (record_btrace_prepare_to_store, record_btrace_resume)
12942 (record_btrace_wait, record_btrace_decr_pc_after_break)
12943 (record_btrace_find_new_threads, record_btrace_thread_alive):
12946 2014-02-19 Tom Tromey <tromey@redhat.com>
12948 * target.h (struct target_ops) <to_delete_record>: Add argument.
12949 * target.c (target_delete_record): Add argument.
12950 * record-full.c (record_full_delete): Add 'self' argument.
12952 2014-02-19 Tom Tromey <tromey@redhat.com>
12954 * target.h (struct target_ops) <to_save_record>: Add argument.
12955 * target.c (target_save_record): Add argument.
12956 * record-full.c (record_full_save): Add 'self' argument.
12957 (record_full_save): Add 'self' argument.
12959 2014-02-19 Tom Tromey <tromey@redhat.com>
12961 * target.h (struct target_ops) <to_info_record>: Add argument.
12962 * target.c (target_info_record): Add argument.
12963 * record.c (info_record_command): Add argument.
12964 * record-full.c (record_full_info): Add 'self' argument.
12965 * record-btrace.c (record_btrace_info): Add 'self' argument.
12967 2014-02-19 Tom Tromey <tromey@redhat.com>
12969 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12970 * target.c (target_stop_recording): Add argument.
12971 * record.c (record_stop): Add argument.
12972 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12975 2014-02-19 Tom Tromey <tromey@redhat.com>
12977 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12978 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12979 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12981 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12982 (_initialize_amd64_linux_nat): Use it.
12983 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12984 (_initialize_i386_linux_nat): Use it.
12986 2014-02-19 Tom Tromey <tromey@redhat.com>
12988 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12989 * target.c (target_teardown_btrace): Add argument.
12990 * remote.c (remote_teardown_btrace): Add 'self' argument.
12991 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12993 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12996 2014-02-19 Tom Tromey <tromey@redhat.com>
12998 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12999 * target.c (target_disable_btrace): Add argument.
13000 * remote.c (remote_disable_btrace): Add 'self' argument.
13001 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
13003 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
13006 2014-02-19 Tom Tromey <tromey@redhat.com>
13008 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
13009 * target.c (target_enable_btrace): Add argument.
13010 * remote.c (remote_enable_btrace): Add 'self' argument.
13011 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
13013 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
13016 2014-02-19 Tom Tromey <tromey@redhat.com>
13018 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
13019 (target_can_use_agent): Add argument.
13020 * target.c (update_current_target): Update.
13021 * remote.c (remote_can_use_agent): Add 'self' argument.
13022 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
13024 2014-02-19 Tom Tromey <tromey@redhat.com>
13026 * target.h (struct target_ops) <to_use_agent>: Add argument.
13027 (target_use_agent): Add argument.
13028 * target.c (update_current_target): Update.
13029 * remote.c (remote_use_agent): Add 'self' argument.
13030 * inf-child.c (inf_child_use_agent): Add 'self' argument.
13032 2014-02-19 Tom Tromey <tromey@redhat.com>
13034 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
13035 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
13036 (target_traceframe_info): Add argument.
13037 * target.c (update_current_target): Update.
13038 * remote.c (remote_traceframe_info): Add 'self' argument.
13039 * ctf.c (ctf_traceframe_info): Add 'self' argument.
13041 2014-02-19 Tom Tromey <tromey@redhat.com>
13043 * target.h (target_static_tracepoint_markers_by_strid): Add
13045 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
13047 * target.c (update_current_target): Update.
13048 * remote.c (struct target_ops)
13049 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13050 * linux-nat.c (struct target_ops)
13051 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13053 2014-02-19 Tom Tromey <tromey@redhat.com>
13055 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
13057 (target_static_tracepoint_marker_at): Add argument.
13058 * target.c (update_current_target): Update.
13059 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
13062 2014-02-19 Tom Tromey <tromey@redhat.com>
13064 * target.h (struct target_ops) <to_set_permissions>: Add argument.
13065 (target_set_permissions): Add argument.
13066 * target.c (update_current_target): Update.
13067 * remote.c (remote_set_permissions): Add 'self' argument.
13068 (remote_start_remote): Update.
13070 2014-02-19 Tom Tromey <tromey@redhat.com>
13072 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
13073 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
13074 (target_get_tib_address): Add argument.
13075 * target.c (update_current_target): Update.
13076 * remote.c (remote_get_tib_address): Add 'self' argument.
13078 2014-02-19 Tom Tromey <tromey@redhat.com>
13080 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
13081 (target_set_trace_notes): Add argument.
13082 * target.c (update_current_target): Update.
13083 * remote.c (remote_set_trace_notes): Add 'self' argument.
13085 2014-02-19 Tom Tromey <tromey@redhat.com>
13087 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
13089 (target_set_trace_buffer_size): Add argument.
13090 * target.c (update_current_target): Update.
13091 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
13093 2014-02-19 Tom Tromey <tromey@redhat.com>
13095 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
13097 (target_set_circular_trace_buffer): Add argument.
13098 * target.c (update_current_target): Update.
13099 * remote.c (remote_set_circular_trace_buffer): Add 'self'
13102 2014-02-19 Tom Tromey <tromey@redhat.com>
13104 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
13106 (target_set_disconnected_tracing): Add argument.
13107 * target.c (update_current_target): Update.
13108 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
13110 2014-02-19 Tom Tromey <tromey@redhat.com>
13112 * target.h (struct target_ops)
13113 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13114 (target_get_min_fast_tracepoint_insn_len): Add argument.
13115 * target.c (update_current_target): Update.
13116 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13119 2014-02-19 Tom Tromey <tromey@redhat.com>
13121 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13123 (target_get_raw_trace_data): Add argument.
13124 * target.c (update_current_target): Update.
13125 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13127 2014-02-19 Tom Tromey <tromey@redhat.com>
13129 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13131 (target_upload_trace_state_variables): Add argument.
13132 * target.c (update_current_target): Update.
13133 * remote.c (remote_upload_trace_state_variables): Add 'self'
13135 (remote_start_remote): Update.
13137 2014-02-19 Tom Tromey <tromey@redhat.com>
13139 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13141 (target_upload_tracepoints): Add argument.
13142 * target.c (update_current_target): Update.
13143 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13144 (remote_start_remote): Update.
13146 2014-02-19 Tom Tromey <tromey@redhat.com>
13148 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13149 (target_save_trace_data): Add argument.
13150 * target.c (update_current_target): Update.
13151 * remote.c (remote_save_trace_data): Add 'self' argument.
13153 2014-02-19 Tom Tromey <tromey@redhat.com>
13155 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13157 * target.h (struct target_ops)
13158 <to_get_trace_state_variable_value>: Add argument.
13159 (target_get_trace_state_variable_value): Add argument.
13160 * target.c (update_current_target): Update.
13161 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13163 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13165 2014-02-19 Tom Tromey <tromey@redhat.com>
13167 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13168 * target.h (struct target_ops) <to_trace_find>: Add argument.
13169 (target_trace_find): Add argument.
13170 * target.c (update_current_target): Update.
13171 * remote.c (remote_trace_find): Add 'self' argument.
13172 * ctf.c (ctf_trace_find): Add 'self' argument.
13174 2014-02-19 Tom Tromey <tromey@redhat.com>
13176 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13177 (target_trace_stop): Add argument.
13178 * target.c (update_current_target): Update.
13179 * remote.c (remote_trace_stop): Add 'self' argument.
13181 2014-02-19 Tom Tromey <tromey@redhat.com>
13183 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13184 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13186 (target_get_tracepoint_status): Add argument.
13187 * target.c (update_current_target): Update.
13188 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13190 2014-02-19 Tom Tromey <tromey@redhat.com>
13192 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13193 * target.h (struct target_ops) <to_get_trace_status>: Add
13195 (target_get_trace_status): Add argument.
13196 * target.c (update_current_target): Update.
13197 * remote.c (remote_get_trace_status): Add 'self' argument.
13198 (remote_start_remote, remote_can_download_tracepoint): Update.
13199 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13201 2014-02-19 Tom Tromey <tromey@redhat.com>
13203 * target.h (struct target_ops) <to_trace_start>: Add argument.
13204 (target_trace_start): Add argument.
13205 * target.c (update_current_target): Update.
13206 * remote.c (remote_trace_start): Add 'self' argument.
13208 2014-02-19 Tom Tromey <tromey@redhat.com>
13210 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13212 (target_trace_set_readonly_regions): Add argument.
13213 * target.c (update_current_target): Update.
13214 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13217 2014-02-19 Tom Tromey <tromey@redhat.com>
13219 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13221 (target_disable_tracepoint): Add argument.
13222 * target.c (update_current_target): Update.
13223 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13225 2014-02-19 Tom Tromey <tromey@redhat.com>
13227 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13229 (target_enable_tracepoint): Add argument.
13230 * target.c (update_current_target): Update.
13231 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13233 2014-02-19 Tom Tromey <tromey@redhat.com>
13235 * target.h (struct target_ops) <to_download_trace_state_variable>:
13237 (target_download_trace_state_variable): Add argument.
13238 * target.c (update_current_target): Update.
13239 * remote.c (remote_download_trace_state_variable): Add 'self'
13242 2014-02-19 Tom Tromey <tromey@redhat.com>
13244 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13246 (target_can_download_tracepoint): Add argument.
13247 * target.c (update_current_target): Update.
13248 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13250 2014-02-19 Tom Tromey <tromey@redhat.com>
13252 * target.h (struct target_ops) <to_download_tracepoint>: Add
13254 (target_download_tracepoint): Add argument.
13255 * target.c (update_current_target): Update.
13256 * remote.c (remote_download_tracepoint): Add 'self' argument.
13258 2014-02-19 Tom Tromey <tromey@redhat.com>
13260 * target.h (struct target_ops) <to_trace_init>: Add argument.
13261 (target_trace_init): Add argument.
13262 * target.c (update_current_target): Update.
13263 * remote.c (remote_trace_init): Add 'self' argument.
13265 2014-02-19 Tom Tromey <tromey@redhat.com>
13267 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13268 * target.c (target_fileio_readlink): Add argument.
13269 * remote.c (remote_hostio_readlink): Add 'self' argument.
13270 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13272 2014-02-19 Tom Tromey <tromey@redhat.com>
13274 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13275 * target.c (target_fileio_unlink): Add argument.
13276 * remote.c (remote_hostio_unlink): Add 'self' argument.
13277 (remote_file_delete): Update.
13278 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13280 2014-02-19 Tom Tromey <tromey@redhat.com>
13282 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13283 * target.c (target_fileio_close): Add argument.
13284 * remote.c (remote_hostio_close): Add 'self' argument.
13285 (remote_hostio_close_cleanup): Update.
13286 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13288 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13290 2014-02-19 Tom Tromey <tromey@redhat.com>
13292 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13293 * target.c (target_fileio_pread): Add argument.
13294 * remote.c (remote_hostio_pread): Add 'self' argument.
13295 (remote_bfd_iovec_pread, remote_file_get): Update.
13296 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13298 2014-02-19 Tom Tromey <tromey@redhat.com>
13300 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13301 * target.c (target_fileio_pwrite): Add argument.
13302 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13303 (remote_file_put): Update.
13304 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13306 2014-02-19 Tom Tromey <tromey@redhat.com>
13308 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13309 * target.c (target_fileio_open): Add argument.
13310 * remote.c (remote_hostio_open): Add 'self' argument.
13311 (remote_bfd_iovec_open): Add 'self' argument.
13312 (remote_file_put): Add 'self' argument.
13313 (remote_file_get): Add 'self' argument.
13314 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13316 2014-02-19 Tom Tromey <tromey@redhat.com>
13318 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13320 (target_can_run_breakpoint_commands): Add argument.
13321 * target.c (update_current_target): Update.
13322 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13324 (remote_insert_breakpoint): Add 'self' argument.
13325 (remote_insert_hw_breakpoint): Add 'self' argument.
13326 (remote_can_run_breakpoint_commands): Add 'self' argument.
13328 2014-02-19 Tom Tromey <tromey@redhat.com>
13330 * target.h (struct target_ops)
13331 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13332 (target_supports_evaluation_of_breakpoint_conditions): Add
13334 * target.c (update_current_target): Update.
13335 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13337 (remote_insert_breakpoint): Add 'self' argument.
13338 (remote_insert_hw_breakpoint): Add 'self' argument.
13339 (remote_supports_cond_breakpoints): Add 'self' argument.
13341 2014-02-19 Tom Tromey <tromey@redhat.com>
13343 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13345 (target_supports_string_tracing): Add argument.
13346 * target.c (update_current_target): Update.
13347 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13349 2014-02-19 Tom Tromey <tromey@redhat.com>
13351 * target.h (struct target_ops)
13352 <to_supports_disable_randomization>: Add argument.
13353 * target.c (find_default_supports_disable_randomization): Add
13355 (target_supports_disable_randomization): Add argument.
13356 (find_default_supports_disable_randomization): Add 'self'
13358 * remote.c (extended_remote_supports_disable_randomization): Add
13360 (remote_supports_disable_randomization): Add 'self' argument.
13361 (extended_remote_create_inferior): Update.
13362 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13365 2014-02-19 Tom Tromey <tromey@redhat.com>
13367 * target.h (struct target_ops)
13368 <to_supports_enable_disable_tracepoint>: Add argument.
13369 (target_supports_enable_disable_tracepoint): Add argument.
13370 * target.c (update_current_target): Update.
13371 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13374 2014-02-19 Tom Tromey <tromey@redhat.com>
13376 * target.h (struct target_ops) <to_supports_multi_process>: Add
13378 (target_supports_multi_process): Add argument.
13379 * target.c (update_current_target): Update.
13380 * remote.c (remote_supports_multi_process): Add 'self' argument.
13381 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13383 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13386 2014-02-19 Tom Tromey <tromey@redhat.com>
13388 * target.h (struct target_ops) <to_execution_direction>: Add
13390 (target_execution_direction): Add argument.
13391 * target.c (default_execution_direction): Add 'self' argument.
13392 * record-full.c (record_full_execution_direction): Add 'self'
13395 2014-02-19 Tom Tromey <tromey@redhat.com>
13397 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13399 (target_can_execute_reverse): Add argument.
13400 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13401 * record-full.c (record_full_can_execute_reverse): Add 'self'
13403 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13406 2014-02-19 Tom Tromey <tromey@redhat.com>
13408 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13409 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13411 (target_get_ada_task_ptid): Add argument.
13412 * target.c (update_current_target): Update.
13413 (default_get_ada_task_ptid): Add 'self' argument.
13414 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13415 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13416 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13418 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13420 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13422 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13424 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13425 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13428 2014-02-19 Tom Tromey <tromey@redhat.com>
13430 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13431 (target_goto_bookmark): Add argument.
13432 * target.c (dummy_goto_bookmark): Add 'self' argument.
13433 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13435 2014-02-19 Tom Tromey <tromey@redhat.com>
13437 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13438 (target_get_bookmark): Add argument.
13439 * target.c (dummy_get_bookmark): Add 'self' argument.
13440 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13442 2014-02-19 Tom Tromey <tromey@redhat.com>
13444 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13446 (target_make_corefile_notes): Add argument.
13447 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13448 * procfs.c (procfs_make_note_section): Add 'self' argument.
13449 (procfs_make_note_section): Add 'self' argument.
13450 (procfs_make_note_section): Add 'self' argument.
13451 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13453 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13454 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13455 * exec.c (exec_make_note_section): Add 'self' argument.
13456 (exec_make_note_section): Add 'self' argument.
13458 2014-02-19 Tom Tromey <tromey@redhat.com>
13460 * target.h (struct target_ops) <to_find_memory_regions>: Add
13462 (target_find_memory_regions): Add argument.
13463 * target.c (dummy_find_memory_regions): Add 'self' argument.
13464 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13465 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13466 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13467 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13468 * exec. (exec_do_find_memory_regions): New global.
13469 (exec_set_find_memory_regions): Rewrite.
13470 (exec_find_memory_regions): New function.
13471 (init_exec_ops): Use exec_find_memory_regions.
13473 2014-02-19 Tom Tromey <tromey@redhat.com>
13475 * target.h (struct target_ops) <to_supports_non_stop>: Add
13477 * target.c (find_default_supports_non_stop): Add argument.
13478 (target_supports_non_stop): Add argument.
13479 (find_default_supports_non_stop): Add 'self' argument.
13480 * remote.c (remote_supports_non_stop): Add 'self' argument.
13481 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13483 2014-02-19 Tom Tromey <tromey@redhat.com>
13485 * target.h (struct target_ops) <to_log_command>: Add argument.
13486 (target_log_command): Add argument.
13487 * serial.h (serial_log_command): Add 'self' argument.
13488 * serial.c (serial_log_command): Add 'self' argument.
13490 2014-02-19 Tom Tromey <tromey@redhat.com>
13492 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13493 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13495 (target_pid_to_exec_file): Add argument.
13496 * target.c (debug_to_pid_to_exec_file): Add argument.
13497 (update_current_target): Update.
13498 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13499 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13500 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13501 (linux_handle_extended_wait): Update.
13502 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13503 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13504 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13505 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13507 2014-02-19 Tom Tromey <tromey@redhat.com>
13509 * target.h (struct target_ops) <to_rcmd>: Add argument.
13510 (target_rcmd): Add argument.
13511 * target.c (debug_to_rcmd): Add argument.
13512 (update_current_target, do_monitor_command): Update.
13513 * remote.c (remote_rcmd): Add 'self' argument.
13514 * monitor.c (monitor_rcmd): Add 'self' argument.
13516 2014-02-19 Tom Tromey <tromey@redhat.com>
13518 * windows-nat.c (windows_stop): Add 'self' argument.
13519 * target.h (struct target_ops) <to_stop>: Add argument.
13520 * target.c (target_stop): Add argument.
13521 (debug_to_stop): Add argument.
13522 (update_current_target): Update.
13523 * remote.c (remote_stop): Add 'self' argument.
13524 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13525 (gdbsim_cntrl_c): Update.
13526 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13527 * procfs.c (procfs_stop): Add 'self' argument.
13528 * nto-procfs.c (procfs_stop): Add 'self' argument.
13529 * monitor.c (monitor_stop): Add 'self' argument.
13530 (monitor_open): Update.
13531 * linux-nat.c (linux_nat_stop): Add argument.
13532 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13533 * gnu-nat.c (gnu_stop): Add 'self' argument.
13534 * darwin-nat.c (darwin_stop): Add 'self' argument.
13536 2014-02-19 Tom Tromey <tromey@redhat.com>
13538 * target.h (struct target_ops) <to_thread_name>: Add argument.
13539 * target.c (target_thread_name): Add argument.
13540 (update_current_target): Update.
13541 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13543 2014-02-19 Tom Tromey <tromey@redhat.com>
13545 * target.h (struct target_ops) <to_extra_thread_info>: Add
13547 (target_extra_thread_info): Add argument.
13548 * target.c (update_current_target): Update.
13549 * remote.c (remote_threads_extra_info): Add 'self' argument.
13550 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13552 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13553 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13554 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13556 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13558 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13560 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13563 2014-02-19 Tom Tromey <tromey@redhat.com>
13565 * target.h (struct target_ops) <to_program_signals>: Add argument.
13566 * target.c (target_program_signals): Add argument.
13567 * remote.c (remote_program_signals): Add 'self' argument.
13569 2014-02-19 Tom Tromey <tromey@redhat.com>
13571 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13572 * target.c (target_pass_signals): Add argument.
13573 * remote.c (remote_pass_signals): Add 'self' argument.
13574 (remote_start_remote): Update.
13575 * procfs.c (procfs_pass_signals): Add 'self' argument.
13576 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13577 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13578 (linux_nat_create_inferior, linux_nat_attach): Update.
13580 2014-02-19 Tom Tromey <tromey@redhat.com>
13582 * windows-nat.c (windows_can_run): Add 'self' argument.
13583 * target.h (struct target_ops) <to_can_run>: Add argument.
13584 (target_can_run): Add argument.
13585 * target.c (debug_to_can_run): Add argument.
13586 (update_current_target): Update.
13587 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13588 * inf-child.c (inf_child_can_run): Add 'self' argument.
13589 * go32-nat.c (go32_can_run): Add 'self' argument.
13591 2014-02-19 Tom Tromey <tromey@redhat.com>
13593 * target.h (struct target_ops) <to_has_exited>: Add argument.
13594 (target_has_exited): Add argument.
13595 * target.c (debug_to_has_exited): Add argument.
13596 (update_current_target): Update.
13598 2014-02-19 Tom Tromey <tromey@redhat.com>
13600 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13602 (target_set_syscall_catchpoint): Add argument.
13603 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13605 * target.c (update_current_target): Update.
13607 2014-02-19 Tom Tromey <tromey@redhat.com>
13609 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13611 (target_remove_exec_catchpoint): Add argument.
13612 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13613 (update_current_target): Update.
13614 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13617 2014-02-19 Tom Tromey <tromey@redhat.com>
13619 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13621 (target_insert_exec_catchpoint): Add argument.
13622 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13623 (update_current_target): Update.
13624 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13627 2014-02-19 Tom Tromey <tromey@redhat.com>
13629 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13631 (target_remove_vfork_catchpoint): Add argument.
13632 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13633 (update_current_target): Update.
13634 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13637 2014-02-19 Tom Tromey <tromey@redhat.com>
13639 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13641 (target_insert_vfork_catchpoint): Add argument.
13642 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13643 (update_current_target): Update.
13644 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13647 2014-02-19 Tom Tromey <tromey@redhat.com>
13649 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13651 (target_remove_fork_catchpoint): Add argument.
13652 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13653 (update_current_target): Update.
13654 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13657 2014-02-19 Tom Tromey <tromey@redhat.com>
13659 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13661 (target_insert_fork_catchpoint): Add argument.
13662 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13663 (update_current_target): Update.
13664 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13667 2014-02-19 Tom Tromey <tromey@redhat.com>
13669 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13671 (target_post_startup_inferior): Add argument.
13672 * target.c (debug_to_post_startup_inferior): Add argument.
13673 (update_current_target): Update.
13674 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13676 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13678 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13680 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13682 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13684 (super_post_startup_inferior): Likewise.
13685 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13687 (super_post_startup_inferior): Likewise.
13688 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13689 Add 'self' argument.
13690 (super_post_startup_inferior): Likewise.
13692 2014-02-19 Tom Tromey <tromey@redhat.com>
13694 * target.h (struct target_ops) <to_load>: Add argument.
13695 * target.c (target_load): Add argument.
13696 (debug_to_load): Add argument.
13697 (update_current_target): Update.
13698 * remote.c (remote_load): Add 'self' argument.
13699 * remote-sim.c (gdbsim_load): Add 'self' argument.
13700 * remote-mips.c (mips_load): Add 'self' argument.
13701 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13702 * monitor.c (monitor_load): Add 'self' argument.
13703 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13705 2014-02-19 Tom Tromey <tromey@redhat.com>
13707 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13708 (target_terminal_info): Add argument.
13709 * target.c (debug_to_terminal_info): Add argument.
13710 (default_terminal_info): Likewise.
13711 * inflow.c (child_terminal_info): Add 'self' argument.
13712 * inferior.h (child_terminal_info): Add 'self' argument.
13713 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13715 2014-02-19 Tom Tromey <tromey@redhat.com>
13717 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13719 (target_terminal_save_ours): Add argument.
13720 * target.c (debug_to_terminal_save_ours): Add argument.
13721 (update_current_target): Update.
13722 * inflow.c (terminal_save_ours): Add 'self' argument.
13723 * inferior.h (terminal_save_ours): Add 'self' argument.
13725 2014-02-19 Tom Tromey <tromey@redhat.com>
13727 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13728 (target_terminal_ours): Add argument.
13729 * target.c (debug_to_terminal_ours): Add argument.
13730 (update_current_target): Update.
13731 * remote.c (remote_terminal_ours): Add 'self' argument.
13732 (remote_close): Update.
13733 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13734 * inflow.c (terminal_ours): Add 'self' argument.
13735 * inferior.h (terminal_ours): Add 'self' argument.
13736 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13738 2014-02-19 Pedro Alves <palves@redhat.com>
13739 Tom Tromey <tromey@redhat.com>
13741 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13743 (target_terminal_ours_for_output): Add argument.
13744 * target.c (debug_to_terminal_ours_for_output): Add argument.
13745 (update_current_target): Update.
13746 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13747 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13748 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13750 2014-02-19 Tom Tromey <tromey@redhat.com>
13752 * target.h (struct target_ops) <to_terminal_inferior>: Add
13754 * target.c (target_terminal_inferior): Add argument.
13755 (update_current_target): Update.
13756 * remote.c (remote_terminal_inferior): Add 'self' argument.
13757 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13758 * inflow.c (terminal_inferior): Add 'self' argument.
13759 * inferior.h (terminal_inferior): Add 'self' argument.
13760 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13761 (go32_terminal_inferior): Add 'self' argument.
13763 2014-02-19 Tom Tromey <tromey@redhat.com>
13765 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13766 (target_terminal_init): Add argument.
13767 * target.c (debug_to_terminal_init): Add argument.
13768 (update_current_target): Update.
13769 * inflow.c (terminal_init_inferior): Add 'self' argument.
13770 * inferior.h (terminal_init_inferior): Add 'self' argument.
13771 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13772 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13774 2014-02-19 Tom Tromey <tromey@redhat.com>
13776 * target.h (struct target_ops)
13777 <to_can_accel_watchpoint_condition>: Add argument.
13778 (target_can_accel_watchpoint_condition): Add argument.
13779 * target.c (debug_to_can_accel_watchpoint_condition): Add
13781 (update_current_target): Update.
13782 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13785 2014-02-19 Tom Tromey <tromey@redhat.com>
13787 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13789 (target_region_ok_for_hw_watchpoint): Add argument.
13790 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13791 (default_region_ok_for_hw_watchpoint): Add argument.
13792 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13793 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13795 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13797 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13799 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13801 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13803 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13805 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13806 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13808 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13809 Add 'self' argument.
13811 2014-02-19 Tom Tromey <tromey@redhat.com>
13813 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13815 (target_insert_watchpoint): Add argument.
13816 * target.c (debug_to_insert_watchpoint): Add argument.
13817 (update_current_target): Update.
13818 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13819 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13820 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13821 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13822 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13823 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13825 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13826 (procfs_insert_hw_watchpoint): Add 'self' argument.
13827 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13829 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13831 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13833 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13834 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13836 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13839 2014-02-19 Tom Tromey <tromey@redhat.com>
13841 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13843 (target_remove_watchpoint): Add argument.
13844 * target.c (debug_to_remove_watchpoint): Add argument.
13845 (update_current_target): Update.
13846 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13847 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13848 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13849 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13850 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13851 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13853 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13854 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13856 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13858 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13860 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13861 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13863 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13866 2014-02-19 Tom Tromey <tromey@redhat.com>
13868 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13870 (target_remove_hw_breakpoint): Add argument.
13871 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13872 (update_current_target): Update.
13873 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13874 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13876 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13877 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13879 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13882 2014-02-19 Tom Tromey <tromey@redhat.com>
13884 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13886 (target_insert_hw_breakpoint): Add argument.
13887 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13888 (update_current_target): Update.
13889 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13890 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13892 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13893 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13894 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13896 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13899 2014-02-19 Tom Tromey <tromey@redhat.com>
13901 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13903 (target_can_use_hardware_watchpoint): Add argument.
13904 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13905 (update_current_target): Update.
13906 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13908 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13910 * remote.c (remote_check_watch_resources): Add 'self' argument.
13911 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13912 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13914 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13915 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13917 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13919 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13921 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13923 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13925 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13927 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13928 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13930 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13933 2014-02-19 Tom Tromey <tromey@redhat.com>
13935 * target.h (struct target_ops) <to_post_attach>: Add argument.
13936 (target_post_attach): Add argument.
13937 * target.c (debug_to_post_attach): Add argument.
13938 (update_current_target): Update.
13939 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13940 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13941 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13942 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13943 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13945 2014-02-19 Tom Tromey <tromey@redhat.com>
13947 * windows-nat.c (windows_close): Add 'self' argument.
13948 * tracepoint.c (tfile_close): Add 'self' argument.
13949 * target.h (struct target_ops) <to_close>: Add argument.
13950 * target.c (target_close): Add argument.
13951 (update_current_target): Update.
13952 * remote.c (remote_close): Add 'self' argument.
13953 * remote-sim.c (gdbsim_close): Add 'self' argument.
13954 * remote-mips.c (mips_close): Add 'self' argument.
13955 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13956 * record-full.c (record_full_close): Add 'self' argument.
13957 * record-btrace.c (record_btrace_close): Add 'self' argument.
13958 * monitor.h (monitor_close): Add 'self' argument.
13959 * monitor.c (monitor_close): Add 'self' argument.
13960 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13961 * linux-nat.c (linux_nat_close): Add argument.
13962 * go32-nat.c (go32_close): Add 'self' argument.
13963 * exec.c (exec_close_1): Add 'self' argument.
13964 * ctf.c (ctf_close): Add 'self' argument.
13965 * corelow.c (core_close): Add 'self' argument.
13966 (core_close_cleanup): Update.
13967 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13968 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13970 2014-02-19 Tom Tromey <tromey@redhat.com>
13972 * remote.c (remote_load): New function.
13973 (init_remote_ops): Use it.
13975 2014-02-19 Tom Tromey <tromey@redhat.com>
13977 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13979 * common/linux-btrace.h (linux_supports_btrace): Update.
13980 * remote.c (remote_supports_btrace): Add "self" argument.
13981 * target-delegates.c: Rebuild.
13982 * target.c (target_supports_btrace): Remove.
13983 * target.h (struct target_ops) <to_supports_btrace>: Add
13984 target_ops argument.
13985 (target_supports_btrace): New define.
13987 2014-02-19 Tom Tromey <tromey@redhat.com>
13989 * record-full.c (record_full_beneath_to_resume_ops)
13990 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13991 (record_full_beneath_to_wait)
13992 (record_full_beneath_to_store_registers_ops)
13993 (record_full_beneath_to_store_registers)
13994 (record_full_beneath_to_xfer_partial_ops)
13995 (record_full_beneath_to_xfer_partial)
13996 (record_full_beneath_to_insert_breakpoint_ops)
13997 (record_full_beneath_to_insert_breakpoint)
13998 (record_full_beneath_to_remove_breakpoint_ops)
13999 (record_full_beneath_to_remove_breakpoint)
14000 (record_full_beneath_to_stopped_by_watchpoint)
14001 (record_full_beneath_to_stopped_data_address)
14002 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
14003 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
14004 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
14005 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
14006 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
14007 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
14008 (tmp_to_stopped_data_address, tmp_to_async): Remove.
14009 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
14010 (record_full_resume, record_full_wait_1)
14011 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
14012 (record_full_store_registers, record_full_xfer_partial)
14013 (record_full_insert_breakpoint, record_full_remove_breakpoint)
14014 (record_full_async, record_full_core_xfer_partial): Use target
14016 * target-delegates.c: Rebuild.
14017 * target.c (current_xfer_partial): Remove.
14018 (update_current_target): Do not INHERIT or de_fault
14019 to_insert_breakpoint, to_remove_breakpoint,
14020 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
14021 to_is_async_p, to_async. Do not set to_xfer_partial field.
14022 (default_xfer_partial): Simplify.
14023 (current_xfer_partial): Remove.
14024 (target_wait, target_resume): Simplify.
14025 (find_default_can_async_p, find_default_is_async_p): Update.
14026 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
14027 to_xfer_partial, to_stopped_by_watchpoint,
14028 to_stopped_data_address.
14029 (target_store_registers): Simplify.
14030 (forward_target_remove_breakpoint)
14031 (forward_target_insert_breakpoint): Remove.
14032 (target_remove_breakpoint, target_insert_breakpoint)
14033 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
14034 * target.h (struct target_ops) <to_resume, to_wait,
14035 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
14036 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
14037 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
14039 (forward_target_remove_breakpoint)
14040 (forward_target_insert_breakpoint): Remove.
14041 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
14043 (record_btrace_insert_breakpoint): Delegate directly.
14045 2014-02-19 Tom Tromey <tromey@redhat.com>
14048 * target-delegates.c: New file.
14049 * target.c: Include target-delegates.c.
14050 (init_dummy_target): Call install_dummy_methods.
14051 (complete_target_initialization): Call install_delegators.
14052 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
14053 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
14054 * make-target-delegates: New file.
14056 2014-02-19 Tom Tromey <tromey@redhat.com>
14058 * record.c (find_record_target): Use find_target_at.
14059 * target.c (find_target_at): New function.
14060 * target.h (find_target_at): Declare.
14062 2014-02-19 Tom Tromey <tromey@redhat.com>
14064 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
14065 Add 'ops' argument.
14066 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
14068 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
14069 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
14071 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
14073 * linux-nat.c (save_sigtrap): Update.
14074 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
14075 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
14076 (linux_nat_close): Update.
14077 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
14079 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
14081 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
14082 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
14083 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
14084 (tmp_to_async): Add 'ops' argument.
14085 (record_full_stopped_by_watchpoint, record_full_async)
14086 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
14088 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
14089 (m32r_stopped_by_watchpoint): Add 'ops' argument.
14090 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
14091 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
14092 (remote_is_async_p, remote_async): Add 'ops' argument.
14093 (remote_stopped_data_address): Update.
14094 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
14095 * target.c (update_current_target)
14096 (find_default_can_async_p, find_default_is_async_p): Update.
14097 (init_dummy_target): Update.
14098 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
14099 * target.h (struct target_ops) <to_stopped_by_watchpoint,
14100 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
14101 (target_can_async_p, target_is_async_p, target_async)
14102 (target_stopped_by_watchpoint): Update.
14104 2014-02-19 Yao Qi <yao@codesourcery.com>
14107 * gdbarch.sh: Remove startup_gdbarch.
14108 * gdbarch.c: Regenerated.
14109 * gdbarch.h: Likewise.
14111 2014-02-17 Kevin Buettner <kevinb@redhat.com>
14113 * rl78-tdep.c (rl78_g10_register_name): New function.
14114 (rl78_return_value): Add g10 support.
14115 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14118 2014-02-17 Doug Evans <xdje42@gmail.com>
14120 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14121 (SUBDIR_GUILE_SRCS): Ditto.
14122 (scm-gsmob.o): Ditto.
14124 2014-02-17 Yao Qi <yao@codesourcery.com>
14126 * gnu-nat.c (ILL_RPC): Declare defined function.
14128 2014-02-17 Yao Qi <yao@codesourcery.com>
14130 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14131 mach_msg_type_number_t.
14132 (gnu_write_inferior): Likewise.
14134 2014-02-17 Yao Qi <yao@codesourcery.com>
14136 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14138 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14139 (inf_validate_procs, inf_signal): Likewise.
14140 (S_exception_raise_request): Likewise.
14141 (do_mach_notify_dead_name): Likewise.
14142 (steal_exc_port): Likewise.
14143 (gnu_read_inferior): Change 'copy_count''s type to
14144 mach_msg_type_number_t.
14145 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14148 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14150 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14151 flag. Adjust all users; in particular...
14152 (gnu_wait): ..., don't decrement its value in here...
14153 (gnu_create_inferior): ..., and instead set the flag in here,
14154 around the startup_inferior call, and call that one with
14155 START_INFERIOR_TRAPS_EXPECTED.
14157 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14158 (ILL_RPC): ... new macro.
14159 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14160 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14161 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14162 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14163 functions with ILL_RPC macro.
14164 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14165 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14166 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14167 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14168 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14169 (S_proc_getlogin_reply, S_proc_getsid_reply)
14170 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14171 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14172 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14173 (S_proc_getnports_reply, S_proc_is_important_reply)
14174 (S_proc_get_code_reply): New stub functions, generated with
14177 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14178 collected the type check structures.
14180 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14182 2014-02-14 Doug Evans <dje@google.com>
14184 * target.c (target_write_partial): Fix result type.
14186 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14188 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14189 the proper offsets to access fpregset_t.
14191 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14193 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14194 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14195 * h8300-tdep.c (setmachinelist): Remove global.
14196 * hppa-tdep.c (hppa_sigtramp): Remove global.
14197 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14198 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14199 * ravenscar-thread.c (update_target_observer): Remove global.
14200 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14202 2014-02-12 Tom Tromey <tromey@redhat.com>
14204 * common/rsp-low.c: Update comments.
14205 * common/rsp-low.h: Update comments.
14207 2014-02-12 Tom Tromey <tromey@redhat.com>
14209 * common/rsp-low.c (convert_ascii_to_int): Remove.
14210 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14212 2014-02-12 Tom Tromey <tromey@redhat.com>
14214 * common/rsp-low.h (unhexify): Don't declare.
14215 * common/rsp-low.c (unhexify): Remove.
14217 2014-02-12 Tom Tromey <tromey@redhat.com>
14219 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14220 * common/rsp-low.c (convert_int_to_ascii): Remove.
14222 2014-02-12 Tom Tromey <tromey@redhat.com>
14224 * common/rsp-low.h (hexify): Don't declare.
14225 * common/rsp-low.c (hexify): Remove.
14227 2014-02-12 Tom Tromey <tromey@redhat.com>
14229 * common/rsp-low.c (hexify): Never take strlen of argument.
14231 2014-02-12 Tom Tromey <tromey@redhat.com>
14233 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14234 * remote.c (extended_remote_run, remote_rcmd)
14235 (remote_download_trace_state_variable, remote_save_trace_data)
14236 (remote_set_trace_notes): Update.
14237 * tracepoint.c (encode_source_string, tfile_write_status)
14238 (tfile_write_uploaded_tsv): Update.
14240 2014-02-12 Tom Tromey <tromey@redhat.com>
14242 * tracepoint.c: Include rsp-low.h.
14243 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14244 * remote.c: Include rsp-low.h.
14245 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14246 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14247 (remote_unescape_input): Move to common/rsp-low.c.
14248 * common/rsp-low.h: New file.
14249 * common/rsp-low.c: New file.
14250 * Makefile.in (SFILES): Add common/rsp-low.c.
14251 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14252 (COMMON_OBS): Add rsp-low.o.
14253 (rsp-low.o): New target.
14255 2014-02-12 Tom Tromey <tromey@redhat.com>
14257 * utils.h: Include print-utils.h.
14258 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14259 (int_string, core_addr_to_string, core_addr_to_string_nz)
14260 (hex_string, hex_string_custom): Don't declare.
14261 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14262 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14263 (hex_string_custom, int_string, core_addr_to_string)
14264 (core_addr_to_string_nz, host_address_to_string): Move to
14265 common/print-utils.c.
14266 * common/print-utils.h: New file.
14267 * common/print-utils.c: New file
14268 * Makefile.in (SFILES): Add common/print-utils.c.
14269 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14270 (COMMON_OBS): Add print-utils.o.
14271 (print-utils.o): New target.
14273 2014-02-12 Tom Tromey <tromey@redhat.com>
14275 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14277 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14279 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14281 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14283 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14284 if a PT_IO ptrace request returns sucessfully but indicates that 0
14285 bytes were transferred.
14287 2014-02-12 Pedro Alves <palves@redhat.com>
14288 Kevin Buettner <kevinb@redhat.com>
14290 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14291 TYPE_INSTANCE_FLAG_CODE_SPACE.
14293 2014-02-12 Pedro Alves <palves@redhat.com>
14295 * h8300-tdep.c (pseudo_from_raw_register)
14296 (raw_from_pseudo_register): New functions.
14297 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14300 2014-02-12 Pedro Alves <palves@redhat.com>
14302 * h8300-tdep.c (h8300_register_sim_regno): New function.
14303 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14304 gdbarch_register_sim_regno hook.
14306 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14308 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14310 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14312 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14314 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14316 * obsd-tdep.h (obsd_init_abi): New prototype.
14317 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14318 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14319 (obsd_init_abi): New functions.
14320 * i386obsd-tdep.c: Include "obsd-tdep.h".
14321 (i386obsd_init_abi): Call obsd_init_abi.
14322 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14323 (amd64obsd_init_abi): Call obsd_init_abi.
14324 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14325 obsd-tdep.c to gdb_target_obs.
14327 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14329 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14330 double float arguments to 16-byte in the argument slots.
14332 2014-02-11 Doug Evans <xdje42@gmail.com>
14334 * configure.ac: Don't crash if pkg-config is not found and guile
14335 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14337 * configure: Regenerate.
14339 2014-02-11 Yao Qi <yao@codesourcery.com>
14341 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14342 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14343 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14344 * gnu-nat.c (gnu_xfer_memory): Likewise.
14345 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14346 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14347 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14348 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14350 2014-02-11 Yao Qi <yao@codesourcery.com>
14352 * target.h (enum target_xfer_error): Rename to ...
14353 (enum target_xfer_status): ... it. New. All users updated.
14354 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14356 (TARGET_XFER_STATUS_ERROR_P): New macro.
14357 (target_xfer_error_to_string): Remove declaration.
14358 (target_xfer_status_to_string): Declare.
14359 (target_xfer_partial_ftype): Adjust it.
14360 (struct target_ops) <to_xfer_partial>: Return
14361 target_xfer_status. Add argument xfered_len. Update
14363 * target.c (target_xfer_error_to_string): Rename to ...
14364 (target_xfer_status_to_string): ... it. New. All callers
14366 (target_read_live_memory): Likewise. Call target_xfer_partial
14367 instead of target_read.
14368 (memory_xfer_live_readonly_partial): Return
14369 target_xfer_status. Add argument xfered_len.
14370 (raw_memory_xfer_partial): Likewise.
14371 (memory_xfer_partial_1): Likewise.
14372 (memory_xfer_partial): Likewise.
14373 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14374 properly. Update debug message.
14375 (default_xfer_partial, current_xfer_partial): Likewise.
14376 (target_write_partial): Likewise.
14377 (target_read_partial): Likewise. All callers updated.
14378 (read_whatever_is_readable): Likewise.
14379 (target_write_with_progress): Likewise.
14380 (target_read_alloc_1): Likewise.
14382 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14383 * auxv.c (procfs_xfer_auxv): Likewise.
14384 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14385 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14386 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14387 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14388 * corefile.c (read_memory): Adjust.
14389 * corelow.c (core_xfer_partial): Likewise.
14390 * ctf.c (ctf_xfer_partial): Likewise.
14391 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14393 (darwin_xfer_partial): Likewise.
14394 * exec.c (section_table_xfer_memory_partial): Likewise. All
14396 (exec_xfer_partial): Likewise.
14397 * exec.h (section_table_xfer_memory_partial): Update
14399 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14401 (gnu_xfer_partial): Likewise.
14402 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14403 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14404 (ia64_hpux_xfer_solib_got): Likewise.
14405 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14406 type of 'partial_len' to ULONGEST.
14407 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14408 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14409 (linux_nat_xfer_partial): Likewise.
14410 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14411 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14412 * monitor.c (monitor_xfer_memory): Likewise.
14413 (monitor_xfer_partial): Likewise.
14414 * procfs.c (procfs_xfer_partial): Likewise.
14415 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14416 * record-full.c (record_full_xfer_partial): Likewise.
14417 (record_full_core_xfer_partial): Likewise.
14418 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14419 (gdbsim_xfer_partial): Likewise.
14420 * remote.c (remote_write_bytes_aux): Likewise. All callers
14422 (remote_write_bytes, remote_read_bytes): Likewise. All
14424 (remote_flash_erase): Likewise. All callers updated.
14425 (remote_write_qxfer): Likewise. All callers updated.
14426 (remote_read_qxfer): Likewise. All callers updated.
14427 (remote_xfer_partial): Likewise.
14428 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14429 (rs6000_xfer_shared_libraries): Likewise.
14430 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14431 (sol_thread_xfer_partial): Likewise.
14432 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14433 (sparc_xfer_partial): Likewise.
14434 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14436 (spu_xfer_partial): Likewise.
14437 * spu-multiarch.c (spu_xfer_partial): Likewise.
14438 * tracepoint.c (tfile_xfer_partial): Likewise.
14439 * windows-nat.c (windows_xfer_memory): Likewise.
14440 (windows_xfer_shared_libraries): Likewise.
14441 (windows_xfer_partial): Likewise.
14442 * valprint.c: Replace 'target_xfer_error' with
14443 'target_xfer_status' in comments.
14445 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14447 Checked in by Joel Brobecker <brobecker@adacore.com>.
14448 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14450 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14452 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14453 function parameters.
14455 2014-02-10 Will Newton <will.newton@linaro.org>
14457 * elfread.c (elf_rel_plt_read): Look for a .got section if
14458 looking up .got.plt fails.
14459 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14460 on address passed to elf_gnu_ifunc_record_cache.
14461 (elf_gnu_ifunc_resolve_addr): Likewise.
14462 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14464 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14466 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14467 (X_RETTURN): New macro.
14468 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14470 * sparc64-tdep.c (sparc64_init_abi): Hook
14471 sparc_in_function_epilogue_p.
14473 2014-02-10 Gary Benson <gbenson@redhat.com>
14475 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14476 Rename name_matcher to symbol_matcher.
14478 2014-02-10 Gary Benson <gbenson@redhat.com>
14480 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14481 Use expand_symtabs_file_matcher_ftype and
14482 expand_symtabs_symbol_matcher_ftype.
14484 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14486 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14487 (struct ada_symbol_cache): New.
14488 (ada_free_symbol_cache): Forward declare.
14489 (struct ada_pspace_data): New.
14490 (ada_pspace_data_handle): New static global.
14491 (get_ada_pspace_data, ada_pspace_data_cleanup)
14492 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14493 (cache_space, cache): Delete, now folded inside struct
14495 (ada_get_symbol_cache): New function.
14496 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14498 (_initialize_ada_language): Remove initialization of cache_space.
14499 Move call to observer_attach_inferior_exit up, grouping it
14500 with the other observer registrations inside this function.
14501 Rename command to be more general. Add call to
14502 register_program_space_data_with_cleanup.
14504 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14506 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14507 ada_new_objfile_observer.
14508 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14509 (_initialize_tasks): Update uses of ada_new_objfile_observer
14510 and ada_tasks_normal_stop_observer.
14512 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14514 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14515 returned by the 'Length attribute to integer.
14517 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14519 * ada-lang.c (_initialize_ada_language): Initialize
14520 cache_space obstack.
14522 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14524 * ada-lang.c (HASH_SIZE): New macro.
14525 (struct cache_entry): New type.
14526 (cache_space, cache): New static globals.
14527 (ada_clear_symbol_cache, find_entry): New functions.
14528 (lookup_cached_symbol, cache_symbol): Implement.
14529 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14530 (_initialize_ada_language): Attach ada_new_objfile_observer
14531 and ada_free_objfile_observer.
14533 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14535 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14536 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14537 struct block * parameter.
14538 (ada_lookup_symbol_list_worker): Constify local variable "block".
14539 Remove cast which is no longer necessary.
14541 2014-02-10 Doug Evans <xdje42@gmail.com>
14543 Add Guile as an extension language.
14544 * NEWS: Mention Guile scripting.
14545 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14546 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14547 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14548 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14549 (CLIBS): Add GUILE_LIBS.
14550 (install-guile): New rule.
14551 (guile.o): New rule.
14552 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14553 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14554 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14555 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14556 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14557 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14558 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14559 * configure.ac: New option --with-guile.
14560 * configure: Regenerate.
14561 * config.in: Regenerate.
14562 * auto-load.c: Remove #include "python/python.h". Add #include
14563 "gdb/section-scripts.h".
14564 (source_section_scripts): Handle Guile scripts.
14565 (_initialize_auto_load): Add name of Guile objfile script to
14566 scripts-directory help text.
14567 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14568 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14569 (struct breakpoint): New member scm_bp_object.
14570 * defs.h (enum command_control_type): New value guile_control.
14571 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14573 (show_user): Update comment.
14574 (_initialize_cli_cmds): Update help text for "show user". Update help
14575 text for max-user-call-depth.
14576 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14578 (multi_line_command_p): Add guile_control.
14579 (print_command_lines): Handle guile_control.
14580 (execute_control_command, recurse_read_control_structure): Ditto.
14581 (process_next_line): Recognize "guile" commands.
14582 * disasm.c (gdb_disassemble_info): Make non-static.
14583 * disasm.h: #include "dis-asm.h".
14584 (struct gdbarch): Add forward decl.
14585 (gdb_disassemble_info): Declare.
14586 * extension.c: #include "guile/guile.h".
14587 (extension_languages): Add guile.
14588 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14589 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14590 * gdbtypes.c (get_unsigned_type_max): New function.
14591 (get_signed_type_minmax): New function.
14592 * gdbtypes.h (get_unsigned_type_max): Declare.
14593 (get_signed_type_minmax): Declare.
14594 * guile/README: New file.
14595 * guile/guile-internal.h: New file.
14596 * guile/guile.c: New file.
14597 * guile/guile.h: New file.
14598 * guile/scm-arch.c: New file.
14599 * guile/scm-auto-load.c: New file.
14600 * guile/scm-block.c: New file.
14601 * guile/scm-breakpoint.c: New file.
14602 * guile/scm-disasm.c: New file.
14603 * guile/scm-exception.c: New file.
14604 * guile/scm-frame.c: New file.
14605 * guile/scm-gsmob.c: New file.
14606 * guile/scm-iterator.c: New file.
14607 * guile/scm-lazy-string.c: New file.
14608 * guile/scm-math.c: New file.
14609 * guile/scm-objfile.c: New file.
14610 * guile/scm-ports.c: New file.
14611 * guile/scm-pretty-print.c: New file.
14612 * guile/scm-safe-call.c: New file.
14613 * guile/scm-string.c: New file.
14614 * guile/scm-symbol.c: New file.
14615 * guile/scm-symtab.c: New file.
14616 * guile/scm-type.c: New file.
14617 * guile/scm-utils.c: New file.
14618 * guile/scm-value.c: New file.
14619 * guile/lib/gdb.scm: New file.
14620 * guile/lib/gdb/boot.scm: New file.
14621 * guile/lib/gdb/experimental.scm: New file.
14622 * guile/lib/gdb/init.scm: New file.
14623 * guile/lib/gdb/iterator.scm: New file.
14624 * guile/lib/gdb/printing.scm: New file.
14625 * guile/lib/gdb/types.scm: New file.
14626 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14627 (VPATH): Add $(GUILE_SRCDIR).
14628 (GUILE_DIR): New variable.
14629 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14630 (all): Add stamp-guile dependency.
14631 (stamp-guile): New rule.
14632 (clean-guile, install-guile, uninstall-guile): New rules.
14633 (install-only): Add install-guile dependency.
14634 (uninstall): Add uninstall-guile dependency.
14635 (clean): Add clean-guile dependency.
14637 2014-02-09 Doug Evans <xdje42@gmail.com>
14639 Revert this patch (which I approved, mea culpa).
14641 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14643 * Makefile.in (all-lib): Remove.
14644 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14646 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14648 Fix Python stack corruption.
14649 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14652 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14654 * Makefile.in (all-lib): Remove.
14655 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14657 2014-02-07 Doug Evans <dje@google.com>
14659 * extension-priv.h (extension_language_script_ops): Add comment.
14660 (extension_language_ops): Add comment.
14661 (active_ext_lang_state): Fix typo in comment.
14663 2014-02-07 Pedro Alves <palves@redhat.com>
14665 PR breakpoints/16292
14666 * infrun.c (handle_signal_stop) <signal arrives while stepping
14667 over a breakpoint>: Switch back to the stepping thread.
14669 2014-02-07 Yao Qi <yao@codesourcery.com>
14671 * target.c (target_xfer_partial): Return zero if LEN is zero.
14673 2014-02-07 Yao Qi <yao@codesourcery.com>
14675 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14676 (ld_so_xfer_auxv): Likewise.
14677 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14678 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14679 * corelow.c (core_xfer_partial): Likewise.
14680 * ctf.c (ctf_xfer_partial): Likewise.
14681 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14682 (darwin_xfer_partial): Likewise.
14683 * exec.c (exec_xfer_partial): Likewise.
14684 * gnu-nat.c (gnu_xfer_partial): Likewise.
14685 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14686 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14687 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14688 * linux-nat.c (linux_xfer_siginfo): Likewise.
14689 (linux_proc_xfer_spu): Likewise.
14690 * procfs.c (procfs_xfer_partial): Likewise.
14691 * record-full.c (record_full_xfer_partial): Likewise.
14692 (record_full_core_xfer_partial): Likewise.
14693 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14694 * remote.c (remote_write_qxfer): Likewise.
14695 (remote_write_qxfer, remote_read_qxfer): Likewise.
14696 (remote_xfer_partial): Likewise.
14697 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14698 (rs6000_xfer_shared_libraries): Likewise.
14699 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14700 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14701 (spu_xfer_partial): Likewise.
14702 * target.c (memory_xfer_partial_1): Likewise.
14703 * tracepoint.c (tfile_xfer_partial): Likewise.
14704 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14705 (windows_xfer_partial): Likewise.
14707 2014-02-07 Yao Qi <yao@codesourcery.com>
14709 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14711 (core_xfer_shared_libraries_aix): Likewise.
14712 * gdbarch.c, gdbarch.h: Regenerated.
14713 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14714 ULONGEST. Change 'len_avail' type to ULONGEST.
14715 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14716 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14718 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14720 2014-02-07 Yao Qi <yao@codesourcery.com>
14722 * corefile.c (memory_error): Get 'exception' from ERR and pass
14723 'exception' to throw_error.
14725 2014-02-06 Doug Evans <xdje42@gmail.com>
14727 * configure.ac (libpython checking): Remove all but python.o from
14728 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14729 * configure: Regenerate.
14731 * Makefile.in (SFILES): Add extension.c.
14732 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14733 (COMMON_OBS): Add extension.o.
14734 * extension.h: New file.
14735 * extension-priv.h: New file.
14736 * extension.c: New file.
14738 * python/python-internal.h: #include "extension.h".
14739 (gdbpy_auto_load_enabled): Declare.
14740 (gdbpy_apply_val_pretty_printer): Declare.
14741 (gdbpy_apply_frame_filter): Declare.
14742 (gdbpy_preserve_values): Declare.
14743 (gdbpy_breakpoint_cond_says_stop): Declare.
14744 (gdbpy_breakpoint_has_cond): Declare.
14745 (void source_python_script_for_objfile): Delete.
14746 * python/python.c: #include "extension-priv.h".
14747 Delete inclusion of "observer.h".
14748 (extension_language_python): Moved here and renamed from
14749 script_language_python in py-auto-load.c.
14750 Redefined to be of type extension_language_defn.
14751 (python_extension_script_ops): New global.
14752 (python_extension_ops): New global.
14753 (struct python_env): New member previous_active.
14754 (restore_python_env): Call restore_active_ext_lang.
14755 (ensure_python_env): Call set_active_ext_lang.
14756 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14758 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14760 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14762 (gdbpy_eval_from_control_command): Renamed from
14763 eval_python_from_control_command, made static. New arg extlang.
14764 (gdbpy_source_script) Renamed from source_python_script, made static.
14766 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14767 result to int. New arg extlang.
14768 (gdbpy_source_objfile_script): Renamed from
14769 source_python_script_for_objfile, made static. New arg extlang.
14770 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14771 static. New args extlang, extlang_printers. Change result type to
14773 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14774 static. New arg extlang. Rename arg printers to extlang_printers
14775 and change type to ext_lang_type_printers *.
14776 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14777 static. Replace argument arg with extlang, extlang_printers.
14778 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14779 (!HAVE_PYTHON, source_python_script): Delete.
14780 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14781 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14782 (!HAVE_PYTHON, start_type_printers): Delete.
14783 (!HAVE_PYTHON, apply_type_printers): Delete.
14784 (!HAVE_PYTHON, free_type_printers): Delete.
14785 (_initialize_python): Delete call to observer_attach_before_prompt.
14786 (finalize_python): Set/restore active extension language.
14787 (gdbpy_finish_initialization) Renamed from
14788 finish_python_initialization, made static. New arg extlang.
14789 (gdbpy_initialized): New function.
14790 * python/python.h: #include "extension.h". Delete #include
14791 "value.h", "mi/mi-cmds.h".
14792 (extension_language_python): Declare.
14793 (GDBPY_AUTO_FILE_NAME): Delete.
14794 (enum py_bt_status): Moved to extension.h and renamed to
14795 ext_lang_bt_status.
14796 (enum frame_filter_flags): Moved to extension.h.
14797 (enum py_frame_args): Moved to extension.h and renamed to
14798 ext_lang_frame_args.
14799 (finish_python_initialization): Delete.
14800 (eval_python_from_control_command): Delete.
14801 (source_python_script): Delete.
14802 (apply_val_pretty_printer): Delete.
14803 (apply_frame_filter): Delete.
14804 (preserve_python_values): Delete.
14805 (gdbpy_script_language_defn): Delete.
14806 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14807 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14809 * auto-load.c: #include "extension.h".
14810 (GDB_AUTO_FILE_NAME): Delete.
14811 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14812 (script_language_gdb): Delete, moved to extension.c and renamed to
14813 extension_language_gdb.
14814 (source_gdb_script_for_objfile): Delete.
14815 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14816 (loaded_script): Change type of language member to
14817 struct extension_language_defn *.
14818 (init_loaded_scripts_info): Initialize
14819 unsupported_script_warning_printed.
14820 (maybe_add_script): Make static. Change type of language arg to
14821 struct extension_language_defn *.
14822 (clear_section_scripts): Reset unsupported_script_warning_printed.
14823 (auto_load_objfile_script_1): Rewrite to use extension language API.
14824 (auto_load_objfile_script): Make public. Remove support-compiled-in
14825 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14826 (source_section_scripts): Rewrite to use extension language API.
14827 (load_auto_scripts_for_objfile): Rewrite to use
14828 auto_load_scripts_for_objfile.
14829 (collect_matching_scripts_data): Change type of language member to
14830 struct extension_language_defn *.
14831 (auto_load_info_scripts): Change type of language arg to
14832 struct extension_language_defn *.
14833 (unsupported_script_warning_print): New function.
14834 (script_not_found_warning_print): Make static.
14835 (_initialize_auto_load): Rewrite construction of scripts-directory
14837 * auto-load.h (struct objfile): Add forward decl.
14838 (struct script_language): Delete.
14839 (struct auto_load_pspace_info): Add forward decl.
14840 (struct extension_language_defn): Add forward decl.
14841 (maybe_add_script): Delete.
14842 (auto_load_objfile_script): Declare.
14843 (script_not_found_warning_print): Delete.
14844 (auto_load_info_scripts): Update prototype.
14845 (auto_load_gdb_scripts_enabled): Declare.
14846 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14847 auto_load_python_scripts_enabled and made public.
14848 (script_language_python): Delete, moved to python.c.
14849 (gdbpy_script_language_defn): Delete.
14850 (info_auto_load_python_scripts): Update to use
14851 extension_language_python.
14853 * breakpoint.c (condition_command): Replace call to
14854 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14855 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14856 with call to breakpoint_ext_lang_cond_says_stop.
14857 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14858 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14859 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14860 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14862 (local_setattro): Print name of extension language with existing
14865 * valprint.c (val_print, value_print): Update to call
14866 apply_ext_lang_val_pretty_printer.
14867 * cp-valprint.c (cp_print_value): Update call to
14868 apply_ext_lang_val_pretty_printer.
14869 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14870 (gdbpy_apply_val_pretty_printer): Renamed from
14871 apply_val_pretty_printer. New arg extlang.
14872 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14874 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14875 extension language API.
14876 * cli/cli-script.c (execute_control_command): Update to call
14877 eval_ext_lang_from_control_command.
14879 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14880 enum ext_lang_bt_status values. Update call to
14881 apply_ext_lang_frame_filter.
14882 (mi_cmd_stack_list_locals): Ditto.
14883 (mi_cmd_stack_list_args): Ditto.
14884 (mi_cmd_stack_list_variables): Ditto.
14885 * mi/mi-main.c: Delete #include "python/python-internal.h".
14886 Add #include "extension.h".
14887 (mi_cmd_list_features): Replace reference to python internal variable
14888 gdb_python_initialized with call to ext_lang_initialized_p.
14890 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14891 Update to use enum ext_lang_frame_args. Update to call
14892 apply_ext_lang_frame_filter.
14893 * python/py-framefilter.c (extract_sym): Update to use enum
14894 ext_lang_bt_status.
14895 (extract_value, py_print_type, py_print_value): Ditto.
14896 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14897 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14898 (py_print_frame): Ditto.
14899 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14900 New arg extlang. Update to use enum ext_lang_bt_status.
14902 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14903 finish_python_initialization. Replace with call to
14904 finish_ext_lang_initialization.
14906 * typeprint.c (do_free_global_table): Update to call
14907 free_ext_lang_type_printers.
14908 (create_global_typedef_table): Update to call
14909 start_ext_lang_type_printers.
14910 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14911 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14912 (type_print_options): Change type of global_printers from "void *"
14913 to "struct ext_lang_type_printers *".
14915 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14916 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14917 (gdbpy_preserve_values): Renamed from preserve_python_values.
14919 (!HAVE_PYTHON, preserve_python_values): Delete.
14921 * utils.c (quit_flag): Delete, moved to extension.c.
14922 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14925 * eval.c: Delete #include "python/python.h".
14926 * main.c: Delete #include "python/python.h".
14928 * defs.h: Update comment.
14930 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14934 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14936 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14939 2014-02-05 Yao Qi <yao@codesourcery.com>
14941 * remote.c (remote_pass_signals): Remove local 'buf' and use
14943 (remote_program_signals): Likewise.
14945 2014-02-05 Yao Qi <yao@codesourcery.com>
14947 * ctf.c: Include "inferior.h" and "gdbthread.h".
14948 (CTF_PID): A new macro.
14949 (ctf_open): Call inferior_appeared and add_thread_silent.
14950 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14951 (ctf_thread_alive): New function.
14952 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14954 2014-02-05 Yao Qi <yao@codesourcery.com>
14958 2013-05-24 Yao Qi <yao@codesourcery.com>
14960 * tracepoint.c (TFILE_PID): Remove.
14961 (tfile_open): Don't add thread and inferior.
14962 (tfile_close): Don't set 'inferior_ptid'. Don't call
14963 exit_inferior_silent.
14964 (tfile_thread_alive): Remove.
14965 (init_tfile_ops): Don't set field 'to_thread_alive' of
14968 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14970 * remote.c (remote_start_remote): Call remote_check_symbols even
14971 if only symbol-file (not file) has been given.
14973 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14975 * gdbarch.sh (skip_entrypoint): New callback.
14976 * gdbarch.c, gdbarch.h: Regenerate.
14977 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14978 * infrun.c (fill_in_stop_func): Likewise.
14979 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14980 (ppc_elfv2_elf_make_msymbol_special): New function.
14981 (ppc_elfv2_skip_entrypoint): Likewise.
14982 (ppc_linux_init_abi): Install them for ELFv2.
14984 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14986 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14987 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14988 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14989 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14990 structures returned in GPRs.
14992 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14994 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14995 offset to the stack parameter list for the ELFv2 ABI.
14997 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14999 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
15000 set_gdbarch_convert_from_func_ptr_addr and
15001 set_gdbarch_elf_make_msymbol_special for ELFv1.
15002 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
15003 function descriptors on ELFv1.
15004 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
15005 set up r12 at function entry.
15007 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15009 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
15010 (struct gdbarch_tdep): New member elf_abi.
15012 * rs6000-tdep.c: Include "elf/ppc64.h".
15013 (rs6000_gdbarch_init): Detect ELF ABI version.
15015 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15017 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
15018 within a register pair holding a DFP 128-bit value on little-endian.
15019 (ppc64_sysv_abi_return_value_base): Likewise.
15020 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
15021 (dfp_pseudo_register_write): Likewise.
15023 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15025 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
15026 offset on little-endian when passing _Decimal32.
15027 (ppc64_sysv_abi_return_value_base): Likewise for return values.
15029 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15031 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
15032 of the overlapped FP register within the VSX register on little-
15034 (efpr_pseudo_register_write): Likewise.
15036 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15038 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
15039 offset on little-endian when passing small structures.
15041 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15043 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
15044 (struct ppc64_sysv_argpos): New data structure.
15045 (ppc64_sysv_abi_push_float): Remove.
15046 (ppc64_sysv_abi_push_val): New function.
15047 (ppc64_sysv_abi_push_integer): Likewise.
15048 (ppc64_sysv_abi_push_freg): Likewise.
15049 (ppc64_sysv_abi_push_vreg): Likewise.
15050 (ppc64_sysv_abi_push_param): Likewise.
15051 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
15052 (ppc64_sysv_abi_return_value_base): New function.
15053 (ppc64_sysv_abi_return_value): Refactor to use it.
15055 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15057 * NEWS: Document new target powerpc64le-*-linux*.
15059 2014-02-04 Mark Kettenis <kettenis@gnu.org>
15061 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
15062 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
15064 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
15065 register set used in ELF core dumps. Add floating-point register set.
15067 2014-02-03 Kevin Buettner <kevinb@redhat.com>
15069 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
15070 dwarf2_to_gdb[] table using symbolic constants. Adjust
15071 penultimate entry from number representing the PC register
15072 to symbolic constant representing the MDR register. Add
15073 constant for the PC register to the end of the table.
15075 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15077 * bsd-kvm.c: Include <sys/param.h>
15079 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15081 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
15083 2014-01-31 Joel Brobecker <brobecker@adacore.com>
15085 * ada-lang.h (clear_ada_sym_cache): Delete.
15087 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
15089 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
15091 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
15093 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
15094 the sigreturn register save area only if the syscall is
15097 2014-01-29 Joel Brobecker <brobecker@adacore.com>
15099 * valops.c (value_slice): Minor reformatting.
15101 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
15103 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
15105 2014-01-28 Joel Brobecker <brobecker@adacore.com>
15107 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
15108 New static globals.
15109 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
15110 (ada_ignore_descriptive_types_p): New static global.
15111 (find_parallel_type_by_descriptive_type): Return immediately
15112 if ada_ignore_descriptive_types_p is set.
15113 (_initialize_ada_language): Register new commands "maintenance
15114 set ada", "maintenance show ada", "maintenance set ada
15115 ignore-descriptive-types" and "maintenance show ada
15116 ignore-descriptive-types".
15117 * NEWS: Add entry for new "maint ada set/show
15118 ignore-descriptive-types" commands.
15120 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15122 * record-btrace.c (record_btrace_close): Call btrace_teardown
15125 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15127 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15130 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15132 * ada-typeprint (type_is_full_subrange_of_target_type):
15134 (print_range): Add parameter bounds_prefered_p. If not set,
15135 try printing range types using the name of their base type.
15136 (print_range_type): Add parameter bounds_prefered_p.
15137 Use it in call to print_range.
15138 (print_array_type, ada_print_type): Update calls to print_range
15139 and print_range_type.
15141 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15143 * ada-typeprint.c (print_array_type, print_choices, print_range)
15144 (print_range_bound, print_dynamic_range_bound, print_range_type):
15145 Remove declaration.
15147 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15149 * ada-typeprint.c (print_range): Add missing empty line
15150 after local declaration.
15152 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15154 * ada-valprint.c (print_optional_low_bound): Get index_type's
15155 target type for as long as it is a TYPE_CODE_RANGE.
15157 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15159 * procfs.c (procfs_make_note_section): Remove assertion and
15160 associated comment.
15162 2014-01-24 Yao Qi <yao@codesourcery.com>
15164 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15165 * corelow.c (get_core_siginfo): Likewise.
15167 2014-01-24 Yao Qi <yao@codesourcery.com>
15169 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15170 ULONGEST. Don't check 'len' is negative.
15171 (remote_write_bytes): Change type of 'len' to ULONGEST.
15173 2014-01-23 Tom Tromey <tromey@redhat.com>
15176 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15177 Handle exception from frame.block.
15178 (FrameVars.fetch_frame_locals): Likewise.
15180 2014-01-23 Tom Tromey <tromey@redhat.com>
15183 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15184 on a NULL pointer. Move "goto error" to correct place.
15186 2014-01-23 Tom Tromey <tromey@redhat.com>
15189 * python/py-framefilter.c (apply_frame_filter): Call
15190 ensure_python_env after computing gdbarch.
15192 2014-01-23 Yao Qi <yao@codesourcery.com>
15194 * target.c (raw_memory_xfer_partial): Change argument type
15195 from void * to gdb_byte *.
15196 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15198 2014-01-22 Doug Evans <dje@google.com>
15200 New gdbserver option --debug-format=timestamp.
15201 * NEWS: Mention it.
15203 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15205 * syscalls/s390x-linux.xml: New file.
15206 * syscalls/s390-linux.xml: New file.
15207 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15208 (XML_SYSCALL_FILENAME_S390X): Likewise.
15209 (op_svc): New enum value for SVC opcode.
15210 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15211 (s390_linux_get_syscall_number): New function.
15212 (s390_gdbarch_init): Register '*get_syscall_number' and the
15213 syscall xml file name.
15214 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15215 "s390-linux.xml" and "s390x-linux.xml".
15216 * NEWS: Announce new feature.
15218 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15220 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15222 2014-01-22 Pedro Alves <palves@redhat.com>
15224 * xtensa-config.c: Include defs.h.
15226 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15228 * common/common-utils.h: Add "ARI:" comment beside __func__
15231 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15233 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15234 documentation a bit.
15236 2014-01-21 Roland McGrath <mcgrathr@google.com>
15238 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15239 * configure: Regenerate.
15240 * aclocal.m4: Regenerate.
15241 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15242 New substituted variables.
15243 (install-strip): New target.
15244 (INSTALL_SCRIPT): New substituted variable.
15245 (FLAGS_TO_PASS): Add it.
15246 (install-only): Use $(INSTALL_SCRIPT) rather than
15247 $(INSTALL_PROGRAM) for gcore.
15249 2014-01-20 Tom Tromey <tromey@redhat.com>
15251 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15254 2014-01-20 Tom Tromey <tromey@redhat.com>
15256 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15257 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15258 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15259 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15260 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15261 (struct cmd_list_element) <flags>: Remove.
15262 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15263 doc_allocated>: New fields.
15264 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15266 * maint.c (maintenance_do_deprecate): Update.
15267 * top.c (execute_command): Update.
15269 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15271 * xtensa-linux-nat.c: Include asm/ptrace.h.
15273 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15275 * Makefile.in (SFILES): Add d-support.c.
15276 (COMMON_OBS): Add d-support.o.
15277 * d-lang.h (d_parse_symbol): Add comment, now defined in
15279 * d-lang.c (parse_call_convention)
15280 (parse_attributes, parse_function_types)
15281 (parse_function_args, parse_type, parse_identifier)
15282 (call_convention_p, d_parse_symbol): Move functions to ...
15283 * d-support.c: ... New file.
15285 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15287 * d-lang.h (d_parse_symbol): Add declaration.
15288 * d-lang.c (extract_identifiers)
15289 (extract_type_info): Remove functions.
15290 (parse_call_convention, parse_attributes)
15291 (parse_function_types, parse_function_args)
15292 (parse_type, parse_identifier, call_convention_p)
15293 (d_parse_symbol): New functions.
15294 (d_demangle): Use d_parse_symbol to demangle D symbols.
15296 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15298 * d-lang.h (struct builtin_d_type): New data type.
15299 (builtin_d_type): Add declaration.
15300 * d-lang.c (d_language_arch_info, build_d_types)
15301 (builtin_d_type): New functions.
15302 (enum d_primitive_types): New data type.
15303 (d_language_defn): Change c_language_arch_info to
15304 d_language_arch_info.
15305 (d_type_data): New static variable.
15306 (_initialize_d_language): Initialize d_type_data.
15308 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15310 * d-lang.h (d_main_name): Add declaration.
15311 * d-lang.c (d_main_name): New function.
15312 * symtab.c (find_main_name): Add call to d_main_name.
15314 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15316 * d-lang.c (d_language_defn): Change macro_expansion_c to
15317 macro_expansion_no.
15319 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15321 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15323 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15325 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15326 gdb_exception" declaration.
15327 * remote.c (getpkt_or_notif_sane): Likewise.
15329 2014-01-17 Doug Evans <dje@google.com>
15331 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15332 function, contents of dirnames_to_char_ptr_vec_append moved here.
15333 (delim_string_to_char_ptr_vec): New function.
15334 (dirnames_to_char_ptr_vec_append): Rewrite.
15335 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15337 2014-01-17 Doug Evans <dje@google.com>
15339 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15341 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15342 #include "common-utils.h".
15343 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15344 * common/vec.h (VEC_ASSERT_PASS): Update.
15345 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15346 (MACH_CHECK_ERROR): Update.
15348 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15350 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15352 * gdbarch.h: Regenerate.
15354 2014-01-16 Tom Tromey <tromey@redhat.com>
15356 * value.c (struct value) <regnum>: Move earlier.
15358 2014-01-16 Tom Tromey <tromey@redhat.com>
15360 * remote.c (extended_remote_create_inferior): Rename from
15361 extended_remote_create_inferior_1. Add "ops" argument. Remove
15362 old implementation.
15364 2014-01-16 Pedro Alves <palves@redhat.com>
15366 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15367 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15370 2014-01-16 Doug Evans <dje@google.com>
15372 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15374 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15376 * btrace.h (btrace_thread_flag): New.
15377 (struct btrace_thread_info) <flags>: New.
15378 * record-btrace.c (record_btrace_resume_thread)
15379 (record_btrace_find_thread_to_move, btrace_step_no_history)
15380 (btrace_step_stopped, record_btrace_start_replaying)
15381 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15382 (record_btrace_find_resume_thread): New.
15383 (record_btrace_resume, record_btrace_wait): Extend.
15384 (record_btrace_can_execute_reverse): New.
15385 (record_btrace_open): Fail in non-stop mode.
15386 (record_btrace_set_replay): Split into this, ...
15387 (record_btrace_stop_replaying): ... this, ...
15388 (record_btrace_clear_histories): ... and this.
15389 (init_record_btrace_ops): Init to_can_execute_reverse.
15390 * NEWS: Announce it.
15392 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15394 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15395 (forward_target_decr_pc_after_break)
15396 (target_decr_pc_after_break): New.
15397 * target.c (forward_target_decr_pc_after_break)
15398 (target_decr_pc_after_break): New.
15399 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15400 instead of gdbarch_decr_pc_after_break.
15401 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15402 instead of gdbarch_decr_pc_after_break.
15403 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15404 instead of gdbarch_decr_pc_after_break.
15405 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15406 instead of gdbarch_decr_pc_after_break.
15407 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15408 instead of gdbarch_decr_pc_after_break.
15409 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15410 instead of gdbarch_decr_pc_after_break.
15412 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15414 * btrace.c: Include regcache.h.
15415 (btrace_add_pc): New.
15416 (btrace_enable): Call btrace_add_pc.
15417 (btrace_is_empty): New.
15418 * btrace.h (btrace_is_empty): New.
15419 * record-btrace.c (require_btrace, record_btrace_info): Call
15422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15424 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15425 Support delta reads.
15426 (linux_disable_btrace): Change return type.
15427 * common/linux-btrace.h (linux_read_btrace): Change parameters
15428 and return type to allow error reporting. Update users.
15429 (linux_disable_btrace): Change return type. Update users.
15430 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15432 (btrace_error): New.
15433 (btrace_block) <begin>: Comment on BEGIN == 0.
15434 * btrace.c (btrace_compute_ftrace): Start from the end of
15436 (btrace_stitch_trace, btrace_clear_history): New.
15437 (btrace_fetch): Read delta trace, return if replaying.
15438 (btrace_clear): Move clear history code to btrace_clear_history.
15439 (parse_xml_btrace): Throw an error if parsing failed.
15440 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15441 and return type to allow error reporting.
15442 (target_read_btrace): Change parameters and return type to allow
15444 * target.c (target_read_btrace): Update.
15445 * remote.c (remote_read_btrace): Support delta reads. Pass
15447 * NEWS: Announce it.
15449 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15451 * record.h (record_btrace_frame_unwind)
15452 (record_btrace_tailcall_frame_unwind): New declarations.
15453 * dwarf2-frame: Include record.h
15454 (dwarf2_frame_cfa): Throw an error for btrace frames.
15455 * record-btrace.c: Include hashtab.h.
15456 (btrace_get_bfun_name): New.
15457 (btrace_call_history): Call btrace_get_bfun_name.
15458 (struct btrace_frame_cache): New.
15460 (bfcache_hash, bfcache_eq, bfcache_new): New.
15461 (btrace_get_frame_function): New.
15462 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15463 (record_btrace_frame_this_id): Compute own id.
15464 (record_btrace_frame_prev_register): Provide PC, throw_error
15465 for all other registers.
15466 (record_btrace_frame_sniffer): Detect btrace frames.
15467 (record_btrace_tailcall_frame_sniffer): New.
15468 (record_btrace_frame_dealloc_cache): New.
15469 (record_btrace_frame_unwind): Add new functions.
15470 (record_btrace_tailcall_frame_unwind): New.
15471 (_initialize_record_btrace): Allocate cache.
15472 * btrace.c (btrace_clear): Call reinit_frame_cache.
15473 * NEWS: Announce it.
15475 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15477 * record-btrace.c (record_btrace_set_replay)
15478 (record_btrace_goto_begin, record_btrace_goto_end)
15479 (record_btrace_goto): New.
15480 (init_record_btrace_ops): Initialize them.
15481 * NEWS: Announce it.
15483 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15485 * record-btrace.c (record_btrace_find_new_threads)
15486 (record_btrace_thread_alive): New.
15487 (init_record_btrace_ops): Initialize to_find_new_threads and
15490 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15492 * record-btrace.c (record_btrace_resume): New.
15493 (record_btrace_wait): New.
15494 (init_record_btrace_ops): Initialize to_wait and to_resume.
15496 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15498 * record-btrace.c (record_btrace_xfer_partial)
15499 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15500 (record_btrace_allow_memory_access): New.
15501 (init_record_btrace_ops): Initialize new methods.
15502 * target.c (raw_memory_xfer_partial): Bail out if target reports
15503 that this memory is not available.
15505 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15507 * target.h (target_ops) <to_insert_breakpoint>
15508 <to_remove_breakpoint>: Add target_ops parameter.
15509 (forward_target_insert_breakpoint): New.
15510 (forward_target_remove_breakpoint): New.
15511 (memory_remove_breakpoint, memory_insert_breakpoint):
15512 Add target_ops parameter.
15513 * target.c (target_insert_breakpoint): Split into this and ...
15514 (forward_target_insert_breakpoint): ... this.
15515 (target_remove_breakpoint): Split into this and ...
15516 (forward_target_remove_breakpoint): ... this.
15517 (debug_to_insert_breakpoint): Add target_ops parameter.
15518 Call forward_target_insert_breakpoint.
15519 (debug_to_remove_breakpoint): Add target_ops parameter.
15520 Call forward_target_remove_breakpoint.
15521 (update_current_target): Do not inherit or default to_insert_breakpoint
15522 and to_remove_breakpoint.
15523 * corelow.c (ignore): Add target_ops parameter.
15524 * exec.c (ignore): Add target_ops parameter.
15525 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15526 Add target_ops parameter.
15527 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15528 Add target_ops parameter.
15529 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15530 Add target_ops parameter.
15531 * record-full.c (record_full_beneath_to_insert_breakpoint)
15532 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15533 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15534 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15535 (record_full_core_remove_breakpoint): Add target_ops parameter.
15537 (record_full_beneath_to_insert_breakpoint_ops)
15538 (record_full_beneath_to_remove_breakpoint_ops)
15539 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15540 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15541 tmp_to_remove_breakpoint_ops,
15542 record_full_beneath_to_insert_breakpoint_ops, and
15543 record_full_beneath_to_remove_breakpoint_ops.
15544 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15545 (m32r_remove_breakpoint): Add target_ops parameter.
15546 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15547 Add target_ops parameter.
15548 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15549 Add target_ops parameter.
15551 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15552 Markus Metzger <markus.t.metzger@intel.com>
15554 * record-btrace.c: Include frame-unwind.h.
15555 (record_btrace_frame_unwind_stop_reason)
15556 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15557 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15559 (init_record_btrace_ops): Install it.
15561 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15563 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15566 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15568 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15571 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15573 * frame-unwind.c: Include target.h.
15574 (frame_unwind_try_unwinder): New function with code from ...
15575 (frame_unwind_find_by_frame): ... here. New variable
15576 unwinder_from_target, call also target_get_unwinder)
15577 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15578 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15579 * target.h (struct target_ops): New fields to_get_unwinder and
15580 to_get_tailcall_unwinder.
15581 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15583 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15585 * record-btrace.c (record_btrace_fetch_registers)
15586 (record_btrace_store_registers)
15587 (record_btrace_to_prepare_to_store): New.
15588 (init_record_btrace_ops): Add the above.
15590 2014-01-16 Tom Tromey <tromey@redhat.com>
15592 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15593 * target.h (struct target_ops) <to_prepare_to_store>: Add
15595 (target_prepare_to_store): Add argument.
15596 * target.c (debug_to_prepare_to_store): Add argument.
15597 (update_current_target): Update.
15598 * remote.c (remote_prepare_to_store): Add 'self' argument.
15599 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15600 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15601 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15602 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15604 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15605 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15606 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15607 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15608 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15610 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15612 * btrace.h (replay) <replay>: New.
15613 (btrace_is_replaying): New.
15614 * btrace.c (btrace_clear): Free replay iterator.
15615 (btrace_is_replaying): New.
15616 * record-btrace.c (record_btrace_is_replaying): New.
15617 (record_btrace_info): Print insn number if replaying.
15618 (record_btrace_insn_history): Start at replay position.
15619 (record_btrace_call_history): Start at replay position.
15620 (init_record_btrace_ops): Init to_record_is_replaying.
15622 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15624 * record-btrace.c (record_btrace_insn_history_range): Include
15626 (record_btrace_insn_history_from): Adjust range.
15627 (record_btrace_call_history_range): Include
15629 (record_btrace_call_history_from): Adjust range.
15630 * NEWS: Announce changes.
15632 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15634 * record.h (enum record_print_flag)
15635 <record_print_indent_calls>: New.
15636 * record.c (get_call_history_modifiers): Recognize /c modifier.
15637 (_initialize_record): Document /c modifier.
15638 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15639 Reorder fields. Optionally indent the function name. Update
15641 * NEWS: Announce changes.
15643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15645 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15647 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15649 * btrace.c (ftrace_new_function): Start counting at one.
15650 * record-btrace.c (record_btrace_info): Adjust number of calls
15652 * NEWS: Announce it.
15654 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15656 * record-btrace.c (btrace_call_history_insn_range): Print
15657 insn range as [begin, end].
15659 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15661 * btrace.h (struct btrace_func_link): New.
15662 (enum btrace_function_flag): New.
15663 (struct btrace_inst): Rename to ...
15664 (struct btrace_insn): ...this. Update all users.
15665 (struct btrace_func) <ibegin, iend>: Remove.
15666 (struct btrace_func_link): New.
15667 (struct btrace_func): Rename to ...
15668 (struct btrace_function): ...this. Update all users.
15669 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15670 (number, level, flags>: New.
15671 (struct btrace_insn_iterator): Rename to ...
15672 (struct btrace_insn_history): ...this.
15674 (struct btrace_insn_iterator, btrace_call_iterator): New.
15675 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15676 (struct btrace_target_info) <begin, end, level>
15677 <insn_history, call_history>: New.
15678 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15679 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15680 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15681 (btrace_call_number, btrace_call_begin, btrace_call_end)
15682 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15683 (btrace_find_function_by_number, btrace_set_insn_history)
15684 (btrace_set_call_history): New.
15685 * btrace.c (btrace_init_insn_iterator)
15686 (btrace_init_func_iterator, compute_itrace): Remove.
15687 (ftrace_print_function_name, ftrace_print_filename)
15688 (ftrace_skip_file): Change
15689 parameter to const.
15690 (ftrace_init_func): Remove.
15691 (ftrace_debug): Use new btrace_function fields.
15692 (ftrace_function_switched): Also consider gaining and
15693 losing symbol information).
15694 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15695 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15696 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15698 (ftrace_new_function): Move. Remove debug print.
15699 (ftrace_update_lines, ftrace_update_insns): New.
15700 (ftrace_update_function): Check for call, ret, and jump.
15701 (compute_ftrace): Renamed to ...
15702 (btrace_compute_ftrace): ...this. Rewritten to compute call
15704 (btrace_fetch, btrace_clear): Updated.
15705 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15706 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15707 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15708 (btrace_call_number, btrace_call_begin, btrace_call_end)
15709 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15710 (btrace_find_function_by_number, btrace_set_insn_history)
15711 (btrace_set_call_history): New.
15712 * record-btrace.c (require_btrace): Use new btrace thread
15714 (record_btrace_info, btrace_insn_history)
15715 (record_btrace_insn_history, record_btrace_insn_history_range):
15716 Use new btrace thread info fields and new iterator.
15717 (btrace_func_history_src_line): Rename to ...
15718 (btrace_call_history_src_line): ...this. Use new btrace
15719 thread info fields.
15720 (btrace_func_history): Rename to ...
15721 (btrace_call_history): ...this. Use new btrace thread info
15722 fields and new iterator.
15723 (record_btrace_call_history, record_btrace_call_history_range):
15724 Use new btrace thread info fields and new iterator.
15726 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15728 * frame.h (frame_id_build_unavailable_stack_special): New.
15729 * frame.c (frame_id_build_unavailable_stack_special): New.
15731 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15733 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15734 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15735 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15737 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15738 (i386_insn_is_jump, i386_jmp_p): New.
15739 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15740 insn_is_jump to gdbarch.
15741 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15742 * gdbarch.h: Regenerated.
15743 * gdbarch.c: Regenerated.
15744 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15745 (default_insn_is_jump): New.
15746 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15747 (default_insn_is_jump): New.
15749 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15751 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15753 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15754 (btrace_read_type) <btrace_read_new>: Change to ...
15755 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15757 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15759 * common/linux-btrace.c (linux_read_btrace): Free trace from
15760 previous iteration.
15762 2014-01-15 Doug Evans <dje@google.com>
15764 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15767 2014-01-15 Tom Tromey <tromey@redhat.com>
15769 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15770 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15771 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15772 (set_objfile_main_name): New function.
15773 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15774 language_of_main>: New fields.
15775 (set_objfile_main_name): Declare.
15776 * symtab.c (find_main_name): Loop over objfiles to find the main
15778 (set_main_name): Now static.
15779 (get_main_info): Add comment.
15780 * symtab.h (set_main_name): Don't declare.
15782 2014-01-15 Tom Tromey <tromey@redhat.com>
15784 * symtab.c (main_progspace_key): New global.
15785 (struct main_info): New.
15786 (name_of_main, language_of_main): Remove.
15787 (get_main_info, main_info_cleanup): New function.
15788 (set_main_name, main_name, main_language): Use get_main_info.
15789 (_initialize_symtab): Initialize main_progspace_key.
15791 2014-01-15 Tom Tromey <tromey@redhat.com>
15793 * dbxread.c (process_one_symbol): Update.
15794 * dwarf2read.c (read_partial_die): Update.
15795 * symfile.c (set_initial_language): Call main_language.
15796 * symtab.c (language_of_main): Now static.
15797 (set_main_name): Add 'lang' parameter.
15798 (find_main_name): Update.
15799 (main_language): New function.
15800 (symtab_observer_executable_changed): Update.
15801 * symtab.h (set_main_name): Update.
15802 (language_of_main): Remove.
15803 (main_language): Declare.
15805 2014-01-15 Tom Tromey <tromey@redhat.com>
15807 * symfile.c (init_entry_point_info): Use new "initialized" field.
15809 * objfiles.h (struct entry_point) <initialized>: New field.
15810 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15811 (struct objfile) <ei>: ...here. Remove.
15812 * objfiles.c (entry_point_address_query): Update.
15814 2014-01-15 Tom Tromey <tromey@redhat.com>
15816 * objfiles.c (entry_point_address_query): Relocate entry point
15818 (objfile_relocate1): Do not relocate entry point address.
15819 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15820 <the_bfd_section_index>: New field.
15821 * symfile.c (init_entry_point_info): Find the entry point's
15824 2014-01-15 Tom Tromey <tromey@redhat.com>
15826 * solib-frv.c (enable_break): Use entry_point_address_query.
15828 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15830 * NEWS: Add note on improved process record-replay on
15831 arm*-linux* targets.
15833 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15835 * arm-tdep.c (enum arm_record_result): New enum.
15836 (arm_record_unsupported_insn): New function.
15837 (arm_record_coproc_data_proc): Removed.
15838 (thumb2_record_ld_st_multiple): New function.
15839 (thumb2_record_ld_st_dual_ex_tbb): New function.
15840 (thumb2_record_data_proc_sreg_mimm): New function.
15841 (thumb2_record_ps_dest_generic): New function.
15842 (thumb2_record_branch_misc_cntrl): New function.
15843 (thumb2_record_str_single_data): New function.
15844 (thumb2_record_ld_mem_hints): New function.
15845 (thumb2_record_ld_word): New function.
15846 (thumb2_record_lmul_lmla_div): New function.
15847 (thumb2_record_decode_insn_handler): New function.
15848 (decode_insn): Add thumb32 instruction handlers.
15850 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15852 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15853 (struct arm_linux_record_tdep): Declare.
15854 (arm_canonicalize_syscall): New function.
15855 (arm_all_but_pc_registers_record): New function.
15856 (arm_linux_syscall_record): New function.
15857 (arm_linux_init_abi): Add syscall recording constructs.
15858 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15859 decoding. (arm_record_coproc_data_proc): Update arm syscall
15861 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15862 <arm_syscall_record>: New field.
15863 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15866 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15868 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15869 register for push instruction recording.
15871 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15873 * arm-tdep.c (thumb_record_misc): Update to correct logical
15874 error while recording ldm, ldmia and pop instructions.
15876 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15878 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15880 2014-01-15 Pedro Alves <palves@redhat.com>
15882 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15883 (go32_resume, go32_fetch_registers, store_register)
15884 (go32_store_registers, go32_prepare_to_store)
15885 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15886 (go32_create_inferior, go32_can_run, go32_terminal_init)
15887 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15890 2014-01-15 Tom Tromey <tromey@redhat.com>
15892 * target.h (async_callback_ftype): New typedef.
15893 (struct target_ops) <to_async>: Use it.
15895 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15897 * python/py-value.c (get_field_type): Remove unnecessary curly
15898 braces for single-statement if block.
15900 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15902 * python/py-type.c (convert_field): Add missing empty line
15903 after declarations.
15905 2014-01-14 Doug Evans <dje@google.com>
15907 * symfile.h (expand_symtabs_matching): Renamed from
15908 expand_partial_symbol_names. Update prototype.
15909 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15910 * symfile.c (expand_symtabs_matching): Renamed from
15911 expand_partial_symbol_names. New args file_matcher, kind.
15912 Rename arg fun to symbol_matcher.
15913 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15914 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15915 ada_expand_partial_symbol_name.
15916 (ada_make_symbol_completion_list): Update to call
15917 expand_symtabs_matching.
15918 (ada_add_global_exceptions): Call expand_symtabs_matching.
15919 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15920 call map_symbol_filenames.
15921 * symtab.c (sources_info): Update to call map_symbol_filenames.
15922 (search_symbols): Call expand_symtabs_matching.
15923 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15924 (default_make_symbol_completion_list_break_on): Update to call
15925 expand_symtabs_matching.
15926 (make_source_files_completion_list): Update to call
15927 map_symbol_filenames.
15929 2014-01-14 Doug Evans <dje@google.com>
15931 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15932 (expand_symtabs_symbol_matcher_ftype): New typedef.
15933 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15934 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15935 * symfile.c (expand_partial_symbol_names): Update to use
15936 expand_symtabs_symbol_matcher_ftype.
15937 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15938 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15939 Arg name_matcher renamed to symbol_matcher.
15940 * psymtab.c (recursively_search_psymtabs): Update to use
15941 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15943 (expand_symtabs_matching_via_partial): Update to use
15944 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15945 Arg name_matcher renamed to symbol_matcher.
15947 2014-01-14 Doug Evans <dje@google.com>
15949 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15950 (map_partial_symbol_filenames): Ditto.
15951 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15952 (map_partial_symbol_filenames): Ditto.
15953 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15954 (map_partial_symbol_filenames): Ditto.
15955 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15956 (map_partial_symbol_filenames): Ditto.
15957 * symtab.c: Delete #include "psymtab.h".
15959 2014-01-14 Pedro Alves <palves@redhat.com>
15960 Tom Tromey <tromey@redhat.com>
15962 * infrun.c (use_displaced_stepping): Use find_record_target
15963 instead of RECORD_IS_USED.
15964 (adjust_pc_after_break): Use record_full_is_used instead of
15966 * record-btrace.c (record_btrace_open): Call record_preopen
15967 instead of checking RECORD_IS_USED.
15968 * record-full.c (record_full_shortname)
15969 (record_full_core_shortname): New globals.
15970 (record_full_is_used): New function.
15971 (find_full_open): Call record_preopen instead of checking
15973 (init_record_full_ops): Set the target's shortname to
15974 record_full_shortname.
15975 (init_record_full_core_ops): Set the target's shortname to
15976 record_full_core_shortname.
15977 * record-full.h (record_full_is_used): Declare.
15978 * record.c (find_record_target): Make extern.
15979 (record_preopen): New function.
15980 * record.h (RECORD_IS_USED): Delete macro.
15981 (find_record_target, record_preopen): Declare functions.
15983 2014-01-14 Yao Qi <yao@codesourcery.com>
15985 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15986 'len''s type to ULONGEST.
15987 (core_xfer_shared_libraries_aix): Likewise.
15988 * gdbarch.c, gdbarch.h: Regenerated.
15989 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15990 Change type of 'len' to ULONGEST.
15991 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15992 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15994 2014-01-14 Yao Qi <yao@codesourcery.com>
15996 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15997 type of 'len' to ULONGEST.
15998 (linux_xfer_osdata_processgroups): Likewise.
15999 (linux_xfer_osdata_threads): Likewise.
16000 (linux_xfer_osdata_fds): Likewise.
16001 (linux_xfer_osdata_isockets): Likewise.
16002 (linux_xfer_osdata_shm): Likewise.
16003 (linux_xfer_osdata_sem): Likewise.
16004 (linux_xfer_osdata_msg): Likewise.
16005 (linux_common_xfer_osdata): Likewise.
16006 (struct osdata_type) <getter>: Likewise.
16007 * common/linux-osdata.h (linux_common_xfer_osdata): Update
16010 2014-01-14 Yao Qi <yao@codesourcery.com>
16012 * target.h (target_xfer_partial_ftype): Update.
16013 (struct target_ops) <to_xfer_partial>: Change 'len' type to
16015 * aix-thread.c (aix_thread_xfer_partial): Change type of
16016 argument 'len' to ULONGEST.
16017 * auxv.c (procfs_xfer_auxv): Likewise.
16018 (ld_so_xfer_auxv): Likewise.
16019 (memory_xfer_auxv): Likewise.
16020 * bfd-target.c (target_bfd_xfer_partial): Likewise.
16021 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
16022 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
16023 * corelow.c (core_xfer_partial): Likewise.
16024 * ctf.c (ctf_xfer_partial): Likewise.
16025 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
16027 (darwin_read_dyld_info): Likewise.
16028 (darwin_xfer_partial): Likewise.
16029 * exec.c (section_table_xfer_memory_partial): Likewise.
16030 (exec_xfer_partial): Likewise.
16031 * exec.h (section_table_xfer_memory_partial): Update
16033 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
16034 instead of plongest.
16035 (gnu_xfer_partial): Likewise.
16036 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
16037 (ia64_hpux_xfer_solib_got): Likewise.
16038 (ia64_hpux_xfer_partial): Likewise.
16039 * ia64-linux-nat.c (ia64_linux_xfer_partial):
16040 * inf-ptrace.c (inf_ptrace_xfer_partial):
16041 * inf-ttrace.c (inf_ttrace_xfer_partial):
16042 * linux-nat.c (linux_xfer_siginfo): Likewise.
16043 (linux_nat_xfer_partial): Likewise.
16044 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
16045 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
16046 * monitor.c (monitor_xfer_memory): Likewise.
16047 (monitor_xfer_partial): Likewise.
16048 * procfs.c (procfs_xfer_partial): Likewise.
16049 * record-full.c (record_full_xfer_partial): Likewise.
16050 (record_full_core_xfer_partial): Likewise.
16051 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
16052 instead of plongest.
16053 (gdbsim_xfer_partial): Likewise.
16054 * remote.c (remote_xfer_partial): Likewise.
16055 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16056 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
16058 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
16059 (rs6000_xfer_shared_libraries): Likewise.
16060 * sol-thread.c (sol_thread_xfer_partial): Likewise.
16061 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
16062 (sparc_xfer_partial): Likewise.
16063 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
16064 (spu_xfer_partial): Likewise.
16065 * spu-multiarch.c (spu_xfer_partial): Likewise.
16066 * target.c (target_read_live_memory): Likewise.
16067 (memory_xfer_live_readonly_partial): Likewise.
16068 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
16069 (target_xfer_partial, default_xfer_partial): Likewise.
16070 (current_xfer_partial): Likewise.
16071 * tracepoint.c (tfile_xfer_partial): Likewise.
16072 * windows-nat.c (windows_xfer_memory): Likewise. Call
16073 pulongest instead of plongest.
16074 (windows_xfer_partial): Likewise.
16075 (windows_xfer_shared_libraries): Likewise.
16077 2014-01-14 Yao Qi <yao@codesourcery.com>
16079 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
16080 target_xfer_partial_ftype.
16082 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
16086 * valops.c (value_struct_elt_bitpos): New function
16087 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
16088 object to 'None' if the field name is an empty string ("").
16089 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
16090 attribute to look for a field when 'name' is 'None'.
16091 (get_field_type): New function
16093 2014-01-13 Doug Evans <dje@google.com>
16096 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
16097 (try_open_dwop_file): Ditto.
16098 * gdb_bfd.c: #include "vec.h".
16099 (bfdp): New typedef.
16100 (struct gdb_bfd_data): New member included_bfds.
16101 (gdb_bfd_unref): Unref all included bfds.
16102 (gdb_bfd_record_inclusion): New function.
16103 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
16105 2014-01-13 Tom Tromey <tromey@redhat.com>
16107 * gdbcore.h (deprecated_core_resize_section_table): Remove.
16109 2014-01-13 Tom Tromey <tromey@redhat.com>
16111 * defs.h (use_windows): Remove.
16112 * gdb.c (main): Update.
16113 * main.c (captured_main, gdb_main): Update.
16114 * main.h (struct captured_main_args) <use_windows>: Remove.
16115 * top.c (use_windows): Remove.
16117 2014-01-13 Tom Tromey <tromey@redhat.com>
16119 * defs.h (deprecated_flush_hook): Remove.
16121 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16124 * linux-thread-db.c (try_thread_db_load): Add parameter
16125 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16126 (try_thread_db_load_from_pdir_1): Move it there from here.
16127 (try_thread_db_load_from_sdir): Update caller.
16128 (try_thread_db_load_from_dir): Move it there from here.
16130 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16132 * regformats/regdat.sh: Always rewrite the register file.
16134 2014-01-13 Pedro Alves <palves@redhat.com>
16136 * Makefile.in (CHECK_HEADERS): New variable.
16137 (check-headers:): New rule.
16139 2014-01-13 Tom Tromey <tromey@redhat.com>
16141 * cli/cli-setshow.c (do_set_command): Update.
16142 * defs.h (deprecated_set_hook): Remove.
16143 * top.c (deprecated_set_hook): Remove.
16145 2014-01-13 Pedro Alves <palves@redhat.com>
16147 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16148 the tracepoint if the PC is a pseudo-register.
16150 2014-01-13 Tom Tromey <tromey@redhat.com>
16152 * defs.h (XCALLOC): Remove.
16153 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16154 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16155 * dwarf2loc.c (allocate_piece_closure): Likewise.
16156 * elfread.c (elf_symfile_segments): Likewise.
16157 (elf_symfile_segments): Likewise.
16158 * gdbtypes.c (copy_type_recursive): Likewise.
16159 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16160 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16161 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16163 * mt-tdep.c (mt_gdbarch_init): Likewise.
16164 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16166 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16167 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16168 * registry.c (registry_alloc_data): Likewise.
16169 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16170 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16171 * serial.c (serial_fdopen_ops): Likewise.
16172 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16174 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16175 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16178 2014-01-13 Tom Tromey <tromey@redhat.com>
16180 * defs.h (XMALLOC): Remove.
16181 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16182 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16183 * cli-out.c (struct ui_out *): Likewise.
16184 * cli/cli-dump.c (add_dump_command): Likewise.
16185 (add_dump_command): Likewise.
16186 * complaints.c (get_complaints): Likewise.
16187 (find_complaint): Likewise.
16188 * dwarf2-frame.c (execute_cfa_program): Likewise.
16189 * dwarf2read.c (abbrev_table_read_table): Likewise.
16190 * gdbarch.sh: Likewise.
16191 * gdbarch.c: Rebuild.
16192 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16193 * interps.c (interp_new): Likewise.
16194 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16195 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16196 * mi/mi-console.c (mi_console_file_new): Likewise.
16197 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16198 * mi/mi-out.c (mi_out_new): Likewise.
16199 * mi/mi-parse.c (mi_parse): Likewise.
16200 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16201 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16202 * observer.c (xalloc_observer_list_node): Likewise.
16203 * regcache.c (regcache_xmalloc_1): Likewise.
16204 * reggroups.c (reggroup_new): Likewise.
16205 (_initialize_reggroup): Likewise.
16206 * registry.c (register_data_with_cleanup): Likewise.
16207 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16208 * ser-base.c (serial_ttystate): Likewise.
16209 * ser-mingw.c (make_pipe_state): Likewise.
16210 * ser-pipe.c (pipe_open): Likewise.
16211 * serial.c (serial_open): Likewise.
16212 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16213 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16214 (tui_alloc_win_info): Likewise.
16215 (tui_add_content_elements): Likewise.
16216 * tui/tui-file.c (tui_file_new): Likewise.
16217 * tui/tui-out.c (tui_out_new): Likewise.
16218 * ui-file.c (mem_file_new): Likewise.
16219 * ui-out.c (push_level): Likewise.
16220 (make_cleanup_ui_out_end): Likewise.
16221 (append_header_to_list): Likewise.
16222 (ui_out_new): Likewise.
16223 * user-regs.c (user_reg_add_builtin): Likewise.
16225 2014-01-13 Tom Tromey <tromey@redhat.com>
16227 * defs.h (XZALLOC): Remove.
16228 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16229 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16230 (get_ada_tasks_inferior_data): Likewise.
16231 * auto-load.c (get_auto_load_pspace_data): Likewise.
16232 * auxv.c (get_auxv_inferior_data): Likewise.
16233 * bfd-target.c (target_bfd_reopen): Likewise.
16234 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16235 (deprecated_insert_raw_breakpoint): Likewise.
16236 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16237 * corelow.c (core_open): Likewise.
16238 * darwin-nat.c (darwin_check_new_threads): Likewise.
16239 (darwin_attach_pid): Likewise.
16240 * dummy-frame.c (dummy_frame_push): Likewise.
16241 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16242 * dwarf2loc.c (allocate_piece_closure): Likewise.
16243 * elfread.c (elf_symfile_segments): Likewise.
16244 * eval.c (ptrmath_type_p): Likewise.
16245 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16246 * gdbtypes.c (alloc_type_arch): Likewise.
16247 (alloc_type_instance): Likewise.
16248 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16249 * inf-child.c (inf_child_can_use_agent): Likewise.
16250 * inflow.c (get_inflow_inferior_data): Likewise.
16251 * infrun.c (save_infcall_suspend_state): Likewise.
16252 * jit.c (jit_reader_load): Likewise.
16253 (get_jit_objfile_data): Likewise.
16254 (get_jit_program_space_data): Likewise.
16255 (jit_object_open_impl): Likewise.
16256 (jit_symtab_open_impl): Likewise.
16257 (jit_block_open_impl): Likewise.
16258 (jit_frame_sniffer): Likewise.
16259 * linux-fork.c (add_fork): Likewise.
16260 * maint.c (make_command_stats_cleanup): Likewise.
16261 * objfiles.c (get_objfile_pspace_data): Likewise.
16262 * opencl-lang.c (struct lval_closure): Likewise.
16263 * osdata.c (osdata_start_osdata): Likewise.
16264 * progspace.c (new_address_space): Likewise.
16265 (add_program_space): Likewise.
16266 * remote-sim.c (get_sim_inferior_data): Likewise.
16267 * sh-tdep.c (sh_gdbarch_init): Likewise.
16268 * skip.c (Ignore): Likewise.
16269 (skip_delete_command): Likewise.
16270 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16271 (library_list_start_library): Likewise.
16272 (solib_aix_current_sos): Likewise.
16273 * solib-darwin.c (get_darwin_info): Likewise.
16274 (darwin_current_sos): Likewise.
16275 * solib-dsbt.c (get_dsbt_info): Likewise.
16276 * solib-ia64-hpux.c (new_so_list): Likewise.
16277 (ia64_hpux_get_solib_linkage_addr): Likewise.
16278 * solib-spu.c (append_ocl_sos): Likewise.
16279 (spu_current_sos): Likewise.
16280 * solib-svr4.c (get_svr4_info): Likewise.
16281 (svr4_keep_data_in_core): Likewise.
16282 (library_list_start_library): Likewise.
16283 (svr4_default_sos): Likewise.
16284 (svr4_read_so_list): Likewise.
16285 * solib-target.c (library_list_start_library): Likewise.
16286 (solib_target_current_sos): Likewise.
16287 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16288 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16289 * symfile.c (default_symfile_segments): Likewise.
16290 * target-descriptions.c (tdesc_data_init): Likewise.
16291 (tdesc_create_reg): Likewise.
16292 (struct tdesc_type *): Likewise.
16293 (tdesc_create_vector): Likewise.
16294 (tdesc_set_struct_size): Likewise.
16295 (struct tdesc_type *): Likewise.
16296 (tdesc_free_feature): Likewise.
16297 (tdesc_create_feature): Likewise.
16298 * windows-nat.c (windows_add_thread): Likewise.
16299 (windows_make_so): Likewise.
16300 * xml-support.c (gdb_xml_body_text): Likewise.
16301 (gdb_xml_create_parser_and_cleanup): Likewise.
16302 (xml_process_xincludes): Likewise.
16303 * xml-syscall.c (allocate_syscalls_info): Likewise.
16304 (syscall_create_syscall_desc): Likewise.
16306 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16308 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16309 function, with code from i386_stap_parse_special_token.
16310 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16311 (i386_stap_parse_special_token): Move code to the two functions
16312 above; simplify it.
16314 2014-01-09 Pedro Alves <palves@redhat.com>
16315 Hui Zhu <hui@codesourcery.com>
16318 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16319 bp_err_string. Don't mark the location shlib_disabled if the
16320 error thrown wasn't a generic or memory error. Catch errors
16321 thrown while inserting breakpoints in overlayed code. Output
16322 error message of software breakpoints.
16323 * remote.c (remote_insert_breakpoint): If this breakpoint has
16324 target-side commands but this stub doesn't support Z0 packets,
16325 throw NOT_SUPPORTED_ERROR error.
16326 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16327 * target.h (target_insert_breakpoint): Extend comment.
16328 (target_insert_hw_breakpoint): Add comment.
16330 2014-01-08 Pedro Alves <palves@redhat.com>
16332 * remote.c (remote_add_thread): Add threads silently if starting
16334 (remote_notice_new_inferior): If in all-stop, and starting up,
16335 don't call notice_new_inferior.
16336 (get_current_thread): New function, factored out from ...
16337 (add_current_inferior_and_thread): ... this. Adjust.
16338 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16339 found any thread, then select the remote's current thread as GDB's
16340 current thread too.
16342 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16344 * NEWS: Create a new section for the next release branch.
16345 Rename the section of the current branch, now that it has
16348 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16350 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16351 * version.in: Bump version to 7.7.50.DATE-cvs.
16353 2014-01-08 Yao Qi <yao@codesourcery.com>
16355 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16356 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16357 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16359 2014-01-08 Yao Qi <yao@codesourcery.com>
16361 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16362 return value of bfd_get_filename to symbol_file_add_from_bfd.
16364 2014-01-08 Pierre Muller <muller@sourceware.org>
16367 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16368 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16369 to prim_record_mininal_symbol_and_info.
16370 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16371 in call to prim_record_minimal_symbol_and_info.
16372 (read_pe_exported_syms): Set index field of section_data.
16374 2014-01-07 Andrew Pinski <apinski@cavium.com>
16376 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16377 * features/aarch64.c: Regenerate.
16379 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16381 * target.c (return_null): Define.
16382 (update_current_target): Use it instead of return_zero for
16383 functions that return a pointer.
16385 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16387 * source.c (add_path): Fix check for duplicated paths in the previously
16390 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16392 * ada-lang.c: Remove duplicated include statements.
16393 * alphabsd-nat.c: Ditto.
16394 * amd64-darwin-tdep.c: Ditto.
16395 * amd64fbsd-nat.c: Ditto.
16396 * auto-load.c: Ditto.
16398 * breakpoint.c: Ditto.
16399 * dbxread.c: Ditto.
16400 * fork-child.c: Ditto.
16401 * gdb_usleep.c: Ditto.
16402 * i386-darwin-tdep.c: Ditto.
16403 * i386fbsd-nat.c: Ditto.
16405 * inferior.c: Ditto.
16406 * jv-lang.c: Ditto.
16407 * linux-nat.c: Ditto.
16408 * linux-tdep.c: Ditto.
16409 * m68kbsd-nat.c: Ditto.
16410 * m68klinux-nat.c: Ditto.
16411 * microblaze-tdep.c: Ditto.
16412 * mips-linux-tdep.c: Ditto.
16413 * mn10300-tdep.c: Ditto.
16414 * nto-tdep.c: Ditto.
16415 * opencl-lang.c: Ditto.
16417 * printcmd.c: Ditto.
16418 * regcache.c: Ditto.
16419 * remote-m32r-sdi.c: Ditto.
16421 * symfile.c: Ditto.
16423 * tilegx-linux-nat.c: Ditto.
16424 * tilegx-tdep.c: Ditto.
16425 * tracepoint.c: Ditto.
16427 * vaxbsd-nat.c: Ditto.
16428 * windows-nat.c: Ditto.
16429 * xtensa-tdep.c: Ditto.
16431 2014-01-07 Yao Qi <yao@codesourcery.com>
16433 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16435 2014-01-07 Yao Qi <yao@codesourcery.com>
16436 Joel Brobecker <brobecker@adacore.com>
16438 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16439 (pdc_write_regs): Likewise.
16440 (fetch_regs_kernel_thread): Likewise.
16441 (store_regs_kernel_thread): Likewise.
16443 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16445 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16446 tagged type objects to their actual type.
16448 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16450 * ada-valprint.c (print_field_values): Add "language" parameter.
16451 Update calls to print_field_values and print_variant_part.
16452 Pass new parameter "language" in call to val_print instead
16453 of "current_language". Replace call to ada_val_print by call
16455 (print_variant_part): Add "language" parameter.
16456 (ada_val_print_struct_union): Update call to print_field_values.
16458 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16460 * ada-valprint.c (ui_memcpy): Delete.
16461 (ada_print_floating): Update documentation. Add empty line
16462 between between function documentation and implementation.
16463 Delete variable "buffer". Use ui_file_xstrdup in place of
16464 ui_file_put. Minor adjustments following this change.
16466 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16468 * ada-valprint.c (ada_val_print_string): New function,
16469 extracted from ada_val_print_array.
16470 (ada_val_print_array): Replace extracted code by call
16471 to ada_val_print_string followed by a return. Move
16472 "else" branch to the function's top block.
16474 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16476 * ada-valprint.c (ada_val_print_array): Move implementation
16477 down. Rename parameter "offset" and "val" into "offset_aligned"
16478 and "original_value" respectively. Add parameter "offset".
16480 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16482 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16483 re-organizing the code. Change the "???" message printed
16484 when target type is a TYPE_CODE_UNDEF into
16485 "<ref to undefined type>".
16487 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16489 * ada-valprint.c (print_record): Delete, implementation inlined...
16490 (ada_val_print_struct_union): ... here. Remove call to
16491 ada_check_typedef in inlined implementation.
16493 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16495 * ada-valprint.c (ada_val_print_gnat_array): New function,
16496 extracted from ada_val_print_1;
16497 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16498 (ada_val_print_flt, ada_val_print_struct_union)
16499 (ada_val_print_ref): Likewise.
16500 (ada_val_print_1): Delete variables i and elttype.
16501 Replace extracted-out code by call to corresponding
16504 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16506 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16508 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16510 * ada-valprint.c (ada_val_print_1): Replace calls to
16511 ada_val_print_1 by calls to val_print.
16513 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16515 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16516 Update calls to self accordingly. Replace calls to c_val_print
16517 by calls to val_print.
16519 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16521 * ada-valprint.c (print_record): Delete declaration.
16522 (adjust_type_signedness, ada_val_print_1): Likewise.
16523 (ada_val_print): Move function implementation down.
16524 (print_variant_part, print_field_values, print_record):
16525 Move function implementation up.
16527 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16529 * python/py-type.c (typy_get_name): New function.
16530 (type_object_getset): Add entry for attribute "name".
16531 * NEWS: Add entry mentioning this new attribute.
16533 2014-01-07 Yao Qi <yao@codesourcery.com>
16535 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16538 2014-01-07 Yao Qi <yao@codesourcery.com>
16540 * gnu-nat.c (info_port_rights): Add qualifier const to
16543 2014-01-07 Yao Qi <yao@codesourcery.com>
16545 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16547 2014-01-07 Yao Qi <yao@codesourcery.com>
16549 * gnu-nat.c (make_inf) Update declaration.
16550 (make_inf): Make it static.
16551 (inf_set_traced): Likewise.
16552 (inf_port_to_thread, inf_task_died_status): Likewise.
16554 2014-01-07 Yao Qi <yao@codesourcery.com>
16556 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16558 2014-01-07 Yao Qi <yao@codesourcery.com>
16560 * gnu-nat.c (_initialize_gnu_nat): Declare.
16562 2014-01-07 Yao Qi <yao@codesourcery.com>
16564 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16566 (struct gdbarch_info) <byte_order>: Change type to
16568 <byte_order_for_code>: Likewise.
16569 * gdbarch.c, gdbarch.h: Regenerated.
16571 2014-01-06 Sasha Smundak <asmundak@google.com>
16573 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16575 2014-01-06 Tom Tromey <tromey@redhat.com>
16577 * doublest.c (convert_doublest_to_floatformat): Use const, not
16579 * somread.c (som_symtab_read): Likewise.
16581 2014-01-07 Hui Zhu <hui@codesourcery.com>
16583 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16584 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16585 (gdb_bfd_fopen): Ditto.
16586 (gdb_bfd_openr): Ditto.
16587 (gdb_bfd_openw): Ditto.
16588 (gdb_bfd_openr_iovec): Ditto.
16589 (gdb_bfd_fdopenr): Ditto.
16590 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16591 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16593 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16595 * symfile-mem.c (symbol_file_add_from_memory): Removed
16596 gdb_bfd_stash_filename.
16598 2014-01-03 Doug Evans <dje@google.com>
16600 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16603 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16605 Update year range in copyright notice of all files.
16607 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16609 * top.c (print_gdb_version): Set copyright year to 2014.
16611 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16613 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16615 For older changes see ChangeLog-2013.
16621 version-control: never