Fix indentation of "maint print user-registers"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
2
3 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
4 "Name" columns. Assure that the output is always indented.
5
6 2014-12-16 Joel Brobecker <brobecker@adacore.com>
7
8 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
9 already defined.
10 (linux_enable_event_reporting): Add parameter "attached".
11 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
12 declaration. New function.
13 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
14 (linux_enable_event_reporting): Add new parameter "attached".
15 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
16 nonzero.
17 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
18 Use it. Update function description.
19 (linux_child_post_attach, linux_child_post_startup_inferior):
20 Update call to linux_enable_event_reporting.
21
22 2014-12-16 Yao Qi <yao@codesourcery.com>
23
24 * NEWS: Move some entries to "Changes since GDB 7.8" section.
25
26 2014-12-16 Yao Qi <yao@codesourcery.com>
27
28 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
29 ARG_LAST.
30
31 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
32
33 * inferior.c (find_inferior_ptid): New function.
34 * inferior.h (find_inferior_ptid): New declaration.
35 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
36 * corelow.c (core_pid_to_str): Same.
37 * darwin-nat.c (darwin_resume): Same.
38 * infrun.c (fetch_inferior_event): Same.
39 (get_inferior_stop_soon): Same.
40 (handle_inferior_event): Same.
41 (handle_signal_stop): Same.
42 * linux-nat.c (resume_lwp): Same.
43 (stop_wait_callback): Same.
44 * mi/mi-interp.c (mi_new_thread): Same.
45 (mi_thread_exit): Same.
46 * proc-service.c (ps_pglobal_lookup): Same.
47 * record-btrace.c (record_btrace_step_thread): Same.
48 * remote-sim.c (gdbsim_close_inferior): Same.
49 (gdbsim_resume): Same.
50 (gdbsim_stop): Same.
51 * sol2-tdep.c (sol2_core_pid_to_str): Same.
52 * target.c (memory_xfer_partial_1): Same.
53 (default_thread_address_space): Same.
54 * thread.c (thread_change_ptid): Same.
55 (switch_to_thread): Same.
56 (do_restore_current_thread_cleanup): Same.
57
58 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
59
60 * defs.h (gdb_readline): Constify argument.
61 (gdb_readline_wrapper): Same.
62 (command_line_input): Same.
63 (deprecated_readline_hook): Same.
64 * top.c (deprecated_readline_hook): Same.
65 (gdb_readline): Same.
66 (gdb_readline_wrapper): Same.
67 (command_line_input): Constify argument. Pass prompt_arg to called
68 functions instead of local_prompt, overwriting prompt_arg if necessary.
69 * event-top.h (display_gdb_prompt): Constify argument.
70 * event-top.c (display_gdb_prompt): Same.
71 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
72 if building with Python 3.4 and up.
73
74 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
75
76 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
77 os.getcwdu().
78
79 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
80
81 PR gdb/15684
82 * memattr.c (mem_info_command): Remove "unsigned long" casts.
83
84 2014-12-13 Doug Evans <xdje42@gmail.com>
85
86 * utils.c (make_hex_string): Fix off-by-one error.
87
88 2014-12-13 Joel Brobecker <brobecker@adacore.com>
89
90 * ada-lang.h (ada_ensure_varsize_limit): Declare.
91 * ada-lang.c (check_size): Remove advance declaration.
92 (ada_ensure_varsize_limit): Renames check_size.
93 Replace calls to check_size by calls to ada_ensure_varsize_limit
94 throughout.
95 * ada-valprint.c (ada_val_print_ref): Add call to
96 ada_ensure_varsize_limit. Add comment explaining why.
97
98 2014-12-13 Joel Brobecker <brobecker@adacore.com>
99
100 * utils.c (make_hex_string): Replace use of sprintf by use of
101 xsnprintf.
102
103 2014-12-13 Joel Brobecker <brobecker@adacore.com>
104
105 * compile/compile-object-load.c (link_callbacks_multiple_definition)
106 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
107 newline at end of warning message.
108
109 2014-12-13 Joel Brobecker <brobecker@adacore.com>
110
111 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
112 new "EXTRA-ARGS" parameter.
113 * configure.ac: If large-file support is disabled in GDB,
114 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
115 * configure: Regenerate.
116
117 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
118
119 PR symtab/17642
120 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
121 TYPE if not TYPE_CODE_TYPEDEF.
122
123 2014-12-13 Joel Brobecker <brobecker@adacore.com>
124
125 PR backtrace/16215:
126 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
127 the frame unwinder must either be the dwarf2_frame_unwind
128 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
129 stack_addr is valid before calling get_frame_base. Throw
130 an error if not valid.
131
132 2014-12-12 Doug Evans <xdje42@gmail.com>
133
134 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
135 result != NULL.
136
137 2014-12-12 Doug Evans <xdje42@gmail.com>
138
139 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
140 All callers updated. Rename arg "namespace" to "symbol_name".
141
142 2014-12-12 Doug Evans <xdje42@gmail.com>
143
144 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
145 partial_map_symtabs_matching_filename. All uses updated.
146 (psym_find_pc_sect_compunit_symtab): Renamed from
147 find_pc_sect_compunit_symtab_from_partial. All uses updated.
148 Add function comment.
149 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
150 All uses updated. Add function comment.
151 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
152 Add function comment.
153 (psym_find_last_source_symtab): Renamed from
154 find_last_source_symtab_from_partial. All uses updated.
155 Add function comment.
156 (psym_forget_cached_source_info): Renamed from
157 forget_cached_source_info_partial. All uses updated.
158 Add function comment.
159 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
160 All uses updated. Add function comment.
161 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
162 updated. Add function comment.
163 (psym_expand_symtabs_for_function): Renamed from
164 read_symtabs_for_function. All uses updated. Update function comment.
165 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
166 All uses updated. Add function comment.
167 (psym_expand_symtabs_with_fullname): Renamed from
168 read_psymtabs_with_fullname. All uses updated. Add function comment.
169 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
170 All uses updated. Add function comment.
171 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
172 All uses updated.
173 (psym_expand_symtabs_matching): Renamed from
174 expand_symtabs_matching_via_partial. All uses updated.
175 Add function comment.
176 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
177 Add function comment.
178
179 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
180 Jan Kratochvil <jan.kratochvil@redhat.com>
181 Tom Tromey <tromey@redhat.com>
182
183 * NEWS: Update.
184 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
185 field.
186 * p-lang.c (pascal_language_defn): Update.
187 * opencl-lang.c (opencl_language_defn): Update.
188 * objc-lang.c (objc_language_defn): Update.
189 * m2-lang.c (m2_language_defn): Update.
190 * language.h (struct language_defn) <la_get_compile_instance,
191 la_compute_program>: New fields.
192 * language.c (unknown_language_defn, auto_language_defn)
193 (local_language_defn): Update.
194 * jv-lang.c (java_language_defn): Update.
195 * go-lang.c (go_language_defn): Update.
196 * f-lang.c (f_language_defn): Update.
197 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
198 * dwarf2loc.c (dwarf2_compile_property_to_c)
199 (locexpr_generate_c_location, loclist_generate_c_location): New
200 functions.
201 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
202 * defs.h (enum compile_i_scope_types): New.
203 (enum command_control_type) <compile_control>: New constant.
204 (struct command_line) <control_u>: New field.
205 * d-lang.c (d_language_defn): Update.
206 * compile/compile.c: New file.
207 * compile/compile-c-support.c: New file.
208 * compile/compile-c-symbols.c: New file.
209 * compile/compile-c-types.c: New file.
210 * compile/compile.h: New file.
211 * compile/compile-internal.h: New file.
212 * compile/compile-loc2c.c: New file.
213 * compile/compile-object-load.c: New file.
214 * compile/compile-object-load.h: New file.
215 * compile/compile-object-run.c: New file.
216 * compile/compile-object-run.h: New file.
217 * cli/cli-script.c (multi_line_command_p, print_command_lines)
218 (execute_control_command, process_next_line)
219 (recurse_read_control_structure): Handle compile_control.
220 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
221 * c-lang.c (c_language_defn, cplus_language_defn)
222 (asm_language_defn, minimal_language_defn): Update.
223 * ada-lang.c (ada_language_defn): Update.
224 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
225 New variables.
226 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
227 (HFILES_NO_SRCDIR): Add compile.h.
228 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
229 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
230 (compile.o, compile-c-types.o, compile-c-symbols.o)
231 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
232 (compile-c-support.o): New targets.
233
234 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
235
236 * s390-linux-tdep.c (s390_gcc_target_options): New function.
237 (s390_gdbarch_init): Add it to gdbarch.
238
239 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
240
241 * linux-tdep.c: Include objfiles.h and infcall.h.
242 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
243 function.
244 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
245
246 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
247
248 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
249 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
250 translate_register. Now public.
251 (dwarf2_compile_expr_to_ax): Update.
252
253 2014-12-12 Tom Tromey <tromey@redhat.com>
254 Jan Kratochvil <jan.kratochvil@redhat.com>
255
256 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
257 (dwarf_expr_frame_base): Update caller.
258 (dwarf_expr_frame_base_1): Rename to ...
259 (func_get_frame_base_dwarf_block): ... this and make it public.
260 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
261 callers.
262 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
263
264 2014-12-12 Tom Tromey <tromey@redhat.com>
265
266 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
267 Update.
268 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
269 dwarf2_compile_cfa_to_ax.
270 (dwarf2_compile_cfa_to_ax): Remove.
271 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
272 (dwarf2_compile_cfa_to_ax): Remove.
273
274 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
275
276 * infcall.h (call_function_by_hand_dummy): Declare.
277 * infcall.c (call_function_by_hand): Use
278 call_function_by_hand_dummy.
279 (call_function_by_hand_dummy): Rename from call_function_by_hand.
280 Add arguments. Register a destructor.
281
282 2014-12-12 Tom Tromey <tromey@redhat.com>
283 Jan Kratochvil <jan.kratochvil@redhat.com>
284
285 * osabi.h (osabi_triplet_regexp): Declare.
286 * osabi.c (struct osabi_names): New.
287 (gdb_osabi_names): Change type to struct osabi_names. Update
288 values.
289 (gdbarch_osabi_name): Update.
290 (osabi_triplet_regexp): New function.
291 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
292 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
293 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
294 set_gdbarch_gnu_triplet_regexp.
295 * gdbarch.sh (gnu_triplet_regexp): New method.
296 * gdbarch.c, gdbarch.h: Rebuild.
297 * arch-utils.h (default_gnu_triplet_regexp): Declare.
298 * arch-utils.c (default_gnu_triplet_regexp): New function.
299
300 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
301
302 * arch-utils.c (default_infcall_mmap)
303 (default_gcc_target_options): New functions.
304 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
305 (GDB_MMAP_PROT_EXEC): Define.
306 (default_infcall_mmap, default_gcc_target_options): Declare.
307 * gdbarch.h: Rebuild.
308 * gdbarch.c: Rebuild.
309 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
310
311 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
312
313 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
314 fields.
315 (pop_dummy_frame): Call the destructor if it exists.
316 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
317 functions.
318 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
319 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
320
321 2014-12-12 Tom Tromey <tromey@redhat.com>
322
323 * gdbtypes.h (make_unqualified_type): Declare.
324 * gdbtypes.c (make_unqualified_type): New function.
325
326 2014-12-12 Tom Tromey <tromey@redhat.com>
327
328 * ui-file.h (ui_file_write_for_put): Declare.
329 * ui-file.c (ui_file_write_for_put): New function.
330 * mi/mi-out.c (do_write): Remove.
331 (mi_out_put): Use ui_file_write_for_put.
332
333 2014-12-12 Doug Evans <dje@google.com>
334
335 * NEWS: Mention gdb.lookup_objfile.
336 * python/python.c (GdbMethods): Add lookup_objfile.
337 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
338 * python/py-objfile.c: #include "symtab.h".
339 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
340 (objfpy_lookup_objfile_by_name): New function.
341 (objfpy_lookup_objfile_by_build_id): New function.
342 (gdbpy_lookup_objfile): New function.
343
344 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
345
346 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
347 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
348 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
349 macros.
350 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
351 Likewise.
352
353 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
354
355 * completer.c: Include "target.h", "reggroups.h", and
356 "user-regs.h".
357 (reg_or_group_completer): New.
358 * completer.h (reg_or_group_completer): Declare.
359 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
360 the "info registers" and "info all-registers" commands and the
361 dbx-mode "lr" command.
362
363 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
364
365 * user-regs.c: Include "arch-utils.h", "command.h", and
366 "cli/cli-cmds.h".
367 (maintenance_print_user_registers): New.
368 (_initialize_user_regs): Register new "maint print user-registers"
369 subcommand.
370 * NEWS: Mention new GDB command "maint print user-registers".
371
372 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
373 Maciej W. Rozycki <macro@mips.com>
374 Pedro Alves <pedro@codesourcery.com>
375
376 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
377 remove `predefault' and `invalid_p' initializers.
378 (make_symbol_special): New architecture method.
379 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
380 (objfile, symbol): New declarations.
381 * arch-utils.h (default_elf_make_msymbol_special): Remove
382 prototype.
383 (default_make_symbol_special): New prototype.
384 (default_adjust_dwarf2_addr): Likewise.
385 (default_adjust_dwarf2_line): Likewise.
386 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
387 * arch-utils.c (default_elf_make_msymbol_special): Remove
388 function.
389 (default_make_symbol_special): New function.
390 (default_adjust_dwarf2_addr): Likewise.
391 (default_adjust_dwarf2_line): Likewise.
392 * dwarf2-frame.c (decode_frame_entry_1): Call
393 `gdbarch_adjust_dwarf2_addr'.
394 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
395 * dwarf2read.c (create_addrmap_from_index): Likewise.
396 (process_psymtab_comp_unit_reader): Likewise.
397 (add_partial_symbol): Likewise.
398 (add_partial_subprogram): Likewise.
399 (process_full_comp_unit): Likewise.
400 (read_file_scope): Likewise.
401 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
402 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
403 (read_call_site_scope): Likewise.
404 (dwarf2_ranges_read): Likewise.
405 (dwarf2_record_block_ranges): Likewise.
406 (read_attribute_value): Likewise.
407 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
408 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
409 * elfread.c (elf_symtab_read): Don't call
410 `gdbarch_elf_make_msymbol_special' if unset.
411 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
412 the ISA bit from the PC.
413 * mips-tdep.c (mips_unmake_compact_addr): New function.
414 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
415 address appropriately.
416 (mips_make_symbol_special): New function.
417 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
418 (mips_pc_is_mips16): Likewise.
419 (mips_pc_is_micromips): Likewise.
420 (mips_pc_isa): Likewise.
421 (mips_adjust_dwarf2_addr): New function.
422 (mips_adjust_dwarf2_line): Likewise.
423 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
424 (mips_addr_bits_remove): Likewise.
425 (mips_skip_trampoline_code): Likewise.
426 (mips_write_pc): Don't set the ISA bit.
427 (mips_eabi_push_dummy_call): Likewise.
428 (mips_o64_push_dummy_call): Likewise.
429 (mips_gdbarch_init): Install `mips_make_symbol_special',
430 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
431 handlers.
432 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
433 target-specific symbol address adjustments.
434 * gdbarch.h: Regenerate.
435 * gdbarch.c: Regenerate.
436
437 2014-12-12 Yao Qi <yao@codesourcery.com>
438
439 PR tdep/14261
440 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
441 'skip_pc'. Remove code skipping prologue instructions, use
442 arm_analyze_prologue instead.
443 (arm_analyze_prologue): Stop the scanning for unrecognized
444 instruction when skipping prologue.
445
446 2014-12-12 Yao Qi <yao@codesourcery.com>
447
448 * arm-tdep.c (arm_instruction_restores_sp): New function.
449 (arm_analyze_prologue): Call arm_instruction_restores_sp.
450 (arm_in_function_epilogue_p): Move code to
451 arm_instruction_restores_sp.
452
453 2014-12-11 Doug Evans <xdje42@gmail.com>
454
455 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
456
457 2014-12-11 Doug Evans <xdje42@gmail.com>
458
459 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
460 (symbol *lookup_symbol_via_quick_fns): Ditto.
461 (lookup_symbol_in_objfile): Add forward decl.
462 (lookup_global_symbol_from_objfile): Simplify, call
463 lookup_symbol_in_objfile.
464
465 2014-12-11 Doug Evans <xdje42@gmail.com>
466
467 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
468
469 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
470
471 PR breakpoints/17012
472 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
473 it is marked as persistent.
474
475 2014-12-10 Doug Evans <xdje42@gmail.com>
476
477 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
478 closer to its subroutines.
479
480 2014-12-10 Doug Evans <xdje42@gmail.com>
481
482 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
483
484 2014-12-10 Doug Evans <xdje42@gmail.com>
485
486 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
487 * cp-support.c (cp_lookup_symbol_imports): Delete.
488
489 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
490
491 PR gdb/17627
492 * target.c (cleanup_restore_target_terminal): New function.
493 (make_cleanup_restore_target_terminal): New function.
494 * target.h (make_cleanup_restore_target_terminal): New declaration.
495 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
496
497 2014-12-08 Doug Evans <dje@google.com>
498
499 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
500
501 2014-12-08 Doug Evans <dje@google.com>
502
503 * NEWS: Mention gdb.Objfile.owner.
504 * python/py-objfile.c (objfpy_get_owner): New function.
505 (objfile_getset): Add "owner".
506
507 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
508
509 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
510 (lookup_global_symbol_from_objfile): Call it.
511
512 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
513
514 Remove const from struct objfile *.
515 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
516 symtab.c, symtab.h: In these files.
517
518 2014-12-05 Andreas From <andreas.from@ericsson.com>
519
520 * MAINTAINERS (Write After Approval): Add "Andreas From"
521
522 2014-12-05 Doug Evans <xdje42@gmail.com>
523
524 Revert:
525 PR symtab/17602
526 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
527
528 2014-12-04 Doug Evans <dje@google.com>
529
530 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
531 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
532 (objfile_getset): Add "add_separate_debug_file".
533
534 2014-12-04 Doug Evans <dje@google.com>
535
536 * NEWS: Mention gdb.Objfile.build_id.
537 * build-id.c (build_id_bfd_get): Make non-static.
538 * build-id.h (build_id_bfd_get): Add declaration.
539 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
540 (OBJFPY_REQUIRE_VALID): New macro.
541 (objfpy_get_build_id): New function.
542 (objfile_getset): Add "build_id".
543 * utils.c (make_hex_string): New function.
544 * utils.h (make_hex_string): Add declaration.
545
546 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
547
548 * block.c (block_lookup_symbol_primary): New function.
549 * block.h (block_lookup_symbol_primary): New declaration.
550 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
551 Call block_lookup_symbol_primary.
552
553 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
554
555 * tramp-frame.h (tramp_frame): Add `validate' member.
556 * tramp-frame.c (tramp_frame_start): Validate trampoline before
557 scanning.
558 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
559 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
560 (mips_linux_o32_sigframe): Initialize `validate' member.
561 (mips_linux_o32_rt_sigframe): Likewise.
562 (mips_linux_n32_rt_sigframe): Likewise.
563 (mips_linux_n64_rt_sigframe): Likewise.
564 (micromips_linux_o32_sigframe): New variable.
565 (micromips_linux_o32_rt_sigframe): Likewise.
566 (micromips_linux_n32_rt_sigframe): Likewise.
567 (micromips_linux_n64_rt_sigframe): Likewise.
568 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
569 (mips_linux_n32n64_sigframe_init): Likewise.
570 (mips_linux_sigframe_validate): New function.
571 (micromips_linux_sigframe_validate): Likewise.
572 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
573
574 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
575
576 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
577 * sparc-sol2-tdep.c: Include "regset.h".
578 (sparc32_sol2_supply_core_gregset): New function.
579 (sparc32_sol2_collect_core_gregset): Likewise.
580 (sparc32_sol2_supply_core_fpregset): Likewise.
581 (sparc32_sol2_collect_core_fpregset): Likewise.
582 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
583 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
584 tdep->fpregset/sizeof_fpregset.
585 * sparc64-sol2-tdep.c: Include "regset.h".
586 (sparc64_sol2_supply_core_gregset): New function.
587 (sparc64_sol2_collect_core_gregset): Likewise.
588 (sparc64_sol2_supply_core_fpregset): Likewise.
589 (sparc64_sol2_collect_core_fpregset): Likewise.
590 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
591 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
592 tdep->fpregset/sizeof_fpregset.
593
594 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
595
596 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
597 type.
598
599 2014-12-02 Doug Evans <dje@google.com>
600
601 * symtab.c (symbol_init_cplus_specific): Delete.
602 (symbol_set_demangled_name): Remove special c++ support.
603 (symbol_get_demangled_name, symbol_set_language): Ditto.
604 * symtab.h (struct cplus_specific): Delete.
605 (struct general_symbol_info) <language_specific>: Remove
606 cplus_specific.
607
608 2014-12-02 Doug Evans <dje@google.com>
609
610 PR symtab/17602
611 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
612
613 2014-12-02 Doug Evans <dje@google.com>
614
615 PR symtab/17591
616 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
617 to strip parameters.
618
619 2014-12-02 Doug Evans <dje@google.com>
620
621 * dwarf2read.c (peek_die_abbrev): Improve error message text.
622
623 2014-12-02 Doug Evans <dje@google.com>
624
625 * valops.c (do_search_struct_field): Remove remnant of Chill support.
626 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
627
628 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
629
630 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
631
632 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
633
634 * NEWS: Mention new Python events.
635 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
636 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
637 (py-infevents.o): New rule.
638 * doc/observer.texi (inferior_call_pre, inferior_call_post)
639 (memory_changed, register_changed): New observers.
640 * infcall.c (call_function_by_hand): Notify observer before and
641 after inferior call.
642 * python/py-event.h (inferior_call_kind): New enum.
643 (emit_inferior_call_event): New prototype.
644 (emit_register_changed_event): New prototype.
645 (emit_memory_changed_event): New prototype.
646 * python/py-events.h (events_object): New registries
647 inferior_call, memory_changed and register_changed.
648 * python/py-evts.c (gdbpy_initialize_py_events): Add the
649 inferior_call, memory_changed and register_changed registries.
650 * python/py-infevents.c: New.
651 * python/py-inferior.c (python_on_inferior_call_pre)
652 (python_on_inferior_call_post, python_on_register_change)
653 (python_on_memory_change): New functions.
654 (gdbpy_initialize_inferior): Attach python handler to new
655 observers.
656 * python/py-infthread.c(gdbpy_create_ptid_object): New.
657 (thpy_get_ptid) Use gdbpy_create_ptid_object.
658 * python/python-internal.h:
659 (gdbpy_create_ptid_object)
660 (gdbpy_initialize_inferior_call_pre_event)
661 (gdbpy_initialize_inferior_call_post_event)
662 (gdbpy_initialize_register_changed_event)
663 (gdbpy_initialize_memory_changed_event): New prototypes.
664 * python/python.c (_initialize_python): Initialize new events.
665 * valops.c (value_assign): Notify register_changed observer.
666
667 2014-12-02 Doug Evans <dje@google.com>
668
669 * python/py-infthread.c: Whitespace fixes.
670
671 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
672
673 * features/Makefile (s390-te-linux64-expedite): Replace
674 non-existant r14 and r15 by r14l and r15l, respectively.
675 * regformats/s390-te-linux64.dat: Regenerate.
676
677 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
678
679 * objfiles.c (allocate_objfile): Remove duplicate comment.
680
681 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
682
683 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
684 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
685 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
686 (supply_gregset, supply_fpregset): Remove.
687 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
688 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
689 and sizeof_gregset.
690
691 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
692
693 Add add-auto-load-scripts-directory.
694 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
695 * auto-load.c (add_auto_load_dir): New function.
696 (_initialize_auto_load): Install it.
697
698 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
699
700 Pushed by Joel Brobecker <brobecker@adacore.com>.
701 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
702
703 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
704
705 * eval.c (evaluate_subexp): Check that the thread stack temporaries
706 are not already enabled before enabling them.
707
708 2014-11-29 Yao Qi <yao@codesourcery.com>
709
710 * arm-tdep.c (arm_analyze_prologue): Move local variables
711 'framereg' and 'framesize' to inner block. Move code to
712 inner block too.
713
714 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
715
716 * eval.c: Include gdbthread.h.
717 (evaluate_subexp): Enable thread stack temporaries before
718 evaluating a complete expression and clean them up after the
719 evaluation is complete.
720 * gdbthread.h: Include common/vec.h.
721 (value_ptr): New typedef.
722 (VEC (value_ptr)): New vector type.
723 (value_vec): New typedef.
724 (struct thread_info): Add new fields stack_temporaries_enabled
725 and stack_temporaries.
726 (enable_thread_stack_temporaries)
727 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
728 (get_last_thread_stack_temporary)
729 (value_in_thread_stack_temporaries): Declare.
730 * gdbtypes.c (class_or_union_p): New function.
731 * gdbtypes.h (class_or_union_p): Declare.
732 * infcall.c (call_function_by_hand): Store return values of class
733 type as temporaries on stack.
734 * thread.c (enable_thread_stack_temporaries): New function.
735 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
736 (get_last_thread_stack_temporary): Likewise.
737 (value_in_thread_stack_temporaries): Likewise.
738 * value.c (value_force_lval): New function.
739 * value.h (value_force_lval): Declare.
740
741 2014-11-28 Pierre Muller <muller@sourceware.org>
742
743 Pushed by Joel Brobecker <brobecker@adacore.com>.
744 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
745 registers.
746
747 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
748
749 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
750 * config/sparc/linux.mh (NATDEPFILES): Likewise.
751 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
752 * m68klinux-nat.c (fetch_core_registers): Remove.
753 (linux_elf_core_fns): Remove.
754 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
755
756 2014-11-28 Joel Brobecker <brobecker@adacore.com>
757
758 * utils.c (gdb_realpath): Rework comment about handling on
759 Windows.
760
761 2014-11-28 Yao Qi <yao@codesourcery.com>
762
763 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
764 rename.
765 * gnulib/aclocal.m4: Re-generated.
766 * gnulib/config.in: Re-generated.
767 * gnulib/configure: Re-generated.
768 * gnulib/import/Makefile.am: Re-generated.
769 * gnulib/import/Makefile.in: Re-generated.
770 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
771 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
772 * import/basename-lgpl.c: New file.
773 * import/dirname-lgpl.c: New file.
774 * import/dirname.h: New file.
775 * import/m4/dirname.m4: New file.
776 * import/m4/malloc.m4: New file.
777 * import/m4/rename.m4: New file.
778 * import/m4/rmdir.m4: New file.
779 * import/m4/stdio_h.m4: New file.
780 * import/malloc.c: New file.
781 * import/rename.c: New file.
782 * import/rmdir.c: New file.
783 * import/same-inode.h: New file.
784 * import/stdio.c: New file.
785 * import/stdio.in.h: New file.
786 * import/stripslash.c: New file.
787
788 2014-11-28 Yao Qi <yao@codesourcery.com>
789
790 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
791 and realpath.
792 * config.in: Re-generated.
793 * configure: Re-generated.
794 * utils.c (gdb_realpath): Remove code calling realpath,
795 canonicalize_file_name and pathconf.
796 [!_WIN32]: Call canonicalize_file_name.
797
798 2014-11-28 Yao Qi <yao@codesourcery.com>
799
800 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
801 canonicalize-lgpl.
802 * aclocal.m4: Re-generated.
803 * config.in: Re-generated.
804 * configure: Re-generated.
805 * import/Makefile.am: Re-generated.
806 * import/Makefile.in: Re-generated.
807 * import/m4/gnulib-cache.m4: Re-generated.
808 * import/m4/gnulib-comp.m4: Re-generated.
809 * import/canonicalize-lgpl.c: New file.
810 * import/extra/snippet/_Noreturn.h: New file.
811 * import/m4/canonicalize.m4: New file.
812 * import/m4/double-slash-root.m4: New file.
813 * import/m4/eealloc.m4: New file.
814 * import/m4/malloca.m4: New file.
815 * import/m4/nocrash.m4: New file.
816 * import/m4/stdlib_h.m4: New file.
817 * import/malloca.c: New file.
818 * import/malloca.h: New file.
819 * import/malloca.valgrind: New file.
820
821 2014-11-28 Yao Qi <yao@codesourcery.com>
822
823 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
824 * config.in, configure: Regenerate.
825 * symfile.c (find_separate_debug_file_by_debuglink): Remove
826 code checking HAVE_LSTAT is defined.
827
828 2014-11-28 Yao Qi <yao@codesourcery.com>
829
830 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
831 lstat.
832 * gnulib/aclocal.m4: Re-generated.
833 * gnulib/config.in: Re-generated.
834 * gnulib/configure: Re-generated.
835 * gnulib/import/Makefile.am: Re-generated.
836 * gnulib/import/Makefile.in: Re-generated.
837 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
838 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
839 * gnulib/import/lstat.c: New file.
840 * gnulib/import/m4/lstat.m4: New file.
841
842 2014-11-28 Yao Qi <yao@codesourcery.com>
843
844 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
845 * config.in, configure: Re-generate.
846 * inf-child.c (inf_child_fileio_readlink): Don't check
847 HAVE_READLINK is defined.
848
849 2014-11-28 Yao Qi <yao@codesourcery.com>
850
851 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
852 * gnulib/aclocal.m4: Re-generated.
853 * gnulib/config.in: Likewise.
854 * gnulib/configure: Likewise.
855 * gnulib/import/Makefile.am: Likewise.
856 * gnulib/import/Makefile.in: Likewise.
857 * gnulib/import/m4/gnulib-cache.m4: Likewise.
858 * gnulib/import/m4/gnulib-comp.m4: Likewise.
859 * gnulib/import/dosname.h: New file
860 * gnulib/import/m4/largefile.m4: New file.
861 * gnulib/import/m4/readlink.m4: New file.
862 * gnulib/import/m4/stat.m4: New file.
863 * gnulib/import/readlink.c: New file.
864 * gnulib/import/stat.c: New file.
865
866 2014-11-26 Mark Wielaard <mjw@redhat.com>
867
868 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
869 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
870
871 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
872
873 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
874 that there can be only one stack adjustment in the prologue
875 with tests to detect specific disallowed stack adjustments.
876
877 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
878
879 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
880 adjustments.
881
882 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
883
884 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
885 the instruction as well as reading it from memory.
886 (nios2_match_add): New.
887 (nios2_match_sub): New.
888 (nios2_match_addi): New.
889 (nios2_match_orhi): New.
890 (nios2_match_stw): New.
891 (nios2_match_ldw): New.
892 (nios2_match_rdctl): New.
893 (enum branch_condition): New.
894 (nios2_match_branch): New.
895 (nios2_match_jmpi): New.
896 (nios2_match_calli): New.
897 (nios2_match_jmpr): New.
898 (nios2_match_callr): New.
899 (nios2_match_break): New.
900 (nios2_match_trap): New.
901 (nios2_in_epilogue_p): Rewrite to use new functions.
902 (nios2_analyze_prologue): Likewise.
903 (nios2_skip_prologue): Delete unused local limit_pc.
904 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
905 (nios2_get_next_pc): Rewrite to use new functions.
906
907 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
908
909 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
910
911 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
912
913 Pushed by Joel Brobecker <brobecker@adacore.com>
914 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
915 elements pi_len by the size of the elements before calling
916 vm_deallocate.
917 (inf_validate_task_sc): Likewise, and properly deallocate the
918 noise array.
919
920 2014-11-23 Doug Evans <xdje42@gmail.com>
921
922 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
923 number and name if present. All callers updated.
924 (dump_fn_fieldlists): Fix indentation of args.
925
926 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
927
928 * MAINTAINERS (Write After Approval): Add myself.
929
930 2014-11-23 Joel Brobecker <brobecker@adacore.com>
931
932 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
933 to a bp_call_dummy breakpoint type.
934
935 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
936
937 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
938 registering the signal handler.
939
940 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
941
942 * event-top.h (call_stdin_event_handler_again_p): Declare.
943 * event-top.c (call_stdin_event_handler_again_p): Define.
944 (stdin_event_handler): Use it.
945 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
946 handler again if there is pending input following a
947 start sequence.
948
949 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
950
951 Pushed by Joel Brobecker <brobecker@adacore.com>
952 * linux-fork.c (checkpoint_command): Print index of new
953 checkpoint in response message.
954
955 2014-11-23 Yao Qi <yao@codesourcery.com>
956
957 * valprint.c (read_string): Move local variables 'found_nul',
958 'chunksize' and 'limit' to inner scope. Update comments.
959
960 2014-11-22 Doug Evans <xdje42@gmail.com>
961
962 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
963 function comment.
964 (search_symbols): Fix comments and whitespace.
965
966 2014-11-22 Doug Evans <xdje42@gmail.com>
967
968 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
969
970 2014-11-21 Doug Evans <dje@google.com>
971
972 * psymtab.c (psymtab_search_name): Fix whitespace.
973
974 2014-11-21 Yao Qi <yao@codesourcery.com>
975
976 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
977 errno.
978 * gnulib/import/Makefile.am: Re-generated.
979 * gnulib/import/Makefile.in: Likewise.
980 * gnulib/import/m4/gnulib-cache.m4: Likewise.
981
982 2014-11-21 Yao Qi <yao@codesourcery.com>
983
984 * gdb_wchar.h: Include wchar.h and wctype.h.
985 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
986 include wchar.h and wctype.h.
987 Don't check HAVE_WCHAR_H.
988
989 2014-11-21 Yao Qi <yao@codesourcery.com>
990
991 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
992 and wctype-h.
993 * gnulib/import/Makefile.am: Re-generated.
994 * gnulib/import/Makefile.in: Likewise.
995 * gnulib/import/m4/gnulib-cache.m4: Likewise.
996
997 2014-11-21 Yao Qi <yao@codesourcery.com>
998
999 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1000 memchr.
1001 * gnulib/import/Makefile.am: Re-generated.
1002 * gnulib/import/Makefile.in: Likewise.
1003 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1004
1005 2014-11-21 Yao Qi <yao@codesourcery.com>
1006
1007 * common/common-defs.h: Include alloca.h
1008 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1009 * configure: Re-generated.
1010 * defs.h: Remove code handling alloca.
1011 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1012 or not.
1013
1014 2014-11-21 Yao Qi <yao@codesourcery.com>
1015
1016 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1017 alloca.
1018 * gnulib/import/Makefile.am: Re-generated.
1019 * gnulib/import/Makefile.in: Likewise..
1020 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1021
1022 2014-11-21 Yao Qi <yao@codesourcery.com>
1023
1024 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1025 alphabetical order.
1026
1027 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1028
1029 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1030 flag_unsigned if HIGH_BOUND is constant and negative.
1031
1032 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1033
1034 PR breakpoints/10737
1035 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1036 modifier from "struct gdbarch" when compiling without Expat (XML)
1037 support.
1038 (get_syscall_by_number): Likewise.
1039 (get_syscall_by_name): Likewise.
1040 (get_syscall_names): Likewise.
1041
1042 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1043
1044 PR breakpoints/10737
1045 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1046 set_xml_syscall_file_name to provide gdbarch.
1047 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1048 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1049 * breakpoint.c (print_it_catch_syscall): Adjust call to
1050 get_syscall_by_number to provide gdbarch.
1051 (print_one_catch_syscall): Likewise.
1052 (print_mention_catch_syscall): Likewise.
1053 (print_recreate_catch_syscall): Likewise.
1054 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1055 and get_syscall_by_name to provide gdbarch.
1056 (catch_syscall_completer): Adjust call to get_syscall_names to
1057 provide gdbarch.
1058 * gdbarch.c: Regenerate.
1059 * gdbarch.h: Likewise.
1060 * gdbarch.sh: Forward declare "struct syscalls_info".
1061 (xml_syscall_file): New variable.
1062 (syscalls_info): Likewise.
1063 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1064 set_xml_syscall_file_name to provide gdbarch.
1065 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1066 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1067 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1068 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1069 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1070 * xml-syscall.c: Include gdbarch.h.
1071 (set_xml_syscall_file_name): Accept gdbarch parameter.
1072 (get_syscall_by_number): Likewise.
1073 (get_syscall_by_name): Likewise.
1074 (get_syscall_names): Likewise.
1075 (my_gdb_datadir): Delete global variable.
1076 (struct syscalls_info) <my_gdb_datadir>: New variable.
1077 (struct syscalls_info) <sysinfo>: Rename variable to
1078 "syscalls_info".
1079 (sysinfo): Delete global variable.
1080 (have_initialized_sysinfo): Likewise.
1081 (xml_syscall_file): Likewise.
1082 (sysinfo_free_syscalls_desc): Rename to...
1083 (syscalls_info_free_syscalls_desc): ... this.
1084 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1085 code to the new layout of "struct syscalls_info".
1086 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1087 "syscalls_info".
1088 (syscall_create_syscall_desc): Likewise.
1089 (syscall_start_syscall): Likewise.
1090 (syscall_parse_xml): Likewise.
1091 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1092 (init_sysinfo): Rename to...
1093 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1094 Adjust function to deal with gdbarch.
1095 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1096 gdbarch as a parameter. Adjust code.
1097 (xml_get_syscall_name): Likewise.
1098 (xml_list_of_syscalls): Likewise.
1099 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1100 (get_syscall_by_number): Likewise.
1101 (get_syscall_by_name): Likewise.
1102 (get_syscall_names): Likewise.
1103 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1104 (get_syscall_by_number): Likewise.
1105 (get_syscall_by_name): Likewise.
1106 (get_syscall_names): Likewise.
1107
1108 2014-11-20 Doug Evans <xdje42@gmail.com>
1109
1110 Split struct symtab into two: struct symtab and compunit_symtab.
1111 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1112 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1113 to "struct compunit_symtab *". All callers updated.
1114 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1115 "struct symtab *" argument to "struct compunit_symtab *".
1116 All callers updated.
1117 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1118 result to "struct compunit_symtab *". All callers updated.
1119 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1120 Change result to "struct compunit_symtab *". All callers updated.
1121 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1122 hange type to "struct compunit_symtab *". All uses updated.
1123 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1124 Change type to "struct compunit_symtab *". All uses updated.
1125 * buildsym.c (struct buildsym_compunit): New struct.
1126 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1127 (buildsym_compunit): New static global.
1128 (finish_block_internal): Update to fetch objfile from
1129 buildsym_compunit.
1130 (make_blockvector): Delete objfile argument.
1131 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1132 debugformat, producer.
1133 (start_buildsym_compunit): New function.
1134 (free_buildsym_compunit): Renamed from free_subfiles_list.
1135 All callers updated.
1136 (patch_subfile_names): Rewrite to use buildsym_compunit.
1137 (get_compunit_symtab): New function.
1138 (get_macro_table): Delete argument comp_dir. All callers updated.
1139 (start_symtab): Change result to "struct compunit_symtab *".
1140 All callers updated. Create the subfile of the main source file.
1141 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1142 (reset_symtab_globals): Update.
1143 (end_symtab_get_static_block): Update to use buildsym_compunit.
1144 (end_symtab_without_blockvector): Rewrite.
1145 (end_symtab_with_blockvector): Change result to
1146 "struct compunit_symtab *". All callers updated.
1147 Update to use buildsym_compunit. Don't set symtab->dirname,
1148 instead set it in the compunit.
1149 Explicitly make sure main symtab is first in its list.
1150 Set debugformat, producer, blockvector, block_line_section, and
1151 macrotable in the compunit.
1152 (end_symtab_from_static_block): Change result to
1153 "struct compunit_symtab *". All callers updated.
1154 (end_symtab, end_expandable_symtab): Ditto.
1155 (set_missing_symtab): Change symtab argument to
1156 "struct compunit_symtab *". All callers updated.
1157 (augment_type_symtab): Ditto.
1158 (record_debugformat): Update to use buildsym_compunit.
1159 (record_producer): Update to use buildsym_compunit.
1160 * buildsym.h (struct subfile) <dirname>: Delete.
1161 <producer, debugformat>: Delete.
1162 <buildsym_compunit>: New member.
1163 (get_compunit_symtab): Declare.
1164 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1165 from primary_symtab. Change type to "struct compunit_symtab *".
1166 All uses updated.
1167 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1168 All callers updated.
1169 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1170 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1171 symtab. Change type to "struct compunit_symtab *". All uses updated.
1172 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1173 All callers updated.
1174 (dw2_find_last_source_symtab): Ditto.
1175 (dw2_lookup_symbol): Ditto.
1176 (recursively_find_pc_sect_compunit_symtab): Renamed from
1177 recursively_find_pc_sect_symtab. Change result to
1178 "struct compunit_symtab *". All callers updated.
1179 (dw2_find_pc_sect_compunit_symtab): Renamed from
1180 dw2_find_pc_sect_symtab. Change result to
1181 "struct compunit_symtab *". All callers updated.
1182 (get_compunit_symtab): Renamed from get_symtab. Change result to
1183 "struct compunit_symtab *". All callers updated.
1184 (recursively_compute_inclusions): Change type of immediate_parent
1185 argument to "struct compunit_symtab *". All callers updated.
1186 (compute_compunit_symtab_includes): Renamed from
1187 compute_symtab_includes. All callers updated. Rewrite to compute
1188 includes of compunit_symtabs and not symtabs.
1189 (process_full_comp_unit): Update to work with struct compunit_symtab.
1190 (process_full_type_unit): Ditto.
1191 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1192 (dwarf_decode_lines): Remove special case handling of main subfile.
1193 (macro_start_file): Delete argument comp_dir. All callers updated.
1194 (dwarf_decode_macro_bytes): Ditto.
1195 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1196 use struct compunit_symtab.
1197 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1198 * jit.c (finalize_symtab): Build compunit_symtab.
1199 * jv-lang.c (get_java_class_symtab): Change result to
1200 "struct compunit_symtab *". All callers updated.
1201 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1202 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1203 comp_dir. Change type to "struct compunit_symtab *".
1204 All uses updated.
1205 (new_macro_table): Change comp_dir argument to cust,
1206 "struct compunit_symtab *". All callers updated.
1207 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1208 nr_primary_symtabs. All uses updated.
1209 (count_symtabs_and_blocks): Update to handle compunits.
1210 (report_command_stats): Update output, "primary symtabs" renamed to
1211 "compunits".
1212 * mdebugread.c (new_symtab): Change result to
1213 "struct compunit_symtab *". All callers updated.
1214 (parse_procedure): Change type of search_symtab argument to
1215 "struct compunit_symtab *". All callers updated.
1216 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1217 separate loop.
1218 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1219 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1220 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1221 All uses updated.
1222 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1223 All uses updated.
1224 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1225 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1226 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1227 symtab. Change type to "struct compunit_symtab *". All uses updated.
1228 * psymtab.c (psymtab_to_symtab): Change result type to
1229 "struct compunit_symtab *". All callers updated.
1230 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1231 find_pc_sect_symtab_from_partial. Change result type to
1232 "struct compunit_symtab *". All callers updated.
1233 (lookup_symbol_aux_psymtabs): Change result type to
1234 "struct compunit_symtab *". All callers updated.
1235 (find_last_source_symtab_from_partial): Ditto.
1236 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1237 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1238 and macro_table from compunit.
1239 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1240 type to "struct compunit_symtab *". All callers updated.
1241 (debug_qf_lookup_symbol): Ditto.
1242 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1243 debug_qf_find_pc_sect_symtab, change result type to
1244 "struct compunit_symtab *". All callers updated.
1245 * symfile.c (allocate_symtab): Delete objfile argument.
1246 New argument cust.
1247 (allocate_compunit_symtab): New function.
1248 (add_compunit_symtab_to_objfile): New function.
1249 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1250 Change result type to "struct compunit_symtab *". All uses updated.
1251 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1252 Change result type to "struct compunit_symtab *". All uses updated.
1253 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1254 separate loop.
1255 (dump_symtab_1): Update test for primary source symtab.
1256 (maintenance_info_symtabs): Update to handle compunit symtabs.
1257 (maintenance_check_symtabs): Ditto.
1258 * symtab.c (set_primary_symtab): Delete.
1259 (compunit_primary_filetab): New function.
1260 (compunit_language): New function.
1261 (iterate_over_some_symtabs): Change type of arguments "first",
1262 "after_last" to "struct compunit_symtab *". All callers updated.
1263 Update to loop over symtabs in each compunit.
1264 (error_in_psymtab_expansion): Rename symtab argument to cust,
1265 and change type to "struct compunit_symtab *". All callers updated.
1266 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1267 Change result type to "struct compunit_symtab *". All callers updated.
1268 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1269 Change result type to "struct compunit_symtab *". All callers updated.
1270 (find_pc_sect_line): Only loop over symtabs within selected compunit
1271 instead of all symtabs in the objfile.
1272 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1273 <compunit_symtab> New member.
1274 <block_line_section>: Moved to compunit_symtab.
1275 <locations_valid>: Ditto.
1276 <epilogue_unwind_valid>: Ditto.
1277 <macro_table>: Ditto.
1278 <dirname>: Ditto.
1279 <debugformat>: Ditto.
1280 <producer>: Ditto.
1281 <objfile>: Ditto.
1282 <call_site_htab>: Ditto.
1283 <includes>: Ditto.
1284 <user>: Ditto.
1285 <primary>: Delete
1286 (SYMTAB_COMPUNIT): New macro.
1287 (SYMTAB_BLOCKVECTOR): Update definition.
1288 (SYMTAB_OBJFILE): Update definition.
1289 (SYMTAB_DIRNAME): Update definition.
1290 (struct compunit_symtab): New type. Common members among all source
1291 symtabs within a compilation unit moved here. All uses updated.
1292 (COMPUNIT_OBJFILE): New macro.
1293 (COMPUNIT_FILETABS): New macro.
1294 (COMPUNIT_DEBUGFORMAT): New macro.
1295 (COMPUNIT_PRODUCER): New macro.
1296 (COMPUNIT_DIRNAME): New macro.
1297 (COMPUNIT_BLOCKVECTOR): New macro.
1298 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1299 (COMPUNIT_LOCATIONS_VALID): New macro.
1300 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1301 (COMPUNIT_CALL_SITE_HTAB): New macro.
1302 (COMPUNIT_MACRO_TABLE): New macro.
1303 (ALL_COMPUNIT_FILETABS): New macro.
1304 (compunit_symtab_ptr): New typedef.
1305 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1306
1307 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1308
1309 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1310 if the TYPE_CODE of range_type's base type does not match
1311 the TYPE_CODE of encoding_type's base type.
1312
1313 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1314
1315 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1316 it starts with '<'.
1317
1318 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1319
1320 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1321 (ada_is_redundant_index_type_desc): New function.
1322 (to_fixed_array_type): Ignore parallel XA type if redundant.
1323
1324 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1325
1326 * ada-lang.c (constrained_packed_array_type): Set the length
1327 of the return array as if both bounds where zero if that
1328 returned array's index type is dynamic.
1329
1330 2014-11-19 Yao Qi <yao@codesourcery.com>
1331
1332 * config/i386/go32.mh (CC): Remove.
1333
1334 2014-11-18 Doug Evans <xdje42@gmail.com>
1335
1336 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1337 updated.
1338
1339 2014-11-18 Doug Evans <xdje42@gmail.com>
1340
1341 * buildsym.c (buildsym_objfile): New static global.
1342 (buildsym_comp_dir): New static global.
1343 (finish_block_internal): Delete arg objfile. All callers updated.
1344 (finish_block): Delete arg objfile. All callers updated.
1345 (start_subfile): Delete arg dirname. All callers updated.
1346 (patch_subfile_names): Update buildsym_comp_dir.
1347 (get_macro_table): Delete arg objfile. All callers updated.
1348 (start_symtab): New arg objfile. All callers updated.
1349 Rename arg dirname to comp_dir.
1350 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1351 (end_symtab_get_static_block): Delete arg objfile. All callers
1352 updated.
1353 (end_symtab_without_blockvector): Ditto.
1354 (end_symtab_with_blockvector): Ditto.
1355 (end_symtab_from_static_block): Ditto.
1356 (end_symtab): Ditto.
1357 (end_expandable_symtab): Ditto.
1358 (augment_type_symtab): Ditto.
1359 * coffread.c (coff_start_symtab): New arg objfile. All callers
1360 updated.
1361
1362 2014-11-18 Doug Evans <xdje42@gmail.com>
1363
1364 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1365 updated.
1366
1367 2014-11-18 Doug Evans <xdje42@gmail.com>
1368
1369 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1370 symtab.dirname updated to use it.
1371
1372 2014-11-18 Doug Evans <xdje42@gmail.com>
1373
1374 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1375 symtab.objfile updated to use it.
1376
1377 2014-11-18 Doug Evans <xdje42@gmail.com>
1378
1379 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1380
1381 2014-11-18 Doug Evans <xdje42@gmail.com>
1382
1383 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1384 SYMBOL_OBJFILE.
1385 * findvar.c (default_read_var_value): Ditto.
1386 * jv-lang.c (add_class_symtab_symbol): Ditto.
1387 * parse.c (operator_check_standard): Ditto.
1388 * printcmd.c (address_info): Ditto.
1389 * symtab.c (fixup_symbol_section): Ditto.
1390 (skip_prologue_sal): Ditto.
1391 * tracepoint.c (scope_info): Ditto.
1392 * valops.c (find_function_in_inferior): Ditto.
1393 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1394 * python/py-symbol.c (set_symbol): Ditto.
1395
1396 2014-11-18 Doug Evans <xdje42@gmail.com>
1397
1398 * buildsym.c (main_subfile): New static global.
1399 (free_subfiles_list): New function.
1400 (start_symtab): Set main_subfile.
1401 (restart_symtab): Replace init of subfiles, current_subfile with
1402 call to free_subfiles_list.
1403 (watch_main_source_file_lossage): Use main_subfile.
1404 (reset_symtab_globals): Replace init of current_subfile with call
1405 to free_subfiles_list.
1406 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1407 functions, split out from ...
1408 (end_symtab_from_static_block): ... here. Rewrite to call them.
1409
1410 2014-11-18 Doug Evans <xdje42@gmail.com>
1411
1412 The result of symtab expansion is always a primary symtab.
1413 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1414 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1415 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1416 (psymtab_to_symtab): Add comment and assert.
1417 (map_matching_symbols_psymtab): Remove unnecessary test for
1418 non-primary symtab.
1419
1420 2014-11-15 Doug Evans <xdje42@gmail.com>
1421
1422 PR symtab/17559
1423 * symtab.c (find_pc_line_symtab): New function.
1424 * symtab.h (find_pc_line_symtab): Declare.
1425 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1426 find_pc_symtab.
1427 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1428 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1429 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1430 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1431 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1432 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1433
1434 2014-11-15 Doug Evans <xdje42@gmail.com>
1435
1436 * symtab.c (expand_symtab_containing_pc): Renamed from
1437 find_pc_sect_symtab_via_partial. All callers updated.
1438
1439 2014-11-15 Yao Qi <yao@codesourcery.com>
1440
1441 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1442
1443 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1444
1445 * common/common-defs.h: Move <stdarg.h> #include ahead of
1446 <stdio.h> #include.
1447
1448 2014-11-14 Pedro Alves <palves@redhat.com>
1449
1450 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1451 [!PHONY_ICONV] (gdb_iconv): New function.
1452 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1453
1454 2014-11-13 Doug Evans <dje@google.com>
1455
1456 PR symtab/17591
1457 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1458 "(anonymous namespace)".
1459
1460 2014-11-13 Doug Evans <dje@google.com>
1461
1462 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1463 infinite loop.
1464
1465 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1466
1467 * NEWS (maint set target-async): Fix typo.
1468
1469 2014-11-12 Pedro Alves <palves@redhat.com>
1470
1471 * infrun.c (enum infwait_states, infwait_state): Delete.
1472
1473 2014-11-12 Pedro Alves <palves@redhat.com>
1474
1475 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1476 Rewrite stepping over a permanent breakpoint.
1477 (thread_still_needs_step_over, proceed): Don't set
1478 stepping_over_breakpoint for permanent breakpoints.
1479 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1480 single-step breakpoints out of the target on hardware step
1481 targets.
1482 (process_event_stop_test): If stepping a permanent breakpoint
1483 doesn't hit the step-resume breakpoint, delete the step-resume
1484 breakpoint.
1485 (switch_back_to_stepped_thread): Also check if the stepped thread
1486 has advanced already on hardware step targets.
1487 (currently_stepping): Return true if the thread stepped a
1488 breakpoint.
1489
1490 2014-11-12 Pedro Alves <palves@redhat.com>
1491
1492 Mark locations as permanent, not the whole breakpoint.
1493 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1494 (mark_breakpoints_out): Don't mark permanent breakpoints as
1495 uninserted.
1496 (breakpoint_init_inferior): Use mark_breakpoints_out.
1497 (breakpoint_here_p): Adjust.
1498 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1499 of permanent breakpoints.
1500 (make_breakpoint_permanent): Mark each location as permanent,
1501 instead of marking the breakpoint.
1502 (add_location_to_breakpoint): If the location is permanent, mark
1503 it as such, and as inserted.
1504 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1505 (bp_location_compare, update_global_location_list): Adjust.
1506 (update_breakpoint_locations): Don't make the breakpoint permanent
1507 here.
1508 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1509 breakpoints.
1510 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1511 (struct bp_location) <permanent>: New field.
1512 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1513 reference to bp_permanent.
1514
1515 2014-11-12 Pedro Alves <palves@redhat.com>
1516
1517 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1518 * arch-utils.h (default_skip_permanent_breakpoint): New
1519 declaration.
1520 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1521 Install default_skip_permanent_breakpoint as default method.
1522 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1523 (i386_gdbarch_init): Don't install it.
1524 * infrun.c (resume): Assume there's always a
1525 gdbarch_skip_permanent_breakpoint implementation.
1526 * gdbarch.h, gdbarch.c: Regenerate.
1527
1528 2014-11-11 Daniel Colascione <dancol@dancol.org>
1529
1530 Warn about cross-PID-namespace debugging.
1531 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1532 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1533 * linux-thread-db.c (check_pid_namespace_match): New function.
1534 (thread_db_inferior_created): Call it.
1535
1536 2014-11-10 Doug Evans <xdje42@gmail.com>
1537
1538 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1539 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1540
1541 2014-11-10 Doug Evans <xdje42@gmail.com>
1542
1543 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1544
1545 2014-11-10 Doug Evans <xdje42@gmail.com>
1546
1547 PR symtab/17564
1548 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1549 (lookup_static_symbol): Move definition to new location and rewrite.
1550 (lookup_symbol_in_objfile): New function.
1551 (lookup_symbol_global_iterator_cb): Call it.
1552
1553 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1554
1555 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1556
1557 2014-11-07 Pedro Alves <palves@redhat.com>
1558
1559 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1560 check if we did a "nexti" inside a prologue.
1561 * symtab.c (in_prologue): Delete function.
1562 * symtab.h (in_prologue): Delete declaration.
1563
1564 2014-11-06 Doug Evans <xdje42@gmail.com>
1565
1566 * symtab.h (lookup_global_symbol): Improve function comment.
1567
1568 2014-11-06 Doug Evans <xdje42@gmail.com>
1569
1570 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1571 All callers updated.
1572 * symtab.h (lookup_global_symbol): Update decl.
1573 (lookup_static_symbol): Move decl to better location.
1574
1575 2014-11-06 Doug Evans <xdje42@gmail.com>
1576
1577 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1578
1579 2014-11-06 Doug Evans <xdje42@gmail.com>
1580
1581 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1582 All callers updated.
1583 (lookup_symbol_in_all_objfiles): Renamed from
1584 lookup_symbol_aux_symtabs. All callers updated.
1585 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1586 All callers updated.
1587 (lookup_symbol_in_objfile_symtabs): Renamed from
1588 lookup_symbol_aux_objfile. All callers updated.
1589
1590 2014-11-06 Doug Evans <xdje42@gmail.com>
1591
1592 * symtab.c (lookup_symbol_in_block): Renamed from
1593 lookup_symbol_aux_block. All callers updated.
1594
1595 2014-11-06 Doug Evans <xdje42@gmail.com>
1596
1597 * symtab.c (lookup_static_symbol): Renamed from
1598 lookup_static_symbol_aux. All callers updated.
1599 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1600 All callers updated.
1601
1602 2014-11-06 Doug Evans <xdje42@gmail.com>
1603
1604 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1605 * block.c (block_lookup_symbol): Use it.
1606 * cp-support.c (make_symbol_overload_list_block): Use it.
1607 * symtab.c (iterate_over_symbols): Use it.
1608
1609 2014-11-06 Doug Evans <xdje42@gmail.com>
1610
1611 * symtab.c (lookup_block_symbol): Moved to ...
1612 * block.c (block_lookup_symbol): ... here and renamed.
1613 All callers updated.
1614 * block.h (block_lookup_symbol): Declare.
1615 * symtab.h (lookup_block_symbol): Delete.
1616
1617 2014-11-06 Doug Evans <xdje42@gmail.com>
1618
1619 * ada-lang.c (ada_make_symbol_completion_list): Use
1620 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1621 * symtab.c (lookup_objfile_from_block): Ditto.
1622
1623 2014-11-06 Doug Evans <xdje42@gmail.com>
1624
1625 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1626 TYPE_CODE_STRUCT.
1627
1628 2014-11-06 Doug Evans <xdje42@gmail.com>
1629
1630 * objfiles.c (get_objfile_arch): Constify.
1631 * objfiles.h (get_objfile_arch): Update prototype.
1632 * solib.c (solib_global_lookup): Fetch arch from objfile,
1633 not target_gdbarch.
1634
1635 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1636
1637 * nios2-tdep.c (wild_insn): Delete.
1638 (profiler_insn, irqentry_insn): Delete.
1639 (nios2_match_sequence): Delete.
1640 (nios2_analyze_prologue): Update comments. Remove matching
1641 of obsolete profiler_insn and irqentry_insn sequences.
1642
1643 2014-11-05 Alan Modra <amodra@gmail.com>
1644
1645 * charset.c (convert_between_encodings): Shrink obstack using
1646 obstack_blank_fast.
1647 * minsyms.c (install_minimal_symbols): Likewise.
1648 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1649 to char* before doing pointer arithmetic.
1650
1651 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1652
1653 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1654
1655 2014-11-04 Pedro Alves <palves@redhat.com>
1656
1657 * breakpoint.c (breakpoint_thread_match): Delete function.
1658 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1659
1660 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1661
1662 PR c++/17494
1663 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1664 the method args also under EVAL_SKIP when evaluating method
1665 calls under EVAL_SKIP.
1666
1667 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1668
1669 * dwarf2loc.c (read_pieced_value): Do big endian
1670 processing only if gdb_regnum is not -1.
1671 (write_pieced_value): Ditto.
1672
1673 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1674
1675 * arm-linux-tdep.c (arm_linux_init_abi): Use
1676 info.byte_order_for_code to choose endianity of breakpoint
1677 instructions snippets.
1678
1679 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1680
1681 * arm-tdep.c (extract_arm_insn): Use
1682 gdbarch_byte_order_for_code to read arm instruction.
1683
1684 2014-11-02 Doug Evans <xdje42@gmail.com>
1685
1686 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1687
1688 2014-11-02 Doug Evans <xdje42@gmail.com>
1689
1690 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1691 main_subfile before returning.
1692
1693 2014-10-31 Doug Evans <xdje42@gmail.com>
1694
1695 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1696 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1697
1698 2014-10-31 Doug Evans <xdje42@gmail.com>
1699
1700 * valops.c (value_cast_pointers): Fix whitespace.
1701 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1702 Ditto.
1703
1704 2014-10-30 Doug Evans <dje@google.com>
1705
1706 * NEWS: Mention ability add attributes to gdb.Objfile and
1707 gdb.Progspace objects.
1708 * python/py-objfile.c (objfile_object): New member dict.
1709 (objfpy_dealloc): Py_XDECREF dict.
1710 (objfpy_initialize): Initialize dict.
1711 (objfile_getset): Add __dict__.
1712 (objfile_object_type): Set tp_dictoffset member.
1713 * python/py-progspace.c (progspace_object): New member dict.
1714 (pspy_dealloc): Py_XDECREF dict.
1715 (pspy_initialize): Initialize dict.
1716 (pspace_getset): Add __dict__.
1717 (pspace_object_type): Set tp_dictoffset member.
1718
1719 2014-10-30 Yao Qi <yao@codesourcery.com>
1720
1721 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1722 replace '\\' with '\\\\'.
1723
1724 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1725
1726 GDB 7.8.1 released.
1727
1728 2014-10-29 Pedro Alves <palves@redhat.com>
1729
1730 PR gdb/17408
1731 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1732 instead of assuming a thread with a stepping range is always
1733 stepping.
1734
1735 2014-10-29 Pedro Alves <palves@redhat.com>
1736
1737 PR python/17372
1738 * event-top.c (change_line_handler): Call
1739 gdb_rl_callback_handler_remove instead of
1740 rl_callback_handler_remove.
1741 (callback_handler_installed): New global.
1742 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1743 (gdb_rl_callback_handler_reinstall): New functions.
1744 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1745 gdb_rl_callback_handler_install instead of
1746 rl_callback_handler_remove and rl_callback_handler_install.
1747 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1748 instead of rl_callback_handler_remove.
1749 * event-top.h (gdb_rl_callback_handler_remove)
1750 (gdb_rl_callback_handler_install)
1751 (gdb_rl_callback_handler_reinstall): New declarations.
1752 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1753 cleanup function.
1754 (fetch_inferior_event): Install it.
1755 * top.c (gdb_readline_wrapper_line) Call
1756 gdb_rl_callback_handler_remove instead of
1757 rl_callback_handler_remove.
1758 (gdb_readline_wrapper_cleanup): Don't call
1759 rl_callback_handler_install.
1760
1761 2014-10-29 Pedro Alves <palves@redhat.com>
1762
1763 * event-top.c (command_line_handler): Clear the first byte of
1764 linebuffer, when it is first allocated.
1765
1766 2014-10-29 Pedro Alves <palves@redhat.com>
1767
1768 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1769 TRY_CATCH.
1770
1771 2014-10-29 Pedro Alves <palves@redhat.com>
1772
1773 PR tui/16138
1774 PR tui/17519
1775 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1776 (tui_allowed_p): Delete function.
1777 * tui/tui.c: Include "interps.h".
1778 (tui_enable): Don't use tui_allowed_p. Error out here with
1779 detailed error messages if the TUI is the top level interpreter,
1780 or if output is not a terminal. Use newterm instead of initscr,
1781 and error out if initializing the terminal fails. Also error out if
1782 the terminal doesn't support cursor addressing.
1783 * tui/tui.h (tui_allowed_p): Delete declaration.
1784
1785 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1786
1787 * arm-tdep.c (arm_skip_stack_protector): Return early if
1788 address loaded by first "ldr" instruction does not have
1789 a corresponding minimal symbol. Update comment.
1790
1791 2014-10-29 Yao Qi <yao@codesourcery.com>
1792
1793 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1794 loaded address correctly of ldr instruction.
1795
1796 2014-10-28 Pedro Alves <palves@redhat.com>
1797
1798 PR gdb/12623
1799 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1800 field.
1801 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1802 thread's stepped_breakpoint field. Skip if reverse debugging.
1803 Add comment.
1804 (init_thread_stepping_state, handle_signal_stop): Clear the
1805 thread's stepped_breakpoint field.
1806
1807 2014-10-27 Pedro Alves <palves@redhat.com>
1808
1809 * remote.c (remote_thread_alive): New, factored out from ...
1810 (remote_thread_alive): ... this.
1811 (remote_update_thread_list): Bail out before deleting threads if
1812 the target returned an empty list, and, the current thread has a
1813 magic/fake ptid.
1814
1815 2014-10-27 Pedro Alves <palves@redhat.com>
1816
1817 * infrun.c (handle_signal_stop): Also skip handlers when a random
1818 signal arrives while handling a "stepi" or a "nexti". Set the
1819 thread's 'step_after_step_resume_breakpoint' flag.
1820
1821 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1822
1823 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1824 (arm_record_ld_st_imm_offset): Reimplement to cover all
1825 load/store cases for ARM opcode 010.
1826 (arm_record_ld_st_multiple): Reimplement to cover all
1827 load/store cases for ARM opcode 100.
1828
1829 2014-10-26 Doug Evans <xdje42@gmail.com>
1830
1831 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1832
1833 2014-10-26 Doug Evans <xdje42@gmail.com>
1834
1835 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1836 parameter "kind" to "block_index".
1837 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1838 "block_index".
1839 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1840
1841 2014-10-26 Doug Evans <xdje42@gmail.com>
1842
1843 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1844
1845 2014-10-26 Doug Evans <xdje42@gmail.com>
1846
1847 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1848 obstack_alloc.
1849
1850 2014-10-26 Doug Evans <xdje42@gmail.com>
1851
1852 * parser-defs.h (block_found): Move decl from here ...
1853 * symtab.h (block_found): ... to here.
1854
1855 2014-10-26 Doug Evans <xdje42@gmail.com>
1856
1857 * symtab.h (struct field_of_this_result): Fix typo in comment.
1858 (lookup_symbol_in_language): Move function comment here.
1859 (lookup_symbol): Improve function comment.
1860 (basic_lookup_symbol_nonlocal): Ditto.
1861 (lookup_symbol_static, lookup_symbol_global): Ditto.
1862 (lookup_symbol_aux_block): Ditto.
1863 (lookup_language_this): Add function comment.
1864 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1865 function comment.
1866 (lookup_block_symbol): Improve function comment.
1867 (lookup_struct): Fix capitalization in function comment.
1868 (lookup_transparent_type): Add function comment.
1869 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1870 Improve function comment.
1871 (lookup_objfile_from_block): Add function comment.
1872 * symtab.c (lookup_symbol_in_language): Update function comment.
1873 (lookup_symbol, lookup_language_this): Ditto.
1874 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1875 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1876 (basic_lookup_symbol_nonlocal): Ditto.
1877 (lookup_symbol_static, lookup_symbol_global): Ditto.
1878 (lookup_transparent_type, lookup_block_symbol): Ditto.
1879
1880 2014-10-25 Doug Evans <xdje42@gmail.com>
1881
1882 * symtab.c (types_info): Delete forward decl.
1883 (functions_info, variables_info, sources_info): Ditto.
1884 (_initialize_symtab): Rewrite forward decl to use
1885 initialize_file_ftype.
1886
1887 2014-10-25 Doug Evans <xdje42@gmail.com>
1888
1889 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1890
1891 2014-10-25 Doug Evans <xdje42@gmail.com>
1892
1893 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1894 of local var child_die.
1895
1896 2014-10-24 Don Breazeal <donb@codesourcery.com>
1897
1898 * infrun.c (follow_fork_inferior): Update fork message printing
1899 to use target_terminal_ours_for_output instead of
1900 target_terminal_ours, to use _() for all format strings, to print
1901 "vfork" instead of "fork" for vforks, and to add a detach message.
1902 (handle_vfork_child_exec_or_exit): Update message printing to use
1903 target_terminal_ours_for_output instead of target_terminal_ours, to
1904 use _() for all format strings, and to fix some formatting.
1905
1906 2014-10-24 Pedro Alves <palves@redhat.com>
1907
1908 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1909 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1910 * config/vax/vax.mh: Delete.
1911 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1912 obsolete configurations section.
1913 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1914 * vax-nat.c: Delete file.
1915
1916 2014-10-24 Pedro Alves <palves@redhat.com>
1917
1918 * NEWS (Removed targets): Add OS/arch column.
1919
1920 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1921
1922 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1923 on the arg type of a constructor only if it is of reference type.
1924
1925 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1926
1927 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1928 accessors and constants from nios2 opcodes update.
1929 (nios2_get_next_pc): Likewise.
1930
1931 2014-10-19 Doug Evans <xdje42@gmail.com>
1932
1933 * gdbthread.h (set_running): Fix comment.
1934 (set_executing, finish_thread_state): Fix comment.
1935
1936 2014-10-18 Doug Evans <xdje42@gmail.com>
1937
1938 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1939
1940 2014-10-17 Doug Evans <dje@google.com>
1941
1942 * NEWS: Mention new event gdb.clear_objfiles.
1943 * python/py-event.h (emit_clear_objfiles_event): Clear
1944 * python/py-events.h (events_object): New member clear_objfiles.
1945 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1946 event.
1947 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1948 emit clear_objfiles event.
1949 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1950 function.
1951 (emit_clear_objfiles_event): New function.
1952 (clear_objfiles): New event.
1953 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1954 Declare.
1955 * python/python.c (_initialize_python): Call
1956 gdbpy_initialize_clear_objfiles_event.
1957
1958 2014-10-17 Doug Evans <dje@google.com>
1959
1960 * NEWS: Mention new gdb.Objfile.progspace attribute.
1961 * python/py-objfile.c (objfpy_get_progspace): New function.
1962 (objfile_getset): New entry for "progspace".
1963
1964 2014-10-17 Pedro Alves <palves@redhat.com>
1965
1966 PR gdb/17471
1967 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1968 returns a copy of the input.
1969 (run_command_1, continue_command, step_1, jump_command)
1970 (signal_command, until_command, advance_command, finish_command)
1971 (attach_command): Adjust and install a cleanup to free the
1972 stripped args.
1973
1974 2014-10-17 Pedro Alves <palves@redhat.com>
1975
1976 PR gdb/17300
1977 * infcmd.c (continue_1): If continuing all threads in the
1978 foreground, make sure the inferior's terminal settings are put in
1979 effect.
1980
1981 2014-10-17 Pedro Alves <palves@redhat.com>
1982
1983 PR gdb/17472
1984 * annotate.c (annotate_breakpoints_invalid): Use
1985 target_terminal_our_for_output instead of target_terminal_ours.
1986 Give back the terminal to the target.
1987 (annotate_frames_invalid): Likewise.
1988
1989 2014-10-17 Pedro Alves <palves@redhat.com>
1990
1991 * target.c (enum terminal_state): New enum.
1992 (terminal_state): New global.
1993 (target_terminal_init): New function.
1994 (target_terminal_inferior): Skip if inferior already owns the
1995 terminal.
1996 (target_terminal_ours, target_terminal_ours_for_output): New
1997 functions.
1998 * target.h (target_terminal_init): Convert to function prototype.
1999 (target_terminal_ours_for_output): Convert to function prototype
2000 and tweak comment.
2001 (target_terminal_ours): Convert to function prototype and tweak
2002 comment.
2003 * windows-nat.c (do_initial_windows_stuff): Call
2004 target_terminal_init instead of child_terminal_init_with_pgrp.
2005
2006 2014-10-17 Pedro Alves <palves@redhat.com>
2007
2008 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2009 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2010 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2011 solib-osf.c.
2012 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2013 * ada-lang.h [__alpha__ && __osf__]
2014 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2015 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2016 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2017 GDB_OSABI_OSF1.
2018 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2019 files.
2020 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2021 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2022 * configure: Regenerate.
2023 * configure.ac: Remove references to osf.
2024 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2025 section. Remove all other references to osf.
2026 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2027 Remove all other references to osf.
2028 * dec-thread.c: Delete file.
2029 * defs.h (GDB_OSABI_OSF1): Delete.
2030 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2031 defined.
2032 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2033 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2034 Delete code.
2035 (unconditionally_kill_inferior)
2036 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2037 * solib-osf.c: Delete file.
2038
2039 2014-10-17 Pedro Alves <palves@redhat.com>
2040
2041 * remote.c (clear_threads_listing_context): Move higher up, out of
2042 the HAVE_LIBEXPAT guard.
2043
2044 2014-10-16 Tristan Gingold <gingold@adacore.com>
2045
2046 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2047 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2048 on amd64.
2049
2050 2014-10-15 Pedro Alves <palves@redhat.com>
2051
2052 * dec-thread.c (dec_thread_count_gdb_threads)
2053 (dec_thread_add_gdb_thread): Delete.
2054 (dec_thread_update_thread_list): Delete.
2055 (dec_thread_find_new_threads): Rename to ...
2056 (dec_thread_update_thread_list): ... this. Delete GDB-size
2057 threads that are no longer found in dec_thread_list.
2058 (resync_thread_list): Delete.
2059 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2060 resync_thread_list.
2061
2062 2014-10-15 Pedro Alves <palves@redhat.com>
2063
2064 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2065 * remote.c (remote_update_thread_list): Skip calling prune_threads
2066 if any thread listing method is supported, and instead walk over
2067 the set of remote threads listed, deleting those that are not
2068 found in GDB's thread list.
2069
2070 2014-10-15 Pedro Alves <palves@redhat.com>
2071
2072 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2073 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2074 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2075 (bsd_uthread_target): Adjust.
2076 * corelow.c (core_open): Adjust.
2077 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2078 (dec_thread_update_thread_list): New function.
2079 (init_dec_thread_ops): Adjust.
2080 * gdbthread.h (prune_threads): New declaration.
2081 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2082 (thread_db_update_thread_list): ... this. Call prune_threads.
2083 (init_thread_db_ops): Adjust.
2084 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2085 (procfs_update_thread_list): ... this. Call prune_threads.
2086 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2087 Adjust.
2088 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2089 (obsd_update_thread_list): ... this. Call prune_threads.
2090 (obsd_add_target): Adjust.
2091 * procfs.c (procfs_target): Adjust.
2092 (procfs_notice_thread): Update comment.
2093 (procfs_find_new_threads): Rename to ...
2094 (procfs_update_thread_list): ... this. Call prune_threads.
2095 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2096 comment.
2097 (ravenscar_wait): Adjust.
2098 (ravenscar_find_new_threads): Rename to ...
2099 (ravenscar_update_thread_list): ... this. Call prune_threads.
2100 (init_ravenscar_thread_ops): Adjust.
2101 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2102 (record_btrace_update_thread_list): ... this. Adjust comment.
2103 (init_record_btrace_ops): Adjust.
2104 * remote.c (remote_threads_info): Rename to ...
2105 (remote_update_thread_list): ... this. Call prune_threads.
2106 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2107 Adjust.
2108 * sol-thread.c (check_for_thread_db): Adjust.
2109 (sol_find_new_threads_callback): Rename to ...
2110 (sol_update_thread_list_callback): ... this.
2111 (sol_find_new_threads): Rename to ...
2112 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2113 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2114 * target-delegates.c: Regenerate.
2115 * target.c (target_find_new_threads): Rename to ...
2116 (target_update_thread_list): ... this.
2117 * target.h (struct target_ops): Rename to_find_new_threads field
2118 to to_update_thread_list.
2119 (target_find_new_threads): Rename to ...
2120 (target_update_thread_list): ... this.
2121 * thread.c (prune_threads): Make extern.
2122 (update_thread_list): Adjust.
2123
2124 2014-10-15 Pedro Alves <palves@redhat.com>
2125
2126 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2127 Add describing comment. Return -1 if the qL packet is not
2128 supported.
2129 (struct thread_item, thread_item_t): Move higher up in
2130 the file. Add comments.
2131 (struct threads_parsing_context): Move higher up in
2132 the file, add comments, and remote to ...
2133 (struct threads_listing_context): ... this.
2134 (remote_newthread_step): Don't add the thread to GDB's thread
2135 database here. Instead push it to the thread_listing_context
2136 list.
2137 (remote_find_new_threads): Rename to ...
2138 (remote_get_threads_with_ql): ... this. Add target_ops and
2139 targets_listing_context parameters. Pass down context.
2140 (start_thread): Adjust.
2141 (clear_threads_parsing_context): Rename to ...
2142 (clear_threads_listing_context): ... this.
2143 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2144 remote_threads_info.
2145 (remote_get_threads_with_qthreadinfo): Ditto.
2146 (remote_threads_info): Reimplement.
2147
2148 2014-10-15 Pedro Alves <palves@redhat.com>
2149
2150 * infrun.c (resume): Don't force displaced-stepping for all
2151 single-steps on software single-stepping archs.
2152
2153 2014-10-15 Pedro Alves <palves@redhat.com>
2154
2155 * breakpoint.c (single_step_breakpoints): Delete global.
2156 (insert_single_step_breakpoint): Adjust to store the breakpoint
2157 pointer in the current thread.
2158 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2159 (cancel_single_step_breakpoints): Delete functions.
2160 (breakpoint_has_location_inserted_here): Make extern.
2161 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2162 breakpoint list.
2163 * breakpoint.h (breakpoint_has_location_inserted_here): New
2164 declaration.
2165 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2166 (cancel_single_step_breakpoints): Remove declarations.
2167 * gdbthread.h (struct thread_control_state)
2168 <single_step_breakpoints>: New field.
2169 (delete_single_step_breakpoints)
2170 (thread_has_single_step_breakpoints_set)
2171 (thread_has_single_step_breakpoint_here): New declarations.
2172 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2173 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2174 (singlestep_pc): Delete globals.
2175 (infrun_thread_ptid_changed): Remove references to removed
2176 globals.
2177 (resume_cleanups): Delete the current thread's single-step
2178 breakpoints.
2179 (maybe_software_singlestep): Remove references to removed globals.
2180 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2181 delete_single_step_breakpoints.
2182 (init_wait_for_inferior): Remove references to removed globals.
2183 (delete_thread_infrun_breakpoints): Delete the thread's
2184 single-step breakpoints too.
2185 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2186 single-step breakpoints here.
2187 (delete_stopped_threads_single_step_breakpoints): New function.
2188 (adjust_pc_after_break): Adjust to use
2189 thread_has_single_step_breakpoints_set.
2190 (handle_inferior_event): Remove references to removed globals.
2191 Use delete_stopped_threads_single_step_breakpoints.
2192 (handle_signal_stop): Adjust to per-thread single-step
2193 breakpoints. Swap test order to do cheaper tests first.
2194 (switch_back_to_stepped_thread): Extend debug output. Remove
2195 references to removed globals.
2196 * record-full.c (record_full_wait_1): Adjust to per-thread
2197 single-step breakpoints.
2198 * thread.c (delete_single_step_breakpoints)
2199 (thread_has_single_step_breakpoints_set)
2200 (thread_has_single_step_breakpoint_here): New functions.
2201 (clear_thread_inferior_resources): Also delete the thread's
2202 single-step breakpoints.
2203
2204 2014-10-15 Pedro Alves <palves@redhat.com>
2205
2206 * thread.c (delete_thread_breakpoint): New function.
2207 (delete_step_resume_breakpoint)
2208 (delete_exception_resume_breakpoint): Use it.
2209 (delete_at_next_stop): New function.
2210 (clear_thread_inferior_resources): Use delete_at_next_stop.
2211
2212 2014-10-15 Pedro Alves <palves@redhat.com>
2213
2214 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2215 (breakpoint_inserted_here_p): ... here. Remove special case for
2216 software single-step breakpoints.
2217 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2218 (software_breakpoint_inserted_here_p): ... here. Remove special
2219 case for software single-step breakpoints.
2220 (bp_target_info_copy_insertion_state)
2221 (deprecated_insert_raw_breakpoint)
2222 (deprecated_remove_raw_breakpoint): Delete functions.
2223 * breakpoint.h (deprecated_insert_raw_breakpoint)
2224 (deprecated_remove_raw_breakpoint): Remove declarations.
2225
2226 2014-10-15 Pedro Alves <palves@redhat.com>
2227
2228 PR breakpoints/9649
2229 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2230 Delete array globals.
2231 (single_step_breakpoints): New global.
2232 (breakpoint_xfer_memory): Remove special handling for single-step
2233 breakpoints.
2234 (update_breakpoints_after_exec): Delete bp_single_step
2235 breakpoints.
2236 (detach_breakpoints): Remove special handling for single-step
2237 breakpoints.
2238 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2239 (bpstat_stop_status): Add comment.
2240 (bpstat_what, bptype_string, print_one_breakpoint_location)
2241 (adjust_breakpoint_address, init_bp_location): Handle
2242 bp_single_step.
2243 (new_single_step_breakpoint): New function.
2244 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2245 handling for single-step breakpoints.
2246 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2247 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2248 Rewrite.
2249 (detach_single_step_breakpoints, find_single_step_breakpoint):
2250 Delete functions.
2251 (breakpoint_has_location_inserted_here): New function.
2252 (single_step_breakpoint_inserted_here_p): Rewrite.
2253 * breakpoint.h: Remove FIXME.
2254 (enum bptype) <bp_single_step>: New enum value.
2255 (insert_single_step_breakpoint): Update comment.
2256 * infrun.c (resume_cleanups)
2257 (delete_step_thread_step_resume_breakpoint): Remove single-step
2258 breakpoints.
2259 (fetch_inferior_event): Install a cleanup that removes infrun
2260 breakpoints.
2261 (switch_back_to_stepped_thread) <expect thread advanced also>:
2262 Clear step-over info.
2263
2264 2014-10-15 Pedro Alves <palves@redhat.com>
2265
2266 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2267 (delete_thread_infrun_breakpoints): New function, with parts
2268 salvaged from delete_step_resume_breakpoint_callback.
2269 (delete_step_thread_step_resume_breakpoint): Delete.
2270 (for_each_just_stopped_thread_callback_func): New typedef.
2271 (for_each_just_stopped_thread): New function.
2272 (delete_just_stopped_threads_infrun_breakpoints): New function.
2273 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2274 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2275 ... this. Adjust.
2276 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2277
2278 2014-10-15 Pedro Alves <palves@redhat.com>
2279
2280 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2281 trying to step past a non-steppable watchpoint.
2282 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2283 field.
2284 * infrun.c (struct step_over_info): Add new field
2285 'nonsteppable_watchpoint_p' and adjust comments.
2286 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2287 Adjust.
2288 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2289 (stepping_past_nonsteppable_watchpoint): New function.
2290 (step_over_info_valid_p): Also return true if stepping past a
2291 nonsteppable watchpoint.
2292 (proceed): Adjust call to set_step_over_info. Remove reference to
2293 init_infwait_state.
2294 (init_wait_for_inferior): Remove reference to init_infwait_state.
2295 (waiton_ptid): Delete global.
2296 (struct execution_control_state)
2297 <stepped_after_stopped_by_watchpoint>: Delete field.
2298 (wait_for_inferior, fetch_inferior_event): Always pass
2299 minus_one_ptid to target_wait.
2300 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2301 field.
2302 (init_infwait_state): Delete function.
2303 (handle_inferior_event): Remove infwait_state handling.
2304 (handle_signal_stop) <watchpoints handling>: Adjust after
2305 stepped_after_stopped_by_watchpoint removal. Don't remove
2306 breakpoints here nor set infwait_state. Set the thread's
2307 stepping_over_watchpoint flag, and call keep_going instead.
2308 (keep_going): Handle stepping_over_watchpoint. Adjust
2309 set_step_over_info calls.
2310 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2311 function.
2312
2313 2014-10-15 Pedro Alves <palves@redhat.com>
2314
2315 * infrun.c (step_over_info_valid_p): New function.
2316 (resume): Use step_over_info_valid_p instead of checking the
2317 threads's trap_expected flag.
2318
2319 2014-10-15 Doug Evans <dje@google.com>
2320 Walfred Tedeschi <walfred.tedeschi@intel.com>
2321
2322 PR python/17364
2323 * python/lib/gdb/__init__.py (packages): Add "printer".
2324 * python/lib/gdb/command/bound_registers.py: Moved to ...
2325 * python/lib/gdb/printer/bound_registers.py: ... here.
2326 Add printer to global set of builtin printers. Rename printer from
2327 "bound" to "mpx_bound128".
2328 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2329 registered as global "builtin" printer.
2330 (add_builtin_pretty_printer): New function.
2331 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2332 gdb/printer/__init__.py.
2333
2334 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2335
2336 * Makefile.in (SFILES): Remove d-support.c.
2337 (COMMON_OBS): Remove d-support.o.
2338 * d-lang.h (d_parse_symbol): Remove declaration.
2339 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2340 * d-support.c: Remove file.
2341
2342 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2343
2344 * gdb/infrun.c (process_event_stop_test): Apply
2345 gdbarch_addr_bits_remove to longjmp resume address.
2346
2347 2014-10-15 Pedro Alves <palves@redhat.com>
2348
2349 * regformats/microblaze.dat: Delete file.
2350
2351 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2352
2353 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2354 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2355
2356 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2357
2358 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2359 as non-trivial.
2360
2361 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2362
2363 PR c++/13403
2364 PR c++/15154
2365 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2366 with qualified args.
2367
2368 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2369
2370 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2371 of the case where the second operand is a pointer.
2372 <BINOP_SUB>: Likewise.
2373
2374 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2375
2376 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2377 only if it is not NULL.
2378 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2379 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2380 (struct probe_ops) <clear_semaphore>: Likewise.
2381 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2382 not NULL.
2383 (stop_tracing): Likewise, for clear_semaphore.
2384
2385 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2386
2387 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2388 using language_c, instead of current_language.
2389
2390 2014-10-13 Doug Evans <dje@google.com>
2391
2392 * python/py-objfile.c (objfpy_initialize): New function.
2393 (objfpy_new, objfile_to_objfile_object): Call it.
2394 * python/py-progspace.c (pspy_initialize): New function.
2395 (pspy_new, pspace_to_pspace_object): Call it.
2396
2397 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2398 Jan Kratochvil <jan.kratochvil@redhat.com>
2399
2400 Fix "save breakpoints" for "catch" command.
2401 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2402 newline.
2403
2404 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2405
2406 Fix "save breakpoints" for "disable $bpnum" command.
2407 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2408
2409 2014-10-10 Pedro Alves <palves@redhat.com>
2410
2411 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2412 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2413 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2414 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2415 and been removed.
2416 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2417 * configure.ac: Remove references to IRIX.
2418 * configure.host: Add *-*-irix* to the obsolete hosts section.
2419 Remove all other references to irix.
2420 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2421 Delete files.
2422
2423 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2424
2425 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2426 isn't valid, release the tdesc arch data and return NULL.
2427
2428 2014-10-10 Pedro Alves <palves@redhat.com>
2429
2430 * linux-tdep.c: Include observer.h.
2431 (linux_inferior_data): New global.
2432 (struct linux_info): New structure.
2433 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2434 (get_linux_inferior_data): New functions.
2435 (linux_vsyscall_range): Rename to ...
2436 (linux_vsyscall_range_raw): ... this.
2437 (linux_vsyscall_range): New function; handles caching.
2438 (_initialize_linux_tdep): Register linux_inferior_data. Install
2439 inferior_exit and inferior_appeared observers.
2440
2441 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2442 Pedro Alves <palves@redhat.com>
2443
2444 PR symtab/14466
2445 * solib-svr4.c (svr4_read_so_list): Rename to ...
2446 (svr4_current_sos_1): ... this and change the function comment.
2447 (svr4_current_sos): New function.
2448
2449 2014-10-10 Pedro Alves <palves@redhat.com>
2450
2451 * arch-utils.c (default_vsyscall_range): New function.
2452 * arch-utils.h (default_vsyscall_range): New declaration.
2453 * gdbarch.sh (vsyscall_range): New hook.
2454 * gdbarch.h, gdbarch.c: Regenerate.
2455 * linux-tdep.c (linux_vsyscall_range): New function.
2456 (linux_init_abi): Install linux_vsyscall_range as
2457 vsyscall_range gdbarch hook.
2458 * memrange.c (address_in_mem_range): New function.
2459 * memrange.h (address_in_mem_range): New declaration.
2460 * symfile-mem.c (find_vdso_size): Delete function.
2461 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2462
2463 2014-10-10 Pedro Alves <palves@redhat.com>
2464
2465 * infrun.c (normal_stop): Fix typo in comment.
2466
2467 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2468
2469 PR tdep/9390
2470 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2471 typo when using logical AND to determine instruction type.
2472
2473 2014-10-09 Yao Qi <yao@codesourcery.com>
2474
2475 * infrun.c (handle_signal_stop): Remove local variable
2476 'printed'.
2477
2478 2014-10-08 Stan Shebs <stan@codesourcery.com>
2479
2480 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2481
2482 2014-10-08 Gary Benson <gbenson@redhat.com>
2483
2484 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2485
2486 2014-10-08 Gary Benson <gbenson@redhat.com>
2487
2488 * common/common-defs.h: Include common-exceptions.h.
2489 * exceptions.h: Do not include common-exceptions.h.
2490
2491 2014-10-08 Gary Benson <gbenson@redhat.com>
2492
2493 * common/common-defs.h: Include cleanups.h.
2494 * common/common-exceptions.c: Do not include cleanups.h.
2495 * utils.h: Likewise.
2496
2497 2014-10-08 Gary Benson <gbenson@redhat.com>
2498
2499 * ada-lang.c: Do not include exceptions.h.
2500 * ada-valprint.c: Likewise.
2501 * amd64-tdep.c: Likewise.
2502 * auto-load.c: Likewise.
2503 * block.c: Likewise.
2504 * break-catch-throw.c: Likewise.
2505 * breakpoint.c: Likewise.
2506 * btrace.c: Likewise.
2507 * c-lang.c: Likewise.
2508 * cli/cli-cmds.c: Likewise.
2509 * cli/cli-interp.c: Likewise.
2510 * cli/cli-script.c: Likewise.
2511 * completer.c: Likewise.
2512 * corefile.c: Likewise.
2513 * corelow.c: Likewise.
2514 * cp-abi.c: Likewise.
2515 * cp-support.c: Likewise.
2516 * cp-valprint.c: Likewise.
2517 * darwin-nat.c: Likewise.
2518 * dwarf2-frame-tailcall.c: Likewise.
2519 * dwarf2-frame.c: Likewise.
2520 * dwarf2loc.c: Likewise.
2521 * dwarf2read.c: Likewise.
2522 * eval.c: Likewise.
2523 * event-loop.c: Likewise.
2524 * event-top.c: Likewise.
2525 * f-valprint.c: Likewise.
2526 * frame-unwind.c: Likewise.
2527 * frame.c: Likewise.
2528 * gdbtypes.c: Likewise.
2529 * gnu-v2-abi.c: Likewise.
2530 * gnu-v3-abi.c: Likewise.
2531 * guile/scm-auto-load.c: Likewise.
2532 * guile/scm-breakpoint.c: Likewise.
2533 * guile/scm-cmd.c: Likewise.
2534 * guile/scm-frame.c: Likewise.
2535 * guile/scm-lazy-string.c: Likewise.
2536 * guile/scm-param.c: Likewise.
2537 * guile/scm-symbol.c: Likewise.
2538 * guile/scm-type.c: Likewise.
2539 * hppa-hpux-tdep.c: Likewise.
2540 * i386-tdep.c: Likewise.
2541 * inf-loop.c: Likewise.
2542 * infcall.c: Likewise.
2543 * infcmd.c: Likewise.
2544 * infrun.c: Likewise.
2545 * interps.c: Likewise.
2546 * interps.h: Likewise.
2547 * jit.c: Likewise.
2548 * linespec.c: Likewise.
2549 * linux-nat.c: Likewise.
2550 * linux-thread-db.c: Likewise.
2551 * m32r-rom.c: Likewise.
2552 * main.c: Likewise.
2553 * memory-map.c: Likewise.
2554 * mi/mi-cmd-break.c: Likewise.
2555 * mi/mi-cmd-stack.c: Likewise.
2556 * mi/mi-interp.c: Likewise.
2557 * mi/mi-main.c: Likewise.
2558 * monitor.c: Likewise.
2559 * nto-procfs.c: Likewise.
2560 * objc-lang.c: Likewise.
2561 * p-valprint.c: Likewise.
2562 * parse.c: Likewise.
2563 * ppc-linux-tdep.c: Likewise.
2564 * printcmd.c: Likewise.
2565 * probe.c: Likewise.
2566 * python/py-auto-load.c: Likewise.
2567 * python/py-breakpoint.c: Likewise.
2568 * python/py-cmd.c: Likewise.
2569 * python/py-finishbreakpoint.c: Likewise.
2570 * python/py-frame.c: Likewise.
2571 * python/py-framefilter.c: Likewise.
2572 * python/py-function.c: Likewise.
2573 * python/py-gdb-readline.c: Likewise.
2574 * python/py-inferior.c: Likewise.
2575 * python/py-infthread.c: Likewise.
2576 * python/py-lazy-string.c: Likewise.
2577 * python/py-linetable.c: Likewise.
2578 * python/py-param.c: Likewise.
2579 * python/py-prettyprint.c: Likewise.
2580 * python/py-symbol.c: Likewise.
2581 * python/py-type.c: Likewise.
2582 * python/py-value.c: Likewise.
2583 * python/python-internal.h: Likewise.
2584 * python/python.c: Likewise.
2585 * record-btrace.c: Likewise.
2586 * record-full.c: Likewise.
2587 * regcache.c: Likewise.
2588 * remote-fileio.c: Likewise.
2589 * remote-mips.c: Likewise.
2590 * remote.c: Likewise.
2591 * rs6000-aix-tdep.c: Likewise.
2592 * rs6000-nat.c: Likewise.
2593 * skip.c: Likewise.
2594 * solib-darwin.c: Likewise.
2595 * solib-dsbt.c: Likewise.
2596 * solib-frv.c: Likewise.
2597 * solib-ia64-hpux.c: Likewise.
2598 * solib-spu.c: Likewise.
2599 * solib-svr4.c: Likewise.
2600 * solib.c: Likewise.
2601 * spu-tdep.c: Likewise.
2602 * stack.c: Likewise.
2603 * stap-probe.c: Likewise.
2604 * symfile-mem.c: Likewise.
2605 * symmisc.c: Likewise.
2606 * target.c: Likewise.
2607 * thread.c: Likewise.
2608 * top.c: Likewise.
2609 * tracepoint.c: Likewise.
2610 * tui/tui-interp.c: Likewise.
2611 * typeprint.c: Likewise.
2612 * utils.c: Likewise.
2613 * valarith.c: Likewise.
2614 * valops.c: Likewise.
2615 * valprint.c: Likewise.
2616 * value.c: Likewise.
2617 * varobj.c: Likewise.
2618 * windows-nat.c: Likewise.
2619 * xml-support.c: Likewise.
2620
2621 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2622
2623 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2624 name implies.
2625 (extended_mips16_next_pc): Update accordingly.
2626
2627 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2628
2629 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2630 function.
2631 (micromips_instruction_is_compact_branch): Likewise.
2632 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2633 or a compact jump, reaching a jump delay slot, or seeing a
2634 second non-prologue instruction.
2635 (micromips_scan_prologue): Also terminate scanning upon seeing a
2636 compact branch or jump, or reaching a branch or jump delay slot.
2637 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2638 or jump delay slot, or seeing a second non-prologue instruction.
2639 (mips32_instruction_has_delay_slot): Retain instruction
2640 examination code only, update arguments accordingly and move
2641 instruction fetch pieces to...
2642 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2643 (micromips_instruction_has_delay_slot): Likewise and to...
2644 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2645 (mips16_instruction_has_delay_slot): Likewise and to...
2646 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2647 (mips_single_step_through_delay): Update accordingly.
2648 (mips_adjust_breakpoint_address): Likewise.
2649
2650 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2651
2652 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2653 !mustbe32 also return 1 for 32-bit instructions.
2654 (mips16_instruction_has_delay_slot): Likewise. Add an
2655 explanatory comment.
2656
2657 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2658
2659 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2660 symbols special.
2661
2662 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2663
2664 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2665 update comments.
2666 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2667 for the breakpoint's address. Don't preinitialize `placed_size'.
2668 (insert_bp_location): Set `reqstd_address' rather than
2669 `placed_address'.
2670 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2671 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2672 address.
2673 (bkpt_remove_location): Likewise.
2674 (deprecated_insert_raw_breakpoint): Likewise.
2675 (deprecated_remove_raw_breakpoint): Likewise.
2676 (find_single_step_breakpoint): Likewise.
2677 * mem-break.c (default_memory_insert_breakpoint): Use
2678 `reqstd_address' for the breakpoint's address. Don't set
2679 `placed_address' or `placed_size' if breakpoint contents couldn't
2680 have been determined.
2681 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2682 the breakpoint's address.
2683 (remote_insert_hw_breakpoint): Likewise. Don't set
2684 `placed_address' or `placed_size' if breakpoint couldn't have been
2685 set.
2686 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2687 `reqstd_address' for the breakpoint's address.
2688 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2689 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2690 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2691 * microblaze-linux-tdep.c
2692 (microblaze_linux_memory_remove_breakpoint): Likewise.
2693 * monitor.c (monitor_insert_breakpoint): Likewise.
2694 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2695 (procfs_insert_hw_breakpoint): Likewise.
2696 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2697 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2698 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2699 * remote-mips.c (mips_insert_breakpoint): Likewise.
2700 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2701
2702 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2703
2704 * valops.c (value_assign): Check for bit field assignments
2705 before calling architecture-specific register value
2706 conversion functions.
2707
2708 2014-10-03 Pierre Muller <muller@sourceware.org>
2709
2710 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2711
2712 2014-10-02 Pedro Alves <palves@redhat.com>
2713
2714 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2715 threads_are_executing.
2716 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2717 describing comment.
2718 * gdbthread.h (threads_are_executing): Declare.
2719 (handle_signal_stop) <random signals>: Don't print about the
2720 signal here if stopping.
2721 (end_stepping_range): Don't notify observers here.
2722 (normal_stop): Update the thread list. If stopped by a random
2723 signal or a stepping range ended, notify observers.
2724 * thread.c (threads_executing): New global.
2725 (init_thread_list): Clear 'threads_executing'.
2726 (set_executing): Set or clear 'threads_executing'.
2727 (threads_are_executing): New function.
2728 (update_threads_executing): New function.
2729 (update_thread_list): Use it.
2730
2731 2014-10-02 Pedro Alves <palves@redhat.com>
2732
2733 PR breakpoints/17431
2734 * breakpoint.c (update_breakpoints_after_exec): Don't create
2735 overlay, longjmp, std terminate nor exception breakpoints here.
2736
2737 2014-10-02 Pedro Alves <palves@redhat.com>
2738
2739 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2740 Adjust comments.
2741 * inferior.c (find_inferior_for_program_space): Give preference to
2742 the current inferior.
2743 * inferior.h (find_inferior_for_program_space): Update comment.
2744 * progspace.c (switch_to_program_space_and_thread): Prefer the
2745 current inferior if it's bound to the program space requested. If
2746 the inferior found doesn't have a PID yet, don't bother looking up
2747 a thread.
2748 * progspace.h (switch_to_program_space_and_thread): Adjust
2749 comment.
2750 * thread.c (any_thread_of_process, any_live_thread_of_process):
2751 Give preference to the current thread.
2752
2753 2014-10-01 Pedro Alves <palves@redhat.com>
2754
2755 * breakpoint.c (insert_bp_location): Error out if inserting a
2756 software breakpoint at a read-only address.
2757 * target.c (memory_xfer_check_region): New function, factored out
2758 from ...
2759 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2760 ULONGEST.
2761 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2762 against the memory region attributes.
2763
2764 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2765
2766 * NEWS: Announce new exit-code field in -list-thread-groups
2767 output.
2768 * inferior.c (exit_inferior_1): Don't clear exit code.
2769 (inferior_appeared): Clear exit code.
2770 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2771 code.
2772
2773 2014-10-01 Pedro Alves <palves@redhat.com>
2774
2775 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2776 GENERATED" along with emacs/vi read-only markers.
2777 * regformats/aarch64.dat: Regenerate.
2778 * regformats/arm-with-iwmmxt.dat: Regenerate.
2779 * regformats/arm-with-neon.dat: Regenerate.
2780 * regformats/arm-with-vfpv2.dat: Regenerate.
2781 * regformats/arm-with-vfpv3.dat: Regenerate.
2782 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2783 * regformats/i386/amd64-avx.dat: Regenerate.
2784 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2785 * regformats/i386/amd64-avx512.dat: Regenerate.
2786 * regformats/i386/amd64-linux.dat: Regenerate.
2787 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2788 * regformats/i386/amd64-mpx.dat: Regenerate.
2789 * regformats/i386/amd64.dat: Regenerate.
2790 * regformats/i386/i386-avx-linux.dat: Regenerate.
2791 * regformats/i386/i386-avx.dat: Regenerate.
2792 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2793 * regformats/i386/i386-avx512.dat: Regenerate.
2794 * regformats/i386/i386-linux.dat: Regenerate.
2795 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2796 * regformats/i386/i386-mmx.dat: Regenerate.
2797 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2798 * regformats/i386/i386-mpx.dat: Regenerate.
2799 * regformats/i386/i386.dat: Regenerate.
2800 * regformats/i386/x32-avx-linux.dat: Regenerate.
2801 * regformats/i386/x32-avx.dat: Regenerate.
2802 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2803 * regformats/i386/x32-avx512.dat: Regenerate.
2804 * regformats/i386/x32-linux.dat: Regenerate.
2805 * regformats/i386/x32.dat: Regenerate.
2806 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2807 * regformats/mips-dsp-linux.dat: Regenerate.
2808 * regformats/mips-linux.dat: Regenerate.
2809 * regformats/mips64-dsp-linux.dat: Regenerate.
2810 * regformats/mips64-linux.dat: Regenerate.
2811 * regformats/nios2-linux.dat: Regenerate.
2812 * regformats/rs6000/powerpc-32.dat: Regenerate.
2813 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2814 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2815 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2816 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2817 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2818 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2819 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2820 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2821 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2822 * regformats/s390-linux32.dat: Regenerate.
2823 * regformats/s390-linux32v1.dat: Regenerate.
2824 * regformats/s390-linux32v2.dat: Regenerate.
2825 * regformats/s390-linux64.dat: Regenerate.
2826 * regformats/s390-linux64v1.dat: Regenerate.
2827 * regformats/s390-linux64v2.dat: Regenerate.
2828 * regformats/s390-te-linux64.dat: Regenerate.
2829 * regformats/s390x-linux64.dat: Regenerate.
2830 * regformats/s390x-linux64v1.dat: Regenerate.
2831 * regformats/s390x-linux64v2.dat: Regenerate.
2832 * regformats/s390x-te-linux64.dat: Regenerate.
2833 * regformats/tic6x-c62x-linux.dat: Regenerate.
2834 * regformats/tic6x-c62x.dat: Regenerate.
2835 * regformats/tic6x-c64x-linux.dat: Regenerate.
2836 * regformats/tic6x-c64x.dat: Regenerate.
2837 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2838 * regformats/tic6x-c64xp.dat: Regenerate.
2839
2840 2014-10-01 Pedro Alves <palves@redhat.com>
2841
2842 * features/Makefile: Update comments.
2843 (XMLTOC): List all xml files we build C files from.
2844 (clean-cfiles): New rule.
2845
2846 2014-10-01 Pedro Alves <palves@redhat.com>
2847
2848 * features/i386/amd64-avx512-linux.c: Regenerate.
2849 * features/i386/amd64-avx512.c: Regenerate.
2850 * features/i386/x32-avx512-linux.c: Regenerate.
2851 * features/i386/x32-avx512.c: Regenerate.
2852
2853 2014-10-01 Pedro Alves <palves@redhat.com>
2854
2855 * features/Makefile (WHICH): Remove arm-with-m,
2856 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2857
2858 2014-10-01 Pedro Alves <palves@redhat.com>
2859
2860 * features/Makefile (clean): New rule.
2861
2862 2014-10-01 Pedro Alves <palves@redhat.com>
2863
2864 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2865 (zmm14h): Add missing end quotes.
2866
2867 2014-10-01 Pedro Alves <palves@redhat.com>
2868
2869 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2870 * features/aarch64.c: Regenerate.
2871
2872 2014-09-30 Don Breazeal <donb@codesourcery.com>
2873
2874 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2875 code so as to work with follow_fork_inferior.
2876 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2877 (inf_ttrace_create_inferior): Remove reference to
2878 inf_ttrace_vfork_ppid.
2879 (inf_ttrace_attach): Ditto.
2880 (inf_ttrace_detach): Ditto.
2881 (inf_ttrace_kill): Use current_inferior instead of
2882 inf_ttrace_vfork_ppid.
2883 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2884 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2885 inferior away from the parent.
2886 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2887 target_follow_fork.
2888 (follow_fork_inferior): New function.
2889 (follow_inferior_reset_breakpoints): Make function static.
2890 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2891 * linux-nat.c (linux_child_follow_fork): Move target-independent
2892 code to infrun.c:follow_fork_inferior.
2893
2894 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2895
2896 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2897 * gdbarch.c: Regenerate.
2898 * gdbarch.h: Likewise.
2899 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2900 gdbarch method 'regset_from_core_section'.
2901 (get_core_register_section): Remove handling for the case that
2902 regset == NULL and regset_from_core_section is defined.
2903 (get_core_registers): Drop check for deleted method.
2904 * procfs.c (procfs_do_thread_registers): Adjust comment.
2905
2906 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2907
2908 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2909 (linux_nat_make_corefile_notes): Remove.
2910 (linux_target_install_ops): Do not set target method
2911 'make_corefile_notes'.
2912 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2913 Remove field.
2914 (linux_corefile_thread_callback): Instead of args->collect, call
2915 linux_collect_thread_registers.
2916 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2917 NULL unless there is a regset iterator.
2918 (linux_make_corefile_notes_1): Remove.
2919 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2920 by linux_make_corefile_notes.
2921 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2922
2923 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2924
2925 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2926 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2927 Remove.
2928 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2929
2930 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2931
2932 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2933 (xtensa_iterate_over_regset_sections): New.
2934 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2935
2936 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2937
2938 * vax-tdep.c (vax_regset_from_core_section): Remove.
2939 (vax_iterate_over_regset_sections): New.
2940 (vax_gdbarch_init): Adjust gdbarch initialization.
2941
2942 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2943
2944 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2945 (tilegx_regset_from_core_section): Remove.
2946 (tilegx_iterate_over_regset_sections): New.
2947 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2948
2949 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2950
2951 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2952 (sparc_iterate_over_regset_sections): New.
2953 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2954 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2955 targets.
2956 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2957 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2958 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2959 target method 'make_corefile_notes'.
2960
2961 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2962
2963 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2964 'sizeof_gregset' and 'sizeof_fpregset'.
2965 * sh-tdep.c (sh_regset_from_core_section): Remove.
2966 (sh_iterate_over_regset_sections): New.
2967 (sh_gdbarch_init): Adjust gdbarch initialization.
2968 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2969 sizeof_fpregset.
2970 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2971 'sizeof_gregset'.
2972
2973 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2974
2975 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2976 (score7_linux_iterate_over_regset_sections): New.
2977 (score_gdbarch_init): Adjust gdbarch initialization.
2978
2979 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2980
2981 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2982 FreeBSD targets.
2983 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2984 method 'make_corefile_notes'.
2985 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2986 (ppcfbsd_regset_from_core_section): Remove.
2987 (ppcfbsd_iterate_over_regset_sections): New.
2988 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2989 initialization.
2990 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2991 (ppcnbsd_iterate_over_regset_sections): New.
2992 (ppcnbsd_init_abi): Adjust.
2993 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2994 (ppcobsd_iterate_over_regset_sections): New.
2995 (ppcobsd_init_abi): Adjust.
2996 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2997 (rs6000_aix_iterate_over_regset_sections): New.
2998 (rs6000_aix_init_osabi): Adjust.
2999
3000 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3001
3002 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3003 (nios2_regset_from_core_section): Remove.
3004 (nios2_iterate_over_regset_sections): New.
3005 (nios2_linux_init_abi): Adjust gdbarch initialization.
3006
3007 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3008
3009 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3010 (am33_iterate_over_regset_sections): New.
3011 (am33_linux_init_osabi): Adjust gdbarch initialization.
3012
3013 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3014
3015 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3016 (mips_linux_iterate_over_regset_sections): New.
3017 (mips_linux_init_abi): Adjust gdbarch initialization.
3018 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3019 (mips64obsd_iterate_over_regset_sections): New.
3020 (mips64obsd_init_abi): Adjust.
3021 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3022 (mipsnbsd_iterate_over_regset_sections): New.
3023 (mipsnbsd_init_abi): Adjust.
3024
3025 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3026
3027 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3028 (m88k_iterate_over_regset_sections): New.
3029 (m88k_gdbarch_init): Adjust gdbarch initialization.
3030
3031 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3032
3033 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3034 (ia64_linux_iterate_over_regset_sections): New.
3035 (ia64_linux_init_abi): Adjust gdbarch initialization.
3036
3037 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3038
3039 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3040 (m68kbsd_iterate_over_regset_sections): New.
3041 (m68kbsd_init_abi): Adjust gdbarch initialization.
3042 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3043 (m68k_linux_iterate_over_regset_sections): New.
3044 (m68k_linux_init_abi): Adjust gdbarch initialization.
3045
3046 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3047
3048 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3049 (m32r_linux_regset_from_core_section): Remove.
3050 (m32r_linux_iterate_over_regset_sections): New.
3051 (m32r_linux_init_abi): Adjust gdbarch initialization.
3052
3053 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3054
3055 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3056 (amd64obsd_iterate_over_regset_sections): New.
3057 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3058 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3059 Remove.
3060 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3061 regset_from_core_section initialization.
3062 * i386-tdep.c (i386_regset_from_core_section): Remove.
3063 (i386_iterate_over_regset_sections): New.
3064 (i386_gdbarch_init): Adjust gdbarch initialization.
3065 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3066 (i386_iterate_over_regset_sections): New prototype.
3067 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3068 Remove.
3069 (i386obsd_aout_iterate_over_regset_sections): New.
3070 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3071 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3072 targets.
3073 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3074 (amd64fbsd_init_abi): Call fbsd_init_abi.
3075 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3076 (i386fbsd4_init_abi): Call fbsd_init_abi.
3077 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3078 target method 'make_corefile_notes'.
3079 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3080
3081 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3082
3083 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3084 (hppa_hpux_iterate_over_regset_sections): New.
3085 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3086 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3087 (hppa_linux_iterate_over_regset_sections): New.
3088 (hppa_linux_init_abi): Adjust.
3089 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3090 (hppanbsd_iterate_over_regset_sections): New.
3091 (hppanbsd_init_abi): Adjust.
3092 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3093 (hppaobsd_iterate_over_regset_sections): New.
3094 (hppaobsd_init_abi): Adjust.
3095
3096 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3097
3098 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3099 (frv_linux_iterate_over_regset_sections): New.
3100 (frv_linux_init_abi): Adjust gdbarch initialization.
3101
3102 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3103
3104 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3105 (armbsd_iterate_over_regset_sections): New prototype.
3106 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3107 (armbsd_iterate_over_regset_sections): New.
3108 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3109 initialization.
3110
3111 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3112
3113 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3114 (alpha_linux_iterate_over_regset_sections): New.
3115 (alpha_linux_init_abi): Adjust gdbarch initialization.
3116 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3117 prototype.
3118 (alphanbsd_iterate_over_regset_sections): New prototype.
3119
3120 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3121
3122 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3123 Remove.
3124 (aarch64_linux_iterate_over_regset_sections): New.
3125 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3126
3127 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3128
3129 * fbsd-tdep.c: New file.
3130 * fbsd-tdep.h: New file.
3131 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3132 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3133 (ALLDEPFILES): Add fbsd-tdep.c.
3134
3135 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3136
3137 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3138 parameter.
3139 * gdbarch.h: Regenerate.
3140 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3141 iterator.
3142 (get_core_register_section): Add parameter 'regset' and use it, if
3143 set. Add parameter 'min_size' and verify the bfd section size
3144 against it.
3145 (get_core_registers_cb): Add parameter 'regset' and pass it to
3146 get_core_register section. For the "standard" register sections
3147 ".reg" and ".reg2", set an appropriate default for human_name.
3148 (get_core_registers): Don't abort when the gdbarch has an iterator
3149 but no regset_from_core_section. Add NULL/0 for parameters
3150 'regset'/'min_size' in calls to get_core_register_section.
3151 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3152 'regset' and use it instead of calling the
3153 regset_from_core_section gdbarch method.
3154 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3155 * i386-tdep.c (i386_supply_xstateregset)
3156 (i386_collect_xstateregset, i386_xstateregset): Moved to
3157 i386-linux-tdep.c.
3158 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3159 .reg-xstate.
3160 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3161 core file support only if the regset iterator hasn't been set.
3162 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3163 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3164 Moved from i386-tdep.c and renamed to *_linux*.
3165 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3166 each callback invocation. Allow any .reg-xstate size when reading
3167 from a core file.
3168 * amd64-tdep.c (amd64_supply_xstateregset)
3169 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3170 amd64-linux-tdep.c.
3171 (amd64_regset_from_core_section): Remove.
3172 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3173 install an amd64-specific regset_from_core_section gdbarch method.
3174 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3175 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3176 Moved from amd64-tdep.c and renamed to *_linux*.
3177 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3178 to each callback invocation. Allow any .reg-xstate size when
3179 reading from a core file.
3180 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3181 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3182 each callback invocation.
3183 (arm_linux_init_abi): No longer set the regset_from_core_section
3184 gdbarch method.
3185 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3186 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3187 each callback invocation.
3188 (ppc_linux_init_abi): No longer set the regset_from_core_section
3189 gdbarch method.
3190 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3191 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3192 (s390_regset_from_core_section): Remove.
3193 (s390_iterate_over_regset_sections): Add regset parameter to each
3194 callback invocation.
3195 (s390_gdbarch_init): No longer set the regset_from_core_section
3196 gdbarch method. Drop initialization of deleted tdep fields.
3197
3198 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3199
3200 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3201 (amd64_linux_iterate_over_regset_sections): New.
3202 (amd64_linux_init_abi_common): Don't install the regset section
3203 list, but the new iterator in gdbarch.
3204 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3205 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3206 (arm_linux_iterate_over_regset_sections): ...here. New function.
3207 (arm_linux_init_abi): Set iterator instead of section list.
3208 * corelow.c (get_core_registers_cb): New function, logic moved
3209 from...
3210 (get_core_registers): ...loop body here. Use new iterator method
3211 instead of walking through the regset section list.
3212 * gdbarch.sh: Remove 'core_regset_sections'. New method
3213 'iterate_over_regset_sections'. New typedef
3214 'iterate_over_regset_sections_cb'.
3215 * gdbarch.c: Regenerate.
3216 * gdbarch.h: Likewise.
3217 * i386-linux-tdep.c (i386_linux_regset_sections)
3218 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3219 Remove.
3220 (i386_linux_iterate_over_regset_sections): New.
3221 (i386_linux_init_abi): Don't choose a regset section list, but
3222 install new iterator in gdbarch.
3223 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3224 (linux_collect_regset_section_cb): New function, logic moved
3225 from...
3226 (linux_collect_thread_registers): ...loop body here. Use iterator
3227 method instead of walking through list.
3228 (linux_make_corefile_notes_1): Check for presence of iterator
3229 method instead of regset section list.
3230 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3231 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3232 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3233 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3234 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3235 (ppc_linux_init_abi): Don't choose from above regset section
3236 lists, but install new iterator in gdbarch.
3237 * regset.h (struct core_regset_section): Remove.
3238 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3239 have_linux_v1, have_linux_v2, and have_tdb.
3240 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3241 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3242 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3243 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3244 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3245 (s390_iterate_over_regset_sections): ...here. New function. Use
3246 new tdep fields.
3247 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3248 regset section lists, but install new iterator.
3249
3250 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3251
3252 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3253
3254 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3255
3256 * progspace.c (print_program_space): Don't prune program spaces
3257 before printing them.
3258
3259 2014-09-25 Pedro Alves <palves@redhat.com>
3260
3261 * infrun.c (user_visible_resume_ptid): Don't check
3262 singlestep_breakpoints_inserted_p.
3263
3264 2014-09-25 Pedro Alves <palves@redhat.com>
3265
3266 * breakpoint.c (should_be_inserted): Add debug output.
3267
3268 2014-09-25 Pedro Alves <palves@redhat.com>
3269
3270 * infrun.c (stepping_past_instruction_at)
3271 (clear_exit_convenience_vars): Point at infrun.h instead of
3272 inferior.h.
3273 (handle_signal_stop): Fix typo.
3274
3275 2014-09-24 Yao Qi <yao@codesourcery.com>
3276
3277 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3278 bitmask.
3279
3280 2014-09-22 Gary Benson <gbenson@redhat.com>
3281
3282 * target.c (target_stop): Updated comment.
3283
3284 2014-09-22 Gary Benson <gbenson@redhat.com>
3285
3286 * target/target.h (target_stop_ptid): Renamed as...
3287 (target_stop_and_wait): New function. Updated comment.
3288 All uses updated.
3289 (target_continue_ptid): Renamed as...
3290 (target_continue_no_signal): New function. Updated comment.
3291 All uses updated.
3292
3293 2014-09-22 Pedro Alves <palves@redhat.com>
3294
3295 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3296 and "auto" merged.
3297 * breakpoint.c (enum ugll_insert_mode): New enum.
3298 (always_inserted_mode): Now a plain boolean.
3299 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3300 (breakpoints_always_inserted_mode): Delete.
3301 (breakpoints_should_be_inserted_now): New function.
3302 (insert_breakpoints): Pass UGLL_INSERT to
3303 update_global_location_list instead of calling
3304 insert_breakpoint_locations manually.
3305 (create_solib_event_breakpoint_1): New, factored out from ...
3306 (create_solib_event_breakpoint): ... this.
3307 (create_and_insert_solib_event_breakpoint): Use
3308 create_solib_event_breakpoint_1 instead of calling
3309 insert_breakpoint_locations manually.
3310 (update_global_location_list): Change parameter type from boolean
3311 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3312 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3313 (update_global_location_list_nothrow): Change parameter type from
3314 boolean to enum ugll_insert_mode.
3315 (_initialize_breakpoint): "breakpoint always-inserted" option is
3316 now a boolean command. Update help text.
3317 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3318 (breakpoints_should_be_inserted_now): New declaration.
3319 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3320 Remove breakpoints_always_inserted_mode check.
3321 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3322 * remote.c (remote_start_remote): Likewise.
3323
3324 2014-09-22 Pedro Alves <palves@redhat.com>
3325
3326 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3327 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3328 Instead, pass UGLL_INSERT to update_global_location_list.
3329 (update_global_location_list): Change parameter type from boolean
3330 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3331 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3332 (create_solib_event_breakpoint_1): New, factored out from ...
3333 (create_solib_event_breakpoint): ... this.
3334 (create_and_insert_solib_event_breakpoint): Use
3335 create_solib_event_breakpoint_1 instead of calling
3336 insert_breakpoint_locations manually.
3337 (update_global_location_list): Handle UGLL_INSERT.
3338
3339 2014-09-22 Pedro Alves <palves@redhat.com>
3340
3341 * breakpoint.c (enum ugll_insert_mode): New enum.
3342 (update_global_location_list)
3343 (update_global_location_list_nothrow): Change parameter type from
3344 boolean to enum ugll_insert_mode. All callers adjusted.
3345
3346 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3347
3348 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3349 SystemTap support in GDB.
3350
3351 2014-09-19 Don Breazeal <donb@codesourcery.com>
3352
3353 * linux-nat.c (linux_handle_extended_wait): Call
3354 linux_ptrace_get_extended_event.
3355 (wait_lwp): Call linux_is_extended_waitstatus.
3356 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3357 and linux_is_extended_waitstatus.
3358 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3359 linux_ptrace_get_extended_event.
3360 (linux_ptrace_get_extended_event): New function.
3361 (linux_is_extended_waitstatus): New function.
3362 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3363 (linux_is_extended_waitstatus): New declarations.
3364
3365 2014-09-19 Yao Qi <yao@codesourcery.com>
3366
3367 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3368 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3369 comments. Callers update.
3370 (dwarf_decode_lines): Likewise.
3371 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3372 comments. Skip the line table if 'lowpc' is greater than
3373 'address'. Don't check
3374 dwarf2_per_objfile->has_section_at_zero.
3375
3376 2014-09-18 Doug Evans <dje@google.com>
3377
3378 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3379 * python/py-symtab.c (stpy_get_producer): New function.
3380 (symtab_object_getset): Add "producer" attribute.
3381
3382 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3383
3384 PR gdb/17384
3385 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3386 (do_captured_read_memory_integer): Remove.
3387 (safe_read_memory_integer): Use target_read_memory directly instead
3388 of catching errors in do_captured_read_memory_integer.
3389
3390 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3391
3392 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3393 not gdb/doc.
3394
3395 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3396
3397 * objc-lang.c (find_implementation_from_class): Remove dead code.
3398
3399 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3400
3401 PR cli/7233
3402 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3403 "fprintf_unfiltered (gdb_stdlog...)".
3404
3405 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3406
3407 PR breakpoints/12526
3408 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3409 val_bitsize.
3410 * breakpoint.c (watch_command_1): Use these fields to retain
3411 bitfield information.
3412 (extract_bitfield_from_watchpoint_value): New function.
3413 (watchpoint_check): Use it.
3414 (update_watchpoint): Use it. Optimize the address and length of a
3415 HW watchpoint pointing to a bitfield.
3416 * value.h (unpack_value_bitfield): New prototype.
3417 * value.c (unpack_value_bitfield): Make extern.
3418
3419 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3420
3421 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3422 x86-dregs.o.
3423 * gnu-nat.c (inf_threads): New function.
3424 * gnu-nat.h (inf_threads_ftype): New typedef.
3425 (inf_threads): New declaration.
3426 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3427 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3428 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3429 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3430 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3431 (i386_gnu_dr_get_control): New functions.
3432 (reg_addr): New structure.
3433 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3434 i386 debugging register hooks.
3435 * NEWS: Mention this.
3436
3437 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3438
3439 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3440 vector data transfer instructions.
3441 (arm_record_coproc_data_proc): Updated.
3442
3443 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3444
3445 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3446 arm_record_exreg_ld_st_insn.
3447 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3448 load/store insns.
3449
3450 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3451
3452 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3453 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3454 processing instructions.
3455
3456 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3457
3458 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3459 for advance SIMD struct ld/st insn.
3460 (thumb2_record_decode_insn_handler): Replace stub handler with
3461 thumb2_record_asimd_struct_ld_st.
3462
3463 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3464
3465 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3466 for asimd, vfp and coprocessor insns.
3467 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3468 and coprocessor insns.
3469 (thumb2_record_coproc_insn): New function.
3470 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3471 handlers.
3472 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3473 opcode 110 insns.
3474
3475 2014-09-13 Doug Evans <xdje42@gmail.com>
3476
3477 * NEWS: Mention new "queue-signal" command.
3478 * infcmd.c (queue_signal_command): New function.
3479 (_initialize_infcmd): Add new queue-signal command.
3480
3481 2014-09-13 Doug Evans <xdje42@gmail.com>
3482
3483 * linux-nat.c (wait_lwp): Add debugging printf.
3484 (linux_nat_wait_1): Ditto.
3485
3486 2014-09-12 Pedro Alves <palves@redhat.com>
3487
3488 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3489 (create_and_insert_solib_event_breakpoint): New functions.
3490 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3491 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3492 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3493 (remove_dbx_link_breakpoint): Delete function.
3494 (insert_dbx_link_bpt_in_file): Use
3495 create_and_insert_solib_event_breakpoint instead of
3496 deprecated_insert_raw_breakpoint.
3497 (procfs_wait): Don't check whether we hit __dbx_link here.
3498 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3499 here.
3500 * solib-irix.c (base_breakpoint): Delete global.
3501 (disable_break): Delete function.
3502 (enable_break): Use create_solib_event_breakpoint
3503 instead of deprecated_insert_raw_breakpoint.
3504 (irix_solib_handle_event): New function.
3505 (irix_solib_create_inferior_hook): Don't run the target or disable
3506 the mapping-complete breakpoint here.
3507 (_initialize_irix_solib): Install irix_solib_handle_event as
3508 so_ops->handle_event hook.
3509
3510 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3511 Ulrich Weigand  <uweigand@de.ibm.com>
3512
3513 PR tdep/17379
3514 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3515 instead of read_memory_unsigned_integer.
3516
3517 2014-09-12 Gary Benson <gbenson@redhat.com>
3518
3519 * nat/linux-waitpid.c: Include common-defs.h.
3520 [GDBSERVER]: Add FIXME comment.
3521 [!GDBSERVER]: Don't include defs.h or signal.h.
3522 (linux_debug) [!GDBSERVER]: Remove empty block.
3523
3524 2014-09-12 Gary Benson <gbenson@redhat.com>
3525
3526 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3527 Don't include defs.h or server.h.
3528
3529 2014-09-12 Gary Benson <gbenson@redhat.com>
3530
3531 * nat/linux-btrace.c: Include common-defs.h.
3532 Don't include defs.h, server.h or gdbthread.h.
3533 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3534
3535 2014-09-12 Gary Benson <gbenson@redhat.com>
3536
3537 * common/agent.c: Include common-defs.h.
3538 Don't include defs.h or server.h.
3539 * common/buffer.c: Likewise.
3540 * common/common-debug.c: Likewise.
3541 * common/common-utils.c: Likewise.
3542 * common/errors.c: Likewise.
3543 * common/filestuff.c: Likewise.
3544 * common/format.c: Likewise.
3545 * common/gdb_vecs.c: Likewise.
3546 * common/print-utils.c: Likewise.
3547 * common/ptid.c: Likewise.
3548 * common/rsp-low.c: Likewise.
3549 * common/signals.c: Likewise.
3550 * common/vec.c: Likewise.
3551 * common/xml-utils.c: Likewise.
3552 * nat/linux-osdata.c: Likewise.
3553 * nat/linux-procfs.c: Likewise.
3554 * nat/linux-ptrace.c: Likewise.
3555 * nat/mips-linux-watch.c: Likewise.
3556 * target/waitstatus.c: Likewise.
3557
3558 2014-09-12 Tom Tromey <tromey@redhat.com>
3559 Gary Benson <gbenson@redhat.com>
3560
3561 * common/common-regcache.h: New file.
3562 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3563 * regcache.h: Include common-regcache.h.
3564 (regcache_read_pc): Don't declare.
3565 * regcache.c (get_thread_regcache_for_ptid): New function.
3566 * nat/linux-btrace.c: Don't include regcache.h.
3567 Include common-regcache.h.
3568 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3569
3570 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3571
3572 * regcache.h (struct regset): Declare.
3573
3574 2014-09-11 Pedro Alves <palves@redhat.com>
3575
3576 PR gdb/17347
3577 * main.c: Include "infrun.h".
3578 (catch_command_errors, catch_command_errors_const): Wait for the
3579 foreground command to complete.
3580 * top.c (maybe_wait_sync_command_done): New function, factored out
3581 from ...
3582 (maybe_wait_sync_command_done): ... here.
3583 * top.h (maybe_wait_sync_command_done): New declaration.
3584
3585 2014-09-11 Tom Tromey <tromey@redhat.com>
3586 Gary Benson <gbenson@redhat.com>
3587
3588 * common/symbol.h: New file.
3589 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3590 * minsyms.c (find_minimal_symbol_address): New function.
3591 * common/agent.c: Include common/symbol.h.
3592 [!GDBSERVER]: Don't include objfiles.h.
3593 (agent_look_up_symbols): Use find_minimal_symbol_address.
3594
3595 2014-09-11 Gary Benson <gbenson@redhat.com>
3596
3597 * target/target.h (target_stop_ptid, target_continue_ptid):
3598 Declare.
3599 * target.c (target_stop_ptid, target_continue_ptid): New
3600 functions.
3601 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3602 (agent_run_command): Always use target_stop_ptid and
3603 target_continue_ptid.
3604
3605 2014-09-11 Tom Tromey <tromey@redhat.com>
3606 Gary Benson <gbenson@redhat.com>
3607
3608 * target/target.h: New file.
3609 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3610 * target.h: Include target/target.h.
3611 (target_read_memory, target_write_memory): Don't declare.
3612 * target.c (target_read_uint32): New function.
3613 * common/agent.c: Include target/target.h.
3614 [!GDBSERVER]: Don't include target.h.
3615 (helper_thread_id): Type changed to uint32_t.
3616 (agent_get_helper_thread_id): Use target_read_uint32.
3617 (agent_run_command): Always use target_read_memory and
3618 target_write_memory.
3619 (agent_capability): Type changed to uint32_t.
3620 (agent_capability_check): Use target_read_uint32.
3621
3622 2014-09-11 Gary Benson <gbenson@redhat.com>
3623
3624 * common/common-debug.h (show_debug_regs): Declare.
3625 * common/common-debug.c (show_debug_regs): Define.
3626 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3627 all uses with show_debug_regs. Replace all uses that considered
3628 debug_hw_points as a multi-value integer with straight boolean
3629 uses.
3630 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3631 with show_debug_regs.
3632 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3633 all uses with show_debug_regs.
3634 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3635 uses with show_debug_regs.
3636
3637 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3638
3639 * findvar.c (address_from_register): Handle targets requiring
3640 a special conversion routine even for plain pointer types.
3641
3642 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3643
3644 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3645 (store_register): Do not call exec_one_dummy_insn.
3646
3647 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3648
3649 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3650 dereference it first. Use value_enclosing_type instead of
3651 value_type.
3652 (ada_array_length): Likewise.
3653
3654 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3655
3656 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3657 Adjust function implementation and documentation accordingly.
3658 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3659 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3660 Update call to ada_value_ptr_subscript.
3661
3662 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3663
3664 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3665 instead of VAL's type.
3666
3667 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3668
3669 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3670
3671 2014-09-09 Doug Evans <xdje42@gmail.com>
3672
3673 PR guile/17367
3674 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3675 last parameter to pkg-config, not first.
3676 * configure.ac: Pass --with-guile provided pkg-config path to
3677 GDB_GUILE_PROGRAM_NAMES.
3678 * configure: Regenerate.
3679
3680 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3681
3682 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3683 Bertazi".
3684
3685 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3686
3687 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3688 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3689 the list of sections determining GDB_OSABI_IRIX.
3690
3691 2014-09-09 James Hogan <james.hogan@imgtec.com>
3692
3693 * MAINTAINERS (Write After Approval): Add "James Hogan".
3694
3695 2014-09-09 James Hogan <james.hogan@imgtec.com>
3696
3697 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3698
3699 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3700
3701 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3702
3703 2014-09-08 Doug Evans <xdje42@gmail.com>
3704
3705 PR 17247
3706 * guile.c: #include <signal.h>.
3707 (_initialize_guile): Block SIGCHLD while initializing Guile.
3708
3709 Replaces the following, which is reverted.
3710
3711 2014-07-26 Doug Evans <xdje42@gmail.com>
3712
3713 PR 17185
3714 * configure.ac: Add check for header gc/gc.h.
3715 Add check for function setenv.
3716 * configure: Regenerate.
3717 * config.in: Regenerate.
3718 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3719
3720 2014-09-08 Doug Evans <xdje42@gmail.com>
3721
3722 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3723 with named constant. Fix style of pointer comparison.
3724 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3725
3726 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3727
3728 PR gdb/17035
3729 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3730 decide whether we display the command on "show user".
3731 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3732 printing command name.
3733 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3734 * cli/cli-decode.c (cli_user_command_p): Create helper function
3735 to verify whether cmd_list_element is a user-defined command.
3736
3737 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3738
3739 PR python/17355
3740 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3741 Fix goto out of TRY_CATCH.
3742
3743 2014-09-06 Doug Evans <xdje42@gmail.com>
3744 Tom Tromey <tromey@redhat.com>
3745
3746 PR 15276
3747 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3748 $_any_caller_matches.
3749 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3750 * python/lib/gdb/function/caller_is.py: New file.
3751
3752 2014-09-06 Doug Evans <xdje42@gmail.com>
3753
3754 * infcmd.c (program_info): Fix typo.
3755
3756 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3757
3758 PR gdb/17235
3759 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3760 'number'. New variable 'has_digit'. Rewrite code to deal with
3761 subexpressions on SDT probes.
3762
3763 2014-09-04 Pedro Alves <palves@redhat.com>
3764
3765 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3766 the input is only one character long.
3767
3768 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3769
3770 PR fortran/17237
3771 * f-valprint.c (f_val_print): Specify the correct print option to
3772 use when printing integer values.
3773
3774 2014-09-04 Gary Benson <gbenson@redhat.com>
3775
3776 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3777 Remove code to cope with LWPs wrapped as PIDs.
3778 Add assertions to ensure no wrapped LWPs are passed.
3779
3780 2014-09-04 Pedro Alves <palves@redhat.com>
3781
3782 * value.c (value_ranges_copy_adjusted): New function, factored out
3783 from ...
3784 (value_contents_copy_raw): ... here.
3785 (unpack_value_bits_as_long_1): Rename back to ...
3786 (unpack_bits_as_long): ... this. Remove 'original_value' and
3787 'result' parameters. Change return type to LONGEST.
3788 (unpack_value_bits_as_long): Delete.
3789 (unpack_value_field_as_long_1): Delete.
3790 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3791 (unpack_value_bitfield): New function.
3792 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3793 (value_fetch_lazy): Use unpack_value_bitfield.
3794 * value.h (unpack_value_bits_as_long): Delete declaration.
3795
3796 2014-09-03 Sasha Smundak <asmundak@google.com>
3797
3798 * python/py-frame.c (frapy_read_register): New function.
3799
3800 2014-09-03 James Hogan <james.hogan@imgtec.com>
3801
3802 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3803 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3804
3805 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3806
3807 PR python/16699
3808 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3809 function.
3810 (add_cmd): Set "completer_handle_brkchars" to NULL.
3811 * cli/cli-decode.h (struct cmd_list_element)
3812 <completer_handle_brkchars>: New field.
3813 * command.h (completer_ftype_void): New typedef.
3814 (set_cmd_completer_handle_brkchars): New prototype.
3815 * completer.c (set_gdb_completion_word_break_characters): New
3816 function.
3817 (complete_line_internal): Call "completer_handle_brkchars"
3818 callback from command.
3819 * completer.h: Include "command.h".
3820 (set_gdb_completion_word_break_characters): New prototype.
3821 * python/py-cmd.c (cmdpy_completer_helper): New function.
3822 (cmdpy_completer_handle_brkchars): New function.
3823 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3824 (cmdpy_init): Set completer_handle_brkchars to
3825 cmdpy_completer_handle_brkchars.
3826
3827 2014-09-03 Gary Benson <gbenson@redhat.com>
3828
3829 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3830 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3831 Loop conditions changed to equivalent form.
3832 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3833 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3834 ALL_DEBUG_ADDRESS_REGISTERS.
3835
3836 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3837
3838 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3839 description fix.
3840
3841 2014-09-02 Doug Evans <dje@google.com>
3842
3843 * typeprint.c (find_global_typedef): Fix comment.
3844
3845 2014-09-02 Gary Benson <gbenson@redhat.com>
3846
3847 * i386-nat.h: Renamed as...
3848 * x86-nat.h: New file. All type, function and variable name
3849 prefixes changed from "i386_" to "x86_". All references updated.
3850 * i386-nat.c: Renamed as...
3851 * x86-nat.c: New file. All type, function and variable name
3852 prefixes changed from "i386_" to "x86_". All references updated.
3853 * common/i386-xstate.h: Renamed as...
3854 * common/x86-xstate.h: New file. All type, function and variable
3855 name prefixes changed from "i386_" to "x86_". All references
3856 updated.
3857 * nat/i386-cpuid.h: Renamed as...
3858 * nat/x86-cpuid.h: New file. All type, function and variable name
3859 prefixes changed from "i386_" to "x86_". All references updated.
3860 * nat/i386-gcc-cpuid.h: Renamed as...
3861 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3862 name prefixes changed from "i386_" to "x86_". All references
3863 updated.
3864 * nat/i386-dregs.h: Renamed as...
3865 * nat/x86-dregs.h: New file. All type, function and variable name
3866 prefixes changed from "i386_" to "x86_". All references updated.
3867 * nat/i386-dregs.c: Renamed as...
3868 * nat/x86-dregs.c: New file. All type, function and variable name
3869 prefixes changed from "i386_" to "x86_". All references updated.
3870
3871 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3872
3873 * varobj.c (_initialize_varobj): Move to the end of file.
3874
3875 2014-08-29 Gary Benson <gbenson@redhat.com>
3876
3877 * common/common-exceptions.h: New file.
3878 * common/common-exceptions.c: Likewise.
3879 * Makefile.in (SFILES): Add common/common-exceptions.c.
3880 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3881 (COMMON_OBS): Add common-exceptions.o.
3882 (common-exceptions.o): New rule.
3883 * exceptions.h (common-exceptions.h): Include.
3884 (gdb_setjmp.h): Do not include.
3885 (return_reason): Moved to common-exceptions.h.
3886 (enum return_reason): Likewise.
3887 (RETURN_MASK): Likewise.
3888 (typedef return_mask): Likewise.
3889 (enum errors): Likewise.
3890 (struct gdb_exception): Likewise.
3891 (exceptions_state_mc_init): Likewise.
3892 (exceptions_state_mc_action_iter): Likewise.
3893 (exceptions_state_mc_action_iter_1): Likewise.
3894 (TRY_CATCH): Likewise.
3895 (throw_exception): Likewise.
3896 (throw_verror): Likewise.
3897 (throw_vquit): Likewise.
3898 (throw_error): Likewise.
3899 (throw_quit): Likewise.
3900 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3901 (enum catcher_action): Likewise.
3902 (struct catcher): Likewise.
3903 (current_catcher): Likewise.
3904 (catcher_list_size): Likewise.
3905 (exceptions_state_mc_init): Likewise.
3906 (catcher_pop): Likewise.
3907 (exceptions_state_mc): Likewise.
3908 (exceptions_state_mc_action_iter): Likewise.
3909 (exceptions_state_mc_action_iter_1): Likewise.
3910 (throw_exception): Likewise.
3911 (exception_messages): Likewise.
3912 (exception_messages_size): Likewise.
3913 (throw_it): Likewise.
3914 (throw_verror): Likewise.
3915 (throw_vquit): Likewise.
3916 (throw_error): Likewise.
3917 (throw_quit): Likewise.
3918 (prepare_to_throw_exception): New function.
3919
3920 2014-08-29 Gary Benson <gbenson@redhat.com>
3921
3922 * common/gdb_setjmp.h: New file.
3923 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3924 * configure.ac: Move sigsetjmp check...
3925 * common/common.m4: ...here.
3926 * configure: Regenerate.
3927 * cp-support.c (SIGJMP_BUF): Delete.
3928 (SIGSETJMP): Likewise.
3929 (SIGLONGJMP): Likewise.
3930 * exceptions.h (gdb_setjmp.h): Include.
3931 (setjmp.h): Do not include.
3932 (EXCEPTIONS_SIGJMP_BUF): Delete.
3933 (EXCEPTIONS_SIGSETJMP): Likewise.
3934 (EXCEPTIONS_SIGLONGJMP): Likewise.
3935 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3936 from gdb_setjmp.h.
3937 * exceptions.c: Likewise.
3938
3939 2014-08-29 Gary Benson <gbenson@redhat.com>
3940
3941 * cleanups.h: Moved to...
3942 * common/cleanups.h: New file.
3943 * cleanups.c: Moved to...
3944 * common/cleanups.c: New file. Include common-defs.h and
3945 cleanups.h. Do not include defs.h.
3946 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3947 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3948 (cleanups.o): New rule.
3949
3950 2014-08-29 Gary Benson <gbenson@redhat.com>
3951
3952 * common/errors.h (internal_warning): New declaration.
3953 (internal_vwarning): Likewise.
3954 * common/errors.c (internal_warning): New function.
3955 * utils.h (internal_warning): Don't declare.
3956 (internal_vwarning): Likewise.
3957 * utils.c (internal_warning): Removed.
3958
3959 2014-08-29 Gary Benson <gbenson@redhat.com>
3960
3961 * main.c (captured_main): Use warning during startup.
3962 Prefix startup warning messages with command name.
3963
3964 2014-08-29 Gary Benson <gbenson@redhat.com>
3965
3966 * main.c (captured_main): Handle usage errors with error.
3967
3968 2014-08-29 Gary Benson <gbenson@redhat.com>
3969
3970 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3971 exit pair with a call to error. Wrap the message with _().
3972
3973 2014-08-29 Gary Benson <gbenson@redhat.com>
3974
3975 * main.c (captured_main): Replace a fprintf/exit
3976 pair with a call to error. Wrap the message with _().
3977
3978 2014-08-29 Gary Benson <gbenson@redhat.com>
3979
3980 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3981 pairs with calls to error. Wrap the message with _().
3982
3983 2014-08-29 Gary Benson <gbenson@redhat.com>
3984
3985 * utils.c (vwarning): Protect calls to target_terminal_ours
3986 and wrap_here.
3987
3988 2014-08-29 Gary Benson <gbenson@redhat.com>
3989
3990 * exceptions.c (print_flush): Protect calls to
3991 target_terminal_ours and wrap_here.
3992
3993 2014-08-29 Gary Benson <gbenson@redhat.com>
3994
3995 * utils.h (filtered_printing_initialized): New declaration.
3996 * utils.c (abort_with_message): New function.
3997 (internal_vproblem): Use abort_with_message for first level
3998 recursive internal problems, and if gdb_stderr is not set up.
3999 Protect calls to target_terminal_ours, begin_line and query.
4000
4001 2014-08-28 Doug Evans <dje@google.com>
4002
4003 * symtab.c (in_prologue): Move definition to better spot.
4004 (skip_prologue_using_sal): Ditto.
4005
4006 2014-08-28 Doug Evans <dje@google.com>
4007
4008 * symtab.c (find_function_start_sal): Move definition to better spot.
4009
4010 2014-08-28 Yao Qi <yao@codesourcery.com>
4011
4012 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4013 found_stack_adjust in forward scan. Remove condition check
4014 on found_stack_adjust which is always true. Indent the code.
4015
4016 2014-08-28 Yao Qi <yao@codesourcery.com>
4017
4018 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4019 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4020 (dwarf_decode_lines): Remove argument
4021 want_line_info. Remove condition check on want_line_info.
4022 Callers update.
4023
4024 2014-08-27 Doug Evans <dje@google.com>
4025
4026 * dwarf2read.c (dwarf_record_line): Fix typo.
4027
4028 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4029
4030 * target.h (struct target_ops::to_terminal_save_ours): Remove
4031 declaration.
4032 (target_terminal_save_ours): Remove macro.
4033 * target-delegates.c: Regenerate.
4034 * inf-child.c (inf_child_target): Don't set the nonexistent
4035 field to_terminal_save_ours.
4036 * inferior.h (child_terminal_save_ours): Remove declaration.
4037 * terminal.h (gdb_save_tty_state): New declaration.
4038 * inflow.c (child_terminal_save_ours): Rename to ...
4039 (gdb_save_tty_state): ... this.
4040 * tui/tui.c: Include terminal.h.
4041 (tui_enable): Use gdb_save_tty_state instead of
4042 target_terminal_save_ours.
4043 (tui_disable): Likewise.
4044
4045 2014-08-25 Doug Evans <dje@google.com>
4046
4047 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4048 Pass NULL instead of 0 for context pointer.
4049
4050 2014-08-25 Yao Qi <yao@codesourcery.com>
4051
4052 * dwarf2read.c: Fix grammatical error.
4053
4054 2014-08-24 Yao Qi <yao@codesourcery.com>
4055
4056 * dwarf2read.c (scan_partial_symbols): Update comments.
4057 Rename argument 'need_pc' with 'set_addrmap'.
4058 (add_partial_namespace): Rename argument 'need_pc' with
4059 'set_addrmap'.
4060 (add_partial_module): Likewise.
4061 (add_partial_subprogram): Likewise. Update comments.
4062 (dwarf2_name): Fix typo.
4063
4064 2014-08-22 Doug Evans <dje@google.com>
4065
4066 PR 17276
4067 * dwarf2read.c (dwarf_record_line_p): New function.
4068 (dwarf_decode_lines_1): Ignore subsequent line number entries
4069 for the same line if any entry had a non-zero discriminator.
4070
4071 2014-08-22 Doug Evans <dje@google.com>
4072
4073 * buildsym.h (record_line_ftype): New typedef.
4074 (record_line): Use it.
4075 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4076 (dwarf_decode_lines_1): Call them.
4077
4078 2014-08-22 Yao Qi <yao@codesourcery.com>
4079
4080 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4081 (ctf_end): Remove code.
4082
4083 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4084
4085 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4086 (linux_make_corefile_notes): call update_thread_list, protected against
4087 exceptions.
4088
4089 2014-08-21 Pedro Alves <palves@redhat.com>
4090
4091 * infcmd.c (attach_command): Remove comment.
4092
4093 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4094
4095 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4096 unsigned LONGEST to ULONGEST.
4097
4098 2014-08-20 Pedro Alves <palves@redhat.com>
4099
4100 * Makefile.in (check-read1): New rule.
4101
4102 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4103
4104 * value.c (value_from_contents_and_address): Strip resolved_type's
4105 typedef layers before checking its TYPE_DATA_LOCATION.
4106
4107 2014-08-20 Pedro Alves <palves@redhat.com>
4108
4109 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4110
4111 2014-08-20 Yao Qi <yao@codesourcery.com>
4112
4113 * amd64-tdep.c (amd64_classify): Add a blank line after the
4114 example. Move "*/" to a new line.
4115 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4116 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4117 * dwarf2read.c (psymtab_include_file_name): Likewise.
4118
4119 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4120 Pedro Alves <palves@redhat.com>
4121
4122 PR symtab/14604
4123 PR symtab/14605
4124 * ada-lang.c (coerce_unspec_val_to_type): Use
4125 value_contents_copy_raw.
4126 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4127 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4128 * cp-valprint.c (cp_print_value_fields): Let the common printing
4129 code handle optimized out values.
4130 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4131 * d-valprint.c (dynamic_array_type): Use
4132 value_bits_any_optimized_out.
4133 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4134 check_any_valid fields.
4135 (check_pieced_value_bits): Delete and inline ...
4136 (check_pieced_synthetic_pointer): ... here.
4137 (check_pieced_value_validity): Delete.
4138 (check_pieced_value_invalid): Delete.
4139 (pieced_value_funcs): Remove check_validity and check_any_valid
4140 fields.
4141 (read_pieced_value): Use mark_value_bits_optimized_out.
4142 (write_pieced_value): Switch to use
4143 mark_value_bytes_optimized_out.
4144 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4145 of assuming the whole value is optimized out.
4146 * findvar.c (read_frame_register_value): Remove special handling
4147 of optimized out registers.
4148 (value_from_register): Use mark_value_bytes_optimized_out.
4149 * frame-unwind.c (frame_unwind_got_optimized): Use
4150 mark_value_bytes_optimized_out.
4151 * jv-valprint.c (java_value_print): Adjust.
4152 (java_print_value_fields): Let the common printing code handle
4153 optimized out values.
4154 * mips-tdep.c (mips_print_register): Remove special handling of
4155 optimized out registers.
4156 * opencl-lang.c (lval_func_check_validity): Delete.
4157 (lval_func_check_any_valid): Delete.
4158 (opencl_value_funcs): Remove check_validity and check_any_valid
4159 fields.
4160 * p-valprint.c (pascal_object_print_value_fields): Let the common
4161 printing code handle optimized out values.
4162 * stack.c (read_frame_arg): Remove special handling of optimized
4163 out values. Fetch both VAL and ENTRYVAL before comparing
4164 contents. Adjust to value_available_contents_eq rename.
4165 * valprint.c (valprint_check_validity)
4166 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4167 (val_print_array_elements): Adjust.
4168 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4169 (value_bits_any_optimized_out): New function.
4170 (value_entirely_covered_by_range_vector): New function, factored
4171 out from value_entirely_unavailable.
4172 (value_entirely_unavailable): Reimplement.
4173 (value_entirely_optimized_out): New function.
4174 (insert_into_bit_range_vector): New function, factored out from
4175 mark_value_bits_unavailable.
4176 (mark_value_bits_unavailable): Reimplement.
4177 (struct ranges_and_idx): New struct.
4178 (find_first_range_overlap_and_match): New function, factored out
4179 from value_available_contents_bits_eq.
4180 (value_available_contents_bits_eq): Rename to ...
4181 (value_contents_bits_eq): ... this. Check both unavailable
4182 contents and optimized out contents.
4183 (value_available_contents_eq): Rename to ...
4184 (value_contents_eq): ... this.
4185 (allocate_value_lazy): Remove reference to the old optimized_out
4186 boolean.
4187 (allocate_optimized_out_value): Use
4188 mark_value_bytes_optimized_out.
4189 (require_not_optimized_out): Adjust to check whether the
4190 optimized_out vec is empty.
4191 (ranges_copy_adjusted): New function, factored out from
4192 value_contents_copy_raw.
4193 (value_contents_copy_raw): Also copy the optimized out ranges.
4194 Assert the destination ranges aren't optimized out.
4195 (value_contents_copy): Update comment, remove call to
4196 require_not_optimized_out.
4197 (value_contents_equal): Adjust to check whether the optimized_out
4198 vec is empty.
4199 (set_value_optimized_out, value_optimized_out_const): Delete.
4200 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4201 New functions.
4202 (value_entirely_optimized_out, value_bits_valid): Delete.
4203 (value_copy): Take a VEC copy of the 'optimized_out' field.
4204 (value_primitive_field): Remove special handling of optimized out.
4205 (value_fetch_lazy): Assert that lazy values have no unavailable
4206 regions. Use value_bits_any_optimized_out. Remove some special
4207 handling for optimized out values.
4208 * value.h: Add intro comment about <optimized out> and
4209 <unavailable>.
4210 (struct lval_funcs): Remove check_validity and check_any_valid
4211 fields.
4212 (set_value_optimized_out, value_optimized_out_const): Remove.
4213 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4214 New declarations.
4215 (value_bits_any_optimized_out): New declaration.
4216 (value_bits_valid): Delete declaration.
4217 (value_available_contents_eq): Rename to ...
4218 (value_contents_eq): ... this, and extend comments.
4219
4220 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4221
4222 Fix -fsanitize=address on unreadable inferior strings.
4223 * valprint.c (val_print_string): Fix access before BUFFER.
4224
4225 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4226
4227 * target.c (target_struct_size): Remove.
4228 (target_struct_allocsize): Remove.
4229 (DEFAULT_ALLOCSIZE): Remove.
4230 (target_ops_p): New typedef.
4231 (DEF_VEC_P (target_ops_p)): New vector type.
4232 (target_structs): Change type to VEC (target_ops_p).
4233 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4234 (find_default_run_target): Rewrite for loop following changes to
4235 target_structs.
4236
4237 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4238
4239 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4240 Adjust code accordingly. Adjust function description comment.
4241
4242 2014-08-19 Yao Qi <yao@codesourcery.com>
4243
4244 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4245 types.
4246
4247 2014-08-19 Alan Modra <amodra@gmail.com>
4248
4249 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4250 * config.in: Regenerate.
4251 * configure: Regenerate.
4252
4253 2014-08-19 Tom Tromey <tromey@redhat.com>
4254 Gary Benson <gbenson@redhat.com>
4255
4256 * common/common-debug.h: New file.
4257 * common/common-debug.c: Likewise.
4258 * debug.c: Likewise.
4259 * Makefile.in (SFILES): Add common/common-debug.c.
4260 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4261 (COMMON_OBS): Add common-debug.o and debug.o.
4262 (common-debug.o): New rule.
4263 * common/common-defs.h: Include common-debug.h.
4264 * common/agent.c (debug_agent_printf): New function.
4265 (DEBUG_AGENT): Redefine.
4266 * nat/i386-dregs.c (debug_printf): Undefine.
4267
4268 2014-08-19 Gary Benson <gbenson@redhat.com>
4269
4270 * common/common-defs.h: Include print-utils.h.
4271 * utils.h: Do not include print-utils.h.
4272
4273 2014-08-19 Tom Tromey <tromey@redhat.com>
4274 Gary Benson <gbenson@redhat.com>
4275
4276 * common/common-types.h: New file.
4277 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4278 * common/common-defs.h: Include common-types.h.
4279 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4280 (ULONGEST): Remove.
4281
4282 2014-08-19 Tom Tromey <tromey@redhat.com>
4283 Gary Benson <gbenson@redhat.com>
4284
4285 * common/errors.h: New file.
4286 * common/errors.c: Likewise.
4287 * Makefile.in (SFILES): Add common/errors.c.
4288 (HFILES_NO_SRCDIR): Add common/errors.h.
4289 (COMMON_OBS): Add errors.o.
4290 (errors.o): New rule.
4291 * common/common-defs.h: Include errors.h.
4292 * utils.h (perror_with_name, error, verror, warning, vwarning):
4293 Don't declare.
4294 * common/common-utils.h: (malloc_failure, internal_error):
4295 Likewise.
4296
4297 2014-08-19 Gary Benson <gbenson@redhat.com>
4298
4299 * utils.c (internal_vproblem): Always print the message.
4300
4301 2014-08-18 Doug Evans <dje@google.com>
4302
4303 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4304
4305 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4306
4307 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4308 Return 0 if TYPE is dynamic.
4309 (print_range): Add handling of dynamic ranges.
4310
4311 2014-08-18 Keven Boell <keven.boell@intel.com>
4312 Joel Brobecker <brobecker@adacore.com>
4313
4314 * gdbtypes.h (struct main_type): Add field "data_location".
4315 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4316 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4317 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4318 a dynamic data location.
4319 (resolve_dynamic_type): Add DW_AT_data_location handling.
4320 (copy_recursive, copy_type): Copy the data_location information
4321 when present.
4322 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4323 * value.c (value_from_contents_and_address): Add
4324 DW_AT_data_location handling.
4325
4326 2014-08-18 Keven Boell <keven.boell@intel.com>
4327 Joel Brobecker <brobecker@adacore.com>
4328
4329 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4330 field "get_object_address".
4331 * dwarf2expr.c (execute_stack_op): Add handling for
4332 DW_OP_push_object_address.
4333 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4334 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4335 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4336 (dwarf_expr_get_obj_addr): New function.
4337 (dwarf_expr_ctx_funcs): Add get_object_address field.
4338 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4339 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4340 (dwarf2_evaluate_property): Add parameter "address". Use it.
4341 (needs_get_obj_addr): New function.
4342 (needs_frame_ctx_funcs): Add get_object_address field.
4343 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4344 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4345 (resolve_dynamic_array): Likewise.
4346
4347 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4348
4349 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4350 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4351 fixed value for records and unions for which some GNAT encodings
4352 are present.
4353
4354 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4355
4356 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4357 rewrite to avoid "else if" and "else" constructs. Should be
4358 a no-op in practice.
4359
4360 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4361
4362 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4363 of lexical block.
4364
4365 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4366
4367 PR c++/17132
4368 * eval.c: Update all calls to find_overload_match.
4369 * valarith.c: Likewise.
4370 (value_user_defined_cpp_op, value_user_defined_op): New
4371 argument NOSIDE. Update all callers.
4372 * valops.c (find_overload_match): New argument NOSIDE.
4373 * value.h (find_overload_match): Update signature.
4374
4375 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4376
4377 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4378 'items' methods instead of 'iteritems' method on dictionaries.
4379
4380 2014-08-15 Doug Evans <dje@google.com>
4381
4382 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4383 closer to use.
4384
4385 2014-08-15 Doug Evans <dje@google.com>
4386
4387 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4388
4389 2014-08-15 Doug Evans <dje@google.com>
4390
4391 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4392
4393 2014-08-15 Doug Evans <dje@google.com>
4394
4395 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4396 unused.
4397
4398 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4399
4400 * dcache.h: Include target.h, to avoid compile time warnings.
4401
4402 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4403
4404 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4405 frame_info" partial declaration.
4406 * gdbarch.h: Regenerate.
4407
4408 2014-08-15 Yao Qi <yao@codesourcery.com>
4409
4410 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4411 Add parameter 'decode_for_pst_p'. Callers update.
4412
4413 2014-08-13 Yao Qi <yao@codesourcery.com>
4414
4415 PR build/17104
4416 * configure.ac: Use local variable 'pos'.
4417 * configure: Regenerated.
4418
4419 2014-08-11 Doug Evans <dje@google.com>
4420
4421 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4422 message, it is redundant with "Reading symbols from ..." message.
4423
4424 2014-08-10 Doug Evans <xdje42@gmail.com>
4425
4426 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4427
4428 2014-08-09 Yao Qi <yao@codesourcery.com>
4429
4430 PR remote/9053
4431 * remote.c (remote_xfer_partial): Remove dead code.
4432
4433 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4434
4435 * ia64-linux-tdep.c: Include "regset.h".
4436 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4437 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4438 (ia64_linux_supply_fpregset): New function.
4439 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4440 (ia64_linux_regset_from_core_section): New function.
4441 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4442 method.
4443
4444 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4445
4446 * m68klinux-tdep.c: Include "regset.h".
4447 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4448 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4449 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4450 (m68k_linux_regset_from_core_section): New function.
4451 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4452 method.
4453
4454 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4455
4456 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4457 function. Move logic to...
4458 (tilegx_linux_regmap): ... this new register map.
4459 (tilegx_linux_regset): Refer to register map, replace supply
4460 method by regcache_supply_regset, and add collect method.
4461 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4462 TILEGX_FIRST_EASY_REGNUM.
4463
4464 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4465
4466 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4467 that calls regcache_supply_regset and handles the EPC register
4468 separately. Move main logic to...
4469 (score7_linux_gregmap): ... this new register map.
4470 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4471 (score7_linux_gregset): Refer to register map. Add collect method.
4472 (score7_linux_regset_from_core_section): Replace
4473 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4474 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4475 (struct regset): Delete unused forward declaraction.
4476 (struct pt_regs): Delete structure definition.
4477 (elf_gregset_t): Delete typedef.
4478
4479 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4480
4481 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4482 (nios2_core_regset): Add collect method.
4483
4484 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4485
4486 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4487 platform-independent and don't write to read-only input buffer.
4488 (m32r_linux_collect_gregset): New function.
4489 (m32r_linux_gregset): Add collect method.
4490
4491 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4492
4493 * hppa-linux-tdep.c (greg_map): Rename to...
4494 (hppa_linux_gregmap): ... this. Also convert to
4495 regcache_map_entry format.
4496 (hppa_linux_supply_regset): Delete function.
4497 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4498 (hppa_linux_fpregmap): ... this new register map.
4499 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4500 register map, replace supply method by regcache_supply_regset, and
4501 add collect method regcache_collect_regset.
4502
4503 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4504
4505 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4506 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4507 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4508 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4509 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4510 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4511 (frv_linux_supply_gregset): Replace main logic by call to
4512 regcache_supply_regset, but keep clearing gr32-gr63.
4513 (frv_linux_supply_fpregset): Delete function.
4514 (frv_linux_gregset): Refer to appropriate register map and add
4515 regcache_collect_regset as the collect method.
4516 (frv_linux_fpregset): Likewise. Also exchange the supply method
4517 by regcache_supply_regset.
4518
4519 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4520
4521 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4522 by call to alpha_supply_int_regs.
4523 (alpha_linux_collect_gregset): New function.
4524 (alpha_linux_supply_fpregset): Replace logic by call to
4525 alpha_supply_fp_regs.
4526 (alpha_linux_collect_fpregset): New function.
4527 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4528
4529 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4530
4531 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4532 by call to regcache_collect_regset.
4533 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4534 instead of aarch64_linux_supply_gregset/_fpregset.
4535 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4536 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4537 header file instead.
4538 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4539 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4540 functions. Move logic to ...
4541 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4542 register maps.
4543 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4544 refer to new register maps, replace *_regset_from_core by
4545 regcache_supply_regset, and also use regcache_collect_regset.
4546 * aarch64-linux-tdep.h: Include "regset.h".
4547 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4548 Delete prototypes.
4549 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4550 macros, moved from C source file.
4551 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4552 variable declarations.
4553
4554 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4555
4556 * s390-linux-nat.c: Include "regset.h".
4557 (regmap_gregset): Delete macro.
4558 (s390_64_regmap_gregset): New register map for
4559 regcache_supply/_collect_regset.
4560 (s390_64_gregset): New regset.
4561 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4562 (regmap_fpregset): Delete macro.
4563 (s390_native_supply, s390_native_collect): Delete functions.
4564 (supply_gregset, fill_gregset): Replace s390-specific regmap
4565 handling by a call to regcache_supply/_collect_regset.
4566 (supply_fpregset, fill_fpregset): Call regcache_supply/
4567 _collect_regset instead of s390_native_supply/_collect.
4568 (fetch_regset, store_regset): Likewise. Also change the last
4569 parameter to a regset instead of a regmap.
4570 (s390_linux_fetch_inferior_registers)
4571 (390_linux_store_inferior_registers): Adjust last parameter in
4572 calls to fetch_regset and store_regset.
4573 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4574 (s390_gregmap): ... this. Also make static const and convert to
4575 regcache_map_entry format.
4576 (s390x_regmap_gregset): Delete.
4577 (s390_regmap_fpregset): Rename to...
4578 (s390_fpregmap): ... this. Make static const and convert to
4579 regcache_map_entry format.
4580 (s390_regmap_upper, s390_regmap_last_break)
4581 (s390x_regmap_last_break, s390_regmap_system_call)
4582 (s390_regmap_tdb): Likewise.
4583 (s390_supply_regset, s390_collect_regset): Remove functions.
4584 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4585 s390_supply_regset.
4586 (s390_gregset, s390_fpregset, s390_upper_regset)
4587 (s390_last_break_regset, s390x_last_break_regset)
4588 (s390_system_call_regset, s390_tdb_regset): Make global and
4589 replace s390_supply/_collect_regset by regcache_supply/
4590 _collect_regset.
4591 (s390x_gregset): Delete.
4592 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4593 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4594 (s390_regmap_fpregset, s390_regmap_last_break)
4595 (s390x_regmap_last_break, s390_regmap_system_call)
4596 (s390_regmap_tdb): Delete global variable declarations.
4597 (s390_gregset, s390_fpregset, s390_last_break_regset)
4598 (s390x_last_break_regset, s390_system_call_regset)
4599 (s390_tdb_regset): New global variable declarations.
4600
4601 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4602
4603 * regcache.c: Include "regset.h".
4604 (regcache_transfer_regset): New local function.
4605 (regcache_supply_regset, regcache_collect_regset): New functions.
4606 * regcache.h (struct regcache_map_entry): New structure.
4607 (REGCACHE_MAP_SKIP): New enum value.
4608 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4609
4610 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4611
4612 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4613 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4614 (ppc_linux_collect_gregset ): Likewise.
4615 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4616 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4617 (ppc_collect_vrregset): Likewise.
4618 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4619 Likewise.
4620
4621 2014-08-07 Yao Qi <yao@codesourcery.com>
4622
4623 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4624 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4625 * remote.c (remote_read_bytes): Likewise.
4626
4627 2014-08-07 Yao Qi <yao@codesourcery.com>
4628
4629 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4630
4631 2014-08-07 Yao Qi <yao@codesourcery.com>
4632
4633 PR remote/17230
4634 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4635 TARGET_XFER_OK instead of 0.
4636
4637 2014-08-07 Gary Benson <gbenson@redhat.com>
4638
4639 * common/common-defs.h: Include errno.h.
4640 * defs.h: Do not include errno.h.
4641 * ada-typeprint.c: Likewise.
4642 * c-typeprint.c: Likewise.
4643 * core-regset.c: Likewise.
4644 * corefile.c: Likewise.
4645 * corelow.c: Likewise.
4646 * event-loop.c: Likewise.
4647 * f-typeprint.c: Likewise.
4648 * gnu-nat.c: Likewise.
4649 * go32-nat.c: Likewise.
4650 * i386gnu-nat.c: Likewise.
4651 * m2-typeprint.c: Likewise.
4652 * nat/linux-btrace.c: Likewise.
4653 * p-typeprint.c: Likewise.
4654 * procfs.c: Likewise.
4655 * remote-sim.c: Likewise.
4656 * rs6000-nat.c: Likewise.
4657 * target.c: Likewise.
4658 * typeprint.c: Likewise.
4659 * ui-file.c: Likewise.
4660 * valops.c: Likewise.
4661 * valprint.c: Likewise.
4662
4663 2014-08-07 Gary Benson <gbenson@redhat.com>
4664
4665 * common/common-defs.h: Include string.h.
4666 * aarch64-tdep.c: Do not include string.h.
4667 * ada-exp.y: Likewise.
4668 * ada-lang.c: Likewise.
4669 * ada-lex.l: Likewise.
4670 * ada-typeprint.c: Likewise.
4671 * ada-valprint.c: Likewise.
4672 * aix-thread.c: Likewise.
4673 * alpha-linux-tdep.c: Likewise.
4674 * alpha-mdebug-tdep.c: Likewise.
4675 * alpha-nat.c: Likewise.
4676 * alpha-osf1-tdep.c: Likewise.
4677 * alpha-tdep.c: Likewise.
4678 * alphanbsd-tdep.c: Likewise.
4679 * amd64-dicos-tdep.c: Likewise.
4680 * amd64-linux-tdep.c: Likewise.
4681 * amd64-nat.c: Likewise.
4682 * amd64-sol2-tdep.c: Likewise.
4683 * amd64fbsd-tdep.c: Likewise.
4684 * amd64obsd-tdep.c: Likewise.
4685 * arch-utils.c: Likewise.
4686 * arm-linux-nat.c: Likewise.
4687 * arm-linux-tdep.c: Likewise.
4688 * arm-tdep.c: Likewise.
4689 * arm-wince-tdep.c: Likewise.
4690 * armbsd-tdep.c: Likewise.
4691 * armnbsd-nat.c: Likewise.
4692 * armnbsd-tdep.c: Likewise.
4693 * armobsd-tdep.c: Likewise.
4694 * avr-tdep.c: Likewise.
4695 * ax-gdb.c: Likewise.
4696 * ax-general.c: Likewise.
4697 * bcache.c: Likewise.
4698 * bfin-tdep.c: Likewise.
4699 * breakpoint.c: Likewise.
4700 * build-id.c: Likewise.
4701 * buildsym.c: Likewise.
4702 * c-exp.y: Likewise.
4703 * c-lang.c: Likewise.
4704 * c-typeprint.c: Likewise.
4705 * c-valprint.c: Likewise.
4706 * charset.c: Likewise.
4707 * cli-out.c: Likewise.
4708 * cli/cli-cmds.c: Likewise.
4709 * cli/cli-decode.c: Likewise.
4710 * cli/cli-dump.c: Likewise.
4711 * cli/cli-interp.c: Likewise.
4712 * cli/cli-logging.c: Likewise.
4713 * cli/cli-script.c: Likewise.
4714 * cli/cli-setshow.c: Likewise.
4715 * cli/cli-utils.c: Likewise.
4716 * coffread.c: Likewise.
4717 * common/agent.c: Likewise.
4718 * common/buffer.c: Likewise.
4719 * common/buffer.h: Likewise.
4720 * common/common-utils.c: Likewise.
4721 * common/filestuff.c: Likewise.
4722 * common/filestuff.c: Likewise.
4723 * common/format.c: Likewise.
4724 * common/print-utils.c: Likewise.
4725 * common/rsp-low.c: Likewise.
4726 * common/signals.c: Likewise.
4727 * common/vec.h: Likewise.
4728 * common/xml-utils.c: Likewise.
4729 * core-regset.c: Likewise.
4730 * corefile.c: Likewise.
4731 * corelow.c: Likewise.
4732 * cp-abi.c: Likewise.
4733 * cp-name-parser.y: Likewise.
4734 * cp-support.c: Likewise.
4735 * cp-valprint.c: Likewise.
4736 * cris-tdep.c: Likewise.
4737 * d-exp.y: Likewise.
4738 * darwin-nat.c: Likewise.
4739 * dbxread.c: Likewise.
4740 * dcache.c: Likewise.
4741 * demangle.c: Likewise.
4742 * dicos-tdep.c: Likewise.
4743 * disasm.c: Likewise.
4744 * doublest.c: Likewise.
4745 * dsrec.c: Likewise.
4746 * dummy-frame.c: Likewise.
4747 * dwarf2-frame.c: Likewise.
4748 * dwarf2loc.c: Likewise.
4749 * dwarf2read.c: Likewise.
4750 * elfread.c: Likewise.
4751 * environ.c: Likewise.
4752 * eval.c: Likewise.
4753 * event-loop.c: Likewise.
4754 * exceptions.c: Likewise.
4755 * exec.c: Likewise.
4756 * expprint.c: Likewise.
4757 * f-exp.y: Likewise.
4758 * f-lang.c: Likewise.
4759 * f-typeprint.c: Likewise.
4760 * f-valprint.c: Likewise.
4761 * fbsd-nat.c: Likewise.
4762 * findcmd.c: Likewise.
4763 * findvar.c: Likewise.
4764 * fork-child.c: Likewise.
4765 * frame.c: Likewise.
4766 * frv-linux-tdep.c: Likewise.
4767 * frv-tdep.c: Likewise.
4768 * gdb.c: Likewise.
4769 * gdb_bfd.c: Likewise.
4770 * gdbarch.c: Likewise.
4771 * gdbarch.sh: Likewise.
4772 * gdbtypes.c: Likewise.
4773 * gnu-nat.c: Likewise.
4774 * gnu-v2-abi.c: Likewise.
4775 * gnu-v3-abi.c: Likewise.
4776 * go-exp.y: Likewise.
4777 * go-lang.c: Likewise.
4778 * go32-nat.c: Likewise.
4779 * guile/guile.c: Likewise.
4780 * guile/scm-auto-load.c: Likewise.
4781 * hppa-hpux-tdep.c: Likewise.
4782 * hppa-linux-nat.c: Likewise.
4783 * hppanbsd-tdep.c: Likewise.
4784 * hppaobsd-tdep.c: Likewise.
4785 * i386-cygwin-tdep.c: Likewise.
4786 * i386-dicos-tdep.c: Likewise.
4787 * i386-linux-tdep.c: Likewise.
4788 * i386-nto-tdep.c: Likewise.
4789 * i386-sol2-tdep.c: Likewise.
4790 * i386-tdep.c: Likewise.
4791 * i386bsd-tdep.c: Likewise.
4792 * i386gnu-nat.c: Likewise.
4793 * i386nbsd-tdep.c: Likewise.
4794 * i386obsd-tdep.c: Likewise.
4795 * i387-tdep.c: Likewise.
4796 * ia64-libunwind-tdep.c: Likewise.
4797 * ia64-linux-nat.c: Likewise.
4798 * inf-child.c: Likewise.
4799 * inf-ptrace.c: Likewise.
4800 * inf-ttrace.c: Likewise.
4801 * infcall.c: Likewise.
4802 * infcmd.c: Likewise.
4803 * inflow.c: Likewise.
4804 * infrun.c: Likewise.
4805 * interps.c: Likewise.
4806 * iq2000-tdep.c: Likewise.
4807 * irix5-nat.c: Likewise.
4808 * jv-exp.y: Likewise.
4809 * jv-lang.c: Likewise.
4810 * jv-typeprint.c: Likewise.
4811 * jv-valprint.c: Likewise.
4812 * language.c: Likewise.
4813 * linux-fork.c: Likewise.
4814 * linux-nat.c: Likewise.
4815 * lm32-tdep.c: Likewise.
4816 * m2-exp.y: Likewise.
4817 * m2-typeprint.c: Likewise.
4818 * m32c-tdep.c: Likewise.
4819 * m32r-linux-nat.c: Likewise.
4820 * m32r-linux-tdep.c: Likewise.
4821 * m32r-rom.c: Likewise.
4822 * m32r-tdep.c: Likewise.
4823 * m68hc11-tdep.c: Likewise.
4824 * m68k-tdep.c: Likewise.
4825 * m68kbsd-tdep.c: Likewise.
4826 * m68klinux-nat.c: Likewise.
4827 * m68klinux-tdep.c: Likewise.
4828 * m88k-tdep.c: Likewise.
4829 * machoread.c: Likewise.
4830 * macrocmd.c: Likewise.
4831 * main.c: Likewise.
4832 * mdebugread.c: Likewise.
4833 * mem-break.c: Likewise.
4834 * memattr.c: Likewise.
4835 * memory-map.c: Likewise.
4836 * mep-tdep.c: Likewise.
4837 * mi/mi-cmd-break.c: Likewise.
4838 * mi/mi-cmd-disas.c: Likewise.
4839 * mi/mi-cmd-env.c: Likewise.
4840 * mi/mi-cmd-stack.c: Likewise.
4841 * mi/mi-cmd-var.c: Likewise.
4842 * mi/mi-cmds.c: Likewise.
4843 * mi/mi-console.c: Likewise.
4844 * mi/mi-getopt.c: Likewise.
4845 * mi/mi-interp.c: Likewise.
4846 * mi/mi-main.c: Likewise.
4847 * mi/mi-parse.c: Likewise.
4848 * microblaze-rom.c: Likewise.
4849 * microblaze-tdep.c: Likewise.
4850 * mingw-hdep.c: Likewise.
4851 * minidebug.c: Likewise.
4852 * minsyms.c: Likewise.
4853 * mips-irix-tdep.c: Likewise.
4854 * mips-linux-tdep.c: Likewise.
4855 * mips-tdep.c: Likewise.
4856 * mips64obsd-tdep.c: Likewise.
4857 * mipsnbsd-tdep.c: Likewise.
4858 * mipsread.c: Likewise.
4859 * mn10300-linux-tdep.c: Likewise.
4860 * mn10300-tdep.c: Likewise.
4861 * monitor.c: Likewise.
4862 * moxie-tdep.c: Likewise.
4863 * mt-tdep.c: Likewise.
4864 * nat/linux-btrace.c: Likewise.
4865 * nat/linux-osdata.c: Likewise.
4866 * nat/linux-procfs.c: Likewise.
4867 * nat/linux-ptrace.c: Likewise.
4868 * nat/linux-waitpid.c: Likewise.
4869 * nbsd-tdep.c: Likewise.
4870 * nios2-linux-tdep.c: Likewise.
4871 * nto-procfs.c: Likewise.
4872 * nto-tdep.c: Likewise.
4873 * objc-lang.c: Likewise.
4874 * objfiles.c: Likewise.
4875 * opencl-lang.c: Likewise.
4876 * osabi.c: Likewise.
4877 * osdata.c: Likewise.
4878 * p-exp.y: Likewise.
4879 * p-lang.c: Likewise.
4880 * p-typeprint.c: Likewise.
4881 * parse.c: Likewise.
4882 * posix-hdep.c: Likewise.
4883 * ppc-linux-nat.c: Likewise.
4884 * ppc-sysv-tdep.c: Likewise.
4885 * ppcfbsd-tdep.c: Likewise.
4886 * ppcnbsd-tdep.c: Likewise.
4887 * ppcobsd-tdep.c: Likewise.
4888 * printcmd.c: Likewise.
4889 * procfs.c: Likewise.
4890 * prologue-value.c: Likewise.
4891 * python/py-auto-load.c: Likewise.
4892 * python/py-gdb-readline.c: Likewise.
4893 * ravenscar-thread.c: Likewise.
4894 * regcache.c: Likewise.
4895 * registry.c: Likewise.
4896 * remote-fileio.c: Likewise.
4897 * remote-m32r-sdi.c: Likewise.
4898 * remote-mips.c: Likewise.
4899 * remote-notif.c: Likewise.
4900 * remote-sim.c: Likewise.
4901 * remote.c: Likewise.
4902 * reverse.c: Likewise.
4903 * rs6000-aix-tdep.c: Likewise.
4904 * ser-base.c: Likewise.
4905 * ser-go32.c: Likewise.
4906 * ser-mingw.c: Likewise.
4907 * ser-pipe.c: Likewise.
4908 * ser-tcp.c: Likewise.
4909 * ser-unix.c: Likewise.
4910 * serial.c: Likewise.
4911 * sh-tdep.c: Likewise.
4912 * sh64-tdep.c: Likewise.
4913 * shnbsd-tdep.c: Likewise.
4914 * skip.c: Likewise.
4915 * sol-thread.c: Likewise.
4916 * solib-dsbt.c: Likewise.
4917 * solib-frv.c: Likewise.
4918 * solib-osf.c: Likewise.
4919 * solib-som.c: Likewise.
4920 * solib-spu.c: Likewise.
4921 * solib-target.c: Likewise.
4922 * solib.c: Likewise.
4923 * somread.c: Likewise.
4924 * source.c: Likewise.
4925 * sparc-nat.c: Likewise.
4926 * sparc-sol2-tdep.c: Likewise.
4927 * sparc-tdep.c: Likewise.
4928 * sparc64-tdep.c: Likewise.
4929 * sparc64fbsd-tdep.c: Likewise.
4930 * sparc64nbsd-tdep.c: Likewise.
4931 * sparcnbsd-tdep.c: Likewise.
4932 * spu-linux-nat.c: Likewise.
4933 * spu-multiarch.c: Likewise.
4934 * spu-tdep.c: Likewise.
4935 * stabsread.c: Likewise.
4936 * stack.c: Likewise.
4937 * std-regs.c: Likewise.
4938 * symfile.c: Likewise.
4939 * symmisc.c: Likewise.
4940 * symtab.c: Likewise.
4941 * target.c: Likewise.
4942 * thread.c: Likewise.
4943 * tilegx-linux-nat.c: Likewise.
4944 * tilegx-tdep.c: Likewise.
4945 * top.c: Likewise.
4946 * tracepoint.c: Likewise.
4947 * tui/tui-command.c: Likewise.
4948 * tui/tui-data.c: Likewise.
4949 * tui/tui-disasm.c: Likewise.
4950 * tui/tui-file.c: Likewise.
4951 * tui/tui-layout.c: Likewise.
4952 * tui/tui-out.c: Likewise.
4953 * tui/tui-regs.c: Likewise.
4954 * tui/tui-source.c: Likewise.
4955 * tui/tui-stack.c: Likewise.
4956 * tui/tui-win.c: Likewise.
4957 * tui/tui-windata.c: Likewise.
4958 * tui/tui-winsource.c: Likewise.
4959 * typeprint.c: Likewise.
4960 * ui-file.c: Likewise.
4961 * ui-out.c: Likewise.
4962 * user-regs.c: Likewise.
4963 * utils.c: Likewise.
4964 * v850-tdep.c: Likewise.
4965 * valarith.c: Likewise.
4966 * valops.c: Likewise.
4967 * valprint.c: Likewise.
4968 * value.c: Likewise.
4969 * varobj.c: Likewise.
4970 * vax-tdep.c: Likewise.
4971 * vaxnbsd-tdep.c: Likewise.
4972 * vaxobsd-tdep.c: Likewise.
4973 * windows-nat.c: Likewise.
4974 * xcoffread.c: Likewise.
4975 * xml-support.c: Likewise.
4976 * xstormy16-tdep.c: Likewise.
4977 * xtensa-linux-nat.c: Likewise.
4978
4979 2014-08-07 Gary Benson <gbenson@redhat.com>
4980
4981 * common/common-defs.h: Include gdb_assert.h.
4982 * aarch64-tdep.c: Do not include gdb_assert.h.
4983 * addrmap.c: Likewise.
4984 * aix-thread.c: Likewise.
4985 * alpha-linux-tdep.c: Likewise.
4986 * alpha-mdebug-tdep.c: Likewise.
4987 * alphanbsd-tdep.c: Likewise.
4988 * amd64-nat.c: Likewise.
4989 * amd64-tdep.c: Likewise.
4990 * amd64bsd-nat.c: Likewise.
4991 * amd64fbsd-nat.c: Likewise.
4992 * amd64fbsd-tdep.c: Likewise.
4993 * amd64nbsd-nat.c: Likewise.
4994 * amd64nbsd-tdep.c: Likewise.
4995 * amd64obsd-nat.c: Likewise.
4996 * amd64obsd-tdep.c: Likewise.
4997 * arch-utils.c: Likewise.
4998 * arm-tdep.c: Likewise.
4999 * armbsd-tdep.c: Likewise.
5000 * auxv.c: Likewise.
5001 * bcache.c: Likewise.
5002 * bfin-tdep.c: Likewise.
5003 * blockframe.c: Likewise.
5004 * breakpoint.c: Likewise.
5005 * bsd-kvm.c: Likewise.
5006 * bsd-uthread.c: Likewise.
5007 * buildsym.c: Likewise.
5008 * c-exp.y: Likewise.
5009 * c-lang.c: Likewise.
5010 * charset.c: Likewise.
5011 * cleanups.c: Likewise.
5012 * cli-out.c: Likewise.
5013 * cli/cli-decode.c: Likewise.
5014 * cli/cli-dump.c: Likewise.
5015 * cli/cli-logging.c: Likewise.
5016 * cli/cli-script.c: Likewise.
5017 * cli/cli-utils.c: Likewise.
5018 * coffread.c: Likewise.
5019 * common/common-utils.c: Likewise.
5020 * common/queue.h: Likewise.
5021 * common/signals.c: Likewise.
5022 * common/vec.h: Likewise.
5023 * complaints.c: Likewise.
5024 * completer.c: Likewise.
5025 * corelow.c: Likewise.
5026 * cp-abi.c: Likewise.
5027 * cp-name-parser.y: Likewise.
5028 * cp-namespace.c: Likewise.
5029 * cp-support.c: Likewise.
5030 * cris-tdep.c: Likewise.
5031 * dbxread.c: Likewise.
5032 * dictionary.c: Likewise.
5033 * doublest.c: Likewise.
5034 * dsrec.c: Likewise.
5035 * dummy-frame.c: Likewise.
5036 * dwarf2-frame-tailcall.c: Likewise.
5037 * dwarf2-frame.c: Likewise.
5038 * dwarf2expr.c: Likewise.
5039 * dwarf2loc.c: Likewise.
5040 * dwarf2read.c: Likewise.
5041 * eval.c: Likewise.
5042 * event-loop.c: Likewise.
5043 * exceptions.c: Likewise.
5044 * expprint.c: Likewise.
5045 * f-valprint.c: Likewise.
5046 * fbsd-nat.c: Likewise.
5047 * findvar.c: Likewise.
5048 * frame-unwind.c: Likewise.
5049 * frame.c: Likewise.
5050 * frv-tdep.c: Likewise.
5051 * gcore.c: Likewise.
5052 * gdb-dlfcn.c: Likewise.
5053 * gdb_bfd.c: Likewise.
5054 * gdbarch.c: Likewise.
5055 * gdbarch.sh: Likewise.
5056 * gdbtypes.c: Likewise.
5057 * gnu-nat.c: Likewise.
5058 * gnu-v3-abi.c: Likewise.
5059 * go-lang.c: Likewise.
5060 * guile/scm-exception.c: Likewise.
5061 * guile/scm-gsmob.c: Likewise.
5062 * guile/scm-lazy-string.c: Likewise.
5063 * guile/scm-math.c: Likewise.
5064 * guile/scm-pretty-print.c: Likewise.
5065 * guile/scm-safe-call.c: Likewise.
5066 * guile/scm-utils.c: Likewise.
5067 * guile/scm-value.c: Likewise.
5068 * h8300-tdep.c: Likewise.
5069 * hppa-hpux-nat.c: Likewise.
5070 * hppa-tdep.c: Likewise.
5071 * hppanbsd-tdep.c: Likewise.
5072 * hppaobsd-tdep.c: Likewise.
5073 * i386-darwin-nat.c: Likewise.
5074 * i386-darwin-tdep.c: Likewise.
5075 * i386-nto-tdep.c: Likewise.
5076 * i386-tdep.c: Likewise.
5077 * i386bsd-nat.c: Likewise.
5078 * i386fbsd-tdep.c: Likewise.
5079 * i386gnu-nat.c: Likewise.
5080 * i386nbsd-tdep.c: Likewise.
5081 * i386obsd-tdep.c: Likewise.
5082 * i387-tdep.c: Likewise.
5083 * ia64-libunwind-tdep.c: Likewise.
5084 * ia64-tdep.c: Likewise.
5085 * inf-ptrace.c: Likewise.
5086 * inf-ttrace.c: Likewise.
5087 * infcall.c: Likewise.
5088 * infcmd.c: Likewise.
5089 * infrun.c: Likewise.
5090 * inline-frame.c: Likewise.
5091 * interps.c: Likewise.
5092 * jv-lang.c: Likewise.
5093 * jv-typeprint.c: Likewise.
5094 * linux-fork.c: Likewise.
5095 * linux-nat.c: Likewise.
5096 * linux-thread-db.c: Likewise.
5097 * m32c-tdep.c: Likewise.
5098 * m32r-linux-nat.c: Likewise.
5099 * m32r-tdep.c: Likewise.
5100 * m68k-tdep.c: Likewise.
5101 * m68kbsd-nat.c: Likewise.
5102 * m68kbsd-tdep.c: Likewise.
5103 * m88k-tdep.c: Likewise.
5104 * machoread.c: Likewise.
5105 * macroexp.c: Likewise.
5106 * macrotab.c: Likewise.
5107 * maint.c: Likewise.
5108 * mdebugread.c: Likewise.
5109 * memory-map.c: Likewise.
5110 * mep-tdep.c: Likewise.
5111 * mi/mi-common.c: Likewise.
5112 * microblaze-tdep.c: Likewise.
5113 * mingw-hdep.c: Likewise.
5114 * mips-linux-nat.c: Likewise.
5115 * mips-linux-tdep.c: Likewise.
5116 * mips-tdep.c: Likewise.
5117 * mips64obsd-tdep.c: Likewise.
5118 * mipsnbsd-tdep.c: Likewise.
5119 * mn10300-linux-tdep.c: Likewise.
5120 * mn10300-tdep.c: Likewise.
5121 * moxie-tdep.c: Likewise.
5122 * mt-tdep.c: Likewise.
5123 * nat/linux-btrace.c: Likewise.
5124 * nat/linux-osdata.c: Likewise.
5125 * nat/linux-ptrace.c: Likewise.
5126 * nat/mips-linux-watch.c: Likewise.
5127 * nios2-linux-tdep.c: Likewise.
5128 * nios2-tdep.c: Likewise.
5129 * objc-lang.c: Likewise.
5130 * objfiles.c: Likewise.
5131 * obsd-nat.c: Likewise.
5132 * opencl-lang.c: Likewise.
5133 * osabi.c: Likewise.
5134 * parse.c: Likewise.
5135 * ppc-linux-nat.c: Likewise.
5136 * ppc-sysv-tdep.c: Likewise.
5137 * ppcfbsd-nat.c: Likewise.
5138 * ppcfbsd-tdep.c: Likewise.
5139 * ppcnbsd-nat.c: Likewise.
5140 * ppcnbsd-tdep.c: Likewise.
5141 * ppcobsd-nat.c: Likewise.
5142 * ppcobsd-tdep.c: Likewise.
5143 * printcmd.c: Likewise.
5144 * procfs.c: Likewise.
5145 * prologue-value.c: Likewise.
5146 * psymtab.c: Likewise.
5147 * python/py-lazy-string.c: Likewise.
5148 * python/py-value.c: Likewise.
5149 * regcache.c: Likewise.
5150 * reggroups.c: Likewise.
5151 * registry.c: Likewise.
5152 * remote-sim.c: Likewise.
5153 * remote.c: Likewise.
5154 * rs6000-aix-tdep.c: Likewise.
5155 * rs6000-tdep.c: Likewise.
5156 * s390-linux-tdep.c: Likewise.
5157 * score-tdep.c: Likewise.
5158 * ser-base.c: Likewise.
5159 * ser-mingw.c: Likewise.
5160 * sh-tdep.c: Likewise.
5161 * sh64-tdep.c: Likewise.
5162 * solib-darwin.c: Likewise.
5163 * solib-spu.c: Likewise.
5164 * solib-svr4.c: Likewise.
5165 * source.c: Likewise.
5166 * sparc-nat.c: Likewise.
5167 * sparc-sol2-tdep.c: Likewise.
5168 * sparc-tdep.c: Likewise.
5169 * sparc64-sol2-tdep.c: Likewise.
5170 * sparc64-tdep.c: Likewise.
5171 * sparc64fbsd-tdep.c: Likewise.
5172 * sparc64nbsd-tdep.c: Likewise.
5173 * sparc64obsd-tdep.c: Likewise.
5174 * sparcnbsd-tdep.c: Likewise.
5175 * sparcobsd-tdep.c: Likewise.
5176 * spu-multiarch.c: Likewise.
5177 * spu-tdep.c: Likewise.
5178 * stabsread.c: Likewise.
5179 * stack.c: Likewise.
5180 * symfile.c: Likewise.
5181 * symtab.c: Likewise.
5182 * target-descriptions.c: Likewise.
5183 * target-memory.c: Likewise.
5184 * target.c: Likewise.
5185 * tic6x-linux-tdep.c: Likewise.
5186 * tic6x-tdep.c: Likewise.
5187 * tilegx-linux-nat.c: Likewise.
5188 * tilegx-tdep.c: Likewise.
5189 * top.c: Likewise.
5190 * tramp-frame.c: Likewise.
5191 * tui/tui-out.c: Likewise.
5192 * tui/tui-winsource.c: Likewise.
5193 * ui-out.c: Likewise.
5194 * user-regs.c: Likewise.
5195 * utils.c: Likewise.
5196 * v850-tdep.c: Likewise.
5197 * valops.c: Likewise.
5198 * value.c: Likewise.
5199 * varobj.c: Likewise.
5200 * vax-nat.c: Likewise.
5201 * xml-syscall.c: Likewise.
5202 * xml-tdesc.c: Likewise.
5203 * xstormy16-tdep.c: Likewise.
5204 * xtensa-linux-nat.c: Likewise.
5205 * xtensa-tdep.c: Likewise.
5206
5207 2014-08-07 Gary Benson <gbenson@redhat.com>
5208
5209 * common/common-defs.h: Include common-utils.h.
5210 * defs.h: Do not include common-utils.h.
5211 * common/gdb_assert.h: Likewise.
5212 * darwin-nat.h: Likewise.
5213 * nat/linux-btrace.c: Likewise.
5214 * target/waitstatus.h: Likewise.
5215
5216 2014-08-07 Gary Benson <gbenson@redhat.com>
5217
5218 * common/common-defs.h: Include ptid.h.
5219 * defs.h: Do not include ptid.h.
5220 * inferior.h: Likewise.
5221 * infrun.h: Likewise.
5222 * nat/linux-btrace.h: Likewise.
5223 * nat/linux-osdata.h: Likewise.
5224 * target/waitstatus.h: Likewise.
5225
5226 2014-08-07 Gary Benson <gbenson@redhat.com>
5227
5228 * common/common-defs.h: Include gdb_locale.h.
5229 * defs.h: Do not include gdb_locale.h.
5230
5231 2014-08-07 Gary Benson <gbenson@redhat.com>
5232
5233 * common/common-defs.h: Include gdb/signals.h.
5234 * defs.h: Do not include gdb/signals.h.
5235
5236 2014-08-07 Gary Benson <gbenson@redhat.com>
5237
5238 * common/common-defs.h: Include pathmax.h.
5239 * defs.h: Do not include pathmax.h.
5240
5241 2014-08-07 Gary Benson <gbenson@redhat.com>
5242
5243 * common/common-defs.h: Include libiberty.h.
5244 * defs.h: Do not include libiberty.h.
5245 * common/queue.h: Likewise.
5246 * cp-name-parser.y: Likewise.
5247 * mi/mi-cmd-catch.c: Likewise.
5248 * python/python.c: Likewise.
5249
5250 2014-08-07 Gary Benson <gbenson@redhat.com>
5251
5252 * common/common-defs.h: Include ansidecl.h.
5253 * defs.h: Do not include ansidecl.h.
5254 * common/buffer.h: Likewise.
5255 * common/common-utils.h: Likewise.
5256
5257 2014-08-07 Gary Benson <gbenson@redhat.com>
5258
5259 * common/common-defs.h: Include stddef.h.
5260 * defs.h: Do not include stddef.h.
5261 * common/common-utils.h: Likewise.
5262 * amd64fbsd-nat.c: Likewise.
5263 * bcache.c: Likewise.
5264 * charset.c: Likewise.
5265 * common/buffer.h: Likewise.
5266 * common/vec.h: Likewise.
5267 * i386bsd-nat.c: Likewise.
5268 * nat/linux-btrace.h: Likewise.
5269 * ppcfbsd-nat.c: Likewise.
5270 * ppcnbsd-tdep.h: Likewise.
5271 * ppcobsd-nat.c: Likewise.
5272 * ppcobsd-tdep.h: Likewise.
5273 * python/py-gdb-readline.c: Likewise.
5274
5275 2014-08-07 Gary Benson <gbenson@redhat.com>
5276
5277 * common/common-defs.h: Include stdarg.h.
5278 * defs.h: Do not include stdarg.h.
5279 * ada-lang.c: Likewise.
5280 * common/common-utils.h: Likewise.
5281 * guile/scm-string.c: Likewise.
5282 * guile/scm-utils.c: Likewise.
5283 * m32c-tdep.c: Likewise.
5284
5285 2014-08-07 Gary Benson <gbenson@redhat.com>
5286
5287 * common/common-defs.h: Include stdlib.h.
5288 * defs.h: Do not include stdlib.h.
5289 * addrmap.c: Likewise.
5290 * bcache.c: Likewise.
5291 * common/buffer.c: Likewise.
5292 * common/common-utils.c: Likewise.
5293 * cp-name-parser.y: Likewise.
5294 * go32-nat.c: Likewise.
5295 * mn10300-linux-tdep.c: Likewise.
5296 * nat/linux-osdata.c: Likewise.
5297 * tui/tui.c: Likewise.
5298 * windows-nat.c: Likewise.
5299
5300 2014-08-07 Gary Benson <gbenson@redhat.com>
5301
5302 * common/common-defs.h: Include stdio.h.
5303 * defs.h: Do not include stdio.h.
5304 * ada-lang.c: Likewise.
5305 * common/buffer.c: Likewise.
5306 * common/common-utils.c: Likewise.
5307 * cp-name-parser.y: Likewise.
5308 * gnu-nat.c: Likewise.
5309 * go32-nat.c: Likewise.
5310 * i386gnu-nat.c: Likewise.
5311 * proc-api.c: Likewise.
5312 * proc-events.c: Likewise.
5313 * proc-flags.c: Likewise.
5314 * proc-why.c: Likewise.
5315 * python/python-internal.h: Likewise.
5316 * target-memory.c: Likewise.
5317 * tui/tui-io.c: Likewise.
5318 * tui/tui.c: Likewise.
5319
5320 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5321
5322 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5323 (scan_dyntag_auxv): Same.
5324
5325 2014-08-06 Yao Qi <yao@codesourcery.com>
5326
5327 * amd64-linux-nat.c: Remove duplicated include
5328 "x86-linux-nat.h".
5329 * i386-linux-nat.c: Likewise.
5330
5331 2014-08-06 Yao Qi <yao@codesourcery.com>
5332
5333 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5334 operand" with "Special opcode" in comments.
5335
5336 2014-08-05 Gary Benson <gbenson@redhat.com>
5337
5338 * interps.c (initialize_interps): Remove prototype.
5339 (interpreter_initialized): Remove static global.
5340 (interp_add): Do not call initialize_interps.
5341 (initialize_interps): Remove function.
5342
5343 2014-08-05 Gary Benson <gbenson@redhat.com>
5344
5345 * utils.c (vwarning): Remove spurious va_end.
5346
5347 2014-08-05 Alan Modra <amodra@gmail.com>
5348
5349 * charset.c (convert_between_encodings): Cast result of obstack_base.
5350 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5351 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5352 (read_unwind_info): Use size_t for some locals.
5353 * jit.c (finalize_symtab): Likewise.
5354 * utils.c (hashtab_obstack_allocate): Likewise.
5355 * symmisc.c (print_objfile_statistics): Update format strings.
5356
5357 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5358
5359 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5360 (Changes in GDB 7.8): ... here.
5361
5362 2014-08-04 Tom Tromey <tromey@redhat.com>
5363
5364 * target.c (set_targetdebug): New function.
5365 (initialize_targets): Pass set_targetdebug when creating "set
5366 debug target".
5367
5368 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5369
5370 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5371 if detecting a variable-sized field that is not the last field.
5372 Fix struct type length computation.
5373
5374 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5375
5376 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5377 Add debug trace.
5378
5379 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5380
5381 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5382 Remove "+ 8" offset in computation of CHAIN_VMA.
5383
5384 2014-07-31 Doug Evans <dje@google.com>
5385
5386 * inflow.c (child_terminal_inferior): Add comment.
5387 (child_terminal_ours_for_output): Add comment.
5388 (child_terminal_ours): Add comment.
5389 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5390 (linux_nat_terminal_ours): Add comment.
5391
5392 2014-07-31 Gary Benson <gbenson@redhat.com>
5393
5394 * common/btrace-common.h: Do not include defs.h or server.h.
5395 * nat/mips-linux-watch.h: Likewise.
5396 * gdb-dlfcn.h: Do not include defs.h.
5397 * tracefile.h: Likewise.
5398
5399 2014-07-30 Roland McGrath <mcgrathr@google.com>
5400
5401 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5402
5403 2014-07-30 Tom Tromey <tromey@redhat.com>
5404
5405 * bsd-kvm.c (bsd_kvm_open): Constify.
5406 * corelow.c (core_open): Constify.
5407 * ctf.c (ctf_open): Constify.
5408 * dbug-rom.c (dbug_open): Constify.
5409 * exec.c (exec_open): Constify.
5410 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5411 * microblaze-rom.c (picobug_open): Constify.
5412 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5413 Constify.
5414 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5415 * record-btrace.c (record_btrace_open): Constify.
5416 * record-full.c (record_full_core_open_1, record_full_open_1)
5417 (record_full_open): Constify.
5418 * remote-m32r-sdi.c (m32r_open): Constify.
5419 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5420 (rockhopper_open, lsi_open): Constify.
5421 * remote-sim.c (gdbsim_open): Constify.
5422 * remote.c (remote_open, extended_remote_open, remote_open_1):
5423 Constify.
5424 * target.h (struct target_ops) <to_open>: Make "arg" const.
5425 * tracefile-tfile.c (tfile_open): Constify.
5426
5427 2014-07-30 Tom Tromey <tromey@redhat.com>
5428
5429 * breakpoint.c (map_breakpoint_numbers): Update.
5430 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5431 (get_number_const): New function.
5432 (get_number): Rewrite using get_number_const.
5433 (init_number_or_range): Make "string" const.
5434 (number_is_in_list): Make "list" const.
5435 * cli/cli-utils.h (get_number_const): Declare.
5436 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5437 (init_number_or_range, number_is_in_list): Update.
5438 * printcmd.c (map_display_numbers): Update.
5439 * value.c (value_from_history_ref): Constify.
5440 * value.h (value_from_history_ref): Update.
5441
5442 2014-07-30 Tom Tromey <tromey@redhat.com>
5443
5444 * corefile.c (hook_type, call_extra_exec_file_hooks)
5445 (specify_exec_file_hook): Constify.
5446 * exec.c (exec_file_attach): Make "filename" const.
5447 * gdbcore.h (deprecated_exec_file_display_hook)
5448 (specify_exec_file_hook, exec_file_attach): Constify.
5449 * main.c (captured_main): Use catch_command_errors_const.
5450
5451 2014-07-30 Tom Tromey <tromey@redhat.com>
5452
5453 * target.c (open_target): New function.
5454 (add_target_with_completer, add_deprecated_target_alias): Use
5455 set_cmd_sfunc, set_cmd_context.
5456 (debug_to_open): Remove.
5457 (setup_target_debug): Update.
5458
5459 2014-07-30 Yao Qi <yao@codesourcery.com>
5460
5461 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5462 comments.
5463 * parse.c (exp_iterate): Update comments.
5464
5465 2014-07-30 Gary Benson <gbenson@redhat.com>
5466
5467 * common/common-defs.h: New file.
5468 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5469 * defs.h: Include common-defs.h.
5470 Do not include config.h or build-gnulib/config.h.
5471
5472 2014-07-30 Gary Benson <gbenson@redhat.com>
5473
5474 * common/common-utils.h: Do not include config.h.
5475 * nat/linux-btrace.h: Likewise.
5476
5477 2014-07-30 Gary Benson <gbenson@redhat.com>
5478
5479 * btrace.c: Include defs.h.
5480 * common/ptid.c: Include defs.h or server.h as appropriate.
5481 * nat/mips-linux-watch.c: Likewise.
5482
5483 2014-07-29 Tom Tromey <tromey@redhat.com>
5484
5485 * target.c (target_is_pushed): Simplify.
5486
5487 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5488
5489 GDB 7.8 released.
5490
5491 2014-07-29 Yao Qi <yao@codesourcery.com>
5492
5493 PR gdb/17206
5494 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5495
5496 2014-07-28 Doug Evans <xdje42@gmail.com>
5497
5498 PR guile/17203
5499 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5500 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5501 parameters.
5502
5503 2014-07-28 Will Newton <will.newton@linaro.org>
5504
5505 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5506 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5507 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5508 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5509 (THUMB2_EABI_SYSCALL): Likewise.
5510 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5511 struct tramp_frame.
5512 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5513 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5514
5515 2014-07-27 Doug Evans <xdje42@gmail.com>
5516
5517 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5518
5519 2014-07-27 Doug Evans <xdje42@gmail.com>
5520
5521 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5522
5523 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5524 Doug Evans <xdje42@gmail.com>
5525
5526 PR guile/17146
5527 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5528 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5529 * configure.ac: Try to use guild to compile an scm file, if it fails
5530 then disable guile support.
5531 * configure: Regenerate.
5532 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5533 GUILE_FILE_LIST.
5534 (GUILE_COMPILED_FILES): New variable.
5535 (GUILE_FILES) Update.
5536 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5537 (stamp-guile): Compile scm files.
5538 * guile/guile.c (boot_guile_support): New function.
5539 (standard_throw_args_p): New function.
5540 (print_standard_throw_error, print_throw_error): New functions.
5541 (handle_boot_error): New function.
5542 (initialize_scheme_side): Rewrite to call boot_guile_support.
5543 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5544 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5545
5546 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5547 Doug Evans <xdje42@gmail.com>
5548
5549 PR guile/17146
5550 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5551 * guile/lib/gdb/support.scm: New file.
5552 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5553 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5554 All uses updated.
5555 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5556 All uses updated.
5557 (%assert-type): Ditto, and renamed to assert-type.
5558 (%exception-print-style): Delete.
5559
5560 2014-07-26 Doug Evans <xdje42@gmail.com>
5561
5562 PR build/17105
5563 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5564 * configure: Regenerate.
5565 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5566 PYTHON_FILES.
5567 (PYTHON_FILES): New variable.
5568 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5569 (GUILE_FILES): New variable.
5570 (stamp-python, install-python, uninstall-python): Handle empty
5571 file list.
5572 (stamp-guile, install-guile, uninstall-guile): Ditto.
5573
5574 2014-07-26 Doug Evans <xdje42@gmail.com>
5575
5576 PR guile/17177
5577 * guile/lib/gdb.scm (pretty-printers): Export.
5578 (set-pretty-printers!): Export.
5579 * guile/lib/gdb/printing.scm (gdb module): Update.
5580 (prepend-pretty-printer!, append-pretty-printer!): Update.
5581 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5582 (pretty_printer_list_var): Delete.
5583 (pretty_printer_list): New static global.
5584 (gdbscm_pretty_printers): New function.
5585 (gdbscm_set_pretty_printers_x): New function.
5586 (ppscm_find_pretty_printer_from_gdb): Update.
5587 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5588 (gdbscm_initialize_pretty_printers): Update.
5589
5590 2014-07-26 Doug Evans <xdje42@gmail.com>
5591
5592 PR 17185
5593 * configure.ac: Add check for header gc/gc.h.
5594 Add check for function setenv.
5595 * configure: Regenerate.
5596 * config.in: Regenerate.
5597 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5598
5599 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5600
5601 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5602 variation in gdbarch matching.
5603
5604 2014-07-25 Tom Tromey <tromey@redhat.com>
5605
5606 * exec.c (using_exec_ops): Remove.
5607 (exec_close_1): Update. Remove extraneous block, reindent.
5608 (add_target_sections): Use target_is_pushed.
5609
5610 2014-07-25 Pedro Alves <palves@redhat.com>
5611
5612 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5613 * monitor.c (monitor_create_inferior): Likewise.
5614 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5615 * remote-sim.c (gdbsim_create_inferior): Likewise.
5616 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5617 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5618 * windows-nat.c (do_initial_windows_stuff): Likewise.
5619
5620 2014-07-25 Pedro Alves <palves@redhat.com>
5621
5622 * NEWS: Mention signal passing and "signal" command changes.
5623 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5624 comment.
5625 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5626 call.
5627 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5628 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5629 (jump_command): Adjust clear_proceed_status call.
5630 (signal_command): Warn if other thread that are resumed have
5631 signals that will be delivered. Adjust clear_proceed_status call.
5632 (until_next_command, finish_command)
5633 (proceed_after_attach_callback, attach_command_post_wait)
5634 (attach_command): Adjust clear_proceed_status call.
5635 * infrun.c (proceed_after_vfork_done): Likewise.
5636 (proceed_after_attach_callback): Adjust comment.
5637 (clear_proceed_status_thread): Clear stop_signal if not in pass
5638 state.
5639 (clear_proceed_status_callback): Delete.
5640 (clear_proceed_status): New 'step' parameter. Only clear the
5641 proceed status of threads the command being prepared is about to
5642 resume.
5643 (proceed): If passed in an explicit signal, override stop_signal
5644 with it. Don't pass the last stop signal to the thread we're
5645 resuming.
5646 (init_wait_for_inferior): Adjust clear_proceed_status call.
5647 (switch_back_to_stepped_thread): Clear the signal if it should not
5648 be passed.
5649 * infrun.h (clear_proceed_status): New 'step' parameter.
5650 (user_visible_resume_ptid): Add comment.
5651 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5652 signal is in pass state.
5653 * remote.c (append_pending_thread_resumptions): Likewise.
5654 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5655
5656 2014-07-25 Tom Tromey <tromey@redhat.com>
5657
5658 * target.h (target_stopped_data_address)
5659 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5660 parentheses.
5661
5662 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5663
5664 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5665 comments.
5666 (avr_pointer_to_address): Likewise.
5667
5668 2014-07-24 Tom Tromey <tromey@redhat.com>
5669
5670 * monitor.c (compile_pattern): Update.
5671 * target.h (struct target_ops) <to_shortname, to_longname,
5672 to_doc>: Now const.
5673
5674 2014-07-24 Tom Tromey <tromey@redhat.com>
5675
5676 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5677 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5678 (add_info_alias, add_com): Make "doc" const.
5679 (print_doc_line): Make "str" const.
5680 (delete_cmd): Update.
5681 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5682 (print_doc_line): Update.
5683 * cli/cli-script.c (document_command): Update.
5684 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5685 (add_com, add_info, add_info_alias): Update.
5686 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5687 * python/py-cmd.c (cmdpy_destroyer): Update.
5688
5689 2014-07-24 Tom Tromey <tromey@redhat.com>
5690
5691 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5692 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5693 (help_cmd_list): Constify.
5694 (lookup_cmd): Update.
5695 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5696 const.
5697 (help_cmd_list, apropos_cmd): Update.
5698 * cli/cli-script.c (show_user): Update.
5699 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5700 * cli/cli-setshow.h (cmd_show_list): Update.
5701 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5702 (cmd_show_list): Update.
5703 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5704 * python/py-cmd.c (cmdpy_destroyer): Update.
5705
5706 2014-07-24 Tom Tromey <tromey@redhat.com>
5707
5708 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5709 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5710 const.
5711 * command.h (deprecate_cmd): Update.
5712 * maint.c (maintenance_do_deprecate): Add casts.
5713
5714 2014-07-24 Tom Tromey <tromey@redhat.com>
5715
5716 * cli/cli-decode.c (help_cmd): Make parameter "const".
5717 * cli/cli-decode.h (help_cmd): Update.
5718
5719 2014-07-24 Tom Tromey <tromey@redhat.com>
5720
5721 * stack.c (up_silently_base, down_silently_base): Make argument
5722 const.
5723
5724 2014-07-24 Tom Tromey <tromey@redhat.com>
5725
5726 * solib.c (solib_add): Make "pattern" const.
5727 * solib.h (solib_add): Update.
5728
5729 2014-07-24 Tom Tromey <tromey@redhat.com>
5730
5731 * remote.c (remote_serial_open, print_packet, putpkt)
5732 (putpkt_binary): Constify.
5733 * remote.h (putpkt): Update.
5734
5735 2014-07-24 Tom Tromey <tromey@redhat.com>
5736
5737 * monitor.c (monitor_open): Make "args" const.
5738 * monitor.h (monitor_open): Update.
5739
5740 2014-07-24 Tom Tromey <tromey@redhat.com>
5741
5742 * maint.c (match_bfd_flags): Make "string" const.
5743 (print_bfd_section_info): Remove casts.
5744 (print_objfile_section_info): Make "string" const.
5745
5746 2014-07-24 Tom Tromey <tromey@redhat.com>
5747
5748 * inf-child.c (inf_child_open_target): Make "arg" const.
5749 * inf-child.h (inf_child_open_target): Update.
5750
5751 2014-07-24 Tom Tromey <tromey@redhat.com>
5752
5753 * environ.c (unset_in_environ): Make "var" const.
5754 * environ.h (unset_in_environ): Update.
5755
5756 2014-07-24 Tom Tromey <tromey@redhat.com>
5757
5758 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5759 Make "cmd" const.
5760 (scan_filename_with_cleanup): Likewise.
5761 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5762 Make arguments const.
5763 (restore_command): Update.
5764
5765 2014-07-24 Pedro Alves <palves@redhat.com>
5766
5767 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5768
5769 2014-07-24 Tom Tromey <tromey@redhat.com>
5770 Gary Benson <gbenson@redhat.com>
5771
5772 * nat/linux-ptrace.c (additional_flags): New global.
5773 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5774 additional_flags; don't check GDBSERVER.
5775 (linux_ptrace_set_additional_flags): New function.
5776 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5777 Declare.
5778 * linux-nat.c (_initialize_linux_nat): Call
5779 linux_ptrace_set_additional_flags.
5780
5781 2014-07-24 Tom Tromey <tromey@redhat.com>
5782
5783 * make-target-delegates (munge_type, write_debugmethod): New
5784 functions.
5785 (debug_names): New global.
5786 ($TARGET_DEBUG_PRINTER): New global.
5787 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5788 name.
5789 Write debug methods. Generate init_debug_target.
5790 * target-debug.h: New file.
5791 * target-delegates.c: Rebuild.
5792 * target.c: Include target-debug.h.
5793 (debug_target): Hoist definition.
5794 (target_kill, target_get_section_table, target_memory_map)
5795 (target_flash_erase, target_flash_done, target_detach)
5796 (target_disconnect, target_wait, target_resume)
5797 (target_pass_signals, target_program_signals, target_follow_fork)
5798 (target_mourn_inferior, target_search_memory)
5799 (target_thread_address_space, target_close)
5800 (target_find_new_threads, target_core_of_thread)
5801 (target_verify_memory, target_insert_mask_watchpoint)
5802 (target_remove_mask_watchpoint): Remove targetdebug code.
5803 (debug_to_post_attach, debug_to_prepare_to_store)
5804 (debug_to_files_info, debug_to_insert_breakpoint)
5805 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5806 (debug_to_region_ok_for_hw_watchpoint)
5807 (debug_to_can_accel_watchpoint_condition)
5808 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5809 (debug_to_watchpoint_addr_within_range)
5810 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5811 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5812 (debug_to_terminal_init, debug_to_terminal_inferior)
5813 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5814 (debug_to_terminal_save_ours, debug_to_terminal_info)
5815 (debug_to_load, debug_to_post_startup_inferior)
5816 (debug_to_insert_fork_catchpoint)
5817 (debug_to_remove_fork_catchpoint)
5818 (debug_to_insert_vfork_catchpoint)
5819 (debug_to_remove_vfork_catchpoint)
5820 (debug_to_insert_exec_catchpoint)
5821 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5822 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5823 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5824 (setup_target_debug): Call init_debug_target.
5825 * target.h (TARGET_DEBUG_PRINTER): New macro.
5826 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5827 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5828
5829 2014-07-24 Gary Benson <gbenson@redhat.com>
5830
5831 * exceptions.h (throw_vfatal): Renamed to...
5832 (throw_vquit): New declaration.
5833 (throw_quit): Likewise.
5834 * exceptions.c (throw_vfatal): Renamed to...
5835 (throw_vquit): New function.
5836 (throw_quit): Likewise.
5837 (throw_error): Call throw_verror rather than throw_it.
5838 * utils.h (vfatal): Removed.
5839 (fatal): Likewise.
5840 * utils.c (vfatal): Removed.
5841 (fatal): Likewise.
5842 (internal_verror): Replaced call to fatal with call to throw_quit.
5843 (quit): Replaced calls to fatal with calls to throw_quit.
5844
5845 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5846
5847 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5848 target_read_code.
5849
5850 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5851
5852 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5853 less than zero in conditional expression.
5854
5855 2014-07-23 Tom Tromey <tromey@redhat.com>
5856
5857 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5858 ($INTRO_PART): Don't match whitespace.
5859 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5860 argument matching.
5861 ($METHOD): Add $METHOD_TRAILER.
5862 (trim): Rewrite.
5863 (scan_target_h): New sub.
5864 Change main loop not to collect state.
5865 * target-delegates.c: Rebuild.
5866
5867 2014-07-23 Gary Benson <gbenson@redhat.com>
5868
5869 * cp-support.c (gdb_demangle): Fix build on systems without
5870 sigaltstack.
5871
5872 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5873
5874 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5875 for reference entry value target data value.
5876
5877 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5878
5879 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5880 value_available_contents_eq.
5881
5882 2014-07-22 Pedro Alves <palves@redhat.com>
5883
5884 * value.c (allocate_optimized_out_value): Don't mark value as
5885 non-lazy.
5886
5887 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5888
5889 * MAINTAINERS (Write After Approval): Update my email address.
5890
5891 2014-07-20 Doug Evans <dje@google.com>
5892
5893 PR server/17147
5894 * remote.c (putpkt_binary): Add text to error message.
5895
5896 2014-07-20 Yao Qi <yao@codesourcery.com>
5897
5898 * eval.c: Remove "Chill" from comments.
5899 * gdbtypes.h: Likewise.
5900 * symtab.h: Likewise.
5901
5902 2014-07-20 Yao Qi <yao@codesourcery.com>
5903
5904 * std-operator.def: Update comments to TERNOP_SLICE.
5905
5906 2014-07-20 Yao Qi <yao@codesourcery.com>
5907
5908 * std-operator.def: Remove BINOP_RANGE.
5909 * breakpoint.c (watchpoint_exp_is_const): Update.
5910 * expprint.c (dump_subexp_body_standard): Likewise.
5911 * eval.c (init_array_element): Remove dead code.
5912 (evaluate_subexp_standard): Likewise.
5913
5914 2014-07-20 Yao Qi <yao@codesourcery.com>
5915
5916 * std-operator.def: Remove BINOP_IN.
5917 * breakpoint.c (watchpoint_exp_is_const): Update.
5918 * eval.c (evaluate_subexp_standard): Likewise.
5919 * expprint.c (dump_subexp_body_standard): Likewise.
5920
5921 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5922
5923 * microblaze-tdep.c (microblaze_register_names): Add
5924 the rshr and rslr register names.
5925 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5926 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5927 Use of tdesc_numbered_register. Use of
5928 microblaze_register_g_packet_guesses. Use of
5929 tdesc_use_registers. Use of set_gdbarch_register_type.
5930 (microblaze_register_g_packet_guesses): New.
5931 * microblaze-tdep.h (microblaze_reg_num): Add
5932 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5933 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5934 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5935 * features/microblaze-core.xml: New file.
5936 * features/microblaze-stack-protect.xml: New file.
5937 * features/microblaze-with-stack-protect.c: New file.
5938 * features/microblaze-with-stack-protect.xml: New file.
5939 * features/microblaze.xml: New file.
5940 * features/microblaze.c: New file.
5941 * features/Makefile (microblaze-with-stack-protect): Add
5942 microblaze-with-stack-protect microblaze and microblaze-expedite.
5943 * regformats/microblaze-with-stack-protect.dat: New file.
5944 * regformats/microblaze.dat: New file.
5945 * doc/gdb.texinfo (MicroBlaze Features): Added.
5946
5947 2014-07-18 Tom Tromey <tromey@redhat.com>
5948
5949 * exec.c (exec_ops): Now static.
5950 * exec.h (exec_ops): Don't declare.
5951
5952 2014-07-18 Tom Tromey <tromey@redhat.com>
5953
5954 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5955 to find_target_beneath.
5956 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5957 find_target_beneath.
5958 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5959
5960 2014-07-18 Tom Tromey <tromey@redhat.com>
5961
5962 PR gdb/17130:
5963 * utils.c (quit): Use target_supports_terminal_ours.
5964 * target.h (target_supports_terminal_ours): Declare.
5965 * target.c (target_supports_delete_record): Don't check
5966 to_delete_record against NULL.
5967 (target_supports_terminal_ours): New function.
5968
5969 2014-07-18 Tom Tromey <tromey@redhat.com>
5970
5971 PR gdb/17130:
5972 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5973 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5974 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5975 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5976 * windows-nat.c (windows_xfer_partial): Always delegate.
5977 * record-btrace.c (record_btrace_xfer_partial): Simplify
5978 delegation.
5979 (record_btrace_fetch_registers, record_btrace_store_registers)
5980 (record_btrace_prepare_to_store, record_btrace_resume)
5981 (record_btrace_wait, record_btrace_find_new_threads)
5982 (record_btrace_thread_alive): Likewise.
5983 * procfs.c (procfs_xfer_partial): Always delegate.
5984 * corelow.c (core_xfer_partial): Always delegate.
5985 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5986
5987 2014-07-18 Tom Tromey <tromey@redhat.com>
5988
5989 * exec.c (exec_make_note_section): Move earlier.
5990
5991 2014-07-17 Doug Evans <dje@google.com>
5992
5993 PR gdb/17170
5994 * maint.c (count_symtabs_and_blocks): Handle NULL
5995 current_program_space.
5996 (report_command_stats): Check global enabled flag in addition to
5997 recorded enabled flag.
5998 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5999
6000 2014-07-16 Pedro Alves <palves@redhat.com>
6001
6002 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6003
6004 2014-07-16 Tom Tromey <tromey@redhat.com>
6005
6006 * target.h (struct target_ops) <to_delete_record>: Reformat
6007 comment.
6008
6009 2014-07-16 Tom Tromey <tromey@redhat.com>
6010
6011 * target-delegates.c: Rebuild.
6012
6013 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6014
6015 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6016 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6017 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6018 (avr_pointer_to_address): Likewise.
6019 (avr_address_class_type_flags): New function.
6020 (avr_address_class_type_flags_to_name): Likewise.
6021 (avr_address_class_name_to_type_flags): Likewise.
6022 (avr_gdbarch_init): Set address_class_type_flags,
6023 address_class_type_flags_to_name and
6024 address_class_name_to_type_flags.
6025
6026 2014-07-15 Pedro Alves <palves@redhat.com>
6027
6028 * linux-nat.c (kill_callback): Save errno and work with saved
6029 copy.
6030
6031 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6032
6033 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6034
6035 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6036
6037 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6038 breakpoint support correctly.
6039
6040 2014-07-14 Pedro Alves <palves@redhat.com>
6041
6042 * utils.c (prompt_for_continue): Call target_terminal_ours.
6043
6044 2014-07-14 Pedro Alves <palves@redhat.com>
6045
6046 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6047 catch_errors. Don't re-enable stdin or notify observers where,
6048 and rethrow error.
6049 (fetch_inferior_event_wrapper): Delete.
6050
6051 2014-07-14 Pedro Alves <palves@redhat.com>
6052
6053 PR gdb/17072
6054 * top.c: Include "inf-loop.h".
6055 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6056 field.
6057 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6058 was async before.
6059 (gdb_readline_wrapper): Store whether the target is async, and
6060 make it sync.
6061
6062 2014-07-14 Pedro Alves <palves@redhat.com>
6063
6064 PR gdb/17072
6065 * top.c (gdb_readline_wrapper_line): Tweak comment.
6066 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6067 the input handler callback.
6068
6069 2014-07-14 Pedro Alves <palves@redhat.com>
6070
6071 PR gdb/17072
6072 * main.c: Include event-top.h.
6073 (handle_command_errors): New function.
6074 (catch_command_errors, catch_command_errors_const): Use it.
6075
6076 2014-07-14 Pedro Alves <palves@redhat.com>
6077
6078 * exceptions.c (catch_command_errors, catch_command_errors_const):
6079 Moved to main.c.
6080 * exceptions.h (catch_command_errors_ftype)
6081 (catch_command_errors_const_ftype): Moved to main.c.
6082 (catch_command_errors, catch_command_errors_const): Delete
6083 declarations.
6084 * main.c (catch_command_errors_ftype)
6085 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6086 (catch_command_errors, catch_command_errors_const)): Moved here
6087 from exceptions.c and make static.
6088
6089 2014-07-14 Pedro Alves <palves@redhat.com>
6090
6091 * exceptions.c (print_any_exception): Delete.
6092 (catch_exceptions_with_msg): Use exception_print instead of
6093 print_any_exception.
6094 (catch_errors): Use exception_fprintf instead of
6095 print_any_exception.
6096 (catch_command_errors, catch_command_errors_const): Use
6097 exception_print instead of print_any_exception.
6098
6099 2014-07-14 Pedro Alves <palves@redhat.com>
6100
6101 * infcall.c (run_inferior_call): Set 'sync_execution' while
6102 running the inferior call.
6103
6104 2014-07-14 Pedro Alves <palves@redhat.com>
6105
6106 * value.c (value_contents_equal): Delete function.
6107 * value.h (value_contents_equal): Delete declaration.
6108
6109 2014-07-14 Tom Tromey <tromey@redhat.com>
6110
6111 PR exp/17106:
6112 * gdbtypes.c (is_dynamic_type_internal): New function, from
6113 is_dynamic_type.
6114 (is_dynamic_type): Rewrite.
6115 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6116 (resolve_dynamic_struct): Likewise.
6117 (resolve_dynamic_type_internal): New function, from
6118 resolve_dynamic_type.
6119 (resolve_dynamic_type): Rewrite.
6120
6121 2014-07-14 Tom Tromey <tromey@redhat.com>
6122
6123 * target.c (target_require_runnable): Also check record_stratum.
6124 Update comment.
6125
6126 2014-07-11 Yao Qi <yao@codesourcery.com>
6127
6128 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6129 thumb_instruction_restores_sp return true.
6130
6131 2014-07-11 Yao Qi <yao@codesourcery.com>
6132
6133 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6134 (thumb_in_function_epilogue_p): Call
6135 thumb_instruction_restores_sp.
6136
6137 2014-07-11 Yao Qi <yao@codesourcery.com>
6138
6139 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6140 'add sp, #imm'.
6141 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6142
6143 2014-07-11 Gary Benson <gbenson@redhat.com>
6144
6145 * amd64-linux-nat.c (gdbcore.h): Remove include.
6146 (regset.h): Likewise.
6147 (nat/linux-btrace.h): Likewise.
6148 (btrace.h): Likewise.
6149 (gdb_assert.h): Likewise.
6150 (string.h): Likewise.
6151 (sys/uio.h): Likewise.
6152 (sys/debugreg.h): Likewise.
6153 (sys/syscall.h): Likewise.
6154 (sys/procfs.h): Likewise.
6155 (sys/user.h): Likewise.
6156 (asm/ptrace.h): Likewise.
6157 (i386-nat.h): Likewise.
6158 * i386-linux-nat.c (i386-nat.h): Likewise.
6159 (regset.h): Likewise.
6160 (target.h): Likewise.
6161 (linux-nat.h): Likewise.
6162 (nat/linux-btrace.h): Likewise.
6163 (btrace.h): Likewise.
6164 (gdb_assert.h): Likewise.
6165 (string.h): Likewise.
6166 (sys/uio.h): Likewise.
6167 (sys/user.h): Likewise.
6168 (sys/procfs.h): Likewise.
6169 (sys/reg.h): Likewise.
6170 (sys/debugreg.h): Likewise.
6171 (ORIG_EAX): Remove definition.
6172
6173 2014-07-11 Gary Benson <gbenson@redhat.com>
6174
6175 * i386-linux-nat.h: New file.
6176 * x86-linux-nat.h: Likewise.
6177 * x86-linux-nat.c: Likewise.
6178 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6179 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6180 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6181 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6182 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6183 (PTRACE_SETREGSET): Likewise.
6184 (arch_lwp_info): Now in x86-linux-nat.c.
6185 (have_ptrace_getregset): Now in x86-linux-nat.h.
6186 (x86_linux_dr_get): Now in x86-linux-nat.c.
6187 (x86_linux_dr_set): Likewise.
6188 (x86_linux_dr_get_addr): Likewise.
6189 (x86_linux_dr_get_control): Likewise.
6190 (x86_linux_dr_get_status): Likewise.
6191 (update_debug_registers_callback): Likewise.
6192 (x86_linux_dr_set_control): Likewise.
6193 (x86_linux_dr_set_addr): Likewise.
6194 (x86_linux_prepare_to_resume): Likewise.
6195 (x86_linux_new_thread): Likewise.
6196 (x86_linux_new_fork): Likewise.
6197 (x86_linux_get_thread_area): Likewise.
6198 (super_post_startup_inferior): Likewise.
6199 (x86_linux_child_post_startup_inferior): Likewise.
6200 (AMD64_LINUX_USER64_CS): Likewise.
6201 (AMD64_LINUX_X32_DS): Likewise.
6202 (x86_linux_read_description): Likewise.
6203 (x86_linux_enable_btrace): Likewise.
6204 (x86_linux_disable_btrace): Likewise.
6205 (x86_linux_teardown_btrace): Likewise.
6206 (x86_linux_read_btrace): Likewise.
6207 (x86_linux_create_target): Likewise.
6208 (x86_linux_add_target): Likewise.
6209 * i386-linux-nat.c (x86-linux-nat.h): New include.
6210 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6211 (PTRACE_SETREGSET): Likewise.
6212 (arch_lwp_info): Now in x86-linux-nat.c.
6213 (have_ptrace_getregset): Now in x86-linux-nat.h.
6214 (x86_linux_dr_get): Now in x86-linux-nat.c.
6215 (x86_linux_dr_set): Likewise.
6216 (x86_linux_dr_get_addr): Likewise.
6217 (x86_linux_dr_get_control): Likewise.
6218 (x86_linux_dr_get_status): Likewise.
6219 (update_debug_registers_callback): Likewise.
6220 (x86_linux_dr_set_control): Likewise.
6221 (x86_linux_dr_set_addr): Likewise.
6222 (x86_linux_prepare_to_resume): Likewise.
6223 (x86_linux_new_thread): Likewise.
6224 (x86_linux_new_fork): Likewise.
6225 (x86_linux_get_thread_area): Likewise.
6226 (super_post_startup_inferior): Likewise.
6227 (x86_linux_child_post_startup_inferior): Likewise.
6228 (AMD64_LINUX_USER64_CS): Likewise.
6229 (AMD64_LINUX_X32_DS): Likewise.
6230 (x86_linux_read_description): Likewise.
6231 (x86_linux_enable_btrace): Likewise.
6232 (x86_linux_disable_btrace): Likewise.
6233 (x86_linux_teardown_btrace): Likewise.
6234 (x86_linux_read_btrace): Likewise.
6235 (x86_linux_create_target): Likewise.
6236 (x86_linux_add_target): Likewise.
6237
6238 2014-07-11 Gary Benson <gbenson@redhat.com>
6239
6240 * amd64-linux-nat.c: Comment and whitespace changes.
6241 * i386-linux-nat.c: Comment and whitespace changes.
6242
6243 2014-07-11 Gary Benson <gbenson@redhat.com>
6244
6245 * amd64-linux-nat.c (x86_linux_create_target): New function.
6246 (x86_linux_add_target): Likewise.
6247 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6248 * i386-linux-nat.c (x86_linux_create_target): New function.
6249 (x86_linux_add_target): Likewise.
6250 (_initialize_i386_linux_nat): Delegate to the above new functions.
6251
6252 2014-07-11 Gary Benson <gbenson@redhat.com>
6253
6254 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6255 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6256 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6257 (ps_get_thread_area): Delegate to the above.
6258
6259 2014-07-11 Gary Benson <gbenson@redhat.com>
6260
6261 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6262 x86_linux_read_description. All uses updated. amd64-specific
6263 code conditionalized. Conditionalized i386-specific code added.
6264 Redundant cast removed.
6265 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6266 x86_linux_read_description. All uses updated. i386-specific
6267 code conditionalized. Conditionalized amd64-specific code added.
6268 One sizeof replaced with the actual type it is describing.
6269
6270 2014-07-11 Gary Benson <gbenson@redhat.com>
6271
6272 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6273 x86_linux_dr_get. All uses updated.
6274 (amd64_linux_dr_set): Renamed to
6275 x86_linux_dr_set. All uses updated.
6276 (amd64_linux_dr_get_addr): Renamed to
6277 x86_linux_dr_get_addr. All uses updated.
6278 (amd64_linux_dr_get_control): Renamed to
6279 x86_linux_dr_get_control. All uses updated.
6280 (amd64_linux_dr_get_status): Renamed to
6281 x86_linux_dr_get_status. All uses updated.
6282 (amd64_linux_dr_set_control): Renamed to
6283 x86_linux_dr_set_control. All uses updated.
6284 (amd64_linux_dr_set_addr): Renamed to
6285 x86_linux_dr_set_addr. All uses updated.
6286 (amd64_linux_prepare_to_resume): Renamed to
6287 x86_linux_prepare_to_resume. All uses updated.
6288 (amd64_linux_new_thread): Renamed to
6289 x86_linux_new_thread. All uses updated.
6290 (amd64_linux_new_fork): Renamed to
6291 x86_linux_new_fork. All uses updated.
6292 (amd64_linux_child_post_startup_inferior): Renamed to
6293 x86_linux_child_post_startup_inferior. All uses updated.
6294 (amd64_linux_enable_btrace): Renamed to
6295 x86_linux_enable_btrace. All uses updated.
6296 (amd64_linux_disable_btrace): Renamed to
6297 x86_linux_disable_btrace. All uses updated.
6298 (amd64_linux_teardown_btrace): Renamed to
6299 x86_linux_teardown_btrace. All uses updated.
6300 (amd64_linux_read_btrace): Renamed to
6301 x86_linux_read_btrace. All uses updated.
6302 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6303 x86_linux_dr_get. All uses updated.
6304 (i386_linux_dr_set): Renamed to
6305 x86_linux_dr_set. All uses updated.
6306 (i386_linux_dr_get_addr): Renamed to
6307 x86_linux_dr_get_addr. All uses updated.
6308 (i386_linux_dr_get_control): Renamed to
6309 x86_linux_dr_get_control. All uses updated.
6310 (i386_linux_dr_get_status): Renamed to
6311 x86_linux_dr_get_status. All uses updated.
6312 (i386_linux_dr_set_control): Renamed to
6313 x86_linux_dr_set_control. All uses updated.
6314 (i386_linux_dr_set_addr): Renamed to
6315 x86_linux_dr_set_addr. All uses updated.
6316 (i386_linux_prepare_to_resume): Renamed to
6317 x86_linux_prepare_to_resume. All uses updated.
6318 (i386_linux_new_thread): Renamed to
6319 x86_linux_new_thread. All uses updated.
6320 (i386_linux_new_fork): Renamed to
6321 x86_linux_new_fork. All uses updated.
6322 (i386_linux_child_post_startup_inferior): Renamed to
6323 x86_linux_child_post_startup_inferior. All uses updated.
6324 (i386_linux_enable_btrace): Renamed to
6325 x86_linux_enable_btrace. All uses updated.
6326 (i386_linux_disable_btrace): Renamed to
6327 x86_linux_disable_btrace. All uses updated.
6328 (i386_linux_teardown_btrace): Renamed to
6329 x86_linux_teardown_btrace. All uses updated.
6330 (i386_linux_read_btrace): Renamed to
6331 x86_linux_read_btrace. All uses updated.
6332
6333 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6334
6335 * remote.c (extended_remote_post_attach): New function.
6336 (init_extended_remote_ops): Install it as to_post_attach method.
6337
6338 2014-07-09 Pedro Alves <palves@redhat.com>
6339
6340 * infcmd.c (attach_command_post_wait): Don't call
6341 target_terminal_inferior here.
6342 (attach_command): Call it here instead.
6343
6344 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6345
6346 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6347 field.
6348 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6349 from varobj.c, with additional checks.
6350 (c_varobj_ops): Fill in is_path_expr_parent field.
6351 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6352 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6353 field.
6354 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6355 ops method.
6356 (varobj_default_is_path_expr_parent): New function.
6357 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6358 (varobj_default_is_path_expr_parent): Declare new function.
6359
6360 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6361
6362 * infcmd.c (finish_backward): Turn internal error into normal error.
6363
6364 2014-07-07 Pedro Alves <palves@redhat.com>
6365
6366 PR gdb/17096
6367 * remote.c (async_handle_remote_sigint)
6368 (async_handle_remote_sigint_twice): Call
6369 gdb_call_async_signal_handler instead of
6370 mark_async_signal_handler.
6371
6372 2014-07-07 Tom Tromey <tromey@redhat.com>
6373
6374 * target-delegates.c: Rebuild.
6375 * target.c (target_info_record): Remove.
6376 * record.c (info_record_command): Unconditionally call
6377 to_info_record.
6378 * target.h (struct target_ops) <to_info_record>: Use
6379 TARGET_DEFAULT_IGNORE.
6380 (target_info_record): Remove.
6381
6382 2014-07-07 Tom Tromey <tromey@redhat.com>
6383
6384 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6385 TARGET_DEFAULT_NORETURN.
6386 * target.c (generic_tls_error): New function.
6387 (target_translate_tls_address): Don't search target stack.
6388 * target-delegates.c: Rebuild.
6389 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6390 stack.
6391 * linux-thread-db.c (thread_db_get_thread_local_address):
6392 Unconditionally call beneath target.
6393
6394 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6395
6396 * cli/cli-logging.c (pop_output_files): Assign targerr to
6397 gdb_stdtargerr.
6398
6399 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6400
6401 * MAINTAINERS (Write After Approval): Update my email address.
6402
6403 2014-07-02 Gary Benson <gbenson@redhat.com>
6404
6405 * proc-service.c (ps_xfer_memory): Update comment.
6406 (ps_pstop): Remove unused function.
6407 (ps_pcontinue): Likewise.
6408 (ps_lstop): Likewise.
6409 (ps_lcontinue): Likewise.
6410 (ps_lgetxregsize): Likewise.
6411 (ps_lgetxregs): Likewise.
6412 (ps_lsetxregs): Likewise.
6413 (ps_plog): Likewise.
6414 (ps_ptread): Likewise.
6415 (ps_ptwrite): Likewise.
6416
6417 2014-07-01 Mark Wielaard <mjw@redhat.com>
6418
6419 * dwarf2read.c (add_array_cv_type): New function.
6420 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6421 (read_tag_volatile_type): Likewise.
6422
6423 2014-07-01 Tom Tromey <tromey@redhat.com>
6424
6425 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6426 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6427 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6428 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6429 * command.h (cmd_cfunc_ftype): Move earlier.
6430 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6431 (add_com, add_info): Use cmd_cfunc_ftype.
6432
6433 2014-06-30 Tom Tromey <tromey@redhat.com>
6434
6435 * symtab.c (operator_chars): Make parameters and return type
6436 const.
6437 (file_matches): Make "files" const.
6438 (struct search_symbols_data) <files>: Now const.
6439 (search_symbols): Make "regexp" and "files" parameters const.
6440 Update.
6441 (symtab_symbol_info): Remove cast.
6442 (rbreak_command): Update.
6443 * symtab.h (search_symbols): Update.
6444
6445 2014-06-27 Yao Qi <yao@codesourcery.com>
6446
6447 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6448 Change parameter type to 'struct thread_info *'. Caller
6449 updated.
6450 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6451 Update declaration.
6452 * dummy-frame.c (struct dummy_frame_id): New.
6453 (dummy_frame_id_eq): New function.
6454 (struct dummy_frame) <id>: Change its type to 'struct
6455 dummy_frame_id'.
6456 (dummy_frame_push): Add parameter ptid and save it in
6457 dummy_frame_id.
6458 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6459 inferior_ptid.
6460 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6461 to inferior_ptid.
6462 (lookup_dummy_frame): Change parameter type to 'struct
6463 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6464 instead of frame_id_eq.
6465 (dummy_frame_pop): Add parameter ptid. Callers updated.
6466 Update comments. Compose dummy_frame_id and pass it to
6467 lookup_dummy_frame.
6468 (dummy_frame_discard): Add parameter ptid.
6469 (dummy_frame_sniffer): Compose dummy_frame_id and call
6470 dummy_frame_id_eq instead of frame_id_eq.
6471 (fprint_dummy_frames): Print ptid.
6472 * dummy-frame.h: Remove comments.
6473 (dummy_frame_push): Add ptid in declaration.
6474 (dummy_frame_pop, dummy_frame_discard): Likewise.
6475
6476 2014-06-26 Tom Tromey <tromey@redhat.com>
6477
6478 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6479 * command.h (error_no_arg): Update.
6480
6481 2014-06-26 Tom Tromey <tromey@redhat.com>
6482
6483 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6484 (do_show_command): Make "arg" const.
6485 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6486
6487 2014-06-26 Tom Tromey <tromey@redhat.com>
6488
6489 * record-full.c (record_full_get_bookmark): Make "args" const.
6490 (record_full_goto_bookmark): Make "raw_bookmark" const.
6491 * record.c (record_goto): New function.
6492 (cmd_record_goto): Use it. Now static.
6493 * record.h (record_goto): Declare.
6494 (cmd_record_goto): Remove declaration.
6495 * target-delegates.c: Rebuild.
6496 * target.h (struct target_ops) <to_get_bookmark,
6497 to_goto_bookmark>: Make parameter const.
6498
6499 2014-06-26 Tom Tromey <tromey@redhat.com>
6500
6501 * defs.h (generic_load): Update.
6502 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6503 * monitor.c (monitor_load): Make "args" const.
6504 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6505 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6506 const.
6507 (mips_load): Make "file" const.
6508 * remote-sim.c (gdbsim_load): Make "args" const.
6509 * remote.c (remote_load): Make "name" const.
6510 * symfile.c (generic_load): Make "args" const.
6511 * target-delegates.c: Rebuild.
6512 * target.c (target_load): Make "arg" const.
6513 (debug_to_load): Make "args" const.
6514 * target.h (struct target_ops) <to_load>: Make parameter const.
6515 (target_load): Update.
6516
6517 2014-06-26 Tom Tromey <tromey@redhat.com>
6518
6519 PR symtab/16902:
6520 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6521 (dwarf2_physname, read_partial_die)
6522 (guess_partial_die_structure_name, fixup_partial_die)
6523 (guess_full_die_structure_name, anonymous_struct_prefix)
6524 (dwarf2_name): Use per-BFD obstack.
6525
6526 2014-06-26 Yao Qi <yao@codesourcery.com>
6527
6528 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6529 dummyframe and this_id into inner block below.
6530
6531 2014-06-26 Yao Qi <yao@codesourcery.com>
6532
6533 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6534 with "signal_pass[0]" in the initialization of signal_pass.
6535
6536 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6537
6538 * record-btrace.c (record_btrace_generating_corefile)
6539 (record_btrace_prepare_to_generate_core)
6540 (record_btrace_done_generating_core): New.
6541 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6542 (record_btrace_store_registers, record_btrace_prepare_to_store):
6543 Forward request when generating a core file.
6544 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6545 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6546 to_done_generating_core.
6547
6548 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6549
6550 * target.h (target_ops) <to_prepare_to_generate_core>
6551 <to_done_generating_core>: New.
6552 (target_prepare_to_generate_core, target_done_generating_core): New.
6553 * target.c (target_prepare_to_generate_core)
6554 (target_done_generating_core): New.
6555 * target-delegates.c: Regenerate.
6556 * gcore.c: (write_gcore_file): Rename to ...
6557 (write_gcore_file_1): ...this.
6558 (write_gcore_file): Call target_prepare_to_generate_core
6559 and target_done_generating_core.
6560
6561 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6562
6563 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6564 * gcore.c (write_gcore_file): Free memory returned from
6565 make_corefile_notes.
6566 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6567 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6568
6569 2014-06-24 Yao Qi <yao@codesourcery.com>
6570
6571 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6572 (arm_linux_init_abi): Set skip_trampoline_code with
6573 gdbarch_skip_trampoline_code instead of
6574 find_solib_trampoline_target.
6575
6576 2014-06-24 Yao Qi <yao@codesourcery.com>
6577
6578 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6579 arm_skip_bx_reg returns non-zero.
6580
6581 2014-06-24 Yao Qi <yao@codesourcery.com>
6582
6583 * arm-tdep.c (arm_skip_bx_reg): New function.
6584 (arm_skip_stub): Call arm_skip_bx_reg.
6585
6586 2014-06-23 Don Breazeal <donb@codesourcery.com>
6587
6588 * MAINTAINERS: Add myself as write-after-approval maintainer.
6589
6590 2014-06-23 Pedro Alves <palves@redhat.com>
6591
6592 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6593 DR_CONTROL before setting DR0..DR3.
6594 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6595 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6596 bits of DR_CONTROL related to the debug register slot being
6597 disabled. If all slots are vacant, clear local slowdown as well,
6598 and assert DR_CONTROL is 0.
6599
6600 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6601
6602 * python/lib/gdb/command/xmethods.py
6603 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6604 current progspace only if the string "progspace" matches LOCUS_RE.
6605
6606 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6607
6608 Fix --with-system-readline with readline-6.3 patch 5.
6609 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6610 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6611 types.
6612
6613 2014-06-20 Tom Tromey <tromey@redhat.com>
6614
6615 * dwarf2read.c (dw2_get_real_path): Use correct type in
6616 OBSTACK_CALLOC.
6617 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6618
6619 2014-06-20 Gary Benson <gbenson@redhat.com>
6620
6621 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6622 * common/glibc_thread_db.h: Likewise.
6623 * common/i386-cpuid.h: Likewise.
6624 * common/i386-gcc-cpuid.h: Likewise.
6625 * common/linux-btrace.h: Likewise.
6626 * common/linux-osdata.h: Likewise.
6627 * common/linux-procfs.h: Likewise.
6628 * common/linux-ptrace.h: Likewise.
6629 * common/mips-linux-watch.h: Likewise.
6630 * common/linux-btrace.c: Moved to nat.
6631 * common/linux-osdata.c: Likewise.
6632 * common/linux-procfs.c: Likewise.
6633 * common/linux-ptrace.c: Likewise.
6634 * common/mips-linux-watch.c: Likewise.
6635 * nat/gdb_thread_db.h: Moved from common.
6636 * nat/glibc_thread_db.h: Likewise.
6637 * nat/i386-cpuid.h: Likewise.
6638 * nat/i386-gcc-cpuid.h: Likewise.
6639 * nat/linux-btrace.c: Likewise.
6640 * nat/linux-btrace.h: Likewise.
6641 * nat/linux-osdata.c: Likewise.
6642 * nat/linux-osdata.h: Likewise.
6643 * nat/linux-procfs.c: Likewise.
6644 * nat/linux-procfs.h: Likewise.
6645 * nat/linux-ptrace.c: Likewise.
6646 * nat/linux-ptrace.h: Likewise.
6647 * nat/mips-linux-watch.c: Likewise.
6648 * nat/mips-linux-watch.h: Likewise.
6649 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6650 (object file files): Reordered.
6651 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6652 of glibc_thread_db.h.
6653
6654 2014-06-20 Gary Benson <gbenson@redhat.com>
6655
6656 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6657 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6658 (i386_dr_low): Likewise.
6659 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6660 (i386_dr_low_set_addr): Likewise.
6661 (i386_dr_low_get_addr): Likewise.
6662 (i386_dr_low_can_set_control): Likewise.
6663 (i386_dr_low_set_control): Likewise.
6664 (i386_dr_low_get_control): Likewise.
6665 (i386_dr_low_get_status): Likewise.
6666 (i386_get_debug_register_length): Likewise.
6667 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6668 (i386_dr_low): Likewise.
6669 * nat/i386-dregs.c (i386-low.h): Remove include.
6670 (i386-nat.h): Likewise.
6671 (nat/i386-dregs.h): New include.
6672 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6673 (i386_dr_low_set_addr): Likewise.
6674 (i386_dr_low_get_addr): Likewise.
6675 (i386_dr_low_can_set_control): Likewise.
6676 (i386_dr_low_set_control): Likewise.
6677 (i386_dr_low_get_control): Likewise.
6678 (i386_dr_low_get_status): Likewise.
6679 (i386_get_debug_register_length): Likewise.
6680 (debug_hw_points): Likewise.
6681
6682 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6683
6684 * Makefile.in (SFILES): Add d-exp.y.
6685 (YYFILES): Add d-exp.c.
6686 (YYOBJ): Add d-exp.o.
6687 (local-maintainer-clean): Delete d-exp.c.
6688 * d-exp.y: New file.
6689 * d-lang.h (d_parse): New declaration.
6690 (d_error): New declaration.
6691 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6692 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6693 PREC_ORDER operators.
6694 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6695
6696 2014-06-19 Yao Qi <yao@codesourcery.com>
6697
6698 * gdbthread.h (any_running): Remove the declaration.
6699 * thread.c (any_running): Remove.
6700
6701 2014-06-19 Yao Qi <yao@codesourcery.com>
6702
6703 * gdbthread.h (struct thread_info) <state>: Change its type to
6704 'enum thread_state'. Update comments.
6705
6706 2014-06-19 Pedro Alves <palves@redhat.com>
6707
6708 * gdbthread.h (ALL_THREADS): Delete.
6709 (ALL_NON_EXITED_THREADS): New macro.
6710 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6711 instead of ALL_THREADS.
6712 * infrun.c (find_thread_needs_step_over)
6713 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6714 instead of ALL_THREADS.
6715 * record-btrace.c (record_btrace_open)
6716 (record_btrace_stop_recording, record_btrace_close)
6717 (record_btrace_is_replaying, record_btrace_resume)
6718 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6719 * remote.c (append_pending_thread_resumptions): Likewise.
6720 * thread.c (thread_apply_all_command): Likewise.
6721
6722 2014-06-19 Gary Benson <gbenson@redhat.com>
6723
6724 * i386-nat.c (i386_stopped_by_watchpoint):
6725 Use i386_dr_stopped_by_watchpoint.
6726 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6727 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6728
6729 2014-06-19 Gary Benson <gbenson@redhat.com>
6730
6731 * nat/i386-dregs.c: New file.
6732 * Makefile.in (i386-dregs.o): New rule.
6733 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6734 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6735 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6736 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6737 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6738 * config/i386/go32.mh (NATDEPFILES): Likewise.
6739 * config/i386/linux.mh (NATDEPFILES): Likewise.
6740 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6741 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6742 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6743 * i386-nat.h (debug_hw_points): New declaration.
6744 * i386-nat.c (breakpoint.h): Remove include.
6745 (command.h): Likewise.
6746 (target.h): Likewise.
6747 (gdb_assert.h): Likewise.
6748 (debug_hw_points): Made nonstatic.
6749 (debug_printf): Now in i386-dregs.c.
6750 (TARGET_HAS_DR_LEN_8): Likewise.
6751 (DR_CONTROL_SHIFT): Likewise.
6752 (DR_CONTROL_SIZE): Likewise.
6753 (DR_RW_EXECUTE): Likewise.
6754 (DR_RW_WRITE): Likewise.
6755 (DR_RW_READ): Likewise.
6756 (DR_RW_IORW): Likewise.
6757 (DR_LEN_1): Likewise.
6758 (DR_LEN_2): Likewise.
6759 (DR_LEN_4): Likewise.
6760 (DR_LEN_8): Likewise.
6761 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6762 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6763 (DR_ENABLE_SIZE): Likewise.
6764 (DR_LOCAL_SLOWDOWN): Likewise.
6765 (DR_GLOBAL_SLOWDOWN): Likewise.
6766 (DR_CONTROL_RESERVED): Likewise.
6767 (I386_DR_CONTROL_MASK): Likewise.
6768 (I386_DR_VACANT): Likewise.
6769 (I386_DR_LOCAL_ENABLE): Likewise.
6770 (I386_DR_GLOBAL_ENABLE): Likewise.
6771 (I386_DR_DISABLE): Likewise.
6772 (I386_DR_SET_RW_LEN): Likewise.
6773 (I386_DR_GET_RW_LEN): Likewise.
6774 (I386_DR_WATCH_HIT): Likewise.
6775 (i386_wp_op_t): Likewise.
6776 (i386_show_dr): Likewise.
6777 (i386_length_and_rw_bits): Likewise.
6778 (i386_insert_aligned_watchpoint): Likewise.
6779 (i386_remove_aligned_watchpoint): Likewise.
6780 (i386_handle_nonaligned_watchpoint): Likewise.
6781 (i386_update_inferior_debug_regs): Likewise.
6782 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6783 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6784 (i386_region_ok_for_watchpoint):
6785 Use i386_dr_region_ok_for_watchpoint.
6786 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6787
6788 2014-06-19 Gary Benson <gbenson@redhat.com>
6789
6790 * i386-nat.c (i386_insert_hw_breakpoint): Use
6791 i386_insert_watchpoint.
6792 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6793
6794 2014-06-19 Gary Benson <gbenson@redhat.com>
6795
6796 * i386-nat.c (i386_dr_show): Renamed to
6797 i386_show_dr and made static. All uses updated.
6798 (i386_dr_length_and_rw_bits): Renamed to
6799 i386_length_and_rw_bits and made static.
6800 All uses updated.
6801 (i386_dr_insert_aligned_watchpoint): Renamed to
6802 i386_insert_aligned_watchpoint and made static.
6803 All uses updated.
6804 (i386_dr_remove_aligned_watchpoint): Renamed to
6805 i386_remove_aligned_watchpoint and made static.
6806 All uses updated.
6807 (i386_dr_update_inferior_debug_regs): Renamed to
6808 i386_update_inferior_debug_regs and made static.
6809 All uses updated.
6810 * nat/i386-dregs.h (i386_dr_show): Removed.
6811 (i386_dr_length_and_rw_bits): Likewise.
6812 (i386_dr_insert_aligned_watchpoint): Likewise.
6813 (i386_dr_remove_aligned_watchpoint): Likewise.
6814 (i386_dr_update_inferior_debug_regs): Likewise.
6815
6816 2014-06-19 Gary Benson <gbenson@redhat.com>
6817
6818 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6819 * configure: Regenerate.
6820 * config.in: Likewise.
6821 * main.c (signal.h): New include.
6822 (setup_alternate_signal_stack): New function.
6823 (captured_main): Call the above.
6824 * cp-support.c (signal.h): New include.
6825 (catch_demangler_crashes): New flag.
6826 (SIGJMP_BUF): New define.
6827 (SIGSETJMP): Likewise.
6828 (SIGLONGJMP): Likewise.
6829 (gdb_demangle_jmp_buf): New static global.
6830 (gdb_demangle_attempt_core_dump): Likewise.
6831 (gdb_demangle_signal_handler): New function.
6832 (gdb_demangle): If catch_demangler_crashes is set, install the
6833 above signal handler before calling bfd_demangle, and restore
6834 the original signal handler afterwards. Display the offending
6835 symbol and call demangler_warning the first time a segmentation
6836 fault is caught.
6837 (_initialize_cp_support): New maint set/show command.
6838
6839 2014-06-19 Gary Benson <gbenson@redhat.com>
6840
6841 * utils.h (resource_limit_kind): New enum.
6842 (can_dump_core): New declaration.
6843 (warn_cant_dump_core): Likewise.
6844 (dump_core): Likewise.
6845 * utils.c (dump_core): Made nonstatic. Added new
6846 parameter "limit_kind".
6847 (can_dump_core): Made nonstatic. Moved printing code to...
6848 (warn_cant_dump_core): New function.
6849 (can_dump_core_warn): Likewise.
6850 (internal_vproblem): Replace calls to can_dump_core with
6851 calls to can_dump_core_warn. Supply new argument to each.
6852
6853 2014-06-19 Gary Benson <gbenson@redhat.com>
6854
6855 * utils.h (demangler_vwarning): New declaration.
6856 (demangler_warning): Likewise.
6857 * utils.c (struct internal_problem)
6858 <user_settable_should_quit>: New field.
6859 <user_settable_should_dump_core>: Likewise
6860 (internal_error_problem): Add values for above new fields.
6861 (internal_warning_problem): Likewise.
6862 (demangler_warning_problem): New static global.
6863 (demangler_vwarning): New function.
6864 (demangler_warning): Likewise.
6865 (add_internal_problem_command): Selectively add commands.
6866 (_initialize_utils): New internal problem command.
6867 * maint.c (maintenance_demangler_warning): New function.
6868 (_initialize_maint_cmds): New command.
6869
6870 2014-06-18 Tom Tromey <tromey@redhat.com>
6871
6872 * f-valprint.c (info_common_command_for_block): Update.
6873 * symtab.h (struct general_symbol_info) <common_block>: Now
6874 const.
6875
6876 2014-06-18 Tom Tromey <tromey@redhat.com>
6877
6878 * symtab.h (struct symtab) <blockvector>: Now const.
6879 * ada-lang.c (ada_add_global_exceptions): Update.
6880 * buildsym.c (augment_type_symtab): Update.
6881 * dwarf2read.c (dw2_lookup_symbol): Update.
6882 * jit.c (finalize_symtab): Update.
6883 * jv-lang.c (add_class_symtab_symbol): Update.
6884 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6885 Update.
6886 * objfiles.c (objfile_relocate1): Update.
6887 * psymtab.c (lookup_symbol_aux_psymtabs)
6888 (maintenance_check_psymtabs): Update.
6889 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6890 Update.
6891 * spu-tdep.c (spu_catch_start): Update.
6892 * symmisc.c (dump_symtab_1): Update.
6893 * symtab.c (lookup_global_symbol_from_objfile)
6894 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6895 (basic_lookup_transparent_type_quick)
6896 (basic_lookup_transparent_type, find_pc_sect_symtab)
6897 (find_pc_sect_line, search_symbols): Update.
6898 * block.c (find_block_in_blockvector): Make "bl" const.
6899 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6900 const.
6901 (blockvector_contains_pc): Make "bv" const.
6902 (block_for_pc_sect): Update.
6903 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6904 (blockvector_contains_pc): Update.
6905 * breakpoint.c (resolve_sal_pc): Update.
6906 * inline-frame.c (block_starting_point_at): Update.
6907
6908 2014-06-18 Tom Tromey <tromey@redhat.com>
6909
6910 * completer.c (complete_line): Make "line_buffer" const.
6911 * completer.h (complete_line): Update.
6912
6913 2014-06-18 Tom Tromey <tromey@redhat.com>
6914
6915 * symtab.c (add_macro_name): Remove unneeded cast.
6916
6917 2014-06-18 Tom Tromey <tromey@redhat.com>
6918
6919 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6920 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6921
6922 2014-06-18 Tom Tromey <tromey@redhat.com>
6923
6924 * probe.c (info_probes_for_ops): Make "arg" const.
6925 * probe.h (info_probes_for_ops): Update.
6926
6927 2014-06-18 Tom Tromey <tromey@redhat.com>
6928
6929 * varobj.c (varobj_create): Update.
6930 * valops.c (value_of_this): Update.
6931 * tracepoint.c (add_local_symbols, scope_info): Update.
6932 * symtab.h (struct general_symbol_info) <block>: Now const.
6933 * symtab.c (skip_prologue_sal)
6934 (default_make_symbol_completion_list_break_on)
6935 (skip_prologue_using_sal): Update.
6936 * stack.h (iterate_over_block_locals)
6937 (iterate_over_block_local_vars): Update.
6938 * stack.c (print_frame_args): Update.
6939 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6940 parameter const.
6941 (get_selected_block): Make return type const.
6942 * python/py-frame.c (frapy_block): Update.
6943 * python/py-block.c (gdbpy_block_for_pc): Update.
6944 * p-exp.y (%union) <bval>: Now const.
6945 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6946 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6947 * m2-exp.y (%union) <bval>: Now const.
6948 * linespec.c (get_current_search_block): Make return type const.
6949 (create_sals_line_offset, find_label_symbols): Update.
6950 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6951 Update.
6952 (block_starting_point_at): Make "block" const.
6953 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6954 (check_exception_resume): Update.
6955 * guile/scm-frame.c (gdbscm_frame_block): Update.
6956 * guile/scm-block.c (gdbscm_lookup_block): Update.
6957 * frame.h (get_frame_block): Update.
6958 (get_selected_block): Make return type const.
6959 * frame.c (frame_id_inner): Update.
6960 * f-valprint.c (info_common_command_for_block)
6961 (info_common_command): Update.
6962 * dwarf2loc.c (dwarf2_find_location_expression)
6963 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6964 (locexpr_describe_location_piece): Update.
6965 * c-exp.y (%union) <bval>: Now const.
6966 * breakpoint.c (resolve_sal_pc): Update.
6967 * blockframe.c (get_frame_block):Make return type const.
6968 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6969 (block_innermost_frame): Update.
6970 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6971 (block_for_pc, block_for_pc_sect): Update.
6972 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6973 'pblock' const.
6974 (block_for_pc_sect, block_for_pc): Make return type const.
6975 * ax-gdb.c (gen_expr): Update.
6976 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6977 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6978 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6979 (ada_read_var_value): Update.
6980 * ada-exp.y (struct name_info) <block>: Now const.
6981 (%union): Likewise.
6982 (block_lookup): Constify.
6983
6984 2014-06-18 Gary Benson <gbenson@redhat.com>
6985
6986 * nat/i386-dregs.h: New file.
6987 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6988 * i386-nat.h (i386-dregs.h): New include.
6989 (DR_FIRSTADDR): Now in i386-dregs.h.
6990 (DR_LASTADDR): Likewise.
6991 (DR_NADDR): Likewise.
6992 (DR_STATUS): Likewise.
6993 (DR_CONTROL): Likewise.
6994 (i386_debug_reg_state): Likewise.
6995 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6996
6997 2014-06-18 Don Breazeal <donb@codesourcery.com>
6998
6999 * breakpoint.c (set_longjmp_breakpoint): Call
7000 momentary_breakpoint_from_master with additional argument.
7001 (set_longjmp_breakpoint_for_call_dummy): Call
7002 momentary_breakpoint_from_master with additional argument.
7003 (set_std_terminate_breakpoint): Call
7004 momentary_breakpoint_from_master with additional argument.
7005 (momentary_breakpoint_from_master): Add argument to function
7006 definition and use it to initialize structure member flag.
7007 (clone_momentary_breakpoint): Call
7008 momentary_breakpoint_from_master with additional argument.
7009 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7010 member flags set in momentary_breakpoint_from_master.
7011
7012 2014-06-18 Gary Benson <gbenson@redhat.com>
7013
7014 * i386-nat.c (i386_show_dr): Renamed to
7015 i386_dr_show and made nonstatic. All uses updated.
7016 (i386_length_and_rw_bits): Renamed to
7017 i386_dr_length_and_rw_bits and made nonstatic.
7018 All uses updated.
7019 (i386_insert_aligned_watchpoint): Renamed to
7020 i386_dr_insert_aligned_watchpoint and made nonstatic.
7021 All uses updated.
7022 (i386_remove_aligned_watchpoint): Renamed to
7023 i386_dr_remove_aligned_watchpoint and made nonstatic.
7024 All uses updated.
7025 (i386_update_inferior_debug_regs): Renamed to
7026 i386_dr_update_inferior_debug_regs and made nonstatic.
7027 All uses updated.
7028
7029 2014-06-18 Gary Benson <gbenson@redhat.com>
7030
7031 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7032 (i386_dr_low_can_set_control): Likewise.
7033 (i386_dr_low_set_addr): Likewise.
7034 (i386_dr_low_set_control): Likewise.
7035 (i386_dr_low_get_addr): Likewise.
7036 (i386_dr_low_get_status): Likewise.
7037 (i386_dr_low_get_control): Likewise.
7038 (i386_insert_aligned_watchpoint): Use new macros.
7039 (i386_update_inferior_debug_regs): Likewise.
7040 (i386_stopped_data_address): Likewise.
7041
7042 2014-06-18 Gary Benson <gbenson@redhat.com>
7043
7044 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7045 New parameter. All uses updated.
7046
7047 2014-06-18 Gary Benson <gbenson@redhat.com>
7048
7049 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7050 All uses updated.
7051
7052 2014-06-18 Gary Benson <gbenson@redhat.com>
7053
7054 * i386-nat.c (debug_printf): New macro.
7055 (i386_get_debug_register_length): Likewise.
7056 (TARGET_HAS_DR_LEN_8): Use above macro.
7057 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7058 and printf_unfiltered. Use phex to format values.
7059
7060 2014-06-18 Gary Benson <gbenson@redhat.com>
7061
7062 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7063 Make const.
7064
7065 2014-06-18 Gary Benson <gbenson@redhat.com>
7066
7067 * i386-nat.c: Comment changes.
7068
7069 2014-06-18 Gary Benson <gbenson@redhat.com>
7070
7071 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7072
7073 2014-06-18 Gary Benson <gbenson@redhat.com>
7074
7075 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7076 (i386_insert_aligned_watchpoint): Likewise.
7077 (i386_remove_aligned_watchpoint): Likewise.
7078 (i386_handle_nonaligned_watchpoint): Likewise.
7079
7080 2014-06-18 Gary Benson <gbenson@redhat.com>
7081
7082 * i386-nat.c: Whitespace changes.
7083
7084 2014-06-17 Samuel Bronson <naesten@gmail.com>
7085
7086 * MAINTAINERS: Update Roland McGrath's email address.
7087 Thanks to Sergio Durigan Junior for pointing out that he left
7088 Red Hat a while ago, and giving me a current address.
7089
7090 2014-06-17 Tom Tromey <tromey@redhat.com>
7091
7092 * utils.h (savestring): Remove declaration.
7093
7094 2014-06-17 Tom Tromey <tromey@redhat.com>
7095
7096 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7097
7098 2014-06-16 Keith Seitz <keiths@redhat.com>
7099
7100 PR mi/15863
7101 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7102 to update the varobj if inferior_ptid is null_ptid.
7103
7104 2014-06-16 Tom Tromey <tromey@redhat.com>
7105
7106 * target.h (struct target_ops) <to_info_proc>: Make parameter
7107 const.
7108 (target_info_proc): Update.
7109 * target.c (target_info_proc): Make "args" const.
7110 * procfs.c (procfs_info_proc): Update.
7111 * linux-tdep.c (linux_info_proc): Update.
7112 (linux_core_info_proc_mappings): Make "args" const.
7113 (linux_core_info_proc): Update.
7114 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7115 * gdbarch.c: Rebuild.
7116 * gdbarch.h: Rebuild.
7117 * corelow.c (core_info_proc): Update.
7118
7119 2014-06-16 Tom Tromey <tromey@redhat.com>
7120
7121 * target.h (struct target_ops) <to_disconnect>: Make parameter
7122 const.
7123 (target_disconnect): Update.
7124 * target.c (target_disconnect): Make "args" const.
7125 * target-delegates.c: Rebuild.
7126 * remote.c (remote_disconnect): Update.
7127 * record.h (record_disconnect): Update.
7128 * record.c (record_disconnect): Update.
7129 * inf-child.c (inf_child_disconnect): Update.
7130
7131 2014-06-16 Tom Tromey <tromey@redhat.com>
7132
7133 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7134 * target.c (debug_to_rcmd, default_rcmd): Update.
7135 * target-delegates.c: Rebuild.
7136 * remote.c (remote_rcmd): Update.
7137 * monitor.c (monitor_rcmd): Update.
7138
7139 2014-06-16 Pedro Alves <palves@redhat.com>
7140
7141 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7142 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7143 have OBJF_SHARED set.
7144 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7145 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7146 instead of OBJF_USERLOADED.
7147 * objfiles.h (OBJF_SHARED): Update comment.
7148 (userloaded_objfile_contains_address_p): Rename to ...
7149 (shared_objfile_contains_address_p): ... this, and update
7150 comments.
7151 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7152 new objfile.
7153 (remove_symbol_file_command): Skip objfiles that don't have
7154 OBJF_SHARED set.
7155
7156 2014-06-16 Tom Tromey <tromey@redhat.com>
7157
7158 * minsyms.h (prim_record_minimal_symbol)
7159 (prim_record_minimal_symbol_and_info): Update comments.
7160
7161 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7162
7163 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7164 or --without-guile, according to how GDB was built.
7165
7166 2014-06-13 Tom Tromey <tromey@redhat.com>
7167
7168 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7169 to help_list.
7170 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7171 to help_list.
7172 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7173 help_list.
7174 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7175 help_list.Pass all_commands, not -1, to help_list.
7176 * cli/cli-dump.c (dump_command, append_command)
7177 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7178 (binary_dump_command, binary_append_command): Pass all_commands,
7179 not -1, to help_list.
7180 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7181 -1, to help_list.
7182 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7183 -1, to help_list.
7184 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7185 help_list.
7186 * top.c (set_history): Pass all_commands, not -1, to help_list.
7187 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7188 all_commands, not -1, to help_list.
7189 * symfile.c (overlay_command): Pass all_commands, not -1, to
7190 help_list.
7191 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7192 help_list.
7193 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7194 help_list.
7195 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7196 -1, to help_list.
7197 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7198 not -1, to help_list.
7199 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7200 not -1, to help_list.
7201 * maint.c (maintenance_command, maintenance_info_command)
7202 (maintenance_print_command, maintenance_set_cmd): Pass
7203 all_commands, not -1, to help_list.
7204 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7205 help_list.
7206 * language.c (set_check): Pass all_commands, not -1, to help_list.
7207 * infcmd.c (unset_command): Pass all_commands, not -1, to
7208 help_list.
7209 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7210 help_list.
7211 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7212 help_list.
7213 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7214 help_list.
7215 * breakpoint.c (save_command): Pass all_commands, not -1, to
7216 help_list.
7217 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7218 all_commands, not -1, to help_list.
7219
7220 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7221
7222 * regcache.c (struct register_to_invalidate): New structure.
7223 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7224 functions.
7225 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7226
7227 2014-06-12 Yao Qi <yao@codesourcery.com>
7228
7229 * varobj.c (varobj_get_num_children): Call
7230 varobj_is_dynamic_p.
7231 (varobj_list_children): Likewise.
7232 (varobj_update): Likewise. Update comments.
7233
7234 2014-06-12 Yao Qi <yao@codesourcery.com>
7235
7236 * varobj.c (varobj_pretty_printed_p): Rename to ...
7237 (varobj_is_dynamic_p): ... this. New function.
7238 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7239 (varobj_is_dynamic_p): Declare.
7240 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7241 (mi_print_value_p, varobj_update_one): Likewise.
7242
7243 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7244 Yao Qi <yao@codesourcery.com>
7245
7246 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7247 (varobj_get_iterator): Wrap up code for pretty-printer by
7248 "#if HAVE_PYTHON" and "#endif".
7249 (update_dynamic_varobj_children): Likewise.
7250
7251 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7252 Yao Qi <yao@codesourcery.com>
7253
7254 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7255 gdb_python_initialized is false. Move some code from varobj.c.
7256 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7257 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7258 (struct varobj_item): Moved to varobj-iter.h".
7259 (varobj_clear_saved_item): New function.
7260 (update_dynamic_varobj_children): Move python-related code to
7261 py-varobj.c.
7262 (free_variable): Call varobj_clear_saved_item and
7263 varobj_iter_delete.
7264
7265 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7266 Yao Qi <yao@codesourcery.com>
7267
7268 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7269 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7270 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7271 (py-varobj.o): New rule.
7272 * python/py-varobj.c: New file.
7273 * python/python-internal.h (py_varobj_get_iterator): Declare.
7274 * varobj-iter.h: New file.
7275 * varobj.c: Include "varobj-iter.h"
7276 (struct varobj) <child_iter>: Change its type from "PyObject *"
7277 to "struct varobj_iter *".
7278 <saved_item>: Likewise.
7279 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7280 [HAVE_PYTHON] (varobj_get_iterator): New function.
7281 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7282 python-specific code to python/py-varobj.c.
7283 (install_visualizer): Call varobj_iter_delete instead of
7284 Py_XDECREF.
7285 * varobj.h (varobj_ensure_python_env): Declare.
7286
7287 2014-06-12 Yao Qi <yao@codesourcery.com>
7288
7289 * varobj.c (struct varobj_item): New structure.
7290 (create_child_with_value): Update declaration.
7291 (varobj_add_child): Replace arguments 'name' and 'value' with
7292 'item'. All callers updated.
7293 (install_dynamic_child): Likewise.
7294 (update_dynamic_varobj_children): Likewise.
7295 (varobj_add_child): Likewise.
7296 (create_child_with_value): Likewise.
7297
7298 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7299
7300 * NEWS: Create a new section for the next release branch.
7301 Rename the section of the current branch, now that it has
7302 been cut.
7303
7304 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7305
7306 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7307 * version.in: Bump version to 7.8.50.DATE-cvs.
7308
7309 2014-06-11 Pedro Alves <palves@redhat.com>
7310
7311 PR remote/17028
7312 * ser-mingw.c (net_windows_socket_check_pending): New function.
7313 (net_windows_select_thread): Ignore spurious wakeups. Use
7314 net_windows_socket_check_pending.
7315 (net_windows_wait_handle): Check for pending events with
7316 ioctlsocket, through net_windows_socket_check_pending, instead of
7317 checking the socket's event.
7318
7319 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7320
7321 * python/python-internal.h (gdb_PyObject_GetAttrString)
7322 (gdb_PyObject_HasAttrString): New inline function definitions.
7323 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7324 char * of the second argument to PyObject_GetAttrString.
7325
7326 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7327
7328 * serial.c (serial_write): Fix index of character to be printed
7329 in call to serial_logchar when serial debug traces are enabled.
7330
7331 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7332
7333 * gdbtypes (resolve_dynamic_range): Add function description.
7334
7335 2014-06-09 Pedro Alves <palves@redhat.com>
7336
7337 * linux-nat.c (linux_child_follow_fork): Initialize status with
7338 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7339 inner block. Only pass the signal to PTRACE_DETACH if in pass
7340 state.
7341
7342 2014-06-09 Gary Benson <gbenson@redhat.com>
7343
7344 * common/signals.c (gdb_signal_from_host): Reorder to separate
7345 the always-available ANSI-standard signals from the signals that
7346 require checking.
7347 (do_gdb_signal_to_host): Likewise.
7348 * proc-events.c (signal_table): Likewise.
7349
7350 2014-06-08 Hui Zhu <hui@codesourcery.com>
7351
7352 * common/linux-ptrace.c (linux_disable_event_reporting): New
7353 function.
7354 * common/linux-ptrace.h (linux_disable_event_reporting): New
7355 declaration.
7356 * linux-nat.c (linux_child_follow_fork): Do a single step before
7357 detach.
7358
7359 2014-06-07 Keith Seitz <keiths@redhat.com>
7360
7361 Revert:
7362 PR c++/16253
7363 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7364 from symbol_matches_domain in symtab.c. All local callers
7365 of symbol_matches_domain updated.
7366 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7367 search STRUCT_DOMAIN.
7368 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7369 independently. standard_lookup will do that automatically.
7370 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7371 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7372 (cp_lookup_symbol_in_namespace): Likewise.
7373 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7374 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7375 may return a STRUCT_DOMAIN match.
7376 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7377 * cp-support.c: Include language.h.
7378 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7379 VAR_DOMAIN.
7380 * psymtab.c (match_partial_symbol): Compare the requested
7381 domain with the symbol's domain directly.
7382 (lookup_partial_symbol): Likewise.
7383 * symtab.c (lookup_symbol_in_language): Explain when/why
7384 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7385 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7386 appropriate languages.
7387 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7388 and moved to ada-lang.c
7389 (lookup_block_symbol): Explain that this function only returns
7390 symbol matching the requested DOMAIN.
7391 Compare the requested domain with the symbol's domain directly.
7392 (iterate_over_symbols): Compare the requested domain with the
7393 symbol's domain directly.
7394 * symtab.h (symbol_matches_domain): Remove.
7395
7396 2014-06-06 Doug Evans <xdje42@gmail.com>
7397
7398 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7399 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7400 (gdbscm_guile_version_is_at_least): Declare.
7401 (gdbscm_scm_string_to_int): Declare.
7402 * guile/guile.c (gdbscm_guile_major_version): New global.
7403 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7404 (guile_datadir): New static global.
7405 (gdbscm_guile_data_directory): New function.
7406 (initialize_scheme_side): Update.
7407 (misc_guile_functions): Add guile-data-directory.
7408 (initialize_gdb_module): Fetch guile version number.
7409 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7410 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7411 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7412 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7413 comments.
7414 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7415 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7416 * guile/scm-value.c (gdbscm_value_to_string): Only call
7417 scm_port_conversion_strategy if Guile version >= 2.0.6.
7418
7419 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7420
7421 * main.c (print_gdb_help): Add -q and --silent.
7422
7423 2014-06-06 Gary Benson <gbenson@redhat.com>
7424
7425 * common/signals.c: Remove preprocessor conditionals for
7426 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7427 SIGSEGV and SIGTERM.
7428 * proc-events.c: Likewise.
7429
7430 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7431
7432 * symfile.c (symfile_free_objfile): Remove restriction to
7433 OBJF_USERLOADED.
7434 * symfile-mem.c (symbol_file_add_from_memory): Call
7435 add_target_sections_of_objfile.
7436
7437 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7438
7439 * guile/scm-value.c (gdbscm_history_append_x): Use
7440 'vlscm_get_value_smob_arg_unsafe' instead of
7441 'vlscm_scm_to_value'.
7442
7443 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7444
7445 PR mi/15806
7446 * utils.c (printchar): Don't escape at all if quoter is NUL.
7447 Update function documentation to clarify effect of parameter
7448 QUOTER.
7449 * remote.c (escape_buffer): Pass '\\' as the quoter to
7450 fputstrn_unfiltered.
7451 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7452 generate the output.
7453 (mi_solib_unloaded): Same.
7454
7455 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7456
7457 * development.sh: Delete.
7458 * Makefile.in (config.status): Adjust dependency on development.sh.
7459 * configure.ac: Adjust development.sh source call.
7460 * configure: Regenerate.
7461
7462 2014-06-04 Doug Evans <xdje42@gmail.com>
7463
7464 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7465 is_scheme_bkpt, spec.
7466 (bpscm_make_breakpoint_smob): Initialize new members.
7467 (gdbscm_create_breakpoint_x): Split into two ...
7468 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7469 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7470 (scheme_function breakpoint_functions): Update.
7471 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7472 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7473 register-breakpoint!.
7474
7475 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7476
7477 PR server/17023
7478 * mem-break.c (z_type_supported): Return zero if
7479 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7480
7481 2014-06-04 Tom Tromey <tromey@redhat.com>
7482
7483 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7484 value_from_contents_and_address_unresolved.
7485 (ada_template_to_fixed_record_type_1): Likewise.
7486 (ada_which_variant_applies): Likewise.
7487 * value.h (value_from_contents_and_address_unresolved): Declare.
7488 * value.c (value_from_contents_and_address_unresolved): New
7489 function.
7490 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7491 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7492 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7493
7494 2014-06-04 Tom Tromey <tromey@redhat.com>
7495
7496 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7497
7498 2014-06-04 Tom Tromey <tromey@redhat.com>
7499
7500 * procfs.c (procfs_attach): Make "args" const.
7501 * windows-nat.c (windows_attach): Make "args" const.
7502 * nto-procfs.c (procfs_attach): Make "args" const.
7503 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7504 * go32-nat.c (go32_attach): Make "args" const.
7505 * gnu-nat.c (gnu_attach): Make "args" const.
7506 * darwin-nat.c (darwin_attach): Make "args" const.
7507 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7508 * linux-nat.c (linux_nat_attach): Make "args" const.
7509 * remote.c (extended_remote_attach_1, extended_remote_attach):
7510 Make "args" const.
7511 * target.h (struct target_ops) <to_attach>: Make "args" const.
7512 (find_default_attach): Likewise.
7513 * utils.c (parse_pid_to_attach): Make "args" const.
7514 * utils.h (parse_pid_to_attach): Update.
7515
7516 2014-06-04 Tom Tromey <tromey@redhat.com>
7517
7518 * target-delegates.c: Rebuild.
7519 * target.c (default_thread_address_space): New function.
7520 (target_thread_address_space): Simplify.
7521 * target.h (struct target_ops) <to_thread_address_space>: Add
7522 TARGET_DEFAULT_FUNC.
7523
7524 2014-06-04 Doug Evans <xdje42@gmail.com>
7525
7526 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7527
7528 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7529
7530 * record-btrace.c: Include event-loop.h and inf-loop.h.
7531 (record_btrace_resume_exec_dir)
7532 (record_btrace_async_inferior_event_handler)
7533 (record_btrace_handle_async_inferior_event): New.
7534 (record_btrace_open): Create async event handler.
7535 (record_btrace_close): Delete async event handler.
7536 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7537 Mark async event handler.
7538 (record_btrace_execution_direction): New.
7539 (init_record_btrace_ops): Initialize to_execution_direction.
7540
7541 2014-06-03 Doug Evans <xdje42@gmail.com>
7542
7543 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7544 (gdbscm_make_parameter): Ditto.
7545
7546 2014-06-03 Doug Evans <dje@google.com>
7547
7548 * exec.c (exec_close_1): Call clear_section_table instead of
7549 resize_section_table.
7550 (clear_section_table): New function.
7551 (resize_section_table): Make static. Rename arg num_added to
7552 adjustment.
7553 * exec.h (clear_section_table): Declare.
7554 (resize_section_table): Delete.
7555 * progspace.c (release_program_space): Call clear_section_table
7556 instead of resize_section_table.
7557
7558 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7559
7560 * NEWS (Python Scripting): Add entry about the new xmethods
7561 feature.
7562
7563 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7564
7565 * python/py-xmethods.c: New file.
7566 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7567 (objfpy_dealloc): XDECREF on the new xmethods field.
7568 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7569 field.
7570 (objfpy_get_xmethods): New function.
7571 (objfile_getset): New entry 'xmethods'.
7572 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7573 (pspy_dealloc): XDECREF on the new xmethods field.
7574 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7575 field.
7576 (pspy_get_xmethods): New function.
7577 (pspace_getset): New entry 'xmethods'.
7578 * python/python-internal.h: Add declarations for new functions.
7579 * python/python.c (_initialize_python): Invoke
7580 gdbpy_initialize_xmethods.
7581 * python/lib/gdb/__init__.py (xmethods): New
7582 attribute.
7583 * python/lib/gdb/xmethod.py: New file.
7584 * python/lib/gdb/command/xmethods.py: New file.
7585
7586 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7587
7588 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7589 best match method returned by find_overload_match is an xmethod.
7590 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7591 the best matching operator returned by find_overload_match is an
7592 xmethod.
7593 * valops.c: #include "extension.h".
7594 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7595 Return void. The list of matching source methods is returned in
7596 "fn_list" and a vector of matching debug method workers is
7597 returned in "xm_worker_vec". Update all callers.
7598 (value_find_oload_method_list): Likewise.
7599 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7600 non-NULL, then the index of the best matching method in this
7601 vector is returned. Update all callers.
7602 (find_overload_match): Include xmethods while performing overload
7603 resolution.
7604
7605 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7606
7607 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7608 * extension-priv.h (struct extension_language_ops): Add the
7609 xmethod interface.
7610 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7611 get_matching_xmethod_workers, get_xmethod_argtypes,
7612 invoke_xmethod, free_xmethod_worker,
7613 free_xmethod_worker_vec): New functions.
7614 * extension.h: #include "common/vec.h".
7615 New function declarations.
7616 (struct xmethod_worker): New struct.
7617 (VEC (xmethod_worker_ptr)): New vector type.
7618 (xmethod_worker_ptr): New typedef.
7619 (xmethod_worker_vec): Likewise.
7620 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7621 builtin_type.
7622 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7623 (struct builtin_type): New field "xmethod".
7624 * valarith.c (value_ptradd): Assert that the value argument is not
7625 lval_xcallable.
7626 * valops.c (value_must_coerce_to_target): Return 0 for
7627 lval_xcallable values.
7628 * value.c (struct value): New field XM_WORKER in the field
7629 LOCATION.
7630 (value_address, value_raw_address): Return 0 for lval_xcallable
7631 values.
7632 (set_value_address): Assert that the value is not an
7633 lval_xcallable.
7634 (value_free): Free the associated xmethod worker when freeing
7635 lval_xcallable values.
7636 (set_value_component_location): Assert that the WHOLE value is not
7637 lval_xcallable.
7638 (value_of_xmethod, call_xmethod): New functions.
7639 * value.h: Declare "struct xmethod_worker".
7640 Declare new functions value_of_xmethod, call_xmethod.
7641
7642 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7643 Pedro Alves <palves@redhat.com>
7644
7645 PR breakpoints/17000
7646 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7647 New function, extracted from software_breakpoint_inserted_here_p.
7648 (software_breakpoint_inserted_here_p): Replace factored out code
7649 by call to find_non_raw_software_breakpoint_inserted_here.
7650 (bp_target_info_copy_insertion_state): New function.
7651 (bkpt_insert_location): Handle the case of a single-step
7652 breakpoint already inserted at the same address.
7653 (bkpt_remove_location): Handle the case of a single-step
7654 breakpoint still inserted at the same address.
7655 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7656 breakpoint already inserted at the same address.
7657 (deprecated_remove_raw_breakpoint): Handle the case of a
7658 non-raw breakpoint still inserted at the same address.
7659 (find_single_step_breakpoint): New function, extracted from
7660 single_step_breakpoint_inserted_here_p.
7661 (find_single_step_breakpoint): New function,
7662 factored out from single_step_breakpoint_inserted_here_p.
7663 (single_step_breakpoint_inserted_here_p): Reimplement.
7664
7665 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7666
7667 Pushed by Joel Brobecker <brobecker@adacore.com>
7668 * source.c (show_substitute_path_command): Fix display of matching
7669 substitution rules.
7670
7671 2014-06-03 Gary Benson <gbenson@redhat.com>
7672
7673 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7674
7675 2014-06-02 Doug Evans <xdje42@gmail.com>
7676
7677 Add parameter support for Guile.
7678 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7679 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7680 (scm-param.o): New rule.
7681 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7682 (gdbscm_misc_error): Declare.
7683 (gdbscm_canonicalize_command_name): Declare.
7684 (gdbscm_scm_to_host_string): Declare.
7685 (gdbscm_scm_from_host_string): Declare.
7686 (gdbscm_initialize_parameters): Declare.
7687 * guile/guile.c (initialize_gdb_module): Call
7688 gdbscm_initialize_parameters.
7689 * guile/lib/gdb.scm: Export parameter symbols.
7690 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7691 cmdscm_canonicalize_name and made public. All callers updated.
7692 * guile/scm-exception.c (gdbscm_misc_error): New function.
7693 * guile/scm-param.c: New file.
7694 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7695 (gdbscm_scm_to_host_string): New function.
7696 (gdbscm_scm_from_host_string): New function.
7697 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7698
7699 2014-06-02 Doug Evans <xdje42@gmail.com>
7700
7701 Add command support for Guile.
7702 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7703 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7704 (scm-cmd.o): New rule.
7705 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7706 (gdbscm_user_error_p): Declare.
7707 (gdbscm_parse_command_name): Declare.
7708 (gdbscm_valid_command_class_p): Declare.
7709 (gdbscm_initialize_commands): Declare.
7710 * guile/guile.c (initialize_gdb_module): Call
7711 gdbscm_initialize_commands.
7712 * guile/lib/gdb.scm: Export command symbols.
7713 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7714 (throw-user-error): New function.
7715 * guile/scm-cmd.c: New file.
7716 * guile/scm-exception.c (user_error_symbol): New static global.
7717 (gdbscm_user_error_p): New function.
7718 (gdbscm_initialize_exceptions): Set user_error_symbol.
7719 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7720
7721 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7722
7723 * top.c (command_loop): Handle comments here...
7724 (command_line_input): ... not here.
7725
7726 2014-06-02 Doug Evans <xdje42@gmail.com>
7727
7728 Add progspace support for Guile.
7729 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7730 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7731 (scm-progspace.o): New rule.
7732 * guile/guile-internal.h (pspace_smob): New typedef.
7733 (psscm_pspace_smob_pretty_printers): Declare.
7734 (psscm_pspace_smob_from_pspace): Declare.
7735 (psscm_scm_from_pspace): Declare.
7736 * guile/guile.c (initialize_gdb_module): Call
7737 gdbscm_initialize_pspaces.
7738 * guile/lib/gdb.scm: Export progspace symbols.
7739 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7740 support.
7741 (append-pretty-printer!): Ditto.
7742 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7743 Implement.
7744 * guile/scm-progspace.c: New file.
7745
7746 2014-06-03 Alan Modra <amodra@gmail.com>
7747
7748 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7749 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7750
7751 2014-06-02 Doug Evans <dje@google.com>
7752
7753 Add support for skeletonless type units.
7754 * dwarf2read.c (struct dwarf2_per_objfile): New member
7755 n_allocated_type_units.
7756 (struct dwarf2_per_objfile) <tu_stats>: New member
7757 nr_all_type_units_reallocs.
7758 (create_signatured_type_table_from_index): Initialize
7759 n_allocated_type_units
7760 (create_all_type_units): Ditto.
7761 (add_type_unit): Move up in file. New arg slot.
7762 All callers updated. Increase space for all_type_units more
7763 efficiently.
7764 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7765 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7766 (lookup_dwp_signatured_type): Ditto.
7767 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7768 All callers updated.
7769 (build_type_psymtabs_1): Leave type_unit_groups as
7770 NULL if no TUs present.
7771 (print_tu_stats): New function.
7772 (process_skeletonless_type_unit): New function.
7773 (process_dwo_file_for_skeletonless_type_units): New
7774 function.
7775 (process_skeletonless_type_units): New function.
7776 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7777 Call print tu_stats if debugging enabled.
7778
7779 2014-06-02 Pedro Alves <palves@redhat.com>
7780
7781 * breakpoint.c (build_target_command_list): Don't build a command
7782 list if we have any duplicate location that isn't a dprintf.
7783
7784 2014-06-02 Pedro Alves <palves@redhat.com>
7785
7786 * breakpoint.c (dprintf_breakpoint_hit): New function.
7787 (initialize_breakpoint_ops): Install it as dprintf's
7788 breakpoint_hit method.
7789
7790 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7791
7792 * source.c (substitute_path_rule_matches): Simplify using
7793 filename_ncmp instead of FILENAME_CMP.
7794
7795 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7796
7797 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7798
7799 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7800
7801 * configure.ac: When Guile is available, check for the
7802 availability of 'scm_new_smob'.
7803 * configure, config.h.in: Regenerate.
7804 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7805 function.
7806
7807 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7808
7809 * frame.c (struct frame_info): Add stop_string field.
7810 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7811 (get_prev_frame_always): Old content moved into
7812 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7813 TRY_CATCH, handle MEMORY_ERROR exceptions.
7814 (frame_stop_reason_string): New function definition.
7815 * frame.h (unwind_stop_reason_to_string): Extend comment to
7816 mention frame_stop_reason_string.
7817 (frame_stop_reason_string): New function declaration.
7818 * stack.c (frame_info): Switch to frame_stop_reason_string.
7819 (backtrace_command_1): Switch to frame_stop_reason_string.
7820 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7821 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7822 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7823
7824 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7825
7826 * frame.c (frame_stop_reason_string): Rename to ...
7827 (unwind_stop_reason_to_string): this.
7828 * frame.h (frame_stop_reason_string): Rename to ...
7829 (unwind_stop_reason_to_string): this.
7830 * stack.c (frame_info): Update call to frame_stop_reason_string.
7831 (backtrace_command_1): Likewise.
7832 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7833 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7834
7835 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7836
7837 * frame.c (remove_prev_frame): New function.
7838 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7839 remove_prev_frame.
7840
7841 2014-05-29 Pedro Alves <palves@redhat.com>
7842
7843 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7844 and make it const. When a single-step decays to a continue,
7845 clear 'step', not 'hw_step'. Pass whether the caller wanted
7846 to step to user_visible_resume_ptid, not what we ask the
7847 target to do.
7848
7849 2014-05-29 Pedro Alves <palves@redhat.com>
7850
7851 * infrun.c (process_event_stop_test, handle_step_into_function)
7852 (handle_step_into_function_backward): Adjust.
7853 Don't set the even thread's stop_step and call stop_waiting before
7854 calling end_stepping_range. Instead do that ...
7855 (end_stepping_range): ... here. Take an ecs pointer parameter.
7856
7857 2014-05-29 Pedro Alves <palves@redhat.com>
7858
7859 * infrun.c (stop_stepping): Rename to ...
7860 (stop_waiting): ... this.
7861 (proceed): Update comment.
7862 (process_event_stop_test, handle_inferior_event)
7863 (handle_signal_stop, handle_step_into_function)
7864 (handle_step_into_function_backward): Update.
7865
7866 2014-05-29 Pedro Alves <palves@redhat.com>
7867
7868 * infcall.c (run_inferior_call): Don't check whether the current
7869 thread is running after the proceed call.
7870
7871 2014-05-29 Pedro Alves <palves@redhat.com>
7872 Tom Tromey <tromey@redhat.com>
7873
7874 * NEWS: Mention "maint set target-async", "set mi-async", and that
7875 background execution commands are now always available.
7876 * target.h (target_async_permitted): Update comment.
7877 * target.c (target_async_permitted, target_async_permitted_1):
7878 Default to 1.
7879 (set_target_async_command): Rename to ...
7880 (maint_set_target_async_command): ... this.
7881 (show_target_async_command): Rename to ...
7882 (maint_show_target_async_command): ... this.
7883 (_initialize_target): Adjust.
7884 * infcmd.c (prepare_execution_command): Make extern.
7885 * inferior.h (prepare_execution_command): Declare.
7886 * infrun.c (set_observer_mode): Leave target async alone.
7887 * mi/mi-interp.c (mi_interpreter_init): Install
7888 mi_on_sync_execution_done as sync_execution_done observer.
7889 (mi_on_sync_execution_done): New function.
7890 (mi_execute_command_input_handler): Don't print the prompt if we
7891 just started a synchronous command with an async target.
7892 (mi_on_resume): Check sync_execution before printing prompt.
7893 * mi/mi-main.h (mi_async_p): Declare.
7894 * mi/mi-main.c: Include gdbcmd.h.
7895 (mi_async_p): New function.
7896 (mi_async, mi_async_1): New globals.
7897 (set_mi_async_command, show_mi_async_command, mi_async): New
7898 functions.
7899 (exec_continue): Call prepare_execution_command.
7900 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7901 (mi_execute_async_cli_command): Use mi_async_p.
7902 (_initialize_mi_main): Install "set mi-async". Make
7903 "target-async" a deprecated alias.
7904
7905 2014-05-29 Pedro Alves <palves@redhat.com>
7906
7907 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7908 (_initialize_cli_interp): Adjust.
7909 * event-loop.c: Include "observer.h".
7910 (start_event_loop): Notify 'command_error' observers instead of
7911 calling display_gdb_prompt. Remove FIXME comment.
7912 * event-top.c (display_gdb_prompt): Remove call into the
7913 interpreters.
7914 * inf-loop.c: Include "observer.h".
7915 (inferior_event_handler): Notify 'command_error' observers instead
7916 of calling display_gdb_prompt.
7917 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7918 observers instead of calling display_gdb_prompt.
7919 * interps.c (interp_set): Don't call display_gdb_prompt.
7920 (current_interp_display_prompt_p): Delete.
7921 * interps.h (interp_prompt_p): Delete declaration.
7922 (interp_prompt_p_ftype): Delete.
7923 (struct interp_procs) <prompt_proc_p>: Delete field.
7924 (current_interp_display_prompt_p): Delete declaration.
7925 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7926 (_initialize_mi_interp): Adjust.
7927 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7928 'command_error' observers.
7929 (tui_on_sync_execution_done, tui_on_command_error): New
7930 functions.
7931 (tui_display_prompt_p): Delete.
7932 (_initialize_tui_interp): Adjust.
7933
7934 2014-05-29 Pedro Alves <palves@redhat.com>
7935
7936 PR gdb/13860
7937 * cli/cli-interp.c: Include infrun.h and observer.h.
7938 (cli_uiout, cli_interp): New globals.
7939 (cli_on_signal_received, cli_on_end_stepping_range)
7940 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7941 functions.
7942 (cli_interpreter_init): Install them as 'end_stepping_range',
7943 'signal_received' 'signal_exited', 'exited' and 'no_history'
7944 observers.
7945 (_initialize_cli_interp): Remove cli_interp local.
7946 * infrun.c (handle_inferior_event): Call the several stop reason
7947 observers instead of printing the stop reason directly.
7948 (end_stepping_range): New function.
7949 (print_end_stepping_range_reason, print_signal_exited_reason)
7950 (print_exited_reason, print_signal_received_reason)
7951 (print_no_history_reason): Make static, and add an uiout
7952 parameter. Print to that instead of to CURRENT_UIOUT.
7953 * infrun.h (print_end_stepping_range_reason)
7954 (print_signal_exited_reason, print_exited_reason)
7955 (print_signal_received_reason print_no_history_reason): New
7956 declarations.
7957 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7958 'mi_uiout'.
7959 <cli_uiout>: New field.
7960 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7961 uiout for CLI output. Install 'signal_received',
7962 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7963 observers.
7964 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7965 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7966 (mi_on_no_history): New functions.
7967 (ui_out_free_cleanup): Delete function.
7968 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7969 instead use the one already stored in the MI interpreter data.
7970 (mi_ui_out): Adjust.
7971 * tui/tui-interp.c: Include infrun.h and observer.h.
7972 (tui_interp): New global.
7973 (tui_on_signal_received, tui_on_end_stepping_range)
7974 (tui_on_signal_exited, tui_on_exited)
7975 (tui_on_no_history): New functions.
7976 (tui_init): Install them as 'end_stepping_range',
7977 'signal_received' 'signal_exited', 'exited' and 'no_history'
7978 observers.
7979 (_initialize_tui_interp): Delete tui_interp local.
7980
7981 2014-05-29 Pedro Alves <palves@redhat.com>
7982
7983 PR gdb/15713
7984 * linux-nat.c (linux_nat_resume_callback): Rename the second
7985 parameter to 'except'. Skip LP if it points to EXCEPT.
7986 (linux_nat_resume): Don't mark the event lwp as not stopped
7987 before resuming sibling lwps. Instead ask
7988 linux_nat_resume_callback to skip the event lwp. Mark it as not
7989 stopped after actually resuming it.
7990 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7991 resuming it.
7992 (wait_lwp): Mark the lwp as stopped here.
7993 (stop_wait_callback): Mark the lwp as not stopped right after
7994 resuming it. Don't mark lwps as stopped here.
7995 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7996 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7997
7998 2014-05-29 Pedro Alves <palves@redhat.com>
7999
8000 PR PR15693
8001 * infrun.c (resume): Determine how much to resume depending on
8002 whether the caller wanted a step, not whether we can hardware step
8003 the target. Mark all threads that we intend to run as running,
8004 unless we're calling an inferior function.
8005 (normal_stop): If the thread is running an infcall, don't finish
8006 thread state.
8007 * target.c (target_resume): Don't mark threads as running here.
8008
8009 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8010
8011 * serial.c (_initialize_serial): Remove support for
8012 the "set remotebaud" and "show remotebaud" commands.
8013 * NEWS: Add entry documenting the removal of that command.
8014
8015 2014-05-28 Yao Qi <yao@codesourcery.com>
8016
8017 * charset.c: Fix typo in comments.
8018
8019 2014-05-27 Gary Benson <gbenson@redhat.com>
8020
8021 * utils.c (internal_vproblem): Prompt for a bug report.
8022
8023 2014-05-26 Andy Wingo <wingo@igalia.com>
8024
8025 * guile/scm-arch.c (arscm_mark_arch_smob):
8026 * guile/scm-block.c (bkscm_mark_block_smob)
8027 (bkscm_mark_block_syms_progress_smob):
8028 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8029 * guile/scm-exception.c (exscm_mark_exception_smob):
8030 * guile/scm-frame.c (frscm_mark_frame_smob):
8031 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8032 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8033 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8034 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8035 (ppscm_mark_pretty_printer_worker_smob):
8036 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8037 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8038 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8039 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8040 mark functions.
8041 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8042 function.
8043
8044 2014-05-26 Andy Wingo <wingo@igalia.com>
8045 Doug Evans <xdje42@gmail.com>
8046
8047 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8048 empty_base_class. All uses updated.
8049 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8050 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8051 Adapt all callers.
8052 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8053 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8054 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8055 (gdbscm_gsmob_has_property_p, add_property_name)
8056 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8057 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8058 (gdb-object-has-property?, gdb-object-properties): Remove.
8059 (gdb-object-kind): Renamed from gsmob-kind.
8060
8061 2014-05-26 Andy Wingo <wingo@igalia.com>
8062
8063 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8064 * configure: Regenerate.
8065
8066 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8067
8068 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8069
8070 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8071
8072 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8073 (replay_memory_access_read_only, replay_memory_access_read_write)
8074 (replay_memory_access_types, replay_memory_access)
8075 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8076 (cmd_set_record_btrace, cmd_show_record_btrace)
8077 (cmd_show_replay_memory_access): New.
8078 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8079 (record_btrace_remove_breakpoint): Replace
8080 record_btrace_allow_memory_access with replay_memory_access.
8081 (_initialize_record_btrace): Add commands.
8082 * NEWS: Announce it.
8083
8084 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8085
8086 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8087
8088 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8089
8090 * MAINTAINERS (Write After Approval): Move self back from
8091 paper trail.
8092
8093 2014-05-22 Pedro Alves <palves@redhat.com>
8094
8095 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8096 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8097 (disable_randomization, enum exec_direction_kind)
8098 (execution_direction, stop_registers, start_remote)
8099 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8100 (wait_for_inferior, normal_stop, get_last_target_status)
8101 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8102 (insert_step_resume_breakpoint_at_sal)
8103 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8104 (set_step_info, print_stop_event, signal_stop_state)
8105 (signal_print_state, signal_pass_state, signal_stop_update)
8106 (signal_print_update, signal_pass_update)
8107 (update_signals_program_target, clear_exit_convenience_vars)
8108 (displaced_step_dump_bytes, update_observer_mode)
8109 (signal_catch_update, gdb_signal_from_command): Move
8110 declarations ...
8111 * infrun.h: ... to this new file.
8112 * amd64-tdep.c: Include infrun.h.
8113 * annotate.c: Include infrun.h.
8114 * arch-utils.c: Include infrun.h.
8115 * arm-linux-tdep.c: Include infrun.h.
8116 * arm-tdep.c: Include infrun.h.
8117 * break-catch-sig.c: Include infrun.h.
8118 * breakpoint.c: Include infrun.h.
8119 * common/agent.c: Include infrun.h instead of inferior.h.
8120 * corelow.c: Include infrun.h.
8121 * event-top.c: Include infrun.h.
8122 * go32-nat.c: Include infrun.h.
8123 * i386-tdep.c: Include infrun.h.
8124 * inf-loop.c: Include infrun.h.
8125 * infcall.c: Include infrun.h.
8126 * infcmd.c: Include infrun.h.
8127 * infrun.c: Include infrun.h.
8128 * linux-fork.c: Include infrun.h.
8129 * linux-nat.c: Include infrun.h.
8130 * linux-thread-db.c: Include infrun.h.
8131 * monitor.c: Include infrun.h.
8132 * nto-tdep.c: Include infrun.h.
8133 * procfs.c: Include infrun.h.
8134 * record-btrace.c: Include infrun.h.
8135 * record-full.c: Include infrun.h.
8136 * remote-m32r-sdi.c: Include infrun.h.
8137 * remote-mips.c: Include infrun.h.
8138 * remote-notif.c: Include infrun.h.
8139 * remote-sim.c: Include infrun.h.
8140 * remote.c: Include infrun.h.
8141 * reverse.c: Include infrun.h.
8142 * rs6000-tdep.c: Include infrun.h.
8143 * s390-linux-tdep.c: Include infrun.h.
8144 * solib-irix.c: Include infrun.h.
8145 * solib-osf.c: Include infrun.h.
8146 * solib-svr4.c: Include infrun.h.
8147 * target.c: Include infrun.h.
8148 * top.c: Include infrun.h.
8149 * windows-nat.c: Include infrun.h.
8150 * mi/mi-interp.c: Include infrun.h.
8151 * mi/mi-main.c: Include infrun.h.
8152 * python/py-threadevent.c: Include infrun.h.
8153
8154 2014-05-22 Pedro Alves <palves@redhat.com>
8155
8156 * infrun.c (handle_inferior_event): Store the exit code for
8157 --return-child-result here, instead of ...
8158 (print_exited_reason): ... here.
8159
8160 2014-05-21 Pedro Alves <palves@redhat.com>
8161
8162 PR gdb/13860
8163 * gdbthread.h (struct thread_control_state): New field
8164 `command_interp'.
8165 * infrun.c (follow_fork): Copy the new thread control field to the
8166 child fork thread.
8167 (clear_proceed_status_thread): Clear the new thread control field.
8168 (proceed): Set the new thread control field.
8169 * interps.h (command_interp): Declare.
8170 * interps.c (command_interpreter): New global.
8171 (command_interp): New function.
8172 (interp_exec): Set `command_interpreter' while here.
8173 * cli-out.c (cli_uiout_dtor): New function.
8174 (cli_ui_out_impl): Install it.
8175 * mi/mi-interp.c: Include cli-out.h.
8176 (mi_cmd_interpreter_exec): Add comment.
8177 (restore_current_uiout_cleanup): New function.
8178 (ui_out_free_cleanup): New function.
8179 (mi_on_normal_stop): If finishing an execution command started by
8180 a CLI command, or any kind of breakpoint-like event triggered,
8181 print the stop event to the output (CLI) stream.
8182 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8183
8184 2014-05-21 Pedro Alves <palves@redhat.com>
8185
8186 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8187 current source line having changed.
8188 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8189 * infrun.c (normal_stop): Adjust call to
8190 set_current_sal_from_frame.
8191 * source.c (clear_lines_listed_range): New function.
8192 (set_current_source_symtab_and_line, identify_source_line): Clear
8193 the lines listed range.
8194 (line_info): Handle the first "info line" after the current source
8195 line having changed.
8196 * stack.c (print_stack_frame): Remove center handling.
8197 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8198 center sal.line.
8199
8200 2014-05-21 Pedro Alves <palves@redhat.com>
8201
8202 * inf-child.c (inf_child_mourn_inferior): New function.
8203 * inf-child.h (inf_child_mourn_inferior): New declaration.
8204 * darwin-nat.c (darwin_mourn_inferior): Use
8205 inf_child_mourn_inferior.
8206 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8207 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8208 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8209 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8210 * windows-nat.c (windows_mourn_inferior): Likewise.
8211
8212 2014-05-21 Doug Evans <xdje42@gmail.com>
8213
8214 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8215
8216 2014-05-21 Doug Evans <xdje42@gmail.com>
8217
8218 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8219 (gdbscm_out_of_range_error): Ditto.
8220 (gdbscm_memory_error): Ditto.
8221 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8222 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8223 (gdbscm_out_of_range_error): Update.
8224 (gdbscm_memory_error): Update.
8225 (gdbscm_scm_to_target_string_unsafe): Delete.
8226
8227 2014-05-21 Pedro Alves <palves@redhat.com>
8228
8229 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8230 globals.
8231 (inf_child_open_target): New function.
8232 (inf_child_open): Use inf_child_open_target to push the target
8233 instead of erroring out.
8234 (inf_child_disconnect, inf_child_close)
8235 (inf_child_maybe_unpush_target): New functions.
8236 (inf_child_target): Install inf_child_disconnect and
8237 inf_child_close. Store a pointer to the returned object.
8238 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8239 declarations.
8240 * target.c (auto_connect_native_target): New global.
8241 (show_default_run_target): New function.
8242 (find_default_run_target): Return NULL if automatically connecting
8243 to the native target is disabled.
8244 (_initialize_target): Install set/show auto-connect-native-target.
8245 * NEWS: Mention "set auto-connect-native-target", and "target
8246 native".
8247 * linux-nat.c (super_close): New global.
8248 (linux_nat_close): Call super_close.
8249 (linux_nat_add_target): Store a pointer to the base class's
8250 to_close method.
8251 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8252 inf_child_maybe_unpush.
8253 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8254 already pushed.
8255 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8256 the inferior. Use inf_child_maybe_unpush_target.
8257 (inf_ttrace_attach): Don't push the target if it is already
8258 pushed.
8259 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8260 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8261 after mourning the inferior. Use inf_child_maybe_unpush_target.
8262 (darwin_attach_pid): Don't push the target if it is already
8263 pushed.
8264 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8265 mourning the inferior. Use inf_child_maybe_unpush_target.
8266 (gnu_detach): Use inf_child_maybe_unpush_target.
8267 * go32-nat.c (go32_create_inferior): Don't push the target if it
8268 is already pushed.
8269 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8270 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8271 (procfs_open): Rename to ...
8272 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8273 comments. Can target_preopen before changing node. Call
8274 inf_child_open_target to push the target explicitly.
8275 (procfs_attach): Don't push the target if it is already pushed.
8276 (procfs_detach): Use inf_child_maybe_unpush_target.
8277 (procfs_create_inferior): Don't push the target if it is already
8278 pushed.
8279 (nto_native_ops): New global.
8280 (procfs_open): Reimplement.
8281 (procfs_native_open): New function.
8282 (init_procfs_targets): Install procfs_native_open as to_open of
8283 "target native". Store a pointer to the "native" target in
8284 nto_native_ops.
8285 * procfs.c (procfs_attach): Don't push the target if it is already
8286 pushed.
8287 (procfs_detach): Use inf_child_maybe_unpush_target.
8288 (procfs_mourn_inferior): Only unpush the target after mourning the
8289 inferior. Use inf_child_maybe_unpush_target.
8290 (procfs_init_inferior): Don't push the target if it is already
8291 pushed.
8292 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8293 if it is already pushed.
8294
8295 2014-05-21 Pedro Alves <palves@redhat.com>
8296
8297 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8298 and "procfs" targets are now called "native" instead.
8299
8300 2014-05-21 Pedro Alves <palves@redhat.com>
8301
8302 * go32-nat.c (go32_open): Delete.
8303 (go32_target): Don't override the to_open method.
8304
8305 2014-05-21 Pedro Alves <palves@redhat.com>
8306
8307 * nto-procfs.c (procfs_can_run): New function.
8308 (nto_procfs_ops): New global.
8309 (init_procfs_targets): New, based on procfs_target. Install
8310 "target native" in addition to "target procfs".
8311 (_initialize_procfs): Call init_procfs_targets instead of adding
8312 the target here.
8313
8314 2014-05-21 Pedro Alves <palves@redhat.com>
8315
8316 * windows-nat.c (windows_target): Don't override to_shortname,
8317 to_longname or to_doc.
8318
8319 2014-05-21 Pedro Alves <palves@redhat.com>
8320
8321 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8322 to_doc.
8323
8324 2014-05-21 Pedro Alves <palves@redhat.com>
8325
8326 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8327 to_shortname, to_longname or to_doc.
8328
8329 2014-05-21 Pedro Alves <palves@redhat.com>
8330
8331 * go32-nat.c (go32_target): Don't override to_shortname,
8332 to_longname or to_doc.
8333
8334 2014-05-21 Pedro Alves <palves@redhat.com>
8335
8336 * inf-child.c (inf_child_open): Remove mention of "child".
8337 (inf_child_target): Rename target to "native" instead of "child".
8338
8339 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8340
8341 * Makefile.in (SFILES): Delete "regset.c".
8342 (COMMON_OBS): Delete "regset.o".
8343 * regset.c: Remove.
8344 * regset.h (regset_alloc): Delete prototype.
8345
8346 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8347
8348 * sparc-linux-tdep.c (sparc32_linux_gregset)
8349 (sparc32_linux_fpregset): New static regset structures.
8350 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8351 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8352 'fpregset' fields.
8353 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8354 (sparc64_linux_fpregset): New static regset structures.
8355 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8356 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8357 New static regset structures.
8358 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8359 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8360 New static regset structures.
8361 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8362 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8363 New static regset structures.
8364 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8365 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8366 New static regset structures.
8367 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8368
8369 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8370
8371 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8372 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8373 register maps ("regmaps") from "*regset" to "*regmap". Do this
8374 for all regmap types and variables.
8375 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8376 (sparc32_linux_supply_core_gregset)
8377 (sparc32_linux_collect_core_gregset)
8378 (sparc32_linux_supply_core_fpregset)
8379 (sparc32_linux_collect_core_fpregset): Likewise.
8380 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8381 (sparc_gregmap, sparc_fpregmap): ... these.
8382 (sparc_supply_gregset, sparc_collect_gregset)
8383 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8384 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8385 (_initialize_sparc_nat): Rename regmaps.
8386 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8387 (sparc_gregmap, sparc_fpregmap): ... these.
8388 (sparc_supply_gregset, sparc_collect_gregset)
8389 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8390 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8391 Rename macros to...
8392 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8393 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8394 Likewise.
8395 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8396 Rename to...
8397 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8398 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8399 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8400 regmaps.
8401 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8402 (sparc32_bsd_fpregset): Rename to...
8403 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8404 (sparc32_bsd_fpregmap): ... these.
8405 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8406 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8407 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8408 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8409 (struct sparc_gregmap, struct sparc_fpregmap)
8410 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8411 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8412 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8413 (sparc32_supply_regset, sparc32_collect_gregset)
8414 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8415 prototypes.
8416 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8417 (sparc64_linux_ptrace_gregmap): ... this.
8418 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8419 (_initialize_sparc64_linux_nat): Rename regmaps.
8420 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8421 (sparc64_linux_core_gregmap): ... this.
8422 (sparc64_linux_supply_core_gregset)
8423 (sparc64_linux_collect_core_gregset)
8424 (sparc64_linux_supply_core_fpregset)
8425 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8426 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8427 (sparc64_sol2_fpregset): Rename to...
8428 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8429 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8430 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8431 regmaps.
8432 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8433 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8434 (sparc64_bsd_fpregset): Rename to...
8435 (struct sparc_gregmap, sparc64_sol2_gregmap)
8436 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8437 (sparc64_bsd_fpregmap): ... these.
8438 (sparc64_supply_gregset, sparc64_collect_gregset)
8439 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8440 prototypes.
8441 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8442 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8443 (sparc64fbsd_gregmap): ... this.
8444 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8445 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8446 Rename regmaps.
8447 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8448 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8449 (sparc64nbsd_collect_fpregset): Likewise.
8450 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8451 (sparc64nbsd_gregmap): ... this.
8452 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8453 regmaps.
8454 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8455 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8456 (sparc64obsd_gregmap): ... this.
8457 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8458 regmaps.
8459 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8460 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8461 (sparc32nbsd_gregmap): ... this.
8462 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8463 regmaps.
8464
8465 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8466
8467 * score-tdep.c (score7_linux_gregset): New static regset
8468 structure.
8469 (score7_linux_regset_from_core_section): Remove dynamic regset
8470 allocation.
8471 (score_gdbarch_init): Drop allocation of tdep structure.
8472 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8473
8474 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8475
8476 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8477 regset structures.
8478 (am33_regset_from_core_section): Remove dynamic regset
8479 allocations.
8480
8481 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8482
8483 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8484 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8485 structures.
8486 (mips_linux_regset_from_core_section): Remove dynamic regset
8487 allocations.
8488 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8489 'gregset64', 'fpregset', and 'fpregset64'.
8490 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8491 deleted tdep fields.
8492
8493 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8494
8495 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8496 regset structures.
8497 (amd64_regset_from_core_section): Remove dynamic regset
8498 allocations.
8499 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8500 structure.
8501 (amd64obsd_regset_from_core_section): Remove dynamic regset
8502 allocation.
8503 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8504 Likewise.
8505 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8506 x86-common regset supply function.
8507 * i386-tdep.c (i386_collect_gregset): Make static.
8508 (i386_gregset): New global regset structure.
8509 (i386_fpregset, i386_xstateregset): New static regset structures.
8510 (i386_regset_from_core_section): Remove dynamic regset
8511 allocations.
8512 (i386_gdbarch_init): Remove initialization of tdep fields
8513 'gregset', 'fpregset', and 'xstateregset'.
8514 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8515 'fpregset', and 'xstateregset'.
8516 (i386_collect_gregset): Remove prototype.
8517 (i386_gregset): New declaration.
8518 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8519 structure.
8520 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8521 allocation.
8522
8523 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8524
8525 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8526 (arm_linux_vfpregset): New static regset structures.
8527 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8528 regset structures.
8529 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8530 and 'vfpregset' fields.
8531
8532 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8533
8534 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8535 (aarch64_linux_fpregset): New static regset structures.
8536 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8537 of regset structures.
8538 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8539 'fpregset' fields.
8540
8541 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8542
8543 * regset.h (struct regset): Remove gdbarch field.
8544 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8545 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8546 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8547 Likewise.
8548 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8549 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8550 (ppc32_linux_vsxregset): Likewise.
8551 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8552 via the regcache instead of the regset.
8553 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8554 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8555 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8556 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8557 Likewise.
8558
8559 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8560
8561 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8562 Constify structures.
8563 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8564 (alphanbsd_aout_gregset): Likewise.
8565 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8566 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8567 Likewise.
8568 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8569 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8570 Likewise.
8571 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8572 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8573 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8574 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8575 * m88k-tdep.c (m88k_gregset): Likewise.
8576 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8577 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8578 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8579 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8580 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8581 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8582 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8583 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8584 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8585 Likewise.
8586 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8587 * sh-tdep.h (sh_corefile_gregset): Likewise.
8588 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8589 * vax-tdep.c (vax_gregset): Likewise.
8590
8591 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8592
8593 Fix TLS access for -static -pthread.
8594 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8595 (try_thread_db_load_1): Initialize it.
8596 (thread_db_get_thread_local_address): Call it if LM is zero.
8597 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8598 * target.h (struct target_ops) (to_get_thread_local_address): Add
8599 load_module_addr comment.
8600
8601 2014-05-21 Pedro Alves <palves@redhat.com>
8602
8603 * dcache.c (dcache_read_memory_partial): If reading the cache line
8604 fails, fallback to reading just the memory the caller wanted.
8605
8606 2014-05-20 Doug Evans <dje@google.com>
8607
8608 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8609 instead of get_current_arch.
8610
8611 2014-05-20 Pedro Alves <palves@redhat.com>
8612
8613 * NEWS: Mention that compare-sections now works with all targets.
8614
8615 * remote.c (PACKET_qCRC): New enum value.
8616 (remote_verify_memory): Don't send qCRC if the target has no
8617 execution. Use packet_support/packet_ok. If the target doesn't
8618 support the qCRC packet, fallback to a deep memory copy.
8619 (compare_sections_command): Say "target image" instead of "remote
8620 executable".
8621 (_initialize_remote): Add PACKET_qCRC to the list of config
8622 packets that have no associated command. Extend comment.
8623 * target.c (simple_verify_memory, default_verify_memory): New
8624 function.
8625 * target.h (struct target_ops) <to_verify_memory>: Default to
8626 default_verify_memory.
8627 (simple_verify_memory): New declaration.
8628 * target-delegates.c: Regenerate.
8629
8630 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8631
8632 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8633
8634 2014-05-20 Hui Zhu <hui@codesourcery.com>
8635 Yao Qi <yao@codesourcery.com>
8636
8637 PR backtrace/16558
8638 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8639 and change address of sp and pc.
8640
8641 2014-05-19 Tom Tromey <tromey@redhat.com>
8642
8643 * gdbtypes.c (rank_function): Use XNEWVEC.
8644 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8645
8646 2014-05-19 Doug Evans <dje@google.com>
8647
8648 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8649 build_type_unit_groups and moved closer to only caller. Remove
8650 arguments. All references updated. Remove outdated .gdb_index
8651 comment.
8652 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8653 build_type_psymtabs_1.
8654
8655 2014-05-19 Doug Evans <dje@google.com>
8656
8657 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8658 n_type_unit_groups, all_type_unit_groups. All uses removed.
8659 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8660 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8661 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8662 (add_type_unit_group_to_table): Delete.
8663
8664 2014-05-19 Doug Evans <dje@google.com>
8665
8666 * eval.c (evaluate_subexp_standard): Add some comments.
8667
8668 2014-05-17 Doug Evans <xdje42@gmail.com>
8669
8670 * progspace.c (remove_program_space): Delete, unused.
8671 * progspace.h (remove_program_space): Ditto.
8672
8673 2014-05-17 Doug Evans <xdje42@gmail.com>
8674
8675 * inferior.c (prune_inferiors): Fix comment.
8676 (remove_inferior_command): Call prune_program_spaces.
8677
8678 2014-05-16 Doug Evans <dje@google.com>
8679
8680 New command line option -D.
8681 * NEWS: Mention it.
8682 * main.c (set_gdb_data_directory): New function.
8683 (captured_main): Recognize -D. Flag error for --data-directory "".
8684 Call set_gdb_data_directory.
8685 (print_gdb_help): Print --data-directory, -D.
8686 * main.h (set_gdb_data_directory): Declare.
8687 * top.c (staged_gdb_datadir): New static global.
8688 (set_gdb_datadir): Call set_gdb_data_directory
8689 (show_gdb_datadir): New function.
8690 (init_main): Update init of data-directory parameter.
8691
8692 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8693
8694 Import the "dirfd" gnulib module.
8695 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8696 * gnulib/aclocal.m4: Update.
8697 * gnulib/config.in: Update.
8698 * gnulib/configure: Update.
8699 * gnulib/import/Makefile.am: Update.
8700 * gnulib/import/Makefile.in: Update.
8701 * gnulib/import/dirfd.c: New.
8702 * gnulib/import/m4/dirfd.m4: New.
8703 * gnulib/import/m4/gnulib-cache.m4: Update.
8704 * gnulib/import/m4/gnulib-comp.m4: Update.
8705
8706 2014-05-16 Pierre Muller <muller@sourceware.org>
8707 Yao Qi <yao@codesourcery.com>
8708
8709 * valprint.c (print_wchar): Move the code on checking whether
8710 W is a printable wide char to the default branch of switch
8711 statement below. Call wchar_printable instead of gdb_iswprint.
8712
8713 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8714
8715 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8716 ldr.w and ldrd instructions.
8717
8718 2014-05-15 Doug Evans <dje@google.com>
8719
8720 * dwarf2read.c (read_structure_type): Delete outdated comments.
8721
8722 2014-05-14 Tom Tromey <tromey@redhat.com>
8723
8724 * macrocmd.c (print_macro_definition): Reindent.
8725
8726 2014-05-13 Doug Evans <xdje42@gmail.com>
8727
8728 * python/py-cmd.c (cmdpy_completer): Add comment.
8729 (completers): Make const.
8730
8731 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8732
8733 * infrun.c (resume): Remove should_resume (unused). Move up
8734 declaration of resume_ptid.
8735
8736 2014-05-13 Tom Tromey <tromey@redhat.com>
8737
8738 * language.h (unop_type_check): Remove.
8739 (binop_type_check): Don't declare.
8740
8741 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8742
8743 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8744 call to regcache_raw_collect.
8745
8746 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8747
8748 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8749 mi_console->quote as the quoting character.
8750
8751 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8752
8753 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8754
8755 2014-04-29 Tom Tromey <tromey@redhat.com>
8756
8757 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8758 "show debug varobj".
8759
8760 2014-05-07 Kyle McMartin <kyle@redhat.com>
8761
8762 Pushed by Joel Brobecker <brobecker@adacore.com>.
8763 * aarch64-tdep.c (aarch64_software_single_step): New function.
8764 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8765 with aarch64_software_single_step.
8766
8767 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8768
8769 GDB 7.7.1 released.
8770
8771 2014-05-05 Keith Seitz <keiths@redhat.com>
8772
8773 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8774 variable or history value is successfully parsed.
8775
8776 2014-05-05 Yao Qi <yao@codesourcery.com>
8777 Pedro Alves <palves@redhat.com>
8778
8779 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8780 address of blocks that intersects the requested range. Trim
8781 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8782 sections.
8783 * ctf.c (ctf_xfer_partial): Likewise.
8784
8785 2014-05-05 Yao Qi <yao@codesourcery.com>
8786
8787 * printcmd.c (display_command): Remove the check to
8788 target_has_execution.
8789
8790 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8791
8792 * ppcobsd-nat.c: Include "obsd-nat.h".
8793 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8794 add_target.
8795 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8796
8797 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8798
8799 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8800 and 16-bit signed and unsigned arguments. Update comment.
8801 (stap_parse_probe_arguments): Extend code to handle such
8802 arguments. Use warning instead of complaint to notify about
8803 unrecognized bitness.
8804
8805 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8806
8807 PR breakpoints/16889
8808 * stap-probe.c (stap_parse_probe_arguments): Simplify
8809 check for non-prefixed probes (i.e., probes whose
8810 arguments do not start with "N@"). Always set the
8811 argument type to a sane value.
8812
8813 2014-05-01 David Taylor <dtaylor@emc.com>
8814
8815 * remote.c (compare_sections_command): Add -r option to compare
8816 all loadable read-only sections.
8817
8818 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8819
8820 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8821 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8822 Update all callers.
8823 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8824 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8825 Remove unused CORE_ADDR argument. Update all callers.
8826
8827 2014-04-29 Pedro Alves <palves@redhat.com>
8828
8829 * remote.c (struct packet_config) <detect>: Extend comment.
8830 (add_packet_config_cmd): Don't set the config's detect or support
8831 fields here.
8832 (init_all_packet_configs): Also initialize the config's 'detect'
8833 field.
8834 (reset_all_packet_configs_support): New function.
8835 (remote_open_1): Call reset_all_packet_configs_support instead of
8836 init_all_packet_configs.
8837 (_initialize_remote): Initialize all packet configs. Assert that
8838 all packets have an associated command, except a few known
8839 outliers.
8840
8841 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8842
8843 * dwarf2read.c (read_subrange_type): Handle dynamic
8844 DW_AT_lower_bound attributes.
8845
8846 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8847
8848 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8849 dynamic bounds before computing its upper bound.
8850 (ada_discrete_type_low_bound): Same as above with the lower bound.
8851
8852 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8853
8854 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8855 range types. Adjust the array handling implementation to
8856 take advantage of this change.
8857 (resolve_dynamic_range): New function, mostly extracted from
8858 resolve_dynamic_bounds.
8859 (resolve_dynamic_array): New function, mostly extracted from
8860 resolve_dynamic_bounds.
8861 (resolve_dynamic_bounds): Delete.
8862 (resolve_dynamic_type): Reimplement. Add handling of
8863 TYPE_CODE_RANGE types.
8864
8865 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8866
8867 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8868 handling of parallel ___XA types.
8869
8870 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8871
8872 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8873 unnecessary second call to static_unwrap_type.
8874
8875 2014-04-27 Hui Zhu <hui@codesourcery.com>
8876
8877 * stack.c (print_frame_info): Call do_gdb_disassembly with
8878 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8879
8880 2014-04-26 Doug Evans <xdje42@gmail.com>
8881
8882 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8883
8884 2014-04-25 Pedro Alves <palves@redhat.com>
8885
8886 PR server/16255
8887 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8888 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8889 and newline from built string.
8890 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8891 (linux_ptrace_attach_fail_reason): ... this.
8892 * linux-nat.c (linux_nat_attach): Adjust to use
8893 linux_ptrace_attach_fail_reason.
8894
8895 2014-04-25 Pedro Alves <palves@redhat.com>
8896
8897 * remote.c (struct remote_state): Remove multi_process_aware,
8898 non_stop_aware, cond_tracepoints, cond_breakpoints,
8899 breakpoint_commands, fast_tracepoints, static_tracepoints,
8900 install_in_trace, disconnected_tracing,
8901 enable_disable_tracepoints, string_tracing, and
8902 augmented_libraries_svr4_read fields.
8903 (remote_multi_process_p): Move further below in the file.
8904 (struct packet_config): Add comments.
8905 (update_packet_config): Delete function.
8906 (show_packet_config_cmd): Use packet_config_support.
8907 (add_packet_config_cmd): Use NULL as set callback.
8908 (packet_ok): "set remote foo-packet"-style commands no longer
8909 change config->supported -- adjust.
8910 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8911 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8912 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8913 (PACKET_QNonStop, PACKET_multiprocess_feature)
8914 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8915 (PACKET_DisconnectedTracing_feature)
8916 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8917 (set_remote_protocol_packet_cmd): Delete function.
8918 (packet_config_support, packet_support): New functions.
8919 (set_remote_protocol_Z_packet_cmd): Don't call
8920 update_packet_config.
8921 (remote_query_attached, remote_pass_signals)
8922 (remote_program_signals, remote_threads_info)
8923 (remote_threads_extra_info, remote_start_remote): Use
8924 packet_support.
8925 (remote_start_remote): Use packet_config_support and
8926 packet_support.
8927 (init_all_packet_configs): Set all packets to unknown support,
8928 instead of calling update_packet_config.
8929 (remote_check_symbols): Use packet_support.
8930 (remote_supported_packet): Unconditionally set the packet config's
8931 support status.
8932 (remote_multi_process_feature, remote_non_stop_feature)
8933 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8934 (remote_breakpoint_commands_feature)
8935 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8936 (remote_install_in_trace_feature)
8937 (remote_disconnected_tracing_feature)
8938 (remote_enable_disable_tracepoint_feature)
8939 (remote_string_tracing_feature)
8940 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8941 (remote_protocol_features): Adjust to use remote_supported_packet
8942 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8943 "ConditionalTracepoints", "ConditionalBreakpoints",
8944 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8945 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8946 "EnableDisableTracepoints", and "tracenz".
8947 (remote_query_supported): Use packet_support.
8948 (remote_open_1): Adjust.
8949 (extended_remote_attach_1): Use packet_support. Switch on the
8950 result of packet_ok instead of checking whether the packet ended
8951 up disabled.
8952 (remote_vcont_resume): Use packet_support.
8953 (remote_resume, remote_stop_ns, fetch_register_using_p)
8954 (remote_prepare_to_store, store_register_using_P)
8955 (check_binary_download, remote_write_bytes): Use packet_support.
8956 (remote_vkill): Use packet_support. Switch on the result of
8957 packet_ok instead of checking whether the packet ended up
8958 disabled.
8959 (extended_remote_supports_disable_randomization): Use
8960 packet_support.
8961 (extended_remote_run): Switch on the result of packet_ok instead
8962 of checking whether the packet ended up disabled.
8963 (remote_insert_breakpoint, remote_remove_breakpoint)
8964 (remote_insert_watchpoint, remote_remove_watchpoint)
8965 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8966 packet_support.
8967 (remote_search_memory): Use packet_config_support.
8968 (remote_get_thread_local_address, remote_get_tib_address)
8969 (remote_hostio_send_command, remote_can_execute_reverse): Use
8970 packet_support.
8971 (remote_supports_cond_tracepoints)
8972 (remote_supports_cond_breakpoints)
8973 (remote_supports_fast_tracepoints)
8974 (remote_supports_static_tracepoints)
8975 (remote_supports_install_in_trace)
8976 (remote_supports_enable_disable_tracepoint)
8977 (remote_supports_string_tracing)
8978 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8979 the packet config says the feature is enabled or disabled.
8980 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8981 (remote_get_trace_status): Use packet_support.
8982 (remote_set_disconnected_tracing): Adjust to check whether the
8983 feature is enabled with packet_support.
8984 (remote_set_trace_buffer_size, remote_use_agent)
8985 (remote_can_use_agent, remote_supports_btrace): Use
8986 packet_support.
8987 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8988 Use packet_config_support.
8989 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8990 the packet config says the feature is enabled or disabled.
8991 (set_range_stepping): Use packet_support.
8992
8993 2014-04-25 Tom Tromey <tromey@redhat.com>
8994
8995 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8996 argument.
8997
8998 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8999
9000 * NEWS: Mention support for C99 variable length arrays.
9001
9002 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9003
9004 * ada-lang.c (standard_exc): Expand introductory comment.
9005
9006 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9007 Walfred Tedeschi <walfred.tedeschi@intel.com>
9008
9009 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9010 AVX512 registers.
9011 (amd64_linux_read_description): Add code to handle AVX512 xstate
9012 mask and return respective tdesc.
9013 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9014 and features/i386/x32-avx512-linux.c.
9015 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9016 (amd64_linux_core_read_description): Add code to handle AVX512
9017 xstate mask and return respective tdesc.
9018 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9019 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9020 calculation.
9021 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9022 (tdesc_amd64_avx512_linux): New prototype.
9023 (tdesc_x32_avx512_linux): Likewise.
9024 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9025 features/i386/x32-avx512.c.
9026 (amd64_ymm_avx512_names): New register names for pseudo
9027 registers YMM16-31.
9028 (amd64_ymmh_avx512_names): New register names for raw registers
9029 YMMH16-31.
9030 (amd64_k_names): New register names for K registers.
9031 (amd64_zmmh_names): New register names for ZMM raw registers.
9032 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9033 (amd64_xmm_avx512_names): New register names for XMM16-31
9034 registers.
9035 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9036 registers.
9037 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9038 if feature is present.
9039 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9040 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9041 (AMD64_NUM_REGS): Adjust to new number of registers.
9042 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9043 registers supplied via XSTATE by AVX512 registers.
9044 (i386_linux_read_description): Add case for AVX512.
9045 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9046 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9047 (i386_linux_core_read_description): Add case for AVX512.
9048 (i386_linux_init_abi): Install supported register note section
9049 for AVX512.
9050 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9051 AVX512.
9052 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9053 registers to be number of zmm7h + 1.
9054 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9055 * i386-tdep.c: Include features/i386/i386-avx512.c.
9056 (i386_zmm_names): Add ZMM pseudo register names array.
9057 (i386_zmmh_names): Add ZMM raw register names array.
9058 (i386_k_names): Add K raw register names array.
9059 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9060 registers. AVX512 has 16 more ZMM registers than there are YMM
9061 registers.
9062 (i386_zmmh_regnum_p): Add function to look up register number of
9063 ZMM raw registers.
9064 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9065 (i386_k_regnum_p): Likewise for K raw registers.
9066 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9067 registers added by AVX512.
9068 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9069 registers added by AVX512.
9070 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9071 added by AVX512.
9072 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9073 (i386_pseudo_register_name): Add ZMM pseudo registers.
9074 (i386_zmm_type): Construct and return vector registers type for ZMM
9075 registers.
9076 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9077 ZMM0-31 pseudo registers and K registers.
9078 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9079 and YMM16-31 registers from register cache.
9080 (i386_pseudo_register_write): Add code to write K, ZMM and
9081 YMM16-31 registers.
9082 (i386_register_reggroup_p): Add code to include/exclude AVX512
9083 registers in/from respective register groups.
9084 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9085 registers if feature is present in xcr0.
9086 (i386_gdbarch_init): Add code to initialize AVX512 feature
9087 variables in tdep structure, wire in pseudo registers and call
9088 initialize_tdesc_i386_avx512.
9089 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9090 variables.
9091 (i386_regnum): Add AVX512 registers.
9092 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9093 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9094 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9095 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9096 512 bits wide.
9097 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9098 (i386_ymm_avx512_regnum_p): Likewise.
9099 (i386_k_regnum_p): Likewise.
9100 (i386_zmm_regnum_p): Likewise.
9101 (i386_zmmh_regnum_p): Likewise.
9102 * i387-tdep.c : Update year in copyright notice.
9103 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9104 XSAVE buffer.
9105 (XSAVE_YMM_AVX512_ADDR): New macro.
9106 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9107 XSAVE buffer.
9108 (XSAVE_XMM_AVX512_ADDR): New macro.
9109 (xsave_avx512_k_offset): New table for K register offsets in
9110 XSAVE buffer.
9111 (XSAVE_AVX512_K_ADDR): New macro.
9112 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9113 in XSAVE buffer.
9114 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9115 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9116 buffer.
9117 (i387_collect_xsave): Add code to collect AVX512 registers from
9118 XSAVE buffer.
9119 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9120 of XMM16-31 registers.
9121 (I387_NUM_K_REGS): New define for number of K registers.
9122 (I387_K0_REGNUM): New define for K0 register number.
9123 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9124 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9125 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9126 registers.
9127 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9128 (I387_XMM16_REGNUM): New define for XMM16 register number.
9129 (I387_YMM0_REGNUM): New define for YMM0 register number.
9130 (I387_KEND_REGNUM): New define for last K register number.
9131 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9132 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9133 number.
9134 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9135 number.
9136 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9137 size.
9138 * features/Makefile: Add AVX512 related files.
9139 * features/i386/32bit-avx512.xml: New file.
9140 * features/i386/64bit-avx512.xml: Likewise.
9141 * features/i386/amd64-avx512-linux.c: Likewise.
9142 * features/i386/amd64-avx512-linux.xml: Likewise.
9143 * features/i386/amd64-avx512.c: Likewise.
9144 * features/i386/amd64-avx512.xml: Likewise.
9145 * features/i386/i386-avx512-linux.c: Likewise.
9146 * features/i386/i386-avx512-linux.xml: Likewise.
9147 * features/i386/i386-avx512.c: Likewise.
9148 * features/i386/i386-avx512.xml: Likewise.
9149 * features/i386/x32-avx512-linux.c: Likewise.
9150 * features/i386/x32-avx512-linux.xml: Likewise.
9151 * features/i386/x32-avx512.c: Likewise.
9152 * features/i386/x32-avx512.xml: Likewise.
9153 * regformats/i386/amd64-avx512-linux.dat: New file.
9154 * regformats/i386/amd64-avx512.dat: Likewise.
9155 * regformats/i386/i386-avx512-linux.dat: Likewise.
9156 * regformats/i386/i386-avx512.dat: Likewise.
9157 * regformats/i386/x32-avx512-linux.dat: Likewise.
9158 * regformats/i386/x32-avx512.dat: Likewise.
9159 * NEWS: Add note about new support for AVX512.
9160
9161
9162 2014-04-23 Pedro Alves <palves@redhat.com>
9163
9164 * breakpoint.c (insert_bp_location): Tolerate errors if the
9165 breakpoint is set in a user-loaded objfile.
9166 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9167 location is marked shlib_disabled. If the breakpoint is set in a
9168 user-loaded objfile is a GDB-side memory breakpoint, validate it
9169 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9170 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9171 flag.
9172 * mem-break.c (memory_validate_breakpoint): New function.
9173 * objfiles.c (userloaded_objfile_contains_address_p): New
9174 function.
9175 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9176 * target.h (memory_validate_breakpoint): New declaration.
9177
9178 2014-04-23 Pedro Alves <palves@redhat.com>
9179
9180 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9181 the breakpoint is set in a shared library, only suppress
9182 errors for software breakpoints, not hardware breakpoints.
9183
9184 2014-04-22 Pedro Alves <palves@redhat.com>
9185
9186 * infrun.c (schedlock_applies): New function, factored out from
9187 find_thread_needs_step_over.
9188 (find_thread_needs_step_over): Use it.
9189 (switch_back_to_stepped_thread): Always clear trap_expected if the
9190 step over is finished. Return early if scheduler locking applies.
9191 Look for the stepping thread and a potential step-over thread with
9192 a single loop.
9193 (currently_stepping_or_nexting_callback): Delete.
9194
9195 2014-04-22 Nick Clifton <nickc@redhat.com>
9196
9197 * NEWS: Mention that ARM sim now supports tracing.
9198
9199 2014-04-22 Yao Qi <yao@codesourcery.com>
9200
9201 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9202 to ...
9203 * tracefile.c (tracefile_fetch_registers): ... it. New
9204 function.
9205 * tracefile.h (tracefile_fetch_registers): Declare.
9206 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9207 tracefile_fetch_registers.
9208
9209 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9210
9211 PR gdb/14018
9212 * windows-nat.c (thread_rec): Don't display a warning when
9213 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9214 fails for any reason, set th->suspended to -1, so that we don't
9215 try to resume such a thread. Also, don't return NULL in these
9216 cases, to avoid completely ruin the session due to "PC register is
9217 not available" error.
9218 (do_windows_fetch_inferior_registers): Check errors in
9219 GetThreadContext call.
9220 (windows_continue): Accept an additional argument KILLED; if not
9221 zero, ignore errors in the SetThreadContext call, since the
9222 inferior was killed and is shutting down.
9223 (windows_resume, get_windows_debug_event)
9224 (windows_create_inferior, windows_mourn_inferior)
9225 (windows_kill_inferior): All callers of windows_continue changed
9226 to adjust to its new calling sequence.
9227
9228 2014-04-19 Yao Qi <yao@codesourcery.com>
9229
9230 * ctf.c (ctf_open): Call post_create_inferior.
9231
9232 2014-04-19 Yao Qi <yao@codesourcery.com>
9233
9234 * ctf.c (handle_id): New static variable.
9235 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9236 value. Get the declaration of event "register" and get length
9237 of field "contents".
9238
9239 2014-04-19 Yao Qi <yao@codesourcery.com>
9240
9241 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9242
9243 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9244
9245 * valops.c (oload_method_static): Remove unnecessary argument
9246 METHOD. Update all callers.
9247
9248 2014-04-18 Pedro alves <palves@redhat.com>
9249 Tom Tromey <tromey@redhat.com>
9250
9251 PR backtrace/15558
9252 * frame.c (get_prev_frame_1): Rename to ...
9253 (get_prev_frame_always): ... this, and make extern. Adjust.
9254 (skip_artificial_frames): Use get_prev_frame_always.
9255 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9256 (get_frame_unwind_stop_reason): Adjust to rename.
9257 * frame.h (get_prev_frame_always): Declare.
9258 * inline-frame.c: Include frame.h.
9259 (inline_frame_this_id): Use get_prev_frame_always.
9260
9261 2014-04-18 Tristan Gingold <gingold@adacore.com>
9262
9263 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9264 code by using bfd_mach_o_get_base_address.
9265
9266 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9267
9268 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9269 (spu_ax_pseudo_register_collect): New function.
9270 (spu_ax_pseudo_register_push_stack): Likewise.
9271 (spu_dwarf_reg_to_regnum): Likewise.
9272 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9273
9274 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9275
9276 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9277 Replace FRAME argument with FRAME_ID.
9278 * gdbarch.c, gdbarch.h: Regenerate.
9279 * findvar.c (default_value_from_register): Add GDBARCH argument;
9280 replace FRAME by FRAME_ID. No longer call get_frame_id.
9281 (value_from_register): Update call to gdbarch_value_from_register.
9282 * value.h (default_value_from_register): Update prototype.
9283 * s390-linux-tdep.c (s390_value_from_register): Update interface
9284 and call to default_value_from_register.
9285 * spu-tdep.c (spu_value_from_register): Likewise.
9286
9287 * findvar.c (address_from_register): Remove TYPE argument.
9288 Do not call value_from_register; use gdbarch_value_from_register
9289 with null_frame_id instead.
9290 * value.h (address_from_register): Update prototype.
9291 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9292 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9293 address_from_register interface change.
9294
9295 2014-04-17 Yao Qi <yao@codesourcery.com>
9296
9297 * gdbtypes.h: Update comments to link to types and macros'
9298 definitions.
9299
9300 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9301
9302 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9303
9304 2014-04-16 Keith Seitz <keiths@redhat.com>
9305
9306 PR gdb/15827
9307 * dwarf2read.c (skip_one_die): Check that all relative-offset
9308 sibling DIEs fall within range of the current reader's buffer.
9309 (read_partial_die): Likewise.
9310
9311 2014-04-16 Keith Seitz <keiths@redhat.com>
9312
9313 PR c++/16597
9314 * cp-namespace.c (lookup_symbol_file): If the type name of
9315 `this' is NULL, return immediately.
9316
9317 2014-04-14 Keith Seitz <keiths@redhat.com>
9318
9319 PR c++/16253
9320 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9321 from symbol_matches_domain in symtab.c. All local callers
9322 of symbol_matches_domain updated.
9323 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9324 search STRUCT_DOMAIN.
9325 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9326 independently. standard_lookup will do that automatically.
9327 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9328 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9329 (cp_lookup_symbol_in_namespace): Likewise.
9330 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9331 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9332 may return a STRUCT_DOMAIN match.
9333 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9334 * cp-support.c: Include language.h.
9335 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9336 VAR_DOMAIN.
9337 * psymtab.c (match_partial_symbol): Compare the requested
9338 domain with the symbol's domain directly.
9339 (lookup_partial_symbol): Likewise.
9340 * symtab.c (lookup_symbol_in_language): Explain when/why
9341 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9342 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9343 appropriate languages.
9344 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9345 and moved to ada-lang.c
9346 (lookup_block_symbol): Explain that this function only returns
9347 symbol matching the requested DOMAIN.
9348 Compare the requested domain with the symbol's domain directly.
9349 (iterate_over_symbols): Compare the requested domain with the
9350 symbol's domain directly.
9351 * symtab.h (symbol_matches_domain): Remove.
9352
9353 2014-04-14 Tom Tromey <tromey@redhat.com>
9354
9355 PR c++/15246:
9356 * c-exp.y (type_aggregate_p): New function.
9357 (qualified_name, classify_inner_name): Use it.
9358 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9359 and TYPE_TARGET_TYPE of an enum type.
9360 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9361 an enum type.
9362 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9363 handle TYPE_DECLARED_CLASS.
9364 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9365 types.
9366 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9367 * valops.c (enum_constant_from_type): New function.
9368 (value_aggregate_elt): Use it.
9369 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9370 TYPE_CODE_ENUM.
9371
9372 2014-04-14 Tom Tromey <tromey@redhat.com>
9373
9374 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9375 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9376 const.
9377 * value.h (value_aggregate_elt): Update.
9378
9379 2014-04-14 Tom Tromey <tromey@redhat.com>
9380
9381 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9382
9383 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9384
9385 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9386 (evaluate_subexp_standard): Pass noside argument.
9387 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9388 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9389 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9390 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9391 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9392
9393 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9394
9395 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9396 points to a constant blob.
9397
9398 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9399
9400 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9401 property and store it as the high bound and flag the range accordingly.
9402 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9403 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9404 * gdbtypes.h (enum range_flags): New enum.
9405 (struct range_bounds): Add flags member.
9406
9407 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9408
9409 * c-typeprint.c (c_type_print_varspec_suffix): Added
9410 check for not yet resolved high bound. If unresolved, print
9411 "variable length" string to the console instead of random
9412 length.
9413
9414 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9415
9416 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9417 value.
9418 (ada_template_to_fixed_record_type_1): Likewise.
9419 (ada_to_fixed_type_1): Likewise.
9420 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9421 (cp_print_value): Likewise.
9422 * d-valprint.c (dynamic_array_type): Likewise.
9423 * findvar.c (address_of_variable): Likewise.
9424 * jv-valprint.c (java_value_print): Likewise.
9425 * valops.c (value_ind): Likewise.
9426 * value.c (coerce_ref): Likewise.
9427
9428 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9429
9430 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9431 value and retrieve the dynamic type size.
9432
9433 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9434
9435 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9436 passed to sizeof is dynamic evaluate the argument to compute the length.
9437
9438 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9439 Joel Brobecker <brobecker@adacore.com>
9440
9441 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9442 (dwarf2_evaluate_property): New function.
9443 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9444 * dwarf2read.c (attr_to_dynamic_prop): New function.
9445 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9446 attribute.
9447 * gdbtypes.c: Include dwarf2loc.h.
9448 (is_dynamic_type): New function.
9449 (resolve_dynamic_type): New function.
9450 (resolve_dynamic_bounds): New function.
9451 (get_type_length): New function.
9452 (check_typedef): Use get_type_length to compute type length.
9453 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9454 (TYPE_LOW_BOUND_KIND): New macro.
9455 (is_dynamic_type): New function prototype.
9456 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9457 to resolve dynamic properties of the type. Update comment.
9458 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9459
9460 2014-04-14 Richard Henderson <rth@redhat.com>
9461
9462 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9463
9464 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9465 Doug Evans <xdje42@gmail.com>
9466
9467 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9468 dereference TYPE_CODE_REF values.
9469
9470 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9471
9472 Revert the following changes due to regressions:
9473
9474 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9475 (dwarf2_evaluate_property): New function.
9476 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9477 * dwarf2read.c (attr_to_dynamic_prop): New function.
9478 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9479 attribute.
9480 * gdbtypes.c: Include dwarf2loc.h.
9481 (is_dynamic_type): New function.
9482 (resolve_dynamic_type): New function.
9483 (resolve_dynamic_bounds): New function.
9484 (get_type_length): New function.
9485 (check_typedef): Use get_type_length to compute type length.
9486 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9487 (TYPE_LOW_BOUND_KIND): New macro.
9488 (is_dynamic_type): New function prototype.
9489 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9490 to resolve dynamic properties of the type. Update comment.
9491 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9492
9493 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9494 passed to sizeof is dynamic evaluate the argument to compute the length.
9495
9496 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9497 value and retrieve the dynamic type size.
9498
9499 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9500 (ada_template_to_fixed_record_type_1): Likewise.
9501 (ada_to_fixed_type_1): Likewise.
9502 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9503 (cp_print_value): Likewise.
9504 * d-valprint.c (dynamic_array_type): Likewise.
9505 * eval.c (evaluate_subexp_with_coercion): Likewise.
9506 * findvar.c (address_of_variable): Likewise.
9507 * jv-valprint.c (java_value_print): Likewise.
9508 * valops.c (value_ind): Likewise.
9509 * value.c (coerce_ref): Likewise.
9510
9511 * c-typeprint.c (c_type_print_varspec_suffix): Added
9512 check for not yet resolved high bound. If unresolved, print
9513 "variable length" string to the console instead of random
9514 length.
9515
9516 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9517 property and store it as the high bound and flag the range accordingly.
9518 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9519 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9520 * gdbtypes.h (enum range_flags): New enum.
9521 (struct range_bounds): Add flags member.
9522
9523 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9524 points to a constant blob.
9525
9526 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9527 (evaluate_subexp_standard): Pass noside argument.
9528 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9529 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9530 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9531 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9532 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9533
9534 2014-04-11 Keith Seitz <keiths@redhat.com>
9535
9536 PR c++/16675
9537 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9538 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9539 reference types.
9540
9541 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9542
9543 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9544 (evaluate_subexp_standard): Pass noside argument.
9545 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9546 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9547 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9548 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9549 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9550
9551 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9552
9553 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9554 points to a constant blob.
9555
9556 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9557
9558 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9559 property and store it as the high bound and flag the range accordingly.
9560 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9561 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9562 * gdbtypes.h (enum range_flags): New enum.
9563 (struct range_bounds): Add flags member.
9564
9565 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9566
9567 * c-typeprint.c (c_type_print_varspec_suffix): Added
9568 check for not yet resolved high bound. If unresolved, print
9569 "variable length" string to the console instead of random
9570 length.
9571
9572 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9573
9574 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9575 (ada_template_to_fixed_record_type_1): Likewise.
9576 (ada_to_fixed_type_1): Likewise.
9577 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9578 (cp_print_value): Likewise.
9579 * d-valprint.c (dynamic_array_type): Likewise.
9580 * eval.c (evaluate_subexp_with_coercion): Likewise.
9581 * findvar.c (address_of_variable): Likewise.
9582 * jv-valprint.c (java_value_print): Likewise.
9583 * valops.c (value_ind): Likewise.
9584 * value.c (coerce_ref): Likewise.
9585
9586 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9587
9588 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9589 value and retrieve the dynamic type size.
9590
9591 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9592
9593 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9594 passed to sizeof is dynamic evaluate the argument to compute the length.
9595
9596 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9597
9598 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9599 (dwarf2_evaluate_property): New function.
9600 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9601 * dwarf2read.c (attr_to_dynamic_prop): New function.
9602 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9603 attribute.
9604 * gdbtypes.c: Include dwarf2loc.h.
9605 (is_dynamic_type): New function.
9606 (resolve_dynamic_type): New function.
9607 (resolve_dynamic_bounds): New function.
9608 (get_type_length): New function.
9609 (check_typedef): Use get_type_length to compute type length.
9610 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9611 (TYPE_LOW_BOUND_KIND): New macro.
9612 (is_dynamic_type): New function prototype.
9613 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9614 to resolve dynamic properties of the type. Update comment.
9615 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9616
9617 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9618
9619 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9620 declaring high/low bounds and change uses accordingly. Call
9621 create_range_type instead of create_static_range_type.
9622 * gdbtypes.c (create_range_type): New function.
9623 (create_range_type): Convert bounds into struct bound_prop and pass
9624 them to create_range_type.
9625 * gdbtypes.h (struct bound_prop): New struct.
9626 (create_range_type): New function prototype.
9627 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9628 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9629 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9630 part of the bound.
9631 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9632
9633 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9634
9635 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9636 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9637 * ada-lang.c: All uses of create_range_type updated.
9638 * coffread.c: All uses of create_range_type updated.
9639 * dwarf2read.c: All uses of create_range_type updated.
9640 * f-exp.y: All uses of create_range_type updated.
9641 * m2-valprint.c: All uses of create_range_type updated.
9642 * mdebugread.c: All uses of create_range_type updated.
9643 * stabsread.c: All uses of create_range_type updated.
9644 * valops.c: All uses of create_range_type updated.
9645 * valprint.c: All uses of create_range_type updated.
9646
9647 2014-04-10 Pedro Alves <palves@redhat.com>
9648
9649 * breakpoint.c (single_step_breakpoints)
9650 (single_step_gdbarch): Move up in the file.
9651 (one_breakpoint_xfer_memory): New function, factored out from ...
9652 (breakpoint_xfer_memory): ... here. Also process single-step
9653 breakpoints.
9654
9655 2014-04-09 Tristan Gingold <gingold@adacore.com>
9656
9657 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9658 comments.
9659 (darwin_decode_exception_message): Free port only after use.
9660
9661 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9662
9663 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9664 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9665 when setting the size of call_length.
9666
9667 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9668
9669 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9670 dereference TYPE_CODE_REF values.
9671
9672 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9673
9674 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9675 end of warning message.
9676
9677 2014-04-03 Doug Evans <dje@google.com>
9678
9679 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9680 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9681
9682 2014-04-02 Alan Modra <amodra@gmail.com>
9683
9684 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9685 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9686 (struct symbol_file_add_from_memory_args): Add size field.
9687 (find_vdso_size): New function.
9688 (add_vsyscall_page): Attempt to find vdso size.
9689
9690 2014-04-01 Doug Evans <dje@google.com>
9691
9692 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9693
9694 2014-04-01 Tristan Gingold <gingold@adacore.com>
9695
9696 * darwin-nat.c (darwin_encode_reply): Add prototype.
9697 (darwin_decode_exception_message): Reply to unknown inferiors.
9698 (darwin_decode_message): Handle message by id. Ignore message
9699 to unknown inferior.
9700 (darwin_wait): Discard unknown messages, add debug trace.
9701
9702 2014-03-31 Doug Evans <dje@google.com>
9703
9704 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9705 comp_dir_string.
9706
9707 2014-03-31 Doug Evans <dje@google.com>
9708
9709 New option "set print symbol-loading".
9710 * NEWS: Mention it.
9711 * solib.c (solib_read_symbols): Only print symbol loading messages
9712 if requested.
9713 (solib_add): If symbol loading is in "brief" mode, notify user
9714 symbols are being loaded.
9715 (reload_shared_libraries_1): Ditto.
9716 * symfile.c (print_symbol_loading_off): New static global.
9717 (print_symbol_loading_brief): New static global.
9718 (print_symbol_loading_full): New static global.
9719 (print_symbol_loading_enums): New static global.
9720 (print_symbol_loading): New static global.
9721 (print_symbol_loading_p): New function.
9722 (symbol_file_add_with_addrs): Only print symbol loading messages
9723 if requested.
9724 (_initialize_symfile): Register "print symbol-loading" set/show
9725 command.
9726 * symfile.h (print_symbol_loading_p): Declare.
9727
9728 2014-03-30 Doug Evans <xdje42@gmail.com>
9729
9730 * infrun.c (set_last_target_status): New function.
9731 (handle_inferior_event): Call it.
9732
9733 2014-03-30 Doug Evans <xdje42@gmail.com>
9734
9735 * inferior.h (enum stop_kind): Improve comment.
9736
9737 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9738
9739 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9740 a reference, strip the reference layer before calling
9741 the lang_ops value_has_mutated callback.
9742
9743 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9744
9745 Remove some globals from our parser.
9746 * language.c (unk_lang_parser): Add "struct parser_state"
9747 argument.
9748 * language.h (struct language_defn) <la_parser>: Likewise.
9749 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9750 (initialize_expout): Add "struct parser_state" argument.
9751 Rewrite function to use the parser state.
9752 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9753 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9754 write_exp_elt_longcst, write_exp_elt_dblcst,
9755 write_exp_elt_decfloatcst, write_exp_elt_type,
9756 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9757 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9758 write_dollar_variable): Likewise.
9759 (parse_exp_in_context_1): Use parser state.
9760 (insert_type_address_space): Add "struct parser_state" argument.
9761 Use parser state.
9762 (increase_expout_size): New function.
9763 * parser-defs.h: Forward declare "struct language_defn" and
9764 "struct parser_state".
9765 (expout, expout_size, expout_ptr): Remove extern declarations.
9766 (parse_gdbarch, parse_language): Rewrite macro declarations to
9767 accept the parser state.
9768 (struct parser_state): New struct.
9769 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9770 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9771 write_exp_elt_decfloatcst, write_exp_elt_type,
9772 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9773 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9774 write_exp_msymbol, write_dollar_variable,
9775 mark_struct_expression, insert_type_address_space): Add "struct
9776 parser_state" argument.
9777 (increase_expout_size): New function.
9778 * utils.c (do_clear_parser_state): New function.
9779 (make_cleanup_clear_parser_state): Likewise.
9780 * utils.h (make_cleanup_clear_parser_state): New function
9781 prototype.
9782 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9783 Update calls to write_exp* in order to pass the parser state.
9784 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9785 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9786 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9787 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9788 * stap-probe.c (stap_parse_register_operand): Likewise.
9789 (stap_parse_single_operand): Likewise.
9790 (stap_parse_argument_1): Likewise.
9791 (stap_parse_argument): Use parser state.
9792 * stap-probe.h: Include "parser-defs.h".
9793 (struct stap_parse_info) <pstate>: New field.
9794 * c-exp.y (parse_type): Rewrite to use parser state.
9795 (yyparse): Redefine to c_parse_internal.
9796 (pstate): New global variable.
9797 (parse_number): Add "struct parser_state" argument.
9798 (write_destructor_name): Likewise.
9799 (type_exp): Update calls to write_exp* and similars in order to
9800 use parser state.
9801 (exp1, exp, variable, qualified_name, space_identifier,
9802 typename, typebase): Likewise.
9803 (write_destructor_name, parse_number, lex_one_token,
9804 classify_name, classify_inner_name, c_parse): Add "struct
9805 parser_state" argument. Update function to use parser state.
9806 * c-lang.h: Forward declare "struct parser_state".
9807 (c_parse): Add "struct parser_state" argument.
9808 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9809 (yyparse): Redefine macro to ada_parse_internal.
9810 (pstate): New variable.
9811 (write_int, write_object_renaming, write_var_or_type,
9812 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9813 type_int, type_long, type_long_long, type_float, type_double,
9814 type_long_double, type_char, type_boolean, type_system_address):
9815 Add "struct parser_state" argument.
9816 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9817 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9818 var_or_type, aggregate, aggregate_component_list,
9819 positional_list, others, component_group,
9820 component_associations): Update calls to write_exp* and similar
9821 functions in order to use parser state.
9822 (ada_parse, write_var_from_sym, write_int,
9823 write_exp_op_with_string, write_object_renaming,
9824 find_primitive_type, write_selectors, write_ambiguous_var,
9825 write_var_or_type, write_name_assoc, type_int, type_long,
9826 type_long_long, type_float, type_double, type_long_double,
9827 type_char, type_boolean, type_system_address): Add "struct
9828 parser_state" argument. Adjust function to use parser state.
9829 * ada-lang.c (parse): Likewise.
9830 * ada-lang.h: Forward declare "struct parser_state".
9831 (ada_parse): Add "struct parser_state" argument.
9832 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9833 calls to both functions.
9834 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9835 parser state.
9836 (yyparse): Redefine macro to f_parse_internal.
9837 (pstate): New variable.
9838 (parse_number): Add "struct parser_state" argument.
9839 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9840 and similars in order to use parser state.
9841 (parse_number): Adjust code to use parser state.
9842 (yylex): Likewise.
9843 (f_parse): New function.
9844 * f-lang.h: Forward declare "struct parser_state".
9845 (f_parse): Add "struct parser_state" argument.
9846 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9847 parser state.
9848 (yyparse): Redefine macro for java_parse_internal.
9849 (pstate): New variable.
9850 (push_expression_name, push_expression_name, insert_exp): Add
9851 "struct parser_state" argument.
9852 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9853 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9854 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9855 PostIncrementExpression, PostDecrementExpression,
9856 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9857 UnaryExpressionNotPlusMinus, CastExpression,
9858 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9859 RelationalExpression, EqualityExpression, AndExpression,
9860 ExclusiveOrExpression, InclusiveOrExpression,
9861 ConditionalAndExpression, ConditionalOrExpression,
9862 ConditionalExpression, Assignment, LeftHandSide): Update
9863 calls to write_exp* and similars in order to use parser state.
9864 (parse_number): Ajust code to use parser state.
9865 (yylex): Likewise.
9866 (java_parse): New function.
9867 (push_variable): Add "struct parser_state" argument. Adjust
9868 code to user parser state.
9869 (push_fieldnames, push_qualified_expression_name,
9870 push_expression_name, insert_exp): Likewise.
9871 * jv-lang.h: Forward declare "struct parser_state".
9872 (java_parse): Add "struct parser_state" argument.
9873 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9874 parser state.
9875 (yyparse): Redefine macro to m2_parse_internal.
9876 (pstate): New variable.
9877 (type_exp, exp, fblock, variable, type): Update calls to
9878 write_exp* and similars to use parser state.
9879 (yylex): Likewise.
9880 (m2_parse): New function.
9881 * m2-lang.h: Forward declare "struct parser_state".
9882 (m2_parse): Add "struct parser_state" argument.
9883 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9884 * objc-lang.h: Forward declare "struct parser_state".
9885 (end_msglist): Add "struct parser_state" argument.
9886 * p-exp.y (parse_type): Rewrite macro to use parser state.
9887 (yyparse): Redefine macro to pascal_parse_internal.
9888 (pstate): New variable.
9889 (parse_number): Add "struct parser_state" argument.
9890 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9891 write_exp* and similars in order to use parser state.
9892 (parse_number, yylex): Adjust code to use parser state.
9893 (pascal_parse): New function.
9894 * p-lang.h: Forward declare "struct parser_state".
9895 (pascal_parse): Add "struct parser_state" argument.
9896 * go-exp.y (parse_type): Rewrite macro to use parser state.
9897 (yyparse): Redefine macro to go_parse_internal.
9898 (pstate): New variable.
9899 (parse_number): Add "struct parser_state" argument.
9900 (type_exp, exp1, exp, variable, type): Update calls to
9901 write_exp* and similars in order to use parser state.
9902 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9903 to use parser state.
9904 (go_parse): Likewise.
9905 * go-lang.h: Forward declare "struct parser_state".
9906 (go_parse): Add "struct parser_state" argument.
9907
9908 2014-03-27 Doug Evans <dje@google.com>
9909
9910 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9911
9912 2014-03-27 Doug Evans <dje@google.com>
9913
9914 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9915 Remove argument abbrev_section. All callers updated.
9916
9917 2014-03-27 Doug Evans <dje@google.com>
9918
9919 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9920 addr_base, ranges_base.
9921
9922 2014-03-26 Keith Seitz <keiths@redhat.com>
9923
9924 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9925 types, not VAR_DOMAIN.
9926
9927 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9928
9929 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9930 "ra" registers.
9931 * features/nios2-linux.c: Regenerated.
9932 * features/nios2.c: Regenerated.
9933
9934 2014-03-25 Pedro Alves <palves@redhat.com>
9935
9936 * cli/cli-script.c (script_from_file): Force the interpreter to
9937 sync mode.
9938
9939 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9940
9941 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9942 small stack allocation.
9943
9944 2014-03-24 Tristan Gingold <gingold@adacore.com>
9945
9946 * darwin-nat.c (exc_server): Remove unused prototype.
9947 (darwin_dump_message): Correctly display data on x86_64.
9948 (darwin_encode_reply): Fix style.
9949 Add comments and fix indentation.
9950
9951 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9952
9953 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9954
9955 2014-03-22 Doug Evans <xdje42@gmail.com>
9956
9957 * infcmd.c: Whitespace fixes.
9958 (interrupt_command): Merge two function comments into one.
9959
9960 2014-03-22 Doug Evans <xdje42@gmail.com>
9961
9962 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9963 All uses updated.
9964
9965 2014-03-22 Yao Qi <yao@codesourcery.com>
9966
9967 * remote.c (target_read_live_memory): Remove.
9968 (memory_xfer_live_readonly_partial): Rename it to
9969 remote_xfer_live_readonly_partial. Remove argument 'object'.
9970 All callers updated. Call remote_read_bytes_1
9971 instead of target_read_live_memory.
9972 * tracepoint.c (set_traceframe_number): Remove.
9973 (make_cleanup_restore_traceframe_number): Likewise .
9974 * tracepoint.h (set_traceframe_number): Remove declaration.
9975 (make_cleanup_restore_traceframe_number): Likewise.
9976
9977 2014-03-22 Yao Qi <yao@codesourcery.com>
9978
9979 * remote.c (remote_read_bytes): Move code on reading from the
9980 remote stub to ...
9981 (remote_read_bytes_1): ... here. New function.
9982
9983 2014-03-22 Yao Qi <yao@codesourcery.com>
9984
9985 * ctf.c (ctf_xfer_partial): Check the return value of
9986 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9987 return TARGET_XFER_UNAVAILABLE.
9988 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9989 * target.c (target_read_live_memory): Move it to remote.c.
9990 (memory_xfer_live_readonly_partial): Likewise.
9991 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9992 * remote.c (target_read_live_memory): Moved from target.c.
9993 (memory_xfer_live_readonly_partial): Likewise.
9994 (remote_read_bytes): Factored out from
9995 memory_xfer_partial_1.
9996
9997 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9998
9999 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10000 NULL pointer.
10001
10002 2014-03-21 Pedro Alves <palves@redhat.com>
10003
10004 * infrun.c (normal_stop): Extend comment.
10005
10006 2014-03-21 Hui Zhu <hui@codesourcery.com>
10007 Pedro Alves <palves@redhat.com>
10008
10009 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10010 static buffer.
10011 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10012 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10013 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10014
10015 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10016
10017 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10018 `z' formatted output modifier.
10019
10020 2014-03-20 Tom Tromey <tromey@redhat.com>
10021 Sergio Durigan Junior <sergiodj@redhat.com>
10022
10023 * probe.c (parse_probes): Turn assert into an ordinary error.
10024 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10025 exceptions when parsing probes. Rearrange the code for clarity.
10026
10027 2014-03-20 Tom Tromey <tromey@redhat.com>
10028
10029 PR gdb/14135
10030 * top.c (execute_command): Only dispatch events if the command
10031 started the target.
10032
10033 2014-03-20 Tom Tromey <tromey@redhat.com>
10034
10035 PR cli/15718
10036 * infcall.c: Include event-top.h.
10037 (run_inferior_call): Call async_disable_stdin if needed.
10038
10039 2014-03-20 Pedro Alves <palves@redhat.com>
10040
10041 * infrun.c (prepare_to_proceed): Delete.
10042 (thread_still_needs_step_over): New function.
10043 (find_thread_needs_step_over): New function.
10044 (proceed): If the current thread needs a step-over, set its
10045 steping_over_breakpoint flag. Adjust to use
10046 find_thread_needs_step_over instead of prepare_to_proceed.
10047 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10048 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10049 breakpoint.
10050 (switch_back_to_stepped_thread): Step over breakpoints of all
10051 threads not the stepping thread, before switching back to the
10052 stepping thread.
10053
10054 2014-03-20 Pedro Alves <palves@redhat.com>
10055
10056 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10057 extern.
10058 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10059 * infrun.c (saved_singlestep_ptid)
10060 (stepping_past_singlestep_breakpoint): Delete.
10061 (resume): Remove stepping_past_singlestep_breakpoint handling.
10062 (proceed): Store the prev_pc of the stepping thread too.
10063 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10064 singlestep_pc.
10065 (enum infwait_states): Delete infwait_thread_hop_state.
10066 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10067 field.
10068 (handle_inferior_event): Adjust.
10069 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10070 handling and the thread-hop code. Before removing single-step
10071 breakpoints, check whether the thread hit a single-step breakpoint
10072 of another thread. If it did, the trap is not a random signal.
10073 (switch_back_to_stepped_thread): If the event thread hit a
10074 single-step breakpoint, unblock it before switching to the
10075 stepping thread. Handle the case of the stepped thread having
10076 advanced already.
10077 (keep_going): Handle the case of the current thread moving past a
10078 single-step breakpoint.
10079
10080 2014-03-20 Pedro Alves <palves@redhat.com>
10081
10082 PR breakpoints/7143
10083 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10084 are being stepped over.
10085 (breakpoint_address_match): Make extern.
10086 * breakpoint.h (breakpoint_address_match): New declaration.
10087 * inferior.h (stepping_past_instruction_at): New declaration.
10088 * infrun.c (struct step_over_info): New type.
10089 (step_over_info): New global.
10090 (set_step_over_info, clear_step_over_info)
10091 (stepping_past_instruction_at): New functions.
10092 (handle_inferior_event): Clear the step-over info when
10093 trap_expected is cleared.
10094 (resume): Remove now stale comment.
10095 (clear_proceed_status): Clear step-over info.
10096 (proceed): Adjust step-over handling to set or clear the step-over
10097 info instead of removing all breakpoints.
10098 (handle_signal_stop): When setting up a thread-hop, don't remove
10099 breakpoints here.
10100 (stop_stepping): Clear step-over info.
10101 (keep_going): Adjust step-over handling to set or clear step-over
10102 info and then always inserting breakpoints, instead of removing
10103 all breakpoints when stepping over one.
10104
10105 2014-03-20 Pedro Alves <palves@redhat.com>
10106
10107 * infrun.c (previous_inferior_ptid): Adjust comment.
10108 (deferred_step_ptid): Delete.
10109 (infrun_thread_ptid_changed, prepare_to_proceed)
10110 (init_wait_for_inferior): Adjust.
10111 (handle_signal_stop): Delete deferred_step_ptid handling.
10112
10113 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10114
10115 PR gdb/15358
10116 * defs.h (sync_quit_force_run): New declaration.
10117 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10118 * event-top.c (async_sigterm_handler): New declaration.
10119 (async_sigterm_token): New variable.
10120 (async_init_signals): Create also async_sigterm_token.
10121 (async_sigterm_handler): New function.
10122 (sync_quit_force_run): New variable.
10123 (handle_sigterm): Replace quit_force call by other calls.
10124 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10125
10126 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10127
10128 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10129 offset into SPE pseudo registers.
10130
10131 2014-03-18 Pedro Alves <palves@redhat.com>
10132
10133 PR gdb/13860
10134 * inferior.h (print_stop_event): Declare.
10135 * infrun.c (print_stop_event): New, factored out from ...
10136 (normal_stop): ... this.
10137 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10138 of bpstat_print/print_stack_frame.
10139
10140 2014-03-17 Tom Tromey <tromey@redhat.com>
10141
10142 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10143
10144 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10145
10146 * ada-lang.c (decode_constrained_packed_array): Perform a
10147 minimal coercion for reference with coerce_ref instead of
10148 ada_coerce_ref.
10149
10150 2014-03-17 Tristan Gingold <gingold@adacore.com>
10151
10152 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10153 (darwin_solib_create_inferior_hook): Emit a warning if version
10154 is unhandled.
10155
10156 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10157
10158 * python/py-value.c (get_field_flag): Cast flag_name argument to
10159 PyObject_GetAttrString to support Python 2.4.
10160
10161 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10162
10163 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10164 (Global Maintainers): Remove Jan Kratochvil.
10165
10166 2014-03-14 Pedro Alves <palves@redhat.com>
10167
10168 * inferior.h (terminal_ours_for_output): Rename to ...
10169 (child_terminal_ours_for_output): ... this.
10170 (terminal_save_ours): Rename to ...
10171 (child_terminal_save_ours): ... this.
10172 (terminal_ours): Rename to ...
10173 (child_terminal_ours): ... this.
10174 (terminal_inferior): Rename to ...
10175 (child_terminal_inferior): ... this.
10176 (terminal_init_inferior): Rename to ...
10177 (child_terminal_init_inferior): ... this.
10178 (terminal_init_inferior_with_pgrp): Rename to ...
10179 (child_terminal_init_inferior_with_pgrp): ... this.
10180 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10181 (child_terminal_init_with_pgrp): ... this.
10182 (terminal_save_ours): Rename to ...
10183 (child_terminal_save_ours): ... this.
10184 (terminal_init_inferior): Rename to ...
10185 (child_terminal_init): ... this. Adjust.
10186 (terminal_inferior): Rename to ...
10187 (child_terminal_inferior): ... this.
10188 (terminal_ours_for_output): Rename to ...
10189 (child_terminal_ours_for_output): ... this. Adjust.
10190 (terminal_ours): Rename to ...
10191 (child_terminal_ours): ... this.
10192 (terminal_ours_1): Rename to ...
10193 (child_terminal_ours_1): ... this. Adjust.
10194 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10195 * windows-nat.c (do_initial_windows_stuff): Adjust.
10196 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10197 (gnu_terminal_init): ... this. Adjust.
10198 (gnu_target): Adjust.
10199 * inf-child.c (inf_child_target): Adjust.
10200
10201 2014-03-13 Doug Evans <xdje42@gmail.com>
10202
10203 PR guile/16612
10204 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10205 new eq?-hashtab.
10206
10207 2014-03-13 Doug Evans <xdje42@gmail.com>
10208
10209 * value.c (record_latest_value): Call release_value_or_incref
10210 instead of release_value.
10211
10212 2014-03-13 Pedro Alves <palves@redhat.com>
10213
10214 * procfs.c (procfs_target): Don't override to_shortname,
10215 to_longname or to_doc.
10216
10217 2014-03-13 Pedro Alves <palves@redhat.com>
10218
10219 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10220 Unix in user visible strings.
10221
10222 2014-03-12 Stan Shebs <stan@codesourcery.com>
10223
10224 * gdbtypes.h: Annotate comments for Doxygen, add a page
10225 block comment with some general info.
10226
10227 2014-03-12 Pedro Alves <palves@redhat.com>
10228
10229 * infcmd.c (prepare_execution_command): New function, factored out
10230 from several execution commands.
10231 (run_command_1, continue_command, step_1, jump_command)
10232 (signal_command, until_command, advance_command, finish_command)
10233 (attach_command): Use prepare_execution_command.
10234
10235 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10236
10237 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10238 (MAX_BPTS): Define.
10239 (MAX_WPTS): Define.
10240 (struct arm_linux_thread_points): Removed.
10241 (struct arm_linux_process_info): New.
10242 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10243 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10244 (arm_linux_find_breakpoints_by_tid): Removed.
10245 (struct arch_lwp_info): New.
10246 (arm_linux_find_process_pid): New functions.
10247 (arm_linux_add_process): New functions.
10248 (arm_linux_process_info_get): New functions.
10249 (arm_linux_forget_process): New function.
10250 (arm_linux_get_debug_reg_state): New function.
10251 (struct update_registers_data): New.
10252 (update_registers_callback): New function.
10253 (arm_linux_insert_hw_breakpoint1): Updated.
10254 (arm_linux_remove_hw_breakpoint1): Updated.
10255 (arm_linux_insert_hw_breakpoint): Updated.
10256 (arm_linux_remove_hw_breakpoint): Updated.
10257 (arm_linux_insert_watchpoint): Updated.
10258 (arm_linux_remove_watchpoint): Updated.
10259 (arm_linux_new_thread): Updated.
10260 (arm_linux_prepare_to_resume): New function.
10261 (arm_linux_new_fork): New function.
10262 (_initialize_arm_linux_nat): Updated.
10263
10264 2014-03-12 Pedro Alves <palves@redhat.com>
10265
10266 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10267
10268 2014-03-12 Tom Tromey <tromey@redhat.com>
10269
10270 * inf-child.c (return_zero): New function.
10271 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10272 * aix-thread.c (aix_thread_inferior_created): New function.
10273 (aix_thread_attach): Remove.
10274 (init_aix_thread_ops): Don't set to_attach.
10275 (_initialize_aix_thread): Register inferior_created observer.
10276 * corelow.c (init_core_ops): Don't set to_attach or
10277 to_create_inferior.
10278 * exec.c (init_exec_ops): Don't set to_attach or
10279 to_create_inferior.
10280 * infcmd.c (run_command_1): Use find_run_target. Make direct
10281 target calls.
10282 (attach_command): Use find_attach_target. Make direct target
10283 calls.
10284 * record-btrace.c (init_record_btrace_ops): Don't set
10285 to_create_inferior.
10286 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10287 Remove.
10288 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10289 set to_create_inferior.
10290 * target.c (complete_target_initialization): Add assertion.
10291 (target_create_inferior): Remove.
10292 (find_default_attach, find_default_create_inferior): Remove.
10293 (find_attach_target, find_run_target): New functions.
10294 (find_default_is_async_p, find_default_can_async_p)
10295 (target_supports_non_stop, target_attach): Remove.
10296 (init_dummy_target): Don't set to_create_inferior or
10297 to_supports_non_stop.
10298 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10299 TARGET_DEFAULT_FUNC.
10300 <to_create_inferior>: Add comment.
10301 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10302 TARGET_DEFAULT_RETURN.
10303 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10304 (find_attach_target, find_run_target): Declare.
10305 (target_create_inferior): Remove.
10306 (target_has_execution_1): Update comment.
10307 (target_supports_non_stop): Remove.
10308 * target-delegates.c: Rebuild.
10309
10310 2014-03-12 Pedro Alves <palves@redhat.com>
10311
10312 * inf-child.h: Update comment to not mention Unix.
10313
10314 2014-03-12 Pedro Alves <palves@redhat.com>
10315
10316 * inf-child.c: Update top comment to not mention Unix. Add
10317 generic comment describing how this target is meant to be used.
10318 (inf_child_post_attach, inf_child_post_startup_inferior)
10319 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10320 Unix in comment.
10321
10322 2014-03-12 Pedro Alves <palves@redhat.com>
10323
10324 * nto-procfs.c: Include inf-child.h.
10325 (procfs_ops): Delete global.
10326 (procfs_can_run): Delete method.
10327 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10328 target pointer instead of referencing procfs_ops.
10329 (procfs_prepare_to_store): Delete.
10330 (init_procfs_ops): Delete function.
10331 (procfs_target): New function, based on init_procfs_ops, but
10332 inherit inf_child_target.
10333 (_initialize_procfs): Use procfs_target.
10334
10335 2014-03-12 Pedro Alves <palves@redhat.com>
10336
10337 * windows-nat.c: Include inf-child.h.
10338 (windows_ops): Delete global.
10339 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10340 methods.
10341 (init_windows_ops): Delete function.
10342 (windows_target): New function, based on init_windows_ops, but
10343 inherit inf_child_target.
10344 (_initialize_windows_nat): Use windows_target. Install x86
10345 specific target methods here.
10346
10347 2014-03-10 Doug Evans <xdje42@gmail.com>
10348
10349 * guile/guile.c (call_initialize_gdb_module): New function.
10350 (initialize_guile): Replace call to scm_init_guile with call to
10351 scm_with_guile.
10352
10353 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10354
10355 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10356 in call to TYPE_CODE macro.
10357
10358 2014-03-10 Jerome Guitton <guitton@adacore.com>
10359
10360 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10361 Resolve tagged types to full view.
10362
10363 2014-03-10 Hui Zhu <hui@codesourcery.com>
10364
10365 * target.h (target_insert_breakpoint): Remove "hardware" from its
10366 comments.
10367
10368 2014-03-07 Doug Evans <dje@google.com>
10369
10370 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10371
10372 2014-03-07 Doug Evans <dje@google.com>
10373
10374 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10375 Remove unused local comp_dir_attr. Assert exactly one of
10376 stub_comp_unit_die, stub_comp_dir is non-NULL.
10377
10378 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10379
10380 * target.h (complete_target_initialization, add_target):
10381 Add comment.
10382
10383 2014-03-07 Pedro Alves <palves@redhat.com>
10384
10385 * go32-nat.c: Include inf-child.h.
10386 (go32_ops): Delete global.
10387 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10388 Delete methods.
10389 (go32_create_inferior): Push the passed in target pointer instead
10390 of referencing go32_ops.
10391 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10392 (go32_target): New function, based on init_go32_ops, but inherit
10393 inf_child_target.
10394 (_initialize_go32_nat): Use go32_target. Move parts of
10395 init_go32_ops here.
10396
10397 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10398
10399 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10400 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10401 SYMBOL_VALUE_ADDRESS.
10402 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10403
10404 2014-03-06 Yao Qi <yao@codesourcery.com>
10405
10406 * breakpoint.c (get_tracepoint_by_number): Remove argument
10407 optional_p. All callers updated. Adjust comments. Update
10408 output message.
10409 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10410
10411 2014-03-06 Yao Qi <yao@codesourcery.com>
10412
10413 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10414 early if get_number returns zero. Use 'p' instead of 'args'.
10415
10416 2014-03-06 Yao Qi <yao@codesourcery.com>
10417
10418 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10419 message.
10420
10421 2014-03-06 Yao Qi <yao@codesourcery.com>
10422
10423 PR breakpoints/16508
10424 * tracepoint.c (check_trace_running): New function.
10425 (trace_find_command): Move code to check_trace_running and
10426 call check_trace_running.
10427 (trace_find_pc_command): Likewise.
10428 (trace_find_tracepoint_command): Likewise.
10429 (trace_find_line_command): Likewise.
10430 (trace_find_range_command): Likewise.
10431 * tracepoint.h (check_trace_running): Likewise.
10432 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10433
10434 2014-03-06 Yao Qi <yao@codesourcery.com>
10435
10436 * target.h (struct target_ops) <to_traceframe_info>: Use
10437 TARGET_DEFAULT_NORETURN (tcomplain ()).
10438 * target-delegates.c: Regenerated.
10439
10440 2014-03-05 Pedro Alves <palves@redhat.com>
10441
10442 PR gdb/16575
10443 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10444 void. Update comment.
10445 (dcache_xfer_memory): Delete.
10446 (dcache_read_memory_partial): New, based on the read bits of
10447 dcache_xfer_memory.
10448 (dcache_update): Add status parameter. Use ULONGEST for len, and
10449 adjust. Discard cache lines if the reason for the update was
10450 error.
10451 * dcache.h (dcache_xfer_memory): Delete declaration.
10452 (dcache_read_memory_partial): New declaration.
10453 (dcache_update): Update prototype.
10454 * target.c (raw_memory_xfer_partial): Update the dcache here.
10455 (memory_xfer_partial_1): Don't handle dcache writes here.
10456
10457 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10458
10459 * remote-sim.c (gdbsim_load): Add const to prog.
10460
10461 2014-03-03 Tom Tromey <tromey@redhat.com>
10462
10463 * elfread.c (probe_key): Change to bfd_data.
10464 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10465 now per-BFD, not per-objfile.
10466 * stap-probe.c (stap_probe_destroy): Update comment.
10467 (handle_stap_probe): Allocate on the per-BFD obstack.
10468
10469 2014-03-03 Tom Tromey <tromey@redhat.com>
10470
10471 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10472 * breakpoint.c (create_longjmp_master_breakpoint): Use
10473 get_probe_address.
10474 (add_location_to_breakpoint, bkpt_probe_insert_location)
10475 (bkpt_probe_remove_location): Update.
10476 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10477 * elfread.c (elf_symfile_relocate_probe): Remove.
10478 (elf_probe_fns): Update.
10479 (insert_exception_resume_breakpoint): Change type of "probe"
10480 parameter to bound_probe.
10481 (check_exception_resume): Update.
10482 * objfiles.c (objfile_relocate1): Don't relocate probes.
10483 * probe.c (bound_probe_s): New typedef.
10484 (parse_probes): Use get_probe_address. Set sal's objfile.
10485 (find_probe_by_pc): Return a bound_probe.
10486 (collect_probes): Return a VEC(bound_probe_s).
10487 (compare_probes): Update.
10488 (gen_ui_out_table_header_info): Change type of "probes"
10489 parameter. Update.
10490 (info_probes_for_ops): Update.
10491 (get_probe_address): New function.
10492 (probe_safe_evaluate_at_pc): Update.
10493 * probe.h (struct probe_ops) <get_probe_address>: New field.
10494 <set_semaphore, clear_semaphore>: Add objfile parameter.
10495 (struct probe) <objfile>: Remove field.
10496 <arch>: New field.
10497 <address>: Update comment.
10498 (struct bound_probe): New.
10499 (find_probe_by_pc): Return a bound_probe.
10500 (get_probe_address): Declare.
10501 * solib-svr4.c (struct probe_and_action) <address>: New field.
10502 (hash_probe_and_action, equal_probe_and_action): Update.
10503 (register_solib_event_probe): Add address parameter.
10504 (solib_event_probe_at): Update.
10505 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10506 get_probe_address.
10507 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10508 (stap_get_probe_address): New function.
10509 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10510 (compile_probe_arg): Update.
10511 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10512 address.
10513 (handle_stap_probe): Don't relocate the probe.
10514 (stap_relocate): Remove.
10515 (stap_gen_info_probes_table_values): Update.
10516 (stap_probe_ops): Remove stap_relocate.
10517 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10518 (debug_sym_probe_fns): Update.
10519 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10520 * symtab.c (init_sal): Use memset.
10521 * symtab.h (struct symtab_and_line) <objfile>: New field.
10522 * tracepoint.c (start_tracing, stop_tracing): Update.
10523
10524 2014-03-03 Tom Tromey <tromey@redhat.com>
10525
10526 * probe.h (parse_probes, find_probe_by_pc)
10527 (find_probes_in_objfile): Fix comments.
10528
10529 2014-03-02 Doug Evans <xdje42@gmail.com>
10530
10531 * infrun.c (handle_signal_stop): Replace test for
10532 TARGET_WAITKIND_STOPPED with an assert.
10533
10534 2014-03-02 Doug Evans <xdje42@gmail.com>
10535
10536 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10537
10538 2014-03-02 Doug Evans <xdje42@gmail.com>
10539
10540 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10541
10542 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10543
10544 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10545
10546 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10547
10548 * i386obsd-nat.c: Include "obsd-nat.h".
10549 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10550 add_target.
10551 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10552
10553 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10554
10555 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10556
10557 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10558
10559 * mips64obsd-nat.c: Include "obsd-nath".
10560 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10561 add_target
10562 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10563
10564 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10565
10566 * amd64obsd-nat.c: Include "obsd-nat,h.
10567 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10568 add_target.
10569 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10570
10571 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10572
10573 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10574 (find_overload_match): Update call to find_oload_champ.
10575 (find_oload_champ_namespace_loop): Likewise
10576
10577 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10578
10579 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10580
10581 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10582 * config/sparc/obsd64.mh: New file.
10583 * sparc64obsd-nat.c: New file.
10584
10585 * obsd-nat.h: New file.
10586 * obsd-nat.c: New file.
10587 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10588 (ALLDEPFILES): Add obsd-nat.c.
10589
10590 2014-02-28 Tom Tromey <tromey@redhat.com>
10591
10592 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10593 * cli-out.h (cli_ui_out_impl): Now const.
10594 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10595 * ui-out.c (struct ui_out) <impl>: Now const.
10596 (default_ui_out_impl): Now const.
10597 (ui_out_new): Make 'impl' parameter const.
10598 * ui-out.h (ui_out_new): Update.
10599
10600 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10601
10602 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10603
10604 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10605
10606 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10607
10608 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10609
10610 Additional PR 8882 fix.
10611 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10612
10613 2014-02-27 Pedro Alves <palves@redhat.com>
10614
10615 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10616 isn't set.
10617
10618 2014-02-27 Pedro Alves <palves@redhat.com>
10619
10620 PR 12702
10621 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10622 * nat/linux-waitpid.c: Include string.h.
10623 (status_to_str): Moved here and made extern.
10624 * nat/linux-waitpid.h (status_to_str): New declaration.
10625
10626 2014-02-27 Hui Zhu <hui@codesourcery.com>
10627
10628 PR 12702
10629 * infrun.c (ptid_match): Move ...
10630 * common/ptid.c (ptid_match): ... here.
10631 * inferior.h (ptid_match): Move ...
10632 * common/ptid.h (ptid_match): ... here.
10633
10634 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10635
10636 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10637 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10638 gdb_target_obs.
10639
10640 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10641
10642 * obsd-tdep.c (obsd_auxv_parse): New function.
10643 (obsd_init_abi): Set auxv_parse.
10644
10645 * gdbarch.sh (auxv_parse): New.
10646 * gdbarch.h: Regenerated.
10647 * gdbarch.c: Regenerated.
10648 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10649
10650 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10651
10652 * guile/scm-value.c (gdbscm_history_append_x): New function.
10653 (value_functions): Add it.
10654
10655 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10656
10657 * dwarf2read.c (attr_value_as_address): New function.
10658 (dwarf2_find_base_address, read_call_site_scope): Use
10659 attr_value_as_address in place of DW_ADDR.
10660 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10661 the low and high addresses. Slight rework of the handling
10662 of the high pc being a constant form, and limit it to
10663 DWARF verson 4 or higher.
10664 (dwarf2_record_block_ranges): Likewise.
10665 (read_partial_die): Likewise.
10666 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10667
10668 2014-02-26 Tom Tromey <tromey@redhat.com>
10669
10670 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10671
10672 2014-02-26 Tom Tromey <tromey@redhat.com>
10673
10674 * elfread.c (elf_read_minimal_symbols): Return early if
10675 minimal symbols have already been read. Add "ei" parameter.
10676 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10677 * minsyms.c (prim_record_minimal_symbol_full): Update.
10678 * objfiles.h (struct objstats) <n_minsyms>: Move...
10679 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10680 * symmisc.c (print_objfile_statistics): Update.
10681
10682 2014-02-26 Tom Tromey <tromey@redhat.com>
10683
10684 * elfread.c (elf_read_minimal_symbols): New function, from
10685 elf_symfile_read.
10686 (elf_symfile_read): Call it.
10687
10688 2014-02-26 Tom Tromey <tromey@redhat.com>
10689
10690 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10691 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10692 (lookup_minimal_symbol_solib_trampoline)
10693 (lookup_minimal_symbol_by_pc_section_1)
10694 (lookup_minimal_symbol_and_objfile): Update.
10695 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10696 Don't allocate a minimal symbol if minsyms have already been read.
10697 (build_minimal_symbol_hash_tables): Update.
10698 (install_minimal_symbols): Do nothing if minsyms already read.
10699 Use the per-BFD obstack.
10700 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10701 * objfiles.c (allocate_objfile): Call
10702 terminate_minimal_symbol_table later.
10703 (have_minimal_symbols): Update.
10704 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10705 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10706 Move from struct objfile.
10707 <minsyms_read>: New field.
10708 (struct objfile) <msymbols, minimal_symbol_count,
10709 msymbol_hash, msymbol_demangled_hash>: Move.
10710 (ALL_OBJFILE_MSYMBOLS): Update.
10711 * symfile.c (read_symbols): Set minsyms_read.
10712 (reread_symbols): Update.
10713 * symmisc.c (dump_objfile, dump_msymbols): Update.
10714
10715 2014-02-26 Tom Tromey <tromey@redhat.com>
10716
10717 * minsyms.c (msymbols_sort): Remove.
10718 * minsyms.h (msymbols_sort): Remove.
10719 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10720 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10721 * elfread.c (elf_symtab_read): Don't add section offsets.
10722 * xcoffread.c (record_minimal_symbol): Don't add section offset
10723 to minimal symbol address.
10724 * somread.c (text_offset, data_offset): Remove.
10725 (som_symtab_read): Don't add section offsets to minimal symbol
10726 addresses.
10727 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10728 Don't add section offsets to minimal symbols.
10729 * coffread.c (coff_symtab_read): Don't add section offsets
10730 to minimal symbol addresses.
10731 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10732 to minimal symbol addresses.
10733 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10734 section offset to minimal symbol addresses.
10735 * mdebugread.c (parse_partial_symbols): Don't add section
10736 offset to minimal symbol addresses.
10737 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10738 offset to minimal symbol addresses.
10739
10740 2014-02-26 Tom Tromey <tromey@redhat.com>
10741
10742 * ada-lang.c (ada_main_name): Update.
10743 (ada_add_standard_exceptions): Update.
10744 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10745 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10746 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10747 * auxv.c (ld_so_xfer_auxv): Update.
10748 * avr-tdep.c (avr_scan_prologue): Update.
10749 * ax-gdb.c (gen_var_ref): Update.
10750 * blockframe.c (get_pc_function_start)
10751 (find_pc_partial_function_gnu_ifunc): Update.
10752 * breakpoint.c (create_overlay_event_breakpoint)
10753 (create_longjmp_master_breakpoint)
10754 (create_std_terminate_master_breakpoint)
10755 (create_exception_master_breakpoint): Update.
10756 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10757 * c-valprint.c (c_val_print): Update.
10758 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10759 * common/agent.c (agent_look_up_symbols): Update.
10760 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10761 * dwarf2loc.c (call_site_to_target_addr): Update.
10762 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10763 * elfread.c (elf_gnu_ifunc_record_cache)
10764 (elf_gnu_ifunc_resolve_by_got): Update.
10765 * findvar.c (default_read_var_value): Update.
10766 * frame.c (inside_main_func): Update.
10767 * frv-tdep.c (frv_frame_this_id): Update.
10768 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10769 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10770 Update.
10771 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10772 (hppa_hpux_find_dummy_bpaddr): Update.
10773 * hppa-tdep.c (hppa_symbol_address): Update.
10774 * infcmd.c (until_next_command): Update.
10775 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10776 Update.
10777 * linespec.c (minsym_found, add_minsym): Update.
10778 * linux-nat.c (get_signo): Update.
10779 * linux-thread-db.c (inferior_has_bug): Update.
10780 * m32c-tdep.c (m32c_return_value)
10781 (m32c_m16c_address_to_pointer): Update.
10782 * m32r-tdep.c (m32r_frame_this_id): Update.
10783 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10784 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10785 * maint.c (maintenance_translate_address): Update.
10786 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10787 (frob_address): New function.
10788 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10789 frob_address. Rename parameter to "pc_in".
10790 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10791 addresses.
10792 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10793 Update.
10794 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10795 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10796 * objc-lang.c (find_objc_msgsend): Update.
10797 * objfiles.c (objfile_relocate1): Update.
10798 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10799 * p-valprint.c (pascal_val_print): Update.
10800 * parse.c (write_exp_msymbol): Update.
10801 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10802 (ppc_elfv2_skip_entrypoint): Update.
10803 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10804 * printcmd.c (build_address_symbolic, msym_info)
10805 (address_info): Update.
10806 * proc-service.c (ps_pglobal_lookup): Update.
10807 * psymtab.c (find_pc_sect_psymtab_closer)
10808 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10809 Change msymbol parameter to bound_minimal_symbol.
10810 * ravenscar-thread.c (get_running_thread_id): Update.
10811 * remote.c (remote_check_symbols): Update.
10812 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10813 address.
10814 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10815 * solib-dsbt.c (lm_base): Update.
10816 * solib-frv.c (lm_base, main_got): Update.
10817 * solib-irix.c (locate_base): Update.
10818 * solib-som.c (som_solib_create_inferior_hook)
10819 (link_map_start): Update.
10820 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10821 * solib-svr4.c (elf_locate_base, enable_break): Update.
10822 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10823 (flush_ea_cache): Update.
10824 * stabsread.c (define_symbol, scan_file_globals): Update.
10825 * stack.c (find_frame_funname): Update.
10826 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10827 (debug_qf_find_pc_sect_symtab): Update.
10828 * symfile.c (simple_read_overlay_table)
10829 (simple_overlay_update): Update.
10830 * symfile.h (struct quick_symbol_functions)
10831 <find_pc_sect_symtab>: Change type of msymbol to
10832 bound_minimal_symbol.
10833 * symmisc.c (dump_msymbols): Update.
10834 * symtab.c (find_pc_sect_symtab_via_partial)
10835 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10836 (search_symbols, print_msymbol_info): Update.
10837 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10838 (MSYMBOL_VALUE_ADDRESS): Redefine.
10839 (BMSYMBOL_VALUE_ADDRESS): New macro.
10840 * tracepoint.c (scope_info): Update.
10841 * tui/tui-disasm.c (tui_find_disassembly_address)
10842 (tui_get_begin_asm_address): Update.
10843 * valops.c (find_function_in_inferior): Update.
10844 * value.c (value_static_field, value_fn_field): Update.
10845
10846 2014-02-26 Tom Tromey <tromey@redhat.com>
10847
10848 * ada-lang.c (ada_update_initial_language): Update.
10849 (ada_main_name, ada_has_this_exception_support): Update.
10850 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10851 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10852 * arm-tdep.c (arm_skip_stub): Update.
10853 * auxv.c (ld_so_xfer_auxv): Update.
10854 * avr-tdep.c (avr_scan_prologue): Update.
10855 * ax-gdb.c (gen_var_ref): Update.
10856 * breakpoint.c (struct breakpoint_objfile_data)
10857 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10858 type to bound_minimal_symbol.
10859 (create_overlay_event_breakpoint)
10860 (create_longjmp_master_breakpoint)
10861 (create_std_terminate_master_breakpoint)
10862 (create_exception_master_breakpoint): Update.
10863 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10864 * c-exp.y (classify_name): Update.
10865 * coffread.c (coff_symfile_read): Update.
10866 * common/agent.c (agent_look_up_symbols): Update.
10867 * d-lang.c (d_main_name): Update.
10868 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10869 * dec-thread.c (enable_dec_thread): Update.
10870 * dwarf2loc.c (call_site_to_target_addr): Update.
10871 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10872 * eval.c (evaluate_subexp_standard): Update.
10873 * findvar.c (struct minsym_lookup_data) <result>: Change type
10874 to bound_minimal_symbol.
10875 <objfile>: Remove.
10876 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10877 * frame.c (inside_main_func): Update.
10878 * frv-tdep.c (frv_frame_this_id): Update.
10879 * gcore.c (call_target_sbrk): Update.
10880 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10881 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10882 Update.
10883 * go-lang.c (go_main_name): Update.
10884 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10885 (hppa_hpux_find_import_stub_for_addr): Update.
10886 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10887 Update. Change return type.
10888 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10889 type.
10890 * jit.c (jit_breakpoint_re_set_internal): Update.
10891 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10892 Update.
10893 * linux-nat.c (get_signo): Update.
10894 * linux-thread-db.c (inferior_has_bug): Update
10895 * m32c-tdep.c (m32c_return_value)
10896 (m32c_m16c_address_to_pointer): Update.
10897 * m32r-tdep.c (m32r_frame_this_id): Update.
10898 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10899 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10900 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10901 lookup_minimal_symbol. Change return type.
10902 (lookup_minimal_symbol): Remove.
10903 (lookup_bound_minimal_symbol): Update.
10904 (lookup_minimal_symbol_text): Change return type.
10905 (lookup_minimal_symbol_solib_trampoline): Change return type.
10906 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10907 (lookup_minimal_symbol_solib_trampoline): Change return type.
10908 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10909 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10910 (value_nsstring, find_imps): Update.
10911 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10912 * p-lang.c (pascal_main_name): Update.
10913 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10914 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10915 * proc-service.c (ps_pglobal_lookup): Update.
10916 * ravenscar-thread.c (get_running_thread_msymbol): Change
10917 return type.
10918 (has_ravenscar_runtime, get_running_thread_id): Update.
10919 * remote.c (remote_check_symbols): Update.
10920 * sol-thread.c (ps_pglobal_lookup): Update.
10921 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10922 * solib-dsbt.c (lm_base): Update.
10923 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10924 Update.
10925 * solib-irix.c (locate_base): Update.
10926 * solib-som.c (som_solib_create_inferior_hook)
10927 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10928 Update.
10929 * solib-spu.c (spu_enable_break): Update.
10930 * solib-svr4.c (elf_locate_base, enable_break): Update.
10931 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10932 (flush_ea_cache): Update.
10933 * stabsread.c (define_symbol): Update.
10934 * symfile.c (simple_read_overlay_table): Update.
10935 * symtab.c (find_pc_sect_line): Update.
10936 * tracepoint.c (scope_info): Update.
10937 * tui-disasm.c (tui_get_begin_asm_address): Update.
10938 * value.c (value_static_field): Update.
10939
10940 2014-02-26 Tom Tromey <tromey@redhat.com>
10941
10942 * minsyms.c (prim_record_minimal_symbol_full): Use
10943 SET_MSYMBOL_VALUE_ADDRESS.
10944 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10945 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10946 SET_MSYMBOL_VALUE_ADDRESS.
10947 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10948 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10949
10950 2014-02-26 Tom Tromey <tromey@redhat.com>
10951
10952 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10953 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10954 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10955 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10956 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10957 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10958 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10959 * ada-lang.c (ada_main_name): Update.
10960 (ada_lookup_simple_minsym): Update.
10961 (ada_make_symbol_completion_list): Update.
10962 (ada_add_standard_exceptions): Update.
10963 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10964 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10965 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10966 * arm-tdep.c (skip_prologue_function): Update.
10967 (arm_skip_stack_protector, arm_skip_stub): Update.
10968 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10969 (arm_wince_skip_main_prologue): Update.
10970 * auxv.c (ld_so_xfer_auxv): Update.
10971 * avr-tdep.c (avr_scan_prologue): Update.
10972 * ax-gdb.c (gen_var_ref): Update.
10973 * block.c (call_site_for_pc): Update.
10974 * blockframe.c (get_pc_function_start): Update.
10975 (find_pc_partial_function_gnu_ifunc): Update.
10976 * breakpoint.c (create_overlay_event_breakpoint): Update.
10977 (create_longjmp_master_breakpoint): Update.
10978 (create_std_terminate_master_breakpoint): Update.
10979 (create_exception_master_breakpoint): Update.
10980 (resolve_sal_pc): Update.
10981 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10982 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10983 Update.
10984 * c-valprint.c (c_val_print): Update.
10985 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10986 * coffread.c (coff_symfile_read): Update.
10987 * common/agent.c (agent_look_up_symbols): Update.
10988 * dbxread.c (find_stab_function_addr): Update.
10989 (end_psymtab): Update.
10990 * dwarf2loc.c (call_site_to_target_addr): Update.
10991 (func_verify_no_selftailcall): Update.
10992 (tailcall_dump): Update.
10993 (call_site_find_chain_1): Update.
10994 (dwarf_expr_reg_to_entry_parameter): Update.
10995 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10996 (elf_gnu_ifunc_resolve_by_got): Update.
10997 * f-valprint.c (info_common_command): Update.
10998 * findvar.c (read_var_value): Update.
10999 * frame.c (get_prev_frame_1): Update.
11000 (inside_main_func): Update.
11001 * frv-tdep.c (frv_skip_main_prologue): Update.
11002 (frv_frame_this_id): Update.
11003 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11004 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11005 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11006 (gnuv3_skip_trampoline): Update.
11007 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11008 (hppa64_hpux_in_solib_call_trampoline): Update.
11009 (hppa_hpux_skip_trampoline_code): Update.
11010 (hppa64_hpux_search_dummy_call_sequence): Update.
11011 (hppa_hpux_find_import_stub_for_addr): Update.
11012 (hppa_hpux_find_dummy_bpaddr): Update.
11013 * hppa-tdep.c (hppa_symbol_address)
11014 (hppa_lookup_stub_minimal_symbol): Update.
11015 * i386-tdep.c (i386_skip_main_prologue): Update.
11016 (i386_pe_skip_trampoline_code): Update.
11017 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11018 * infcall.c (get_function_name): Update.
11019 * infcmd.c (until_next_command): Update.
11020 * jit.c (jit_breakpoint_re_set_internal): Update.
11021 (jit_inferior_init): Update.
11022 * linespec.c (minsym_found): Update.
11023 (add_minsym): Update.
11024 * linux-fork.c (info_checkpoints_command): Update.
11025 * linux-nat.c (get_signo): Update.
11026 * linux-thread-db.c (inferior_has_bug): Update.
11027 * m32c-tdep.c (m32c_return_value): Update.
11028 (m32c_m16c_address_to_pointer): Update.
11029 (m32c_m16c_pointer_to_address): Update.
11030 * m32r-tdep.c (m32r_frame_this_id): Update.
11031 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11032 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11033 * maint.c (maintenance_translate_address): Update.
11034 * minsyms.c (add_minsym_to_hash_table): Update.
11035 (add_minsym_to_demangled_hash_table): Update.
11036 (msymbol_objfile): Update.
11037 (lookup_minimal_symbol): Update.
11038 (iterate_over_minimal_symbols): Update.
11039 (lookup_minimal_symbol_text): Update.
11040 (lookup_minimal_symbol_by_pc_name): Update.
11041 (lookup_minimal_symbol_solib_trampoline): Update.
11042 (lookup_minimal_symbol_by_pc_section_1): Update.
11043 (lookup_minimal_symbol_and_objfile): Update.
11044 (prim_record_minimal_symbol_full): Update.
11045 (compare_minimal_symbols): Update.
11046 (compact_minimal_symbols): Update.
11047 (build_minimal_symbol_hash_tables): Update.
11048 (install_minimal_symbols): Update.
11049 (terminate_minimal_symbol_table): Update.
11050 (find_solib_trampoline_target): Update.
11051 (minimal_symbol_upper_bound): Update.
11052 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11053 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11054 (mips_skip_pic_trampoline_code): Update.
11055 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11056 * objc-lang.c (selectors_info): Update.
11057 (classes_info): Update.
11058 (find_methods): Update.
11059 (find_imps): Update.
11060 (find_objc_msgsend): Update.
11061 * objfiles.c (objfile_relocate1): Update.
11062 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11063 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11064 * p-valprint.c (pascal_val_print): Update.
11065 * parse.c (write_exp_msymbol): Update.
11066 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11067 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11068 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11069 * printcmd.c (build_address_symbolic): Update.
11070 (sym_info): Update.
11071 (address_info): Update.
11072 * proc-service.c (ps_pglobal_lookup): Update.
11073 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11074 (find_pc_sect_psymtab): Update.
11075 * python/py-framefilter.c (py_print_frame): Update.
11076 * ravenscar-thread.c (get_running_thread_id): Update.
11077 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11078 Update.
11079 * remote.c (remote_check_symbols): Update.
11080 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11081 (rs6000_skip_trampoline_code): Update.
11082 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11083 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11084 * solib-dsbt.c (lm_base): Update.
11085 * solib-frv.c (lm_base): Update.
11086 (main_got): Update.
11087 * solib-irix.c (locate_base): Update.
11088 * solib-som.c (som_solib_create_inferior_hook): Update.
11089 (som_solib_desire_dynamic_linker_symbols): Update.
11090 (link_map_start): Update.
11091 * solib-spu.c (spu_enable_break): Update.
11092 (ocl_enable_break): Update.
11093 * solib-svr4.c (elf_locate_base): Update.
11094 (enable_break): Update.
11095 * spu-tdep.c (spu_get_overlay_table): Update.
11096 (spu_catch_start): Update.
11097 (flush_ea_cache): Update.
11098 * stabsread.c (define_symbol): Update.
11099 (scan_file_globals): Update.
11100 * stack.c (find_frame_funname): Update.
11101 (frame_info): Update.
11102 * symfile.c (simple_read_overlay_table): Update.
11103 (simple_overlay_update): Update.
11104 * symmisc.c (dump_msymbols): Update.
11105 * symtab.c (fixup_section): Update.
11106 (find_pc_sect_line): Update.
11107 (skip_prologue_sal): Update.
11108 (search_symbols): Update.
11109 (print_msymbol_info): Update.
11110 (rbreak_command): Update.
11111 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11112 (completion_list_objc_symbol): Update.
11113 (default_make_symbol_completion_list_break_on): Update.
11114 * tracepoint.c (scope_info): Update.
11115 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11116 (tui_get_begin_asm_address): Update.
11117 * valops.c (find_function_in_inferior): Update.
11118 * value.c (value_static_field): Update.
11119 (value_fn_field): Update.
11120
11121 2014-02-26 Tom Tromey <tromey@redhat.com>
11122
11123 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11124 bound minimal symbols. Move code that knows about minsym
11125 table layout...
11126 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11127 function.
11128 * minsyms.h (minimal_symbol_upper_bound): Declare.
11129 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11130 minimal_symbol_upper_bound.
11131
11132 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11133
11134 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11135 Use the type's name if its basic type does not have a tag.
11136
11137 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11138
11139 * dwarf2read.c (read_subrange_type): Add comment.
11140
11141 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11142
11143 * dwarf2read.c (update_enumeration_type_from_children): New
11144 function, mostly extracted from process_structure_scope.
11145 (read_enumeration_type): Call update_enumeration_type_from_children.
11146 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11147 and flag_flag_enum fields.
11148
11149 2014-02-26 Pedro Alves <palves@redhat.com>
11150
11151 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11152 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11153 to_xfer_partial method.
11154
11155 2014-02-26 Pedro Alves <palves@redhat.com>
11156
11157 * target.c (complete_target_initialization): Don't install
11158 default_xfer_partial as to_xfer_partial hook.
11159 (nomemory): Delete.
11160 (update_current_target): Don't INHERIT nor de_fault
11161 deprecated_xfer_memory. Delete de_fault macro.
11162 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11163 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11164 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11165 field.
11166
11167 2014-02-26 Pedro Alves <palves@redhat.com>
11168
11169 * go32-nat.c (my_write_child): New function.
11170 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11171 (go32_xfer_partial): New function.
11172 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11173 Instead install a to_xfer_partial hook.
11174
11175 2014-02-26 Pedro Alves <palves@redhat.com>
11176
11177 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11178 to_xfer_partial helper. Rewrite.
11179 (procfs_xfer_partial): New function.
11180 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11181 Install a to_xfer_partial hook.
11182
11183 2014-02-26 Pedro Alves <palves@redhat.com>
11184
11185 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11186 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11187 (m32r_xfer_partial): New function.
11188 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11189 Install a to_xfer_partial hook.
11190
11191 2014-02-26 Pedro Alves <palves@redhat.com>
11192
11193 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11194 helper.
11195 (mips_xfer_partial): New function.
11196 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11197 hook. Install a to_xfer_partial hook.
11198
11199 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11200
11201 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11202 * gdbtypes.c (create_array_type_with_stride): New function,
11203 renaming create_array_type, but with an added parameter
11204 called "bit_stride".
11205 (create_array_type): Re-implement using
11206 create_array_type_with_stride.
11207 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11208 and DW_AT_bit_stride attributes.
11209
11210 2014-02-26 Pedro Alves <palves@redhat.com>
11211
11212 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11213 task-specific breakpoints.
11214
11215 2014-02-25 Pedro Alves <palves@redhat.com>
11216
11217 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11218 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11219
11220 2014-02-25 Stan Shebs <stan@codesourcery.com>
11221
11222 * defs.h: Annotate comments for Doxygen.
11223
11224 2014-02-25 Tom Tromey <tromey@redhat.com>
11225
11226 * target.h (target_ignore): Don't declare.
11227 * target.c (target_ignore): Remove.
11228
11229 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11230
11231 PR gdb/16626
11232 * auto-load.c (auto_load_objfile_script_1): Change filename to
11233 debugfile.
11234
11235 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11236
11237 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11238 documentation. Adjust prototype to match the target_ops
11239 to_xfer_partial method. Adjust implementation accordingly.
11240
11241 2014-02-25 Hui Zhu <hui@codesourcery.com>
11242
11243 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11244 to_traceframe_info.
11245
11246 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11247
11248 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11249 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11250 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11251 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11252 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11253 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11254 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11255 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11256 New constants.
11257 (rl78_register_type): Use a data pointer type for SP and
11258 new pseudo registers mentioned above. Use a 16 bit integer
11259 type for all other register pairs.
11260 (rl78_register_name, rl78_g10_register_name): Update for
11261 new pseudo registers.
11262 (rl78_pseudo_register_read): Likewise.
11263 (rl78_pseudo_register_write): Likewise.
11264 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11265 to the newly added pseudo registers.
11266
11267 2014-02-24 Doug Evans <dje@google.com>
11268
11269 * value.c (record_latest_value): Fix comment.
11270 * printcmd.c (print_command_1): Remove code to handle -1 return from
11271 record_latest_value.
11272
11273 2014-02-24 Pedro Alves <palves@redhat.com>
11274
11275 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11276 deprecated_xfer_memory hook.
11277 (procfs_xfer_partial): Call procfs_xfer_memory instead
11278 of the deprecated_xfer_memory target hook.
11279 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11280 helper.
11281
11282 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11283
11284 * windows-nat.c (windows_xfer_shared_libraries): Return
11285 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11286 requested object is TARGET_OBJECT_LIBRARIES.
11287
11288 2014-02-24 Yao Qi <yao@codesourcery.com>
11289
11290 * target.h (enum target_xfer_status)
11291 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11292 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11293 explicitly. New.
11294 * corefile.c (memory_error_message): User updated.
11295 * exec.c (section_table_read_available_memory): Likewise.
11296 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11297 * target.c (target_xfer_status_to_string): Likewise.
11298 (raw_memory_xfer_partial): Likewise.
11299 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11300 * valops.c (read_value_memory): Likewise.
11301 * exec.h: Update comments.
11302
11303 2014-02-24 Yao Qi <yao@codesourcery.com>
11304
11305 * target.c (target_xfer_status_to_string): Rename argument err
11306 to status.
11307 * target.h (target_xfer_status_to_string): Update declaration.
11308 Replace target_xfer_error_to_string with
11309 target_xfer_status_to_string in comment.
11310
11311 2014-02-24 Yao Qi <yao@codesourcery.com>
11312
11313 * mips-linux-nat.c (super_close): Update its type.
11314 (mips_linux_close): Pass 'self' to super_close.
11315
11316 2014-02-24 Yao Qi <yao@codesourcery.com>
11317
11318 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11319 * corefile.c (read_memory): Adjusted.
11320 * target.c (target_write_with_progress): Adjusted.
11321
11322 2014-02-23 Yao Qi <yao@codesourcery.com>
11323
11324 Revert two patches:
11325
11326 2013-10-25 Yao Qi <yao@codesourcery.com>
11327
11328 * remote.c (remote_traceframe_info): Return early if
11329 traceframe is not selected.
11330
11331 2013-07-19 Yao Qi <yao@codesourcery.com>
11332
11333 * target.c (update_current_target): Change the default action
11334 of 'to_traceframe_info' from tcomplain to return_zero.
11335 * target.h (struct target_ops) <to_traceframe_info>: Add more
11336 comments.
11337
11338 2014-02-23 Yao Qi <yao@codesourcery.com>
11339
11340 * valops.c (read_value_memory): Rewrite it. Call
11341 target_xfer_partial in a loop.
11342 * exec.h (section_table_available_memory): Remove declaration.
11343 Move comments to ...
11344 * exec.c (section_table_available_memory): ... here. Make it
11345 static.
11346
11347 2014-02-23 Yao Qi <yao@codesourcery.com>
11348
11349 * exec.c (section_table_read_available_memory): New function.
11350 * exec.h (section_table_read_available_memory): Declare.
11351 * ctf.c (ctf_xfer_partial): Call
11352 section_table_read_available_memory.
11353 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11354
11355 2014-02-23 Yao Qi <yao@codesourcery.com>
11356
11357 * ctf.c (ctf_xfer_partial): Move code to ...
11358 * exec.c (exec_read_partial_read_only): ... it. New function.
11359 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11360 * tracefile.c: Include "exec.h".
11361 * exec.h (exec_read_partial_read_only): Declare.
11362
11363 2014-02-23 Yao Qi <yao@codesourcery.com>
11364
11365 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11366 (tfile_has_memory): Remove.
11367 (init_tfile_ops): Don't set fields to_has_all_memory and
11368 to_has_memory of tfile_ops.
11369 * tracefile.c (tracefile_has_all_memory): New function.
11370 (tracefile_has_memory): New function.
11371 (init_tracefile_ops): Initialize fields to_has_all_memory and
11372 to_has_memory of 'ops'.
11373
11374 2014-02-23 Yao Qi <yao@codesourcery.com>
11375
11376 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11377 (ctf_thread_alive, ctf_get_trace_status): Remove.
11378 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11379 init_tracefile_ops.
11380 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11381 (tfile_has_stack, tfile_has_registers): Remove.
11382 (tfile_thread_alive): Remove.
11383 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11384 init_tracefile_ops.
11385 * tracefile.c (tracefile_has_stack): New function.
11386 (tracefile_has_registers): New function.
11387 (tracefile_thread_alive): New function.
11388 (tracefile_get_trace_status): New function.
11389 (init_tracefile_ops): New function.
11390 * tracefile.h (init_tracefile_ops): Declare.
11391
11392 2014-02-23 Yao Qi <yao@codesourcery.com>
11393
11394 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11395 (O_LARGEFILE): Likewise.
11396 (tfile_ops): Likewise.
11397 (TRACE_HEADER_SIZE): Likewise.
11398 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11399 (cur_data_size): Likewise.
11400 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11401 (tfile_close, tfile_files_info): Likewise.
11402 (tfile_get_trace_status): Likewise.
11403 (tfile_get_tracepoint_status): Likewise.
11404 (tfile_get_traceframe_address): Likewise.
11405 (tfile_trace_find, match_blocktype): Likewise.
11406 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11407 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11408 (tfile_get_trace_state_variable_value): Likewise.
11409 (tfile_has_all_memory, tfile_has_memory): Likewise.
11410 (tfile_has_stack, tfile_has_registers): Likewise.
11411 (tfile_thread_alive, build_traceframe_info): Likewise.
11412 (tfile_traceframe_info, init_tfile_ops): Likewise.
11413 (_initialize_tracepoint): Don't call init_tfile_ops
11414 and add_target_with_completer.
11415 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11416 exec.h, completer.h and filenames.h.
11417 (_initialize_tracefile_tfile): New function.
11418
11419 2014-02-23 Yao Qi <yao@codesourcery.com>
11420
11421 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11422 tracefile-tfile.o.
11423 (HFILES_NO_SRCDIR): Add tracefile.h.
11424 * ctf.c: Include "tracefile.h".
11425 * tracefile.h: New file.
11426 * tracefile.c: New file
11427 * tracefile-tfile.c: New file.
11428 * tracepoint.c: Include "tracefile.h".
11429 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11430 (stop_reason_names): Add const.
11431 (trace_file_writer_xfree): Move it to tracefile.c.
11432 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11433 (trace_save_ctf): Likewise.
11434 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11435 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11436 (tfile_write_header, tfile_write_regblock_type): Likewise.
11437 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11438 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11439 (tfile_write_raw_data, tfile_end): Likewise.
11440 (tfile_trace_file_writer_new): Likewise.
11441 (free_uploaded_tp): Make it extern.
11442 (free_uploaded_tsv): Make it extern.
11443 (_initialize_tracepoint): Move code to register command 'tsave'
11444 to tracefile.c.
11445 * tracepoint.h (stop_reason_names): Declare.
11446 (struct trace_frame_write_ops): Move it to tracefile.h.
11447 (struct trace_file_write_ops): Likewise.
11448 (struct trace_file_writer): Likewise.
11449 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11450
11451 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11452
11453 PR gdb/16594
11454 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11455 process name.
11456 (get_cores_used_by_process): New parameter num_cores, use it.
11457 (linux_xfer_osdata_processes): Pass num_cores to it.
11458 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11459 process name.
11460
11461 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11462
11463 * target.c (memory_xfer_partial): Fix length arg in call to
11464 breakpoint_xfer_memory.
11465
11466 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11467
11468 PR tdep/16397
11469 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11470 number comes after the + or - signs. Adjust length of register
11471 name to be extracted.
11472
11473 2014-02-20 Tom Tromey <tromey@redhat.com>
11474
11475 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11476 (ada_varobj_ops): Mark "extern".
11477
11478 2014-02-20 Tom Tromey <tromey@redhat.com>
11479
11480 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11481
11482 2014-02-20 Doug Evans <xdje42@gmail.com>
11483
11484 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11485 All callers updated.
11486 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11487 All callers updated.
11488 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11489 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11490
11491 2014-02-20 lin zuojian <manjian2006@gmail.com>
11492 Joel Brobecker <brobecker@adacore.com>
11493 Doug Evans <xdje42@gmail.com>
11494
11495 PR symtab/16581
11496 * dwarf2read.c (struct die_info): New member in_process.
11497 (reset_die_in_process): New function.
11498 (process_die): Set it at the start, reset when returning.
11499 (inherit_abstract_dies): Only call process_die if origin_child_die
11500 not already being processed.
11501
11502 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11503
11504 * windows-nat.c (handle_unload_dll): Add function documentation.
11505 (do_initial_windows_stuff): Add comment explaining why we wait
11506 until after inferior initialization has finished before
11507 processing all DLLs.
11508
11509 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11510
11511 * windows-nat.c (get_module_name): Delete.
11512 (windows_get_exec_module_filename): New function, mostly
11513 inspired from get_module_name.
11514 (windows_pid_to_exec_file): Replace call to get_module_name
11515 by call to windows_get_exec_module_filename.
11516
11517 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11518
11519 * windows-nat.c (handle_load_dll): Rewrite this function's
11520 introductory comment. Remove code using get_module_name
11521 to get the DLL's name.
11522
11523 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11524
11525 * windows-nat.c (get_windows_debug_event): Ignore
11526 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11527 if windows_initialization_done == 0.
11528 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11529 Adjust implementation to always load all DLLs.
11530 (do_initial_windows_stuff): Replace call to
11531 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11532
11533 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11534
11535 * windows-nat.c (_initialize_windows_nat): Deprecate the
11536 "dll-symbols" command. Turn the "add-shared-symbol-files"
11537 and "assf" aliases into commands, and deprecate them as well.
11538 * NEWS: Add entry explaining that "dll-symbols" and its two
11539 aliases are now deprecated.
11540
11541 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11542
11543 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11544 new-line in debug string. Remove trailing spaces.
11545
11546 2014-02-19 Stan Shebs <stan@codesourcery.com>
11547
11548 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11549
11550 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11551
11552 * NEWS: Add entry for the new feature
11553 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11554 and class values.
11555
11556 2014-02-19 Stan Shebs <stan@codesourcery.com>
11557
11558 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11559
11560 2014-02-19 Pedro Alves <palves@redhat.com>
11561
11562 * common/ptid.h (struct ptid): Mention that process_stratum
11563 targets should prefer ptid.lwp.
11564
11565 2014-02-19 Pedro Alves <palves@redhat.com>
11566
11567 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11568 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11569 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11570 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11571 store remote thread ids rather than ptid.tid.
11572 (_initialize_remote): Adjust.
11573
11574 2014-02-19 Tom Tromey <tromey@redhat.com>
11575
11576 * target.c (target_get_unwinder): Rewrite.
11577 (target_get_tailcall_unwinder): Rewrite.
11578 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11579 (record_btrace_to_get_tailcall_unwinder): New function.
11580 (init_record_btrace_ops): Update.
11581 * target.h (struct target_ops) <to_get_unwinder,
11582 to_get_tailcall_unwinder>: Now function pointers. Use
11583 TARGET_DEFAULT_RETURN.
11584
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11586
11587 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11588 argument.
11589 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11590
11591 2014-02-19 Tom Tromey <tromey@redhat.com>
11592
11593 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11594 directly.
11595 * target-delegates.c: Rebuild.
11596 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11597 TARGET_DEFAULT_FUNC.
11598 * target.c (default_target_decr_pc_after_break): Rename from
11599 forward_target_decr_pc_after_break. Simplify.
11600 (target_decr_pc_after_break): Rely on delegation.
11601
11602 2014-02-19 Tom Tromey <tromey@redhat.com>
11603
11604 * target.c (update_current_target): Do not INHERIT to_doc or
11605 to_magic. Do not de_fault to_open or to_close.
11606
11607 2014-02-19 Tom Tromey <tromey@redhat.com>
11608
11609 * gcore.h (objfile_find_memory_regions): Declare.
11610 * gcore.c (objfile_find_memory_regions): No longer static. Add
11611 "self" argument.
11612 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11613 * exec.c: Include gcore.h.
11614 (exec_set_find_memory_regions): Remove.
11615 (exec_find_memory_regions): Remove.
11616 (exec_do_find_memory_regions): Remove.
11617 (init_exec_ops): Update.
11618 * defs.h (exec_set_find_memory_regions): Remove.
11619
11620 2014-02-19 Tom Tromey <tromey@redhat.com>
11621
11622 * target-delegates.c: Rebuild.
11623 * target.h (struct target_ops) <to_extra_thread_info,
11624 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11625 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11626 not 0, in TARGET_DEFAULT_RETURN.
11627
11628 2014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target.c (complete_target_initialization): Remove casts. Use
11631 return_zero_has_execution.
11632 (return_zero): Add "ignore" argument.
11633 (return_zero_has_execution): New function.
11634 (init_dummy_target): Remove casts. Use
11635 return_zero_has_execution.
11636
11637 2014-02-19 Tom Tromey <tromey@redhat.com>
11638
11639 * target.c (update_current_target): Update comments. Do not
11640 INHERIT to_stratum.
11641
11642 2014-02-19 Tom Tromey <tromey@redhat.com>
11643
11644 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11645 needed.
11646 * corelow.c (core_read_description): Delegate when needed.
11647 * remote.c (remote_read_description): Delegate when needed.
11648 * target-delegates.c: Rebuild.
11649 * target.c (target_read_description): Rewrite.
11650 * target.h (struct target_ops) <to_read_description>: Update
11651 comment. Use TARGET_DEFAULT_RETURN.
11652
11653 2014-02-19 Tom Tromey <tromey@redhat.com>
11654
11655 * target-delegates.c: Rebuild.
11656 * target.c (update_current_target): Don't inherit or default
11657 to_can_run.
11658 (find_default_run_target): Check against delegate_can_run.
11659 * target.h (struct target_ops) <to_can_run>: Use
11660 TARGET_DEFAULT_RETURN.
11661
11662 2014-02-19 Tom Tromey <tromey@redhat.com>
11663
11664 * target-delegates.c: Rebuild.
11665 * target.c (target_disconnect): Unconditionally delegate.
11666 * target.h (struct target_ops) <to_disconnect>: Use
11667 TARGET_DEFAULT_NORETURN.
11668
11669 2014-02-19 Tom Tromey <tromey@redhat.com>
11670
11671 * record.c (record_stop): Unconditionally delegate.
11672 * target-delegates.c: Rebuild.
11673 * target.c (target_stop_recording): Unconditionally delegate.
11674 * target.h (struct target_ops) <to_stop_recording>: Use
11675 TARGET_DEFAULT_IGNORE.
11676
11677 2014-02-19 Tom Tromey <tromey@redhat.com>
11678
11679 * target-delegates.c: Rebuild.
11680 * target.c (target_enable_btrace): Unconditionally delegate.
11681 * target.h (struct target_ops) <to_enable_btrace>: Use
11682 TARGET_DEFAULT_NORETURN.
11683
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11685
11686 * target-delegates.c: Rebuild.
11687 * target.c (target_read_btrace): Unconditionally delegate.
11688 * target.h (struct target_ops) <to_read_btrace>: Use
11689 TARGET_DEFAULT_NORETURN.
11690
11691 2014-02-19 Tom Tromey <tromey@redhat.com>
11692
11693 * target-delegates.c: Rebuild.
11694 * target.c (target_teardown_btrace): Unconditionally delegate.
11695 * target.h (struct target_ops) <to_teardown_btrace>: Use
11696 TARGET_DEFAULT_NORETURN.
11697
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target-delegates.c: Rebuild.
11701 * target.c (target_disable_btrace): Unconditionally delegate.
11702 * target.h (struct target_ops) <to_disable_btrace>: Use
11703 TARGET_DEFAULT_NORETURN.
11704
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11706
11707 * target-delegates.c: Rebuild.
11708 * target.c (default_search_memory): New function.
11709 (simple_search_memory): Update comment.
11710 (target_search_memory): Unconditionally delegate.
11711 * target.h (struct target_ops) <to_search_memory>: Use
11712 TARGET_DEFAULT_FUNC.
11713
11714 2014-02-19 Tom Tromey <tromey@redhat.com>
11715
11716 * auxv.c (default_auxv_parse): No longer static.
11717 (target_auxv_parse): Unconditionally delegate.
11718 * auxv.h (default_auxv_parse): Declare.
11719 * target-delegates.c: Rebuild.
11720 * target.c: Include auxv.h.
11721 * target.h (struct target_ops) <to_auxv_parse>: Use
11722 TARGET_DEFAULT_FUNC.
11723
11724 2014-02-19 Tom Tromey <tromey@redhat.com>
11725
11726 * target-delegates.c: Rebuild.
11727 * target.c (target_memory_map): Unconditionally delegate.
11728 * target.h (struct target_ops) <to_memory_map>: Use
11729 TARGET_DEFAULT_RETURN.
11730
11731 2014-02-19 Tom Tromey <tromey@redhat.com>
11732
11733 * target-delegates.c: Rebuild.
11734 * target.c (target_thread_alive): Unconditionally delegate.
11735 * target.h (struct target_ops) <to_thread_alive>: Use
11736 TARGET_DEFAULT_RETURN.
11737
11738 2014-02-19 Tom Tromey <tromey@redhat.com>
11739
11740 * target-delegates.c: Rebuild.
11741 * target.c (target_save_record): Unconditionally delegate.
11742 * target.h (struct target_ops) <to_save_record>: Use
11743 TARGET_DEFAULT_NORETURN.
11744
11745 2014-02-19 Tom Tromey <tromey@redhat.com>
11746
11747 * target-delegates.c: Rebuild.
11748 * target.c (target_delete_record): Unconditionally delegate.
11749 * target.h (struct target_ops) <to_delete_record>: Use
11750 TARGET_DEFAULT_NORETURN.
11751
11752 2014-02-19 Tom Tromey <tromey@redhat.com>
11753
11754 * target-delegates.c: Rebuild.
11755 * target.c (target_record_is_replaying): Unconditionally
11756 delegate.
11757 * target.h (struct target_ops) <to_record_is_replaying>: Use
11758 TARGET_DEFAULT_RETURN.
11759
11760 2014-02-19 Tom Tromey <tromey@redhat.com>
11761
11762 * target-delegates.c: Rebuild.
11763 * target.c (target_goto_record_begin): Unconditionally delegate.
11764 * target.h (struct target_ops) <to_goto_record_begin>: Use
11765 TARGET_DEFAULT_NORETURN.
11766
11767 2014-02-19 Tom Tromey <tromey@redhat.com>
11768
11769 * target-delegates.c: Rebuild.
11770 * target.c (target_goto_record_end): Unconditionally delegate.
11771 * target.h (struct target_ops) <to_goto_record_end>: Use
11772 TARGET_DEFAULT_NORETURN.
11773
11774 2014-02-19 Tom Tromey <tromey@redhat.com>
11775
11776 * target-delegates.c: Rebuild.
11777 * target.c (target_goto_record): Unconditionally delegate.
11778 * target.h (struct target_ops) <to_goto_record>: Use
11779 TARGET_DEFAULT_NORETURN.
11780
11781 2014-02-19 Tom Tromey <tromey@redhat.com>
11782
11783 * target-delegates.c: Rebuild.
11784 * target.c (target_insn_history): Unconditionally delegate.
11785 * target.h (struct target_ops) <to_insn_history>: Use
11786 TARGET_DEFAULT_NORETURN.
11787
11788 2014-02-19 Tom Tromey <tromey@redhat.com>
11789
11790 * target-delegates.c: Rebuild.
11791 * target.c (target_insn_history_from): Unconditionally delegate.
11792 * target.h (struct target_ops) <to_insn_history_from>: Use
11793 TARGET_DEFAULT_NORETURN.
11794
11795 2014-02-19 Tom Tromey <tromey@redhat.com>
11796
11797 * target-delegates.c: Rebuild.
11798 * target.c (target_insn_history_range): Unconditionally delegate.
11799 * target.h (struct target_ops) <to_insn_history_range>: Use
11800 TARGET_DEFAULT_NORETURN.
11801
11802 2014-02-19 Tom Tromey <tromey@redhat.com>
11803
11804 * target-delegates.c: Rebuild.
11805 * target.c (target_call_history): Unconditionally delegate.
11806 * target.h (struct target_ops) <to_call_history>: Use
11807 TARGET_DEFAULT_NORETURN.
11808
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target-delegates.c: Rebuild.
11812 * target.c (target_call_history_from): Unconditionally delegate.
11813 * target.h (struct target_ops) <to_call_history_from>: Use
11814 TARGET_DEFAULT_NORETURN.
11815
11816 2014-02-19 Tom Tromey <tromey@redhat.com>
11817
11818 * target-delegates.c: Rebuild.
11819 * target.c (target_call_history_range): Unconditionally delegate.
11820 * target.h (struct target_ops) <to_call_history_range>: Use
11821 TARGET_DEFAULT_NORETURN.
11822
11823 2014-02-19 Tom Tromey <tromey@redhat.com>
11824
11825 * target-delegates.c: Rebuild.
11826 * target.c (target_verify_memory): Unconditionally delegate.
11827 * target.h (struct target_ops) <to_verify_memory>: Use
11828 TARGET_DEFAULT_NORETURN.
11829
11830 2014-02-19 Tom Tromey <tromey@redhat.com>
11831
11832 * target-delegates.c: Rebuild.
11833 * target.c (target_core_of_thread): Unconditionally delegate.
11834 * target.h (struct target_ops) <to_core_of_thread>: Use
11835 TARGET_DEFAULT_RETURN.
11836
11837 2014-02-19 Tom Tromey <tromey@redhat.com>
11838
11839 * target-delegates.c: Rebuild.
11840 * target.c (target_flash_done): Unconditionally delegate.
11841 * target.h (struct target_ops) <to_flash_done>: Use
11842 TARGET_DEFAULT_NORETURN.
11843
11844 2014-02-19 Tom Tromey <tromey@redhat.com>
11845
11846 * target-delegates.c: Rebuild.
11847 * target.c (target_flash_erase): Unconditionally delegate.
11848 * target.h (struct target_ops) <to_flash_erase>: Use
11849 TARGET_DEFAULT_NORETURN.
11850
11851 2014-02-19 Tom Tromey <tromey@redhat.com>
11852
11853 * target-delegates.c: Rebuild.
11854 * target.c (target_get_section_table): Unconditionally delegate.
11855 * target.h (struct target_ops) <to_get_section_table>: Use
11856 TARGET_DEFAULT_RETURN.
11857
11858 2014-02-19 Tom Tromey <tromey@redhat.com>
11859
11860 * target-delegates.c: Rebuild.
11861 * target.c (target_pid_to_str): Unconditionally delegate.
11862 (init_dummy_target): Don't initialize to_pid_to_str.
11863 (default_pid_to_str): Rename from dummy_pid_to_str.
11864 * target.h (struct target_ops) <to_pid_to_str>: Use
11865 TARGET_DEFAULT_FUNC.
11866
11867 2014-02-19 Tom Tromey <tromey@redhat.com>
11868
11869 * target-delegates.c: Rebuild.
11870 * target.c (target_find_new_threads): Unconditionally delegate.
11871 * target.h (struct target_ops) <to_find_new_threads>: Use
11872 TARGET_DEFAULT_RETURN.
11873
11874 2014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * target-delegates.c: Rebuild.
11877 * target.c (target_program_signals): Unconditionally delegate.
11878 * target.h (struct target_ops) <to_program_signals>: Use
11879 TARGET_DEFAULT_IGNORE.
11880
11881 2014-02-19 Tom Tromey <tromey@redhat.com>
11882
11883 * target-delegates.c: Rebuild.
11884 * target.c (target_pass_signals): Unconditionally delegate.
11885 * target.h (struct target_ops) <to_pass_signals>: Use
11886 TARGET_DEFAULT_IGNORE.
11887
11888 2014-02-19 Tom Tromey <tromey@redhat.com>
11889
11890 * target-delegates.c: Rebuild.
11891 * target.c (default_mourn_inferior): New function.
11892 (target_mourn_inferior): Unconditionally delegate.
11893 * target.h (struct target_ops) <to_mourn_inferior>: Use
11894 TARGET_DEFAULT_FUNC.
11895
11896 2014-02-19 Tom Tromey <tromey@redhat.com>
11897
11898 * target-delegates.c: Rebuild.
11899 * target.c (default_follow_fork): New function.
11900 (target_follow_fork): Unconditionally delegate.
11901 * target.h (struct target_ops) <to_follow_fork>: Use
11902 TARGET_DEFAULT_FUNC.
11903
11904 2014-02-19 Tom Tromey <tromey@redhat.com>
11905
11906 * target-delegates.c: Rebuild.
11907 * target.c (target_kill): Unconditionally delegate.
11908 * target.h (struct target_ops) <to_kill>: Use
11909 TARGET_DEFAULT_NORETURN.
11910
11911 2014-02-19 Tom Tromey <tromey@redhat.com>
11912
11913 * target-delegates.c: Rebuild.
11914 * target.c (target_masked_watch_num_registers): Unconditionally
11915 delegate.
11916 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11917 Use TARGET_DEFAULT_RETURN.
11918
11919 2014-02-19 Tom Tromey <tromey@redhat.com>
11920
11921 * target-delegates.c: Rebuild.
11922 * target.c (target_remove_mask_watchpoint): Unconditionally
11923 delegate.
11924 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11925 TARGET_DEFAULT_RETURN.
11926
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11928
11929 * target-delegates.c: Rebuild.
11930 * target.c (target_insert_mask_watchpoint): Unconditionally
11931 delegate.
11932 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11933 TARGET_DEFAULT_RETURN.
11934
11935 2014-02-19 Tom Tromey <tromey@redhat.com>
11936
11937 * target-delegates.c: Rebuild.
11938 * target.c (target_ranged_break_num_registers): Unconditionally
11939 delegate.
11940 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11941 Use TARGET_DEFAULT_RETURN.
11942
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11944
11945 * target-delegates.c: Rebuild.
11946 * target.c (target_fetch_registers): Unconditionally delegate.
11947 * target.h (struct target_ops) <to_fetch_registers>: Use
11948 TARGET_DEFAULT_NORETURN.
11949
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11951
11952 * target-delegates.c: Rebuild.
11953 * target.c (update_current_target): Don't inherit or default
11954 to_stop.
11955 * target.h (struct target_ops) <to_stop>: Use
11956 TARGET_DEFAULT_IGNORE.
11957
11958 2014-02-19 Tom Tromey <tromey@redhat.com>
11959
11960 * target-delegates.c: Rebuild.
11961 * target.c (update_current_target): Don't inherit or default
11962 to_can_run_breakpoint_commands.
11963 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11964 Use TARGET_DEFAULT_RETURN.
11965
11966 2014-02-19 Tom Tromey <tromey@redhat.com>
11967
11968 * target-delegates.c: Rebuild.
11969 * target.c (update_current_target): Don't inherit or default
11970 to_supports_evaluation_of_breakpoint_conditions.
11971 * target.h (struct target_ops)
11972 <to_supports_evaluation_of_breakpoint_conditions>: Use
11973 TARGET_DEFAULT_RETURN.
11974
11975 2014-02-19 Tom Tromey <tromey@redhat.com>
11976
11977 * target-delegates.c: Rebuild.
11978 * target.c (update_current_target): Don't inherit or default
11979 to_augmented_libraries_svr4_read.
11980 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11981 Use TARGET_DEFAULT_RETURN.
11982
11983 2014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * target-delegates.c: Rebuild.
11986 * target.c (update_current_target): Don't inherit or default
11987 to_can_use_agent.
11988 * target.h (struct target_ops) <to_can_use_agent>: Use
11989 TARGET_DEFAULT_RETURN.
11990
11991 2014-02-19 Tom Tromey <tromey@redhat.com>
11992
11993 * target-delegates.c: Rebuild.
11994 * target.c (update_current_target): Don't inherit or default
11995 to_use_agent.
11996 * target.h (struct target_ops) <to_use_agent>: Use
11997 TARGET_DEFAULT_NORETURN.
11998
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12000
12001 * target-delegates.c: Rebuild.
12002 * target.c (update_current_target): Don't inherit or default
12003 to_traceframe_info.
12004 (return_null): Remove.
12005 * target.h (struct target_ops) <to_traceframe_info>: Use
12006 TARGET_DEFAULT_RETURN.
12007
12008 2014-02-19 Tom Tromey <tromey@redhat.com>
12009
12010 * target-delegates.c: Rebuild.
12011 * target.c (update_current_target): Don't inherit or default
12012 to_static_tracepoint_markers_by_strid.
12013 * target.h (struct target_ops)
12014 <to_static_tracepoint_markers_by_strid>: Use
12015 TARGET_DEFAULT_NORETURN.
12016
12017 2014-02-19 Tom Tromey <tromey@redhat.com>
12018
12019 * target-delegates.c: Rebuild.
12020 * target.c (update_current_target): Don't inherit or default
12021 to_static_tracepoint_marker_at.
12022 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12023 Use TARGET_DEFAULT_RETURN.
12024
12025 2014-02-19 Tom Tromey <tromey@redhat.com>
12026
12027 * target-delegates.c: Rebuild.
12028 * target.c (update_current_target): Don't inherit or default
12029 to_set_permissions.
12030 * target.h (struct target_ops) <to_set_permissions>: Use
12031 TARGET_DEFAULT_IGNORE.
12032
12033 2014-02-19 Tom Tromey <tromey@redhat.com>
12034
12035 * target-delegates.c: Rebuild.
12036 * target.c (update_current_target): Don't inherit or default
12037 to_get_tib_address.
12038 * target.h (struct target_ops) <to_get_tib_address>: Use
12039 TARGET_DEFAULT_NORETURN.
12040
12041 2014-02-19 Tom Tromey <tromey@redhat.com>
12042
12043 * target-delegates.c: Rebuild.
12044 * target.c (update_current_target): Don't inherit or default
12045 to_set_trace_notes.
12046 * target.h (struct target_ops) <to_set_trace_notes>: Use
12047 TARGET_DEFAULT_RETURN.
12048
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12050
12051 * target-delegates.c: Rebuild.
12052 * target.c (update_current_target): Don't initialize
12053 to_set_trace_buffer_size.
12054 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12055 TARGET_DEFAULT_IGNORE.
12056
12057 2014-02-19 Tom Tromey <tromey@redhat.com>
12058
12059 * target-delegates.c: Rebuild.
12060 * target.c (update_current_target): Don't inherit or default
12061 to_set_circular_trace_buffer.
12062 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12063 TARGET_DEFAULT_IGNORE.
12064
12065 2014-02-19 Tom Tromey <tromey@redhat.com>
12066
12067 * target-delegates.c: Rebuild.
12068 * target.c (update_current_target): Don't inherit or default
12069 to_set_disconnected_tracing.
12070 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12071 TARGET_DEFAULT_IGNORE.
12072
12073 2014-02-19 Tom Tromey <tromey@redhat.com>
12074
12075 * target-delegates.c: Rebuild.
12076 * target.c (update_current_target): Don't inherit or default
12077 to_get_min_fast_tracepoint_insn_len.
12078 (return_minus_one): Remove.
12079 * target.h (struct target_ops)
12080 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12081
12082 2014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target-delegates.c: Rebuild.
12085 * target.c (update_current_target): Don't inherit or default
12086 to_get_raw_trace_data.
12087 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12088 TARGET_DEFAULT_NORETURN.
12089
12090 2014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * target-delegates.c: Rebuild.
12093 * target.c (update_current_target): Don't inherit or default
12094 to_upload_trace_state_variables.
12095 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12096 Use TARGET_DEFAULT_RETURN.
12097
12098 2014-02-19 Tom Tromey <tromey@redhat.com>
12099
12100 * target-delegates.c: Rebuild.
12101 * target.c (update_current_target): Don't inherit or default
12102 to_upload_tracepoints.
12103 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12104 TARGET_DEFAULT_RETURN.
12105
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target-delegates.c: Rebuild.
12109 * target.c (update_current_target): Don't inherit or default
12110 to_save_trace_data.
12111 * target.h (struct target_ops) <to_save_trace_data>: Use
12112 TARGET_DEFAULT_NORETURN.
12113
12114 2014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * target-delegates.c: Rebuild.
12117 * target.c (update_current_target): Don't inherit or default
12118 to_get_trace_state_variable_value.
12119 * target.h (struct target_ops)
12120 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12121
12122 2014-02-19 Tom Tromey <tromey@redhat.com>
12123
12124 * target-delegates.c: Rebuild.
12125 * target.c (update_current_target): Don't inherit or default
12126 to_trace_find.
12127 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12128
12129 2014-02-19 Tom Tromey <tromey@redhat.com>
12130
12131 * target-delegates.c: Rebuild.
12132 * target.c (update_current_target): Don't inherit or default
12133 to_trace_stop.
12134 * target.h (struct target_ops) <to_trace_stop>: Use
12135 TARGET_DEFAULT_NORETURN.
12136
12137 2014-02-19 Tom Tromey <tromey@redhat.com>
12138
12139 * target-delegates.c: Rebuild.
12140 * target.c (update_current_target): Don't inherit or default
12141 to_get_tracepoint_status.
12142 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12143 TARGET_DEFAULT_NORETURN.
12144
12145 2014-02-19 Tom Tromey <tromey@redhat.com>
12146
12147 * target-delegates.c: Rebuild.
12148 * target.c (update_current_target): Don't inherit or default
12149 to_get_trace_status.
12150 * target.h (struct target_ops) <to_get_trace_status>: Use
12151 TARGET_DEFAULT_RETURN.
12152
12153 2014-02-19 Tom Tromey <tromey@redhat.com>
12154
12155 * target-delegates.c: Rebuild.
12156 * target.c (update_current_target): Don't inherit or default
12157 to_trace_start.
12158 * target.h (struct target_ops) <to_trace_start>: Use
12159 TARGET_DEFAULT_NORETURN.
12160
12161 2014-02-19 Tom Tromey <tromey@redhat.com>
12162
12163 * target-delegates.c: Rebuild.
12164 * target.c (update_current_target): Don't inherit or default
12165 to_trace_set_readonly_regions.
12166 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12167 Use TARGET_DEFAULT_NORETURN.
12168
12169 2014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * target-delegates.c: Rebuild.
12172 * target.c (update_current_target): Don't inherit or default
12173 to_disable_tracepoint.
12174 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12175 TARGET_DEFAULT_NORETURN.
12176
12177 2014-02-19 Tom Tromey <tromey@redhat.com>
12178
12179 * target-delegates.c: Rebuild.
12180 * target.c (update_current_target): Don't inherit or default
12181 to_enable_tracepoint.
12182 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12183 TARGET_DEFAULT_NORETURN.
12184
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12186
12187 * target-delegates.c: Rebuild.
12188 * target.c (update_current_target): Don't inherit or default
12189 to_download_trace_state_variable.
12190 * target.h (struct target_ops) <to_download_trace_state_variable>:
12191 Use TARGET_DEFAULT_NORETURN.
12192
12193 2014-02-19 Tom Tromey <tromey@redhat.com>
12194
12195 * target-delegates.c: Rebuild.
12196 * target.c (update_current_target): Don't inherit or default
12197 to_can_download_tracepoint.
12198 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12199 TARGET_DEFAULT_RETURN.
12200
12201 2014-02-19 Tom Tromey <tromey@redhat.com>
12202
12203 * target-delegates.c: Rebuild.
12204 * target.c (update_current_target): Don't inherit or default
12205 to_download_tracepoint.
12206 * target.h (struct target_ops) <to_download_tracepoint>: Use
12207 TARGET_DEFAULT_NORETURN.
12208
12209 2014-02-19 Tom Tromey <tromey@redhat.com>
12210
12211 * target-delegates.c: Rebuild.
12212 * target.c (update_current_target): Don't inherit or default
12213 to_trace_init.
12214 * target.h (struct target_ops) <to_trace_init>: Use
12215 TARGET_DEFAULT_RETURN.
12216
12217 2014-02-19 Tom Tromey <tromey@redhat.com>
12218
12219 * target-delegates.c: Rebuild.
12220 * target.c (update_current_target): Don't inherit or default
12221 to_supports_string_tracing.
12222 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12223 TARGET_DEFAULT_RETURN.
12224
12225 2014-02-19 Tom Tromey <tromey@redhat.com>
12226
12227 * target-delegates.c: Rebuild.
12228 * target.c (update_current_target): Don't inherit or default
12229 to_supports_enable_disable_tracepoint.
12230 * target.h (struct target_ops)
12231 <to_supports_enable_disable_tracepoint>: Use
12232 TARGET_DEFAULT_RETURN.
12233
12234 2014-02-19 Tom Tromey <tromey@redhat.com>
12235
12236 * target-delegates.c: Rebuild.
12237 * target.c (update_current_target): Don't inherit or default
12238 to_supports_multi_process.
12239 * target.h (struct target_ops) <to_supports_multi_process>: Use
12240 TARGET_DEFAULT_RETURN.
12241
12242 2014-02-19 Tom Tromey <tromey@redhat.com>
12243
12244 * target-delegates.c: Rebuild.
12245 * target.c (update_current_target): Don't inherit or default
12246 to_get_ada_task_ptid.
12247 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12248 TARGET_DEFAULT_FUNC.
12249
12250 2014-02-19 Tom Tromey <tromey@redhat.com>
12251
12252 * target-delegates.c: Rebuild.
12253 * target.c (update_current_target): Don't inherit or default
12254 to_thread_architecture.
12255 * target.h (struct target_ops) <to_thread_architecture>: Use
12256 TARGET_DEFAULT_FUNC.
12257
12258 2014-02-19 Tom Tromey <tromey@redhat.com>
12259
12260 * target-delegates.c: Rebuild.
12261 * target.c (update_current_target): Don't inherit or default
12262 to_execution_direction.
12263 * target.h (struct target_ops) <to_execution_direction>: Use
12264 TARGET_DEFAULT_FUNC.
12265
12266 2014-02-19 Tom Tromey <tromey@redhat.com>
12267
12268 * target-delegates.c: Rebuild.
12269 * target.c (update_current_target): Don't inherit or default
12270 to_can_execute_reverse.
12271 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12272 TARGET_DEFAULT_RETURN.
12273 (target_can_execute_reverse): Unconditionally delegate.
12274
12275 2014-02-19 Tom Tromey <tromey@redhat.com>
12276
12277 * target-delegates.c: Rebuild.
12278 * target.c (update_current_target): Don't inherit or default
12279 to_goto_bookmark.
12280 (dummy_goto_bookmark): Remove.
12281 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12282 * target.h (struct target_ops) <to_goto_bookmark>: Use
12283 TARGET_DEFAULT_NORETURN.
12284
12285 2014-02-19 Tom Tromey <tromey@redhat.com>
12286
12287 * target-delegates.c: Rebuild.
12288 * target.c (update_current_target): Don't inherit or default
12289 to_get_bookmark.
12290 (dummy_get_bookmark): Remove.
12291 (init_dummy_target): Don't inherit or default to_get_bookmark.
12292 * target.h (struct target_ops) <to_get_bookmark>: Use
12293 TARGET_DEFAULT_NORETURN
12294
12295 2014-02-19 Tom Tromey <tromey@redhat.com>
12296
12297 * target-delegates.c: Rebuild.
12298 * target.c (update_current_target): Don't inherit or default
12299 to_make_corefile_notes.
12300 (init_dummy_target): Don't initialize to_make_corefile_notes.
12301 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12302 TARGET_DEFAULT_FUNC.
12303
12304 2014-02-19 Tom Tromey <tromey@redhat.com>
12305
12306 * target-delegates.c: Rebuild.
12307 * target.c (update_current_target): Don't inherit or default
12308 to_find_memory_regions.
12309 (init_dummy_target): Don't initialize to_find_memory_regions.
12310 * target.h (struct target_ops) <to_find_memory_regions>: Use
12311 TARGET_DEFAULT_FUNC.
12312
12313 2014-02-19 Tom Tromey <tromey@redhat.com>
12314
12315 * target-delegates.c: Rebuild.
12316 * target.c (update_current_target): Don't inherit or default
12317 to_log_command.
12318 * target.h (struct target_ops) <to_log_command>: Use
12319 TARGET_DEFAULT_IGNORE.
12320 (target_log_command): Unconditionally delegate.
12321
12322 2014-02-19 Tom Tromey <tromey@redhat.com>
12323
12324 * target-delegates.c: Rebuild.
12325 * target.c (update_current_target): Don't inherit or default
12326 to_pid_to_exec_file.
12327 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12328 TARGET_DEFAULT_RETURN.
12329
12330 2014-02-19 Tom Tromey <tromey@redhat.com>
12331
12332 * target-delegates.c: Rebuild.
12333 * target.c (update_current_target): Don't inherit or default
12334 to_thread_name.
12335 (target_thread_name): Unconditionally delegate.
12336 * target.h (struct target_ops) <to_thread_name>: Use
12337 TARGET_DEFAULT_RETURN.
12338
12339 2014-02-19 Tom Tromey <tromey@redhat.com>
12340
12341 * target-delegates.c: Rebuild.
12342 * target.c (update_current_target): Don't inherit or default
12343 to_extra_thread_info.
12344 * target.h (struct target_ops) <to_extra_thread_info>: Use
12345 TARGET_DEFAULT_RETURN.
12346
12347 2014-02-19 Tom Tromey <tromey@redhat.com>
12348
12349 * target-delegates.c: Rebuild.
12350 * target.c (update_current_target): Don't inherit or default
12351 to_has_exited.
12352 * target.h (struct target_ops) <to_has_exited>: Use
12353 TARGET_DEFAULT_RETURN..
12354
12355 2014-02-19 Tom Tromey <tromey@redhat.com>
12356
12357 * target-delegates.c: Rebuild.
12358 * target.c (update_current_target): Don't inherit or default
12359 to_set_syscall_catchpoint.
12360 (return_one): Remove.
12361 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12362 TARGET_DEFAULT_RETURN.
12363
12364 2014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * target-delegates.c: Rebuild.
12367 * target.c (update_current_target): Don't inherit or default
12368 to_insert_exec_catchpoint.
12369 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12370 TARGET_DEFAULT_RETURN.
12371
12372 2014-01-08 Tom Tromey <tromey@redhat.com>
12373
12374 * target-delegates.c: Rebuild.
12375 * target.c (update_current_target): Don't inherit or default
12376 to_insert_exec_catchpoint.
12377 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12378 TARGET_DEFAULT_RETURN.
12379
12380 2014-02-19 Tom Tromey <tromey@redhat.com>
12381
12382 * target-delegates.c: Rebuild.
12383 * target.c (update_current_target): Don't inherit or default
12384 to_remove_vfork_catchpoint.
12385 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12386 TARGET_DEFAULT_RETURN.
12387
12388 2014-02-19 Tom Tromey <tromey@redhat.com>
12389
12390 * target-delegates.c: Rebuild.
12391 * target.c (update_current_target): Don't inherit or default
12392 to_insert_vfork_catchpoint.
12393 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12394 TARGET_DEFAULT_RETURN.
12395
12396 2014-02-19 Tom Tromey <tromey@redhat.com>
12397
12398 * target-delegates.c: Rebuild.
12399 * target.c (update_current_target): Don't inherit or default
12400 to_remove_fork_catchpoint.
12401 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12402 TARGET_DEFAULT_RETURN.
12403
12404 2014-02-19 Tom Tromey <tromey@redhat.com>
12405
12406 * target-delegates.c: Rebuild.
12407 * target.c (update_current_target): Don't inherit or default
12408 to_insert_fork_catchpoint.
12409 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12410 TARGET_DEFAULT_RETURN.
12411
12412 2014-02-19 Tom Tromey <tromey@redhat.com>
12413
12414 * target-delegates.c: Rebuild.
12415 * target.c (update_current_target): Don't inherit or default
12416 to_post_startup_inferior.
12417 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12418 TARGET_DEFAULT_IGNORE.
12419
12420 2014-02-19 Tom Tromey <tromey@redhat.com>
12421
12422 * target-delegates.c: Rebuild.
12423 * target.c (update_current_target): Don't inherit or default
12424 to_load.
12425 * target.h (struct target_ops) <to_load>: Use
12426 TARGET_DEFAULT_NORETURN.
12427
12428 2014-02-19 Tom Tromey <tromey@redhat.com>
12429
12430 * target-delegates.c: Rebuild.
12431 * target.c (update_current_target): Don't inherit or default
12432 to_terminal_info.
12433 * target.h (struct target_ops) <to_terminal_info>: Use
12434 TARGET_DEFAULT_FUNC.
12435
12436 2014-02-19 Tom Tromey <tromey@redhat.com>
12437
12438 * target-delegates.c: Rebuild.
12439 * target.c (update_current_target): Don't inherit or default
12440 to_terminal_save_ours.
12441 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12442 TARGET_DEFAULT_IGNORE.
12443
12444 2014-02-19 Tom Tromey <tromey@redhat.com>
12445
12446 * target-delegates.c: Rebuild.
12447 * target.c (update_current_target): Don't inherit or default
12448 to_terminal_ours.
12449 * target.h (struct target_ops) <to_terminal_ours>: Use
12450 TARGET_DEFAULT_IGNORE.
12451
12452 2014-02-19 Tom Tromey <tromey@redhat.com>
12453
12454 * target-delegates.c: Rebuild.
12455 * target.c (update_current_target): Don't inherit or default
12456 to_terminal_ours_for_output.
12457 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12458 TARGET_DEFAULT_IGNORE.
12459
12460 2014-02-19 Tom Tromey <tromey@redhat.com>
12461
12462 * target-delegates.c: Rebuild.
12463 * target.c (update_current_target): Don't inherit or default
12464 to_terminal_inferior.
12465 * target.h (struct target_ops) <to_terminal_inferior>: Use
12466 TARGET_DEFAULT_IGNORE.
12467
12468 2014-02-19 Tom Tromey <tromey@redhat.com>
12469
12470 * target-delegates.c: Rebuild.
12471 * target.c (update_current_target): Don't inherit or default
12472 to_terminal_init.
12473 * target.h (struct target_ops) <to_terminal_init>: Use
12474 TARGET_DEFAULT_IGNORE.
12475
12476 2014-02-19 Tom Tromey <tromey@redhat.com>
12477
12478 * target-delegates.c: Rebuild.
12479 * target.c (update_current_target): Don't inherit or default
12480 to_can_accel_watchpoint_condition.
12481 * target.h (struct target_ops)
12482 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12483
12484 2014-02-19 Tom Tromey <tromey@redhat.com>
12485
12486 * target-delegates.c: Rebuild.
12487 * target.c (update_current_target): Don't inherit or default
12488 to_region_ok_for_hw_watchpoint.
12489 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12490 Use TARGET_DEFAULT_FUNC.
12491
12492 2014-02-19 Tom Tromey <tromey@redhat.com>
12493
12494 * target-delegates.c: Rebuild.
12495 * target.c (update_current_target): Don't inherit or default
12496 to_watchpoint_addr_within_range.
12497 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12498 Use TARGET_DEFAULT_FUNC.
12499
12500 2014-02-19 Tom Tromey <tromey@redhat.com>
12501
12502 * target-delegates.c: Rebuild.
12503 * target.c (update_current_target): Don't inherit or default
12504 to_remove_watchpoint.
12505 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12506 TARGET_DEFAULT_NORETURN.
12507
12508 2014-02-19 Tom Tromey <tromey@redhat.com>
12509
12510 * target-delegates.c: Rebuild.
12511 * target.c (update_current_target): Don't inherit or default
12512 to_insert_watchpoint.
12513 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12514 TARGET_DEFAULT_RETURN.
12515
12516 2014-02-19 Tom Tromey <tromey@redhat.com>
12517
12518 * target-delegates.c: Rebuild.
12519 * target.c (update_current_target): Don't inherit or default
12520 to_remove_hw_breakpoint.
12521 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12522 TARGET_DEFAULT_RETURN.
12523
12524 2014-02-19 Tom Tromey <tromey@redhat.com>
12525
12526 * target-delegates.c: Rebuild.
12527 * target.c (update_current_target): Don't inherit or default
12528 to_insert_hw_breakpoint.
12529 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12530 TARGET_DEFAULT_RETURN.
12531
12532 2014-02-19 Tom Tromey <tromey@redhat.com>
12533
12534 * target-delegates.c: Rebuild.
12535 * target.c (update_current_target): Don't inherit or default
12536 to_can_use_hw_breakpoint.
12537 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12538 TARGET_DEFAULT_RETURN.
12539
12540 2014-02-19 Tom Tromey <tromey@redhat.com>
12541
12542 * target-delegates.c: Rebuild.
12543 * target.c (update_current_target): Don't inherit or default
12544 to_files_info.
12545 * target.h (struct target_ops) <to_files_info>: Use
12546 TARGET_DEFAULT_IGNORE.
12547
12548 2014-02-19 Tom Tromey <tromey@redhat.com>
12549
12550 * target-delegates.c: Rebuild.
12551 * target.c (update_current_target): Don't inherit or default
12552 to_store.
12553 * target.h (struct target_ops) <to_store>: Use
12554 TARGET_DEFAULT_NORETURN.
12555
12556 2014-02-19 Tom Tromey <tromey@redhat.com>
12557
12558 * target-delegates.c: Rebuild.
12559 * target.c (update_current_target): Don't inherit or default
12560 to_post_attach.
12561 * target.h (struct target_ops) <to_post_attach>: Use
12562 TARGET_DEFAULT_IGNORE.
12563
12564 2014-02-19 Tom Tromey <tromey@redhat.com>
12565
12566 * target-delegates.c: Rebuild.
12567 * target.c (update_current_target): Don't inherit or default
12568 to_rcmd.
12569 (default_rcmd): New function.
12570 (do_monitor_command): Unconditionally delegate.
12571 * target.h (struct target_ops) <to_rmcd>: Use
12572 TARGET_DEFAULT_FUNC.
12573
12574 2014-02-19 Tom Tromey <tromey@redhat.com>
12575
12576 * target-delegates.c: Rebuild.
12577 * target.c (init_dummy_target): Don't initialize to_attach.
12578 (target_attach): Unconditionally delegate.
12579 * target.h (struct target_ops) <to_attach>: Use
12580 TARGET_DEFAULT_FUNC.
12581
12582 2014-02-19 Tom Tromey <tromey@redhat.com>
12583
12584 * target-delegates.c: Rebuild.
12585 * target.c (target_detach): Unconditionally delegate.
12586 (init_dummy_target): Don't initialize to_detach.
12587 * target.h (struct target_ops) <to_detach>: Use
12588 TARGET_DEFAULT_IGNORE.
12589
12590 2014-02-19 Tom Tromey <tromey@redhat.com>
12591
12592 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12593 Add argument.
12594 (target_augmented_libraries_svr4_read): Add argument.
12595 * target.c (update_current_target): Update.
12596 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12597 argument.
12598
12599 2014-02-19 Tom Tromey <tromey@redhat.com>
12600
12601 * target.h (struct target_ops) <to_call_history_range>: Add
12602 argument.
12603 * target.c (target_call_history_range): Add argument.
12604 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12605 argument.
12606 (record_btrace_call_history_from): Update.
12607
12608 2014-02-19 Tom Tromey <tromey@redhat.com>
12609
12610 * target.h (struct target_ops) <to_call_history_from>: Add
12611 argument.
12612 * target.c (target_call_history_from): Add argument.
12613 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12614 argument.
12615
12616 2014-02-19 Tom Tromey <tromey@redhat.com>
12617
12618 * target.h (struct target_ops) <to_call_history>: Add argument.
12619 * target.c (target_call_history): Add argument.
12620 * record-btrace.c (record_btrace_call_history): Add 'self'
12621 argument.
12622
12623 2014-02-19 Tom Tromey <tromey@redhat.com>
12624
12625 * target.h (struct target_ops) <to_insn_history_range>: Add
12626 argument.
12627 * target.c (target_insn_history_range): Add argument.
12628 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12629 argument.
12630 (record_btrace_insn_history_from): Update.
12631
12632 2014-02-19 Tom Tromey <tromey@redhat.com>
12633
12634 * target.h (struct target_ops) <to_insn_history_from>: Add
12635 argument.
12636 * target.c (target_insn_history_from): Add argument.
12637 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12638 argument.
12639
12640 2014-02-19 Tom Tromey <tromey@redhat.com>
12641
12642 * target.h (struct target_ops) <to_insn_history>: Add argument.
12643 * target.c (target_insn_history): Add argument.
12644 * record-btrace.c (record_btrace_insn_history): Add 'self'
12645 argument.
12646
12647 2014-02-19 Tom Tromey <tromey@redhat.com>
12648
12649 * target.h (struct target_ops) <to_goto_record>: Add argument.
12650 * target.c (target_goto_record): Add argument.
12651 * record-full.c (record_full_goto): Add 'self' argument.
12652 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12653
12654 2014-02-19 Tom Tromey <tromey@redhat.com>
12655
12656 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12657 * target.c (target_goto_record_end): Add argument.
12658 * record-full.c (record_full_goto_end): Add 'self' argument.
12659 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12660
12661 2014-02-19 Tom Tromey <tromey@redhat.com>
12662
12663 * target.h (struct target_ops) <to_goto_record_begin>: Add
12664 argument.
12665 * target.c (target_goto_record_begin): Add argument.
12666 * record-full.c (record_full_goto_begin): Add 'self' argument.
12667 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12668 argument.
12669
12670 2014-02-19 Tom Tromey <tromey@redhat.com>
12671
12672 * target.h (struct target_ops) <to_record_is_replaying>: Add
12673 argument.
12674 * target.c (target_record_is_replaying): Add argument.
12675 * record-full.c (record_full_is_replaying): Add 'self' argument.
12676 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12677 argument.
12678 (record_btrace_xfer_partial, record_btrace_store_registers)
12679 (record_btrace_prepare_to_store, record_btrace_resume)
12680 (record_btrace_wait, record_btrace_decr_pc_after_break)
12681 (record_btrace_find_new_threads, record_btrace_thread_alive):
12682 Update.
12683
12684 2014-02-19 Tom Tromey <tromey@redhat.com>
12685
12686 * target.h (struct target_ops) <to_delete_record>: Add argument.
12687 * target.c (target_delete_record): Add argument.
12688 * record-full.c (record_full_delete): Add 'self' argument.
12689
12690 2014-02-19 Tom Tromey <tromey@redhat.com>
12691
12692 * target.h (struct target_ops) <to_save_record>: Add argument.
12693 * target.c (target_save_record): Add argument.
12694 * record-full.c (record_full_save): Add 'self' argument.
12695 (record_full_save): Add 'self' argument.
12696
12697 2014-02-19 Tom Tromey <tromey@redhat.com>
12698
12699 * target.h (struct target_ops) <to_info_record>: Add argument.
12700 * target.c (target_info_record): Add argument.
12701 * record.c (info_record_command): Add argument.
12702 * record-full.c (record_full_info): Add 'self' argument.
12703 * record-btrace.c (record_btrace_info): Add 'self' argument.
12704
12705 2014-02-19 Tom Tromey <tromey@redhat.com>
12706
12707 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12708 * target.c (target_stop_recording): Add argument.
12709 * record.c (record_stop): Add argument.
12710 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12711 argument.
12712
12713 2014-02-19 Tom Tromey <tromey@redhat.com>
12714
12715 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12716 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12717 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12718 argument.
12719 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12720 (_initialize_amd64_linux_nat): Use it.
12721 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12722 (_initialize_i386_linux_nat): Use it.
12723
12724 2014-02-19 Tom Tromey <tromey@redhat.com>
12725
12726 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12727 * target.c (target_teardown_btrace): Add argument.
12728 * remote.c (remote_teardown_btrace): Add 'self' argument.
12729 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12730 argument.
12731 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12732 argument.
12733
12734 2014-02-19 Tom Tromey <tromey@redhat.com>
12735
12736 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12737 * target.c (target_disable_btrace): Add argument.
12738 * remote.c (remote_disable_btrace): Add 'self' argument.
12739 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12740 argument.
12741 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12742 argument.
12743
12744 2014-02-19 Tom Tromey <tromey@redhat.com>
12745
12746 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12747 * target.c (target_enable_btrace): Add argument.
12748 * remote.c (remote_enable_btrace): Add 'self' argument.
12749 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12750 argument.
12751 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12752 argument.
12753
12754 2014-02-19 Tom Tromey <tromey@redhat.com>
12755
12756 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12757 (target_can_use_agent): Add argument.
12758 * target.c (update_current_target): Update.
12759 * remote.c (remote_can_use_agent): Add 'self' argument.
12760 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12761
12762 2014-02-19 Tom Tromey <tromey@redhat.com>
12763
12764 * target.h (struct target_ops) <to_use_agent>: Add argument.
12765 (target_use_agent): Add argument.
12766 * target.c (update_current_target): Update.
12767 * remote.c (remote_use_agent): Add 'self' argument.
12768 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12769
12770 2014-02-19 Tom Tromey <tromey@redhat.com>
12771
12772 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12773 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12774 (target_traceframe_info): Add argument.
12775 * target.c (update_current_target): Update.
12776 * remote.c (remote_traceframe_info): Add 'self' argument.
12777 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12778
12779 2014-02-19 Tom Tromey <tromey@redhat.com>
12780
12781 * target.h (target_static_tracepoint_markers_by_strid): Add
12782 argument.
12783 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12784 'self' argument.
12785 * target.c (update_current_target): Update.
12786 * remote.c (struct target_ops)
12787 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12788 * linux-nat.c (struct target_ops)
12789 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12790
12791 2014-02-19 Tom Tromey <tromey@redhat.com>
12792
12793 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12794 Add argument.
12795 (target_static_tracepoint_marker_at): Add argument.
12796 * target.c (update_current_target): Update.
12797 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12798 argument.
12799
12800 2014-02-19 Tom Tromey <tromey@redhat.com>
12801
12802 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12803 (target_set_permissions): Add argument.
12804 * target.c (update_current_target): Update.
12805 * remote.c (remote_set_permissions): Add 'self' argument.
12806 (remote_start_remote): Update.
12807
12808 2014-02-19 Tom Tromey <tromey@redhat.com>
12809
12810 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12811 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12812 (target_get_tib_address): Add argument.
12813 * target.c (update_current_target): Update.
12814 * remote.c (remote_get_tib_address): Add 'self' argument.
12815
12816 2014-02-19 Tom Tromey <tromey@redhat.com>
12817
12818 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12819 (target_set_trace_notes): Add argument.
12820 * target.c (update_current_target): Update.
12821 * remote.c (remote_set_trace_notes): Add 'self' argument.
12822
12823 2014-02-19 Tom Tromey <tromey@redhat.com>
12824
12825 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12826 argument.
12827 (target_set_trace_buffer_size): Add argument.
12828 * target.c (update_current_target): Update.
12829 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12830
12831 2014-02-19 Tom Tromey <tromey@redhat.com>
12832
12833 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12834 argument.
12835 (target_set_circular_trace_buffer): Add argument.
12836 * target.c (update_current_target): Update.
12837 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12838 argument.
12839
12840 2014-02-19 Tom Tromey <tromey@redhat.com>
12841
12842 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12843 argument.
12844 (target_set_disconnected_tracing): Add argument.
12845 * target.c (update_current_target): Update.
12846 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12847
12848 2014-02-19 Tom Tromey <tromey@redhat.com>
12849
12850 * target.h (struct target_ops)
12851 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12852 (target_get_min_fast_tracepoint_insn_len): Add argument.
12853 * target.c (update_current_target): Update.
12854 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12855 argument.
12856
12857 2014-02-19 Tom Tromey <tromey@redhat.com>
12858
12859 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12860 argument.
12861 (target_get_raw_trace_data): Add argument.
12862 * target.c (update_current_target): Update.
12863 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12864
12865 2014-02-19 Tom Tromey <tromey@redhat.com>
12866
12867 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12868 Add argument.
12869 (target_upload_trace_state_variables): Add argument.
12870 * target.c (update_current_target): Update.
12871 * remote.c (remote_upload_trace_state_variables): Add 'self'
12872 argument.
12873 (remote_start_remote): Update.
12874
12875 2014-02-19 Tom Tromey <tromey@redhat.com>
12876
12877 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12878 argument.
12879 (target_upload_tracepoints): Add argument.
12880 * target.c (update_current_target): Update.
12881 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12882 (remote_start_remote): Update.
12883
12884 2014-02-19 Tom Tromey <tromey@redhat.com>
12885
12886 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12887 (target_save_trace_data): Add argument.
12888 * target.c (update_current_target): Update.
12889 * remote.c (remote_save_trace_data): Add 'self' argument.
12890
12891 2014-02-19 Tom Tromey <tromey@redhat.com>
12892
12893 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12894 argument.
12895 * target.h (struct target_ops)
12896 <to_get_trace_state_variable_value>: Add argument.
12897 (target_get_trace_state_variable_value): Add argument.
12898 * target.c (update_current_target): Update.
12899 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12900 argument.
12901 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12902
12903 2014-02-19 Tom Tromey <tromey@redhat.com>
12904
12905 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12906 * target.h (struct target_ops) <to_trace_find>: Add argument.
12907 (target_trace_find): Add argument.
12908 * target.c (update_current_target): Update.
12909 * remote.c (remote_trace_find): Add 'self' argument.
12910 * ctf.c (ctf_trace_find): Add 'self' argument.
12911
12912 2014-02-19 Tom Tromey <tromey@redhat.com>
12913
12914 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12915 (target_trace_stop): Add argument.
12916 * target.c (update_current_target): Update.
12917 * remote.c (remote_trace_stop): Add 'self' argument.
12918
12919 2014-02-19 Tom Tromey <tromey@redhat.com>
12920
12921 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12922 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12923 argument.
12924 (target_get_tracepoint_status): Add argument.
12925 * target.c (update_current_target): Update.
12926 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12927
12928 2014-02-19 Tom Tromey <tromey@redhat.com>
12929
12930 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12931 * target.h (struct target_ops) <to_get_trace_status>: Add
12932 argument.
12933 (target_get_trace_status): Add argument.
12934 * target.c (update_current_target): Update.
12935 * remote.c (remote_get_trace_status): Add 'self' argument.
12936 (remote_start_remote, remote_can_download_tracepoint): Update.
12937 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12938
12939 2014-02-19 Tom Tromey <tromey@redhat.com>
12940
12941 * target.h (struct target_ops) <to_trace_start>: Add argument.
12942 (target_trace_start): Add argument.
12943 * target.c (update_current_target): Update.
12944 * remote.c (remote_trace_start): Add 'self' argument.
12945
12946 2014-02-19 Tom Tromey <tromey@redhat.com>
12947
12948 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12949 Add argument.
12950 (target_trace_set_readonly_regions): Add argument.
12951 * target.c (update_current_target): Update.
12952 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12953 argument.
12954
12955 2014-02-19 Tom Tromey <tromey@redhat.com>
12956
12957 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12958 argument.
12959 (target_disable_tracepoint): Add argument.
12960 * target.c (update_current_target): Update.
12961 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12962
12963 2014-02-19 Tom Tromey <tromey@redhat.com>
12964
12965 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12966 argument.
12967 (target_enable_tracepoint): Add argument.
12968 * target.c (update_current_target): Update.
12969 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12970
12971 2014-02-19 Tom Tromey <tromey@redhat.com>
12972
12973 * target.h (struct target_ops) <to_download_trace_state_variable>:
12974 Add argument.
12975 (target_download_trace_state_variable): Add argument.
12976 * target.c (update_current_target): Update.
12977 * remote.c (remote_download_trace_state_variable): Add 'self'
12978 argument.
12979
12980 2014-02-19 Tom Tromey <tromey@redhat.com>
12981
12982 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12983 argument.
12984 (target_can_download_tracepoint): Add argument.
12985 * target.c (update_current_target): Update.
12986 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12987
12988 2014-02-19 Tom Tromey <tromey@redhat.com>
12989
12990 * target.h (struct target_ops) <to_download_tracepoint>: Add
12991 argument.
12992 (target_download_tracepoint): Add argument.
12993 * target.c (update_current_target): Update.
12994 * remote.c (remote_download_tracepoint): Add 'self' argument.
12995
12996 2014-02-19 Tom Tromey <tromey@redhat.com>
12997
12998 * target.h (struct target_ops) <to_trace_init>: Add argument.
12999 (target_trace_init): Add argument.
13000 * target.c (update_current_target): Update.
13001 * remote.c (remote_trace_init): Add 'self' argument.
13002
13003 2014-02-19 Tom Tromey <tromey@redhat.com>
13004
13005 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13006 * target.c (target_fileio_readlink): Add argument.
13007 * remote.c (remote_hostio_readlink): Add 'self' argument.
13008 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13009
13010 2014-02-19 Tom Tromey <tromey@redhat.com>
13011
13012 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13013 * target.c (target_fileio_unlink): Add argument.
13014 * remote.c (remote_hostio_unlink): Add 'self' argument.
13015 (remote_file_delete): Update.
13016 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13017
13018 2014-02-19 Tom Tromey <tromey@redhat.com>
13019
13020 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13021 * target.c (target_fileio_close): Add argument.
13022 * remote.c (remote_hostio_close): Add 'self' argument.
13023 (remote_hostio_close_cleanup): Update.
13024 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13025 Update.
13026 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13027
13028 2014-02-19 Tom Tromey <tromey@redhat.com>
13029
13030 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13031 * target.c (target_fileio_pread): Add argument.
13032 * remote.c (remote_hostio_pread): Add 'self' argument.
13033 (remote_bfd_iovec_pread, remote_file_get): Update.
13034 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13035
13036 2014-02-19 Tom Tromey <tromey@redhat.com>
13037
13038 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13039 * target.c (target_fileio_pwrite): Add argument.
13040 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13041 (remote_file_put): Update.
13042 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13043
13044 2014-02-19 Tom Tromey <tromey@redhat.com>
13045
13046 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13047 * target.c (target_fileio_open): Add argument.
13048 * remote.c (remote_hostio_open): Add 'self' argument.
13049 (remote_bfd_iovec_open): Add 'self' argument.
13050 (remote_file_put): Add 'self' argument.
13051 (remote_file_get): Add 'self' argument.
13052 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13053
13054 2014-02-19 Tom Tromey <tromey@redhat.com>
13055
13056 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13057 Add argument.
13058 (target_can_run_breakpoint_commands): Add argument.
13059 * target.c (update_current_target): Update.
13060 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13061 argument.
13062 (remote_insert_breakpoint): Add 'self' argument.
13063 (remote_insert_hw_breakpoint): Add 'self' argument.
13064 (remote_can_run_breakpoint_commands): Add 'self' argument.
13065
13066 2014-02-19 Tom Tromey <tromey@redhat.com>
13067
13068 * target.h (struct target_ops)
13069 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13070 (target_supports_evaluation_of_breakpoint_conditions): Add
13071 argument.
13072 * target.c (update_current_target): Update.
13073 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13074 argument.
13075 (remote_insert_breakpoint): Add 'self' argument.
13076 (remote_insert_hw_breakpoint): Add 'self' argument.
13077 (remote_supports_cond_breakpoints): Add 'self' argument.
13078
13079 2014-02-19 Tom Tromey <tromey@redhat.com>
13080
13081 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13082 argument.
13083 (target_supports_string_tracing): Add argument.
13084 * target.c (update_current_target): Update.
13085 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13086
13087 2014-02-19 Tom Tromey <tromey@redhat.com>
13088
13089 * target.h (struct target_ops)
13090 <to_supports_disable_randomization>: Add argument.
13091 * target.c (find_default_supports_disable_randomization): Add
13092 argument.
13093 (target_supports_disable_randomization): Add argument.
13094 (find_default_supports_disable_randomization): Add 'self'
13095 argument.
13096 * remote.c (extended_remote_supports_disable_randomization): Add
13097 'self' argument.
13098 (remote_supports_disable_randomization): Add 'self' argument.
13099 (extended_remote_create_inferior): Update.
13100 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13101 'self' argument.
13102
13103 2014-02-19 Tom Tromey <tromey@redhat.com>
13104
13105 * target.h (struct target_ops)
13106 <to_supports_enable_disable_tracepoint>: Add argument.
13107 (target_supports_enable_disable_tracepoint): Add argument.
13108 * target.c (update_current_target): Update.
13109 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13110 argument.
13111
13112 2014-02-19 Tom Tromey <tromey@redhat.com>
13113
13114 * target.h (struct target_ops) <to_supports_multi_process>: Add
13115 argument.
13116 (target_supports_multi_process): Add argument.
13117 * target.c (update_current_target): Update.
13118 * remote.c (remote_supports_multi_process): Add 'self' argument.
13119 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13120 argument.
13121 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13122 argument.
13123
13124 2014-02-19 Tom Tromey <tromey@redhat.com>
13125
13126 * target.h (struct target_ops) <to_execution_direction>: Add
13127 argument.
13128 (target_execution_direction): Add argument.
13129 * target.c (default_execution_direction): Add 'self' argument.
13130 * record-full.c (record_full_execution_direction): Add 'self'
13131 argument.
13132
13133 2014-02-19 Tom Tromey <tromey@redhat.com>
13134
13135 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13136 argument.
13137 (target_can_execute_reverse): Add argument.
13138 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13139 * record-full.c (record_full_can_execute_reverse): Add 'self'
13140 argument.
13141 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13142 argument.
13143
13144 2014-02-19 Tom Tromey <tromey@redhat.com>
13145
13146 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13147 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13148 argument.
13149 (target_get_ada_task_ptid): Add argument.
13150 * target.c (update_current_target): Update.
13151 (default_get_ada_task_ptid): Add 'self' argument.
13152 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13153 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13154 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13155 argument.
13156 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13157 argument.
13158 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13159 argument.
13160 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13161 argument.
13162 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13163 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13164 argument.
13165
13166 2014-02-19 Tom Tromey <tromey@redhat.com>
13167
13168 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13169 (target_goto_bookmark): Add argument.
13170 * target.c (dummy_goto_bookmark): Add 'self' argument.
13171 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13172
13173 2014-02-19 Tom Tromey <tromey@redhat.com>
13174
13175 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13176 (target_get_bookmark): Add argument.
13177 * target.c (dummy_get_bookmark): Add 'self' argument.
13178 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13179
13180 2014-02-19 Tom Tromey <tromey@redhat.com>
13181
13182 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13183 argument.
13184 (target_make_corefile_notes): Add argument.
13185 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13186 * procfs.c (procfs_make_note_section): Add 'self' argument.
13187 (procfs_make_note_section): Add 'self' argument.
13188 (procfs_make_note_section): Add 'self' argument.
13189 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13190 argument.
13191 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13192 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13193 * exec.c (exec_make_note_section): Add 'self' argument.
13194 (exec_make_note_section): Add 'self' argument.
13195
13196 2014-02-19 Tom Tromey <tromey@redhat.com>
13197
13198 * target.h (struct target_ops) <to_find_memory_regions>: Add
13199 argument.
13200 (target_find_memory_regions): Add argument.
13201 * target.c (dummy_find_memory_regions): Add 'self' argument.
13202 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13203 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13204 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13205 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13206 * exec. (exec_do_find_memory_regions): New global.
13207 (exec_set_find_memory_regions): Rewrite.
13208 (exec_find_memory_regions): New function.
13209 (init_exec_ops): Use exec_find_memory_regions.
13210
13211 2014-02-19 Tom Tromey <tromey@redhat.com>
13212
13213 * target.h (struct target_ops) <to_supports_non_stop>: Add
13214 argument.
13215 * target.c (find_default_supports_non_stop): Add argument.
13216 (target_supports_non_stop): Add argument.
13217 (find_default_supports_non_stop): Add 'self' argument.
13218 * remote.c (remote_supports_non_stop): Add 'self' argument.
13219 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13220
13221 2014-02-19 Tom Tromey <tromey@redhat.com>
13222
13223 * target.h (struct target_ops) <to_log_command>: Add argument.
13224 (target_log_command): Add argument.
13225 * serial.h (serial_log_command): Add 'self' argument.
13226 * serial.c (serial_log_command): Add 'self' argument.
13227
13228 2014-02-19 Tom Tromey <tromey@redhat.com>
13229
13230 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13231 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13232 argument.
13233 (target_pid_to_exec_file): Add argument.
13234 * target.c (debug_to_pid_to_exec_file): Add argument.
13235 (update_current_target): Update.
13236 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13237 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13238 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13239 (linux_handle_extended_wait): Update.
13240 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13241 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13242 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13243 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13244
13245 2014-02-19 Tom Tromey <tromey@redhat.com>
13246
13247 * target.h (struct target_ops) <to_rcmd>: Add argument.
13248 (target_rcmd): Add argument.
13249 * target.c (debug_to_rcmd): Add argument.
13250 (update_current_target, do_monitor_command): Update.
13251 * remote.c (remote_rcmd): Add 'self' argument.
13252 * monitor.c (monitor_rcmd): Add 'self' argument.
13253
13254 2014-02-19 Tom Tromey <tromey@redhat.com>
13255
13256 * windows-nat.c (windows_stop): Add 'self' argument.
13257 * target.h (struct target_ops) <to_stop>: Add argument.
13258 * target.c (target_stop): Add argument.
13259 (debug_to_stop): Add argument.
13260 (update_current_target): Update.
13261 * remote.c (remote_stop): Add 'self' argument.
13262 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13263 (gdbsim_cntrl_c): Update.
13264 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13265 * procfs.c (procfs_stop): Add 'self' argument.
13266 * nto-procfs.c (procfs_stop): Add 'self' argument.
13267 * monitor.c (monitor_stop): Add 'self' argument.
13268 (monitor_open): Update.
13269 * linux-nat.c (linux_nat_stop): Add argument.
13270 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13271 * gnu-nat.c (gnu_stop): Add 'self' argument.
13272 * darwin-nat.c (darwin_stop): Add 'self' argument.
13273
13274 2014-02-19 Tom Tromey <tromey@redhat.com>
13275
13276 * target.h (struct target_ops) <to_thread_name>: Add argument.
13277 * target.c (target_thread_name): Add argument.
13278 (update_current_target): Update.
13279 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13280
13281 2014-02-19 Tom Tromey <tromey@redhat.com>
13282
13283 * target.h (struct target_ops) <to_extra_thread_info>: Add
13284 argument.
13285 (target_extra_thread_info): Add argument.
13286 * target.c (update_current_target): Update.
13287 * remote.c (remote_threads_extra_info): Add 'self' argument.
13288 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13289 argument.
13290 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13291 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13292 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13293 argument.
13294 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13295 argument.
13296 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13297 argument.
13298 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13299 argument.
13300
13301 2014-02-19 Tom Tromey <tromey@redhat.com>
13302
13303 * target.h (struct target_ops) <to_program_signals>: Add argument.
13304 * target.c (target_program_signals): Add argument.
13305 * remote.c (remote_program_signals): Add 'self' argument.
13306
13307 2014-02-19 Tom Tromey <tromey@redhat.com>
13308
13309 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13310 * target.c (target_pass_signals): Add argument.
13311 * remote.c (remote_pass_signals): Add 'self' argument.
13312 (remote_start_remote): Update.
13313 * procfs.c (procfs_pass_signals): Add 'self' argument.
13314 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13315 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13316 (linux_nat_create_inferior, linux_nat_attach): Update.
13317
13318 2014-02-19 Tom Tromey <tromey@redhat.com>
13319
13320 * windows-nat.c (windows_can_run): Add 'self' argument.
13321 * target.h (struct target_ops) <to_can_run>: Add argument.
13322 (target_can_run): Add argument.
13323 * target.c (debug_to_can_run): Add argument.
13324 (update_current_target): Update.
13325 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13326 * inf-child.c (inf_child_can_run): Add 'self' argument.
13327 * go32-nat.c (go32_can_run): Add 'self' argument.
13328
13329 2014-02-19 Tom Tromey <tromey@redhat.com>
13330
13331 * target.h (struct target_ops) <to_has_exited>: Add argument.
13332 (target_has_exited): Add argument.
13333 * target.c (debug_to_has_exited): Add argument.
13334 (update_current_target): Update.
13335
13336 2014-02-19 Tom Tromey <tromey@redhat.com>
13337
13338 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13339 argument.
13340 (target_set_syscall_catchpoint): Add argument.
13341 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13342 argument.
13343 * target.c (update_current_target): Update.
13344
13345 2014-02-19 Tom Tromey <tromey@redhat.com>
13346
13347 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13348 argument.
13349 (target_remove_exec_catchpoint): Add argument.
13350 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13351 (update_current_target): Update.
13352 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13353 argument.
13354
13355 2014-02-19 Tom Tromey <tromey@redhat.com>
13356
13357 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13358 argument.
13359 (target_insert_exec_catchpoint): Add argument.
13360 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13361 (update_current_target): Update.
13362 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13363 argument.
13364
13365 2014-02-19 Tom Tromey <tromey@redhat.com>
13366
13367 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13368 argument.
13369 (target_remove_vfork_catchpoint): Add argument.
13370 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13371 (update_current_target): Update.
13372 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13373 argument.
13374
13375 2014-02-19 Tom Tromey <tromey@redhat.com>
13376
13377 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13378 argument.
13379 (target_insert_vfork_catchpoint): Add argument.
13380 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13381 (update_current_target): Update.
13382 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13383 argument.
13384
13385 2014-02-19 Tom Tromey <tromey@redhat.com>
13386
13387 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13388 argument.
13389 (target_remove_fork_catchpoint): Add argument.
13390 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13391 (update_current_target): Update.
13392 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13393 argument.
13394
13395 2014-02-19 Tom Tromey <tromey@redhat.com>
13396
13397 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13398 argument.
13399 (target_insert_fork_catchpoint): Add argument.
13400 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13401 (update_current_target): Update.
13402 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13403 argument.
13404
13405 2014-02-19 Tom Tromey <tromey@redhat.com>
13406
13407 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13408 argument.
13409 (target_post_startup_inferior): Add argument.
13410 * target.c (debug_to_post_startup_inferior): Add argument.
13411 (update_current_target): Update.
13412 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13413 argument.
13414 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13415 argument.
13416 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13417 argument.
13418 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13419 argument.
13420 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13421 'self' argument.
13422 (super_post_startup_inferior): Likewise.
13423 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13424 'self' argument.
13425 (super_post_startup_inferior): Likewise.
13426 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13427 Add 'self' argument.
13428 (super_post_startup_inferior): Likewise.
13429
13430 2014-02-19 Tom Tromey <tromey@redhat.com>
13431
13432 * target.h (struct target_ops) <to_load>: Add argument.
13433 * target.c (target_load): Add argument.
13434 (debug_to_load): Add argument.
13435 (update_current_target): Update.
13436 * remote.c (remote_load): Add 'self' argument.
13437 * remote-sim.c (gdbsim_load): Add 'self' argument.
13438 * remote-mips.c (mips_load): Add 'self' argument.
13439 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13440 * monitor.c (monitor_load): Add 'self' argument.
13441 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13442
13443 2014-02-19 Tom Tromey <tromey@redhat.com>
13444
13445 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13446 (target_terminal_info): Add argument.
13447 * target.c (debug_to_terminal_info): Add argument.
13448 (default_terminal_info): Likewise.
13449 * inflow.c (child_terminal_info): Add 'self' argument.
13450 * inferior.h (child_terminal_info): Add 'self' argument.
13451 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13452
13453 2014-02-19 Tom Tromey <tromey@redhat.com>
13454
13455 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13456 argument.
13457 (target_terminal_save_ours): Add argument.
13458 * target.c (debug_to_terminal_save_ours): Add argument.
13459 (update_current_target): Update.
13460 * inflow.c (terminal_save_ours): Add 'self' argument.
13461 * inferior.h (terminal_save_ours): Add 'self' argument.
13462
13463 2014-02-19 Tom Tromey <tromey@redhat.com>
13464
13465 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13466 (target_terminal_ours): Add argument.
13467 * target.c (debug_to_terminal_ours): Add argument.
13468 (update_current_target): Update.
13469 * remote.c (remote_terminal_ours): Add 'self' argument.
13470 (remote_close): Update.
13471 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13472 * inflow.c (terminal_ours): Add 'self' argument.
13473 * inferior.h (terminal_ours): Add 'self' argument.
13474 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13475
13476 2014-02-19 Pedro Alves <palves@redhat.com>
13477 Tom Tromey <tromey@redhat.com>
13478
13479 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13480 argument.
13481 (target_terminal_ours_for_output): Add argument.
13482 * target.c (debug_to_terminal_ours_for_output): Add argument.
13483 (update_current_target): Update.
13484 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13485 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13486 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13487
13488 2014-02-19 Tom Tromey <tromey@redhat.com>
13489
13490 * target.h (struct target_ops) <to_terminal_inferior>: Add
13491 argument.
13492 * target.c (target_terminal_inferior): Add argument.
13493 (update_current_target): Update.
13494 * remote.c (remote_terminal_inferior): Add 'self' argument.
13495 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13496 * inflow.c (terminal_inferior): Add 'self' argument.
13497 * inferior.h (terminal_inferior): Add 'self' argument.
13498 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13499 (go32_terminal_inferior): Add 'self' argument.
13500
13501 2014-02-19 Tom Tromey <tromey@redhat.com>
13502
13503 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13504 (target_terminal_init): Add argument.
13505 * target.c (debug_to_terminal_init): Add argument.
13506 (update_current_target): Update.
13507 * inflow.c (terminal_init_inferior): Add 'self' argument.
13508 * inferior.h (terminal_init_inferior): Add 'self' argument.
13509 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13510 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13511
13512 2014-02-19 Tom Tromey <tromey@redhat.com>
13513
13514 * target.h (struct target_ops)
13515 <to_can_accel_watchpoint_condition>: Add argument.
13516 (target_can_accel_watchpoint_condition): Add argument.
13517 * target.c (debug_to_can_accel_watchpoint_condition): Add
13518 argument.
13519 (update_current_target): Update.
13520 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13521 'self' argument.
13522
13523 2014-02-19 Tom Tromey <tromey@redhat.com>
13524
13525 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13526 Add argument.
13527 (target_region_ok_for_hw_watchpoint): Add argument.
13528 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13529 (default_region_ok_for_hw_watchpoint): Add argument.
13530 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13531 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13532 argument.
13533 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13534 argument.
13535 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13536 argument.
13537 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13538 'self' argument.
13539 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13540 'self' argument.
13541 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13542 'self' argument.
13543 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13544 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13545 'self' argument.
13546 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13547 Add 'self' argument.
13548
13549 2014-02-19 Tom Tromey <tromey@redhat.com>
13550
13551 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13552 argument.
13553 (target_insert_watchpoint): Add argument.
13554 * target.c (debug_to_insert_watchpoint): Add argument.
13555 (update_current_target): Update.
13556 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13557 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13558 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13559 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13560 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13561 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13562 argument.
13563 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13564 (procfs_insert_hw_watchpoint): Add 'self' argument.
13565 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13566 argument.
13567 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13568 argument.
13569 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13570 argument.
13571 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13572 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13573 argument.
13574 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13575 'self' argument.
13576
13577 2014-02-19 Tom Tromey <tromey@redhat.com>
13578
13579 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13580 argument.
13581 (target_remove_watchpoint): Add argument.
13582 * target.c (debug_to_remove_watchpoint): Add argument.
13583 (update_current_target): Update.
13584 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13585 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13586 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13587 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13588 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13589 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13590 argument.
13591 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13592 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13593 argument.
13594 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13595 argument.
13596 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13597 argument.
13598 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13599 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13600 argument.
13601 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13602 'self' argument.
13603
13604 2014-02-19 Tom Tromey <tromey@redhat.com>
13605
13606 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13607 argument.
13608 (target_remove_hw_breakpoint): Add argument.
13609 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13610 (update_current_target): Update.
13611 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13612 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13613 argument.
13614 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13615 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13616 argument.
13617 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13618 'self' argument.
13619
13620 2014-02-19 Tom Tromey <tromey@redhat.com>
13621
13622 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13623 argument.
13624 (target_insert_hw_breakpoint): Add argument.
13625 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13626 (update_current_target): Update.
13627 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13628 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13629 argument.
13630 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13631 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13632 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13633 argument.
13634 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13635 'self' argument.
13636
13637 2014-02-19 Tom Tromey <tromey@redhat.com>
13638
13639 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13640 argument.
13641 (target_can_use_hardware_watchpoint): Add argument.
13642 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13643 (update_current_target): Update.
13644 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13645 argument.
13646 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13647 argument.
13648 * remote.c (remote_check_watch_resources): Add 'self' argument.
13649 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13650 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13651 argument.
13652 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13653 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13654 argument.
13655 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13656 argument.
13657 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13658 argument.
13659 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13660 argument.
13661 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13662 argument.
13663 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13664 argument.
13665 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13666 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13667 argument.
13668 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13669 'self' argument.
13670
13671 2014-02-19 Tom Tromey <tromey@redhat.com>
13672
13673 * target.h (struct target_ops) <to_post_attach>: Add argument.
13674 (target_post_attach): Add argument.
13675 * target.c (debug_to_post_attach): Add argument.
13676 (update_current_target): Update.
13677 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13678 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13679 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13680 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13681 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13682
13683 2014-02-19 Tom Tromey <tromey@redhat.com>
13684
13685 * windows-nat.c (windows_close): Add 'self' argument.
13686 * tracepoint.c (tfile_close): Add 'self' argument.
13687 * target.h (struct target_ops) <to_close>: Add argument.
13688 * target.c (target_close): Add argument.
13689 (update_current_target): Update.
13690 * remote.c (remote_close): Add 'self' argument.
13691 * remote-sim.c (gdbsim_close): Add 'self' argument.
13692 * remote-mips.c (mips_close): Add 'self' argument.
13693 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13694 * record-full.c (record_full_close): Add 'self' argument.
13695 * record-btrace.c (record_btrace_close): Add 'self' argument.
13696 * monitor.h (monitor_close): Add 'self' argument.
13697 * monitor.c (monitor_close): Add 'self' argument.
13698 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13699 * linux-nat.c (linux_nat_close): Add argument.
13700 * go32-nat.c (go32_close): Add 'self' argument.
13701 * exec.c (exec_close_1): Add 'self' argument.
13702 * ctf.c (ctf_close): Add 'self' argument.
13703 * corelow.c (core_close): Add 'self' argument.
13704 (core_close_cleanup): Update.
13705 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13706 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13707
13708 2014-02-19 Tom Tromey <tromey@redhat.com>
13709
13710 * remote.c (remote_load): New function.
13711 (init_remote_ops): Use it.
13712
13713 2014-02-19 Tom Tromey <tromey@redhat.com>
13714
13715 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13716 argument.
13717 * common/linux-btrace.h (linux_supports_btrace): Update.
13718 * remote.c (remote_supports_btrace): Add "self" argument.
13719 * target-delegates.c: Rebuild.
13720 * target.c (target_supports_btrace): Remove.
13721 * target.h (struct target_ops) <to_supports_btrace>: Add
13722 target_ops argument.
13723 (target_supports_btrace): New define.
13724
13725 2014-02-19 Tom Tromey <tromey@redhat.com>
13726
13727 * record-full.c (record_full_beneath_to_resume_ops)
13728 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13729 (record_full_beneath_to_wait)
13730 (record_full_beneath_to_store_registers_ops)
13731 (record_full_beneath_to_store_registers)
13732 (record_full_beneath_to_xfer_partial_ops)
13733 (record_full_beneath_to_xfer_partial)
13734 (record_full_beneath_to_insert_breakpoint_ops)
13735 (record_full_beneath_to_insert_breakpoint)
13736 (record_full_beneath_to_remove_breakpoint_ops)
13737 (record_full_beneath_to_remove_breakpoint)
13738 (record_full_beneath_to_stopped_by_watchpoint)
13739 (record_full_beneath_to_stopped_data_address)
13740 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13741 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13742 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13743 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13744 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13745 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13746 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13747 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13748 (record_full_resume, record_full_wait_1)
13749 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13750 (record_full_store_registers, record_full_xfer_partial)
13751 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13752 (record_full_async, record_full_core_xfer_partial): Use target
13753 delegation.
13754 * target-delegates.c: Rebuild.
13755 * target.c (current_xfer_partial): Remove.
13756 (update_current_target): Do not INHERIT or de_fault
13757 to_insert_breakpoint, to_remove_breakpoint,
13758 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13759 to_is_async_p, to_async. Do not set to_xfer_partial field.
13760 (default_xfer_partial): Simplify.
13761 (current_xfer_partial): Remove.
13762 (target_wait, target_resume): Simplify.
13763 (find_default_can_async_p, find_default_is_async_p): Update.
13764 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13765 to_xfer_partial, to_stopped_by_watchpoint,
13766 to_stopped_data_address.
13767 (target_store_registers): Simplify.
13768 (forward_target_remove_breakpoint)
13769 (forward_target_insert_breakpoint): Remove.
13770 (target_remove_breakpoint, target_insert_breakpoint)
13771 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13772 * target.h (struct target_ops) <to_resume, to_wait,
13773 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13774 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13775 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13776 markup.
13777 (forward_target_remove_breakpoint)
13778 (forward_target_insert_breakpoint): Remove.
13779 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13780 directly.
13781 (record_btrace_insert_breakpoint): Delegate directly.
13782
13783 2014-02-19 Tom Tromey <tromey@redhat.com>
13784
13785 PR build/7701:
13786 * target-delegates.c: New file.
13787 * target.c: Include target-delegates.c.
13788 (init_dummy_target): Call install_dummy_methods.
13789 (complete_target_initialization): Call install_delegators.
13790 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13791 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13792 * make-target-delegates: New file.
13793
13794 2014-02-19 Tom Tromey <tromey@redhat.com>
13795
13796 * record.c (find_record_target): Use find_target_at.
13797 * target.c (find_target_at): New function.
13798 * target.h (find_target_at): Declare.
13799
13800 2014-02-19 Tom Tromey <tromey@redhat.com>
13801
13802 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13803 Add 'ops' argument.
13804 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13805 'ops' argument.
13806 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13807 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13808 'ops' argument.
13809 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13810 argument.
13811 * linux-nat.c (save_sigtrap): Update.
13812 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13813 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13814 (linux_nat_close): Update.
13815 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13816 argument.
13817 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13818 argument.
13819 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13820 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13821 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13822 (tmp_to_async): Add 'ops' argument.
13823 (record_full_stopped_by_watchpoint, record_full_async)
13824 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13825 argument.
13826 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13827 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13828 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13829 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13830 (remote_is_async_p, remote_async): Add 'ops' argument.
13831 (remote_stopped_data_address): Update.
13832 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13833 * target.c (update_current_target)
13834 (find_default_can_async_p, find_default_is_async_p): Update.
13835 (init_dummy_target): Update.
13836 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13837 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13838 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13839 (target_can_async_p, target_is_async_p, target_async)
13840 (target_stopped_by_watchpoint): Update.
13841
13842 2014-02-19 Yao Qi <yao@codesourcery.com>
13843
13844 PR gdb/16220
13845 * gdbarch.sh: Remove startup_gdbarch.
13846 * gdbarch.c: Regenerated.
13847 * gdbarch.h: Likewise.
13848
13849 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13850
13851 * rl78-tdep.c (rl78_g10_register_name): New function.
13852 (rl78_return_value): Add g10 support.
13853 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13854 g10.
13855
13856 2014-02-17 Doug Evans <xdje42@gmail.com>
13857
13858 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13859 (SUBDIR_GUILE_SRCS): Ditto.
13860 (scm-gsmob.o): Ditto.
13861
13862 2014-02-17 Yao Qi <yao@codesourcery.com>
13863
13864 * gnu-nat.c (ILL_RPC): Declare defined function.
13865
13866 2014-02-17 Yao Qi <yao@codesourcery.com>
13867
13868 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13869 mach_msg_type_number_t.
13870 (gnu_write_inferior): Likewise.
13871
13872 2014-02-17 Yao Qi <yao@codesourcery.com>
13873
13874 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13875 in format string.
13876 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13877 (inf_validate_procs, inf_signal): Likewise.
13878 (S_exception_raise_request): Likewise.
13879 (do_mach_notify_dead_name): Likewise.
13880 (steal_exc_port): Likewise.
13881 (gnu_read_inferior): Change 'copy_count''s type to
13882 mach_msg_type_number_t.
13883 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13884 format string.
13885
13886 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13887
13888 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13889 flag. Adjust all users; in particular...
13890 (gnu_wait): ..., don't decrement its value in here...
13891 (gnu_create_inferior): ..., and instead set the flag in here,
13892 around the startup_inferior call, and call that one with
13893 START_INFERIOR_TRAPS_EXPECTED.
13894
13895 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13896 (ILL_RPC): ... new macro.
13897 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13898 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13899 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13900 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13901 functions with ILL_RPC macro.
13902 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13903 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13904 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13905 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13906 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13907 (S_proc_getlogin_reply, S_proc_getsid_reply)
13908 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13909 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13910 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13911 (S_proc_getnports_reply, S_proc_is_important_reply)
13912 (S_proc_get_code_reply): New stub functions, generated with
13913 ILL_RPC macro.
13914
13915 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13916 collected the type check structures.
13917
13918 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13919
13920 2014-02-14 Doug Evans <dje@google.com>
13921
13922 * target.c (target_write_partial): Fix result type.
13923
13924 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13925
13926 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13927 the proper offsets to access fpregset_t.
13928
13929 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13930
13931 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13932 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13933 * h8300-tdep.c (setmachinelist): Remove global.
13934 * hppa-tdep.c (hppa_sigtramp): Remove global.
13935 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13936 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13937 * ravenscar-thread.c (update_target_observer): Remove global.
13938 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13939
13940 2014-02-12 Tom Tromey <tromey@redhat.com>
13941
13942 * common/rsp-low.c: Update comments.
13943 * common/rsp-low.h: Update comments.
13944
13945 2014-02-12 Tom Tromey <tromey@redhat.com>
13946
13947 * common/rsp-low.c (convert_ascii_to_int): Remove.
13948 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13949
13950 2014-02-12 Tom Tromey <tromey@redhat.com>
13951
13952 * common/rsp-low.h (unhexify): Don't declare.
13953 * common/rsp-low.c (unhexify): Remove.
13954
13955 2014-02-12 Tom Tromey <tromey@redhat.com>
13956
13957 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13958 * common/rsp-low.c (convert_int_to_ascii): Remove.
13959
13960 2014-02-12 Tom Tromey <tromey@redhat.com>
13961
13962 * common/rsp-low.h (hexify): Don't declare.
13963 * common/rsp-low.c (hexify): Remove.
13964
13965 2014-02-12 Tom Tromey <tromey@redhat.com>
13966
13967 * common/rsp-low.c (hexify): Never take strlen of argument.
13968
13969 2014-02-12 Tom Tromey <tromey@redhat.com>
13970
13971 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13972 * remote.c (extended_remote_run, remote_rcmd)
13973 (remote_download_trace_state_variable, remote_save_trace_data)
13974 (remote_set_trace_notes): Update.
13975 * tracepoint.c (encode_source_string, tfile_write_status)
13976 (tfile_write_uploaded_tsv): Update.
13977
13978 2014-02-12 Tom Tromey <tromey@redhat.com>
13979
13980 * tracepoint.c: Include rsp-low.h.
13981 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13982 * remote.c: Include rsp-low.h.
13983 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13984 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13985 (remote_unescape_input): Move to common/rsp-low.c.
13986 * common/rsp-low.h: New file.
13987 * common/rsp-low.c: New file.
13988 * Makefile.in (SFILES): Add common/rsp-low.c.
13989 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13990 (COMMON_OBS): Add rsp-low.o.
13991 (rsp-low.o): New target.
13992
13993 2014-02-12 Tom Tromey <tromey@redhat.com>
13994
13995 * utils.h: Include print-utils.h.
13996 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13997 (int_string, core_addr_to_string, core_addr_to_string_nz)
13998 (hex_string, hex_string_custom): Don't declare.
13999 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14000 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14001 (hex_string_custom, int_string, core_addr_to_string)
14002 (core_addr_to_string_nz, host_address_to_string): Move to
14003 common/print-utils.c.
14004 * common/print-utils.h: New file.
14005 * common/print-utils.c: New file
14006 * Makefile.in (SFILES): Add common/print-utils.c.
14007 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14008 (COMMON_OBS): Add print-utils.o.
14009 (print-utils.o): New target.
14010
14011 2014-02-12 Tom Tromey <tromey@redhat.com>
14012
14013 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14014
14015 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14016
14017 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14018
14019 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14020
14021 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14022 if a PT_IO ptrace request returns sucessfully but indicates that 0
14023 bytes were transferred.
14024
14025 2014-02-12 Pedro Alves <palves@redhat.com>
14026 Kevin Buettner <kevinb@redhat.com>
14027
14028 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14029 TYPE_INSTANCE_FLAG_CODE_SPACE.
14030
14031 2014-02-12 Pedro Alves <palves@redhat.com>
14032
14033 * h8300-tdep.c (pseudo_from_raw_register)
14034 (raw_from_pseudo_register): New functions.
14035 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14036 them.
14037
14038 2014-02-12 Pedro Alves <palves@redhat.com>
14039
14040 * h8300-tdep.c (h8300_register_sim_regno): New function.
14041 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14042 gdbarch_register_sim_regno hook.
14043
14044 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14045
14046 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14047
14048 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14049
14050 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14051
14052 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14053
14054 * obsd-tdep.h (obsd_init_abi): New prototype.
14055 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14056 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14057 (obsd_init_abi): New functions.
14058 * i386obsd-tdep.c: Include "obsd-tdep.h".
14059 (i386obsd_init_abi): Call obsd_init_abi.
14060 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14061 (amd64obsd_init_abi): Call obsd_init_abi.
14062 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14063 obsd-tdep.c to gdb_target_obs.
14064
14065 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14066
14067 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14068 double float arguments to 16-byte in the argument slots.
14069
14070 2014-02-11 Doug Evans <xdje42@gmail.com>
14071
14072 * configure.ac: Don't crash if pkg-config is not found and guile
14073 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14074 in guile checks.
14075 * configure: Regenerate.
14076
14077 2014-02-11 Yao Qi <yao@codesourcery.com>
14078
14079 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14080 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14081 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14082 * gnu-nat.c (gnu_xfer_memory): Likewise.
14083 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14084 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14085 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14086 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14087
14088 2014-02-11 Yao Qi <yao@codesourcery.com>
14089
14090 * target.h (enum target_xfer_error): Rename to ...
14091 (enum target_xfer_status): ... it. New. All users updated.
14092 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14093 New.
14094 (TARGET_XFER_STATUS_ERROR_P): New macro.
14095 (target_xfer_error_to_string): Remove declaration.
14096 (target_xfer_status_to_string): Declare.
14097 (target_xfer_partial_ftype): Adjust it.
14098 (struct target_ops) <to_xfer_partial>: Return
14099 target_xfer_status. Add argument xfered_len. Update
14100 comments.
14101 * target.c (target_xfer_error_to_string): Rename to ...
14102 (target_xfer_status_to_string): ... it. New. All callers
14103 updated.
14104 (target_read_live_memory): Likewise. Call target_xfer_partial
14105 instead of target_read.
14106 (memory_xfer_live_readonly_partial): Return
14107 target_xfer_status. Add argument xfered_len.
14108 (raw_memory_xfer_partial): Likewise.
14109 (memory_xfer_partial_1): Likewise.
14110 (memory_xfer_partial): Likewise.
14111 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14112 properly. Update debug message.
14113 (default_xfer_partial, current_xfer_partial): Likewise.
14114 (target_write_partial): Likewise.
14115 (target_read_partial): Likewise. All callers updated.
14116 (read_whatever_is_readable): Likewise.
14117 (target_write_with_progress): Likewise.
14118 (target_read_alloc_1): Likewise.
14119
14120 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14121 * auxv.c (procfs_xfer_auxv): Likewise.
14122 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14123 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14124 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14125 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14126 * corefile.c (read_memory): Adjust.
14127 * corelow.c (core_xfer_partial): Likewise.
14128 * ctf.c (ctf_xfer_partial): Likewise.
14129 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14130 updated.
14131 (darwin_xfer_partial): Likewise.
14132 * exec.c (section_table_xfer_memory_partial): Likewise. All
14133 callers updated.
14134 (exec_xfer_partial): Likewise.
14135 * exec.h (section_table_xfer_memory_partial): Update
14136 declaration.
14137 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14138 negative.
14139 (gnu_xfer_partial): Likewise.
14140 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14141 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14142 (ia64_hpux_xfer_solib_got): Likewise.
14143 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14144 type of 'partial_len' to ULONGEST.
14145 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14146 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14147 (linux_nat_xfer_partial): Likewise.
14148 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14149 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14150 * monitor.c (monitor_xfer_memory): Likewise.
14151 (monitor_xfer_partial): Likewise.
14152 * procfs.c (procfs_xfer_partial): Likewise.
14153 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14154 * record-full.c (record_full_xfer_partial): Likewise.
14155 (record_full_core_xfer_partial): Likewise.
14156 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14157 (gdbsim_xfer_partial): Likewise.
14158 * remote.c (remote_write_bytes_aux): Likewise. All callers
14159 updated.
14160 (remote_write_bytes, remote_read_bytes): Likewise. All
14161 callers updated.
14162 (remote_flash_erase): Likewise. All callers updated.
14163 (remote_write_qxfer): Likewise. All callers updated.
14164 (remote_read_qxfer): Likewise. All callers updated.
14165 (remote_xfer_partial): Likewise.
14166 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14167 (rs6000_xfer_shared_libraries): Likewise.
14168 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14169 (sol_thread_xfer_partial): Likewise.
14170 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14171 (sparc_xfer_partial): Likewise.
14172 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14173 updated.
14174 (spu_xfer_partial): Likewise.
14175 * spu-multiarch.c (spu_xfer_partial): Likewise.
14176 * tracepoint.c (tfile_xfer_partial): Likewise.
14177 * windows-nat.c (windows_xfer_memory): Likewise.
14178 (windows_xfer_shared_libraries): Likewise.
14179 (windows_xfer_partial): Likewise.
14180 * valprint.c: Replace 'target_xfer_error' with
14181 'target_xfer_status' in comments.
14182
14183 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14184
14185 Checked in by Joel Brobecker <brobecker@adacore.com>.
14186 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14187
14188 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14189
14190 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14191 function parameters.
14192
14193 2014-02-10 Will Newton <will.newton@linaro.org>
14194
14195 * elfread.c (elf_rel_plt_read): Look for a .got section if
14196 looking up .got.plt fails.
14197 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14198 on address passed to elf_gnu_ifunc_record_cache.
14199 (elf_gnu_ifunc_resolve_addr): Likewise.
14200 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14201
14202 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14203
14204 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14205 (X_RETTURN): New macro.
14206 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14207
14208 * sparc64-tdep.c (sparc64_init_abi): Hook
14209 sparc_in_function_epilogue_p.
14210
14211 2014-02-10 Gary Benson <gbenson@redhat.com>
14212
14213 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14214 Rename name_matcher to symbol_matcher.
14215
14216 2014-02-10 Gary Benson <gbenson@redhat.com>
14217
14218 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14219 Use expand_symtabs_file_matcher_ftype and
14220 expand_symtabs_symbol_matcher_ftype.
14221
14222 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14223
14224 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14225 (struct ada_symbol_cache): New.
14226 (ada_free_symbol_cache): Forward declare.
14227 (struct ada_pspace_data): New.
14228 (ada_pspace_data_handle): New static global.
14229 (get_ada_pspace_data, ada_pspace_data_cleanup)
14230 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14231 (cache_space, cache): Delete, now folded inside struct
14232 ada_pspace_data.
14233 (ada_get_symbol_cache): New function.
14234 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14235 implementation.
14236 (_initialize_ada_language): Remove initialization of cache_space.
14237 Move call to observer_attach_inferior_exit up, grouping it
14238 with the other observer registrations inside this function.
14239 Rename command to be more general. Add call to
14240 register_program_space_data_with_cleanup.
14241
14242 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14243
14244 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14245 ada_new_objfile_observer.
14246 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14247 (_initialize_tasks): Update uses of ada_new_objfile_observer
14248 and ada_tasks_normal_stop_observer.
14249
14250 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14251
14252 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14253 returned by the 'Length attribute to integer.
14254
14255 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14256
14257 * ada-lang.c (_initialize_ada_language): Initialize
14258 cache_space obstack.
14259
14260 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14261
14262 * ada-lang.c (HASH_SIZE): New macro.
14263 (struct cache_entry): New type.
14264 (cache_space, cache): New static globals.
14265 (ada_clear_symbol_cache, find_entry): New functions.
14266 (lookup_cached_symbol, cache_symbol): Implement.
14267 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14268 (_initialize_ada_language): Attach ada_new_objfile_observer
14269 and ada_free_objfile_observer.
14270
14271 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14272
14273 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14274 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14275 struct block * parameter.
14276 (ada_lookup_symbol_list_worker): Constify local variable "block".
14277 Remove cast which is no longer necessary.
14278
14279 2014-02-10 Doug Evans <xdje42@gmail.com>
14280
14281 Add Guile as an extension language.
14282 * NEWS: Mention Guile scripting.
14283 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14284 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14285 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14286 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14287 (CLIBS): Add GUILE_LIBS.
14288 (install-guile): New rule.
14289 (guile.o): New rule.
14290 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14291 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14292 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14293 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14294 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14295 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14296 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14297 * configure.ac: New option --with-guile.
14298 * configure: Regenerate.
14299 * config.in: Regenerate.
14300 * auto-load.c: Remove #include "python/python.h". Add #include
14301 "gdb/section-scripts.h".
14302 (source_section_scripts): Handle Guile scripts.
14303 (_initialize_auto_load): Add name of Guile objfile script to
14304 scripts-directory help text.
14305 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14306 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14307 (struct breakpoint): New member scm_bp_object.
14308 * defs.h (enum command_control_type): New value guile_control.
14309 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14310 "extension.h".
14311 (show_user): Update comment.
14312 (_initialize_cli_cmds): Update help text for "show user". Update help
14313 text for max-user-call-depth.
14314 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14315 "extension.h".
14316 (multi_line_command_p): Add guile_control.
14317 (print_command_lines): Handle guile_control.
14318 (execute_control_command, recurse_read_control_structure): Ditto.
14319 (process_next_line): Recognize "guile" commands.
14320 * disasm.c (gdb_disassemble_info): Make non-static.
14321 * disasm.h: #include "dis-asm.h".
14322 (struct gdbarch): Add forward decl.
14323 (gdb_disassemble_info): Declare.
14324 * extension.c: #include "guile/guile.h".
14325 (extension_languages): Add guile.
14326 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14327 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14328 * gdbtypes.c (get_unsigned_type_max): New function.
14329 (get_signed_type_minmax): New function.
14330 * gdbtypes.h (get_unsigned_type_max): Declare.
14331 (get_signed_type_minmax): Declare.
14332 * guile/README: New file.
14333 * guile/guile-internal.h: New file.
14334 * guile/guile.c: New file.
14335 * guile/guile.h: New file.
14336 * guile/scm-arch.c: New file.
14337 * guile/scm-auto-load.c: New file.
14338 * guile/scm-block.c: New file.
14339 * guile/scm-breakpoint.c: New file.
14340 * guile/scm-disasm.c: New file.
14341 * guile/scm-exception.c: New file.
14342 * guile/scm-frame.c: New file.
14343 * guile/scm-gsmob.c: New file.
14344 * guile/scm-iterator.c: New file.
14345 * guile/scm-lazy-string.c: New file.
14346 * guile/scm-math.c: New file.
14347 * guile/scm-objfile.c: New file.
14348 * guile/scm-ports.c: New file.
14349 * guile/scm-pretty-print.c: New file.
14350 * guile/scm-safe-call.c: New file.
14351 * guile/scm-string.c: New file.
14352 * guile/scm-symbol.c: New file.
14353 * guile/scm-symtab.c: New file.
14354 * guile/scm-type.c: New file.
14355 * guile/scm-utils.c: New file.
14356 * guile/scm-value.c: New file.
14357 * guile/lib/gdb.scm: New file.
14358 * guile/lib/gdb/boot.scm: New file.
14359 * guile/lib/gdb/experimental.scm: New file.
14360 * guile/lib/gdb/init.scm: New file.
14361 * guile/lib/gdb/iterator.scm: New file.
14362 * guile/lib/gdb/printing.scm: New file.
14363 * guile/lib/gdb/types.scm: New file.
14364 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14365 (VPATH): Add $(GUILE_SRCDIR).
14366 (GUILE_DIR): New variable.
14367 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14368 (all): Add stamp-guile dependency.
14369 (stamp-guile): New rule.
14370 (clean-guile, install-guile, uninstall-guile): New rules.
14371 (install-only): Add install-guile dependency.
14372 (uninstall): Add uninstall-guile dependency.
14373 (clean): Add clean-guile dependency.
14374
14375 2014-02-09 Doug Evans <xdje42@gmail.com>
14376
14377 Revert this patch (which I approved, mea culpa).
14378
14379 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14380
14381 * Makefile.in (all-lib): Remove.
14382 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14383
14384 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14385
14386 Fix Python stack corruption.
14387 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14388 gdb_py_longest.
14389
14390 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14391
14392 * Makefile.in (all-lib): Remove.
14393 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14394
14395 2014-02-07 Doug Evans <dje@google.com>
14396
14397 * extension-priv.h (extension_language_script_ops): Add comment.
14398 (extension_language_ops): Add comment.
14399 (active_ext_lang_state): Fix typo in comment.
14400
14401 2014-02-07 Pedro Alves <palves@redhat.com>
14402
14403 PR breakpoints/16292
14404 * infrun.c (handle_signal_stop) <signal arrives while stepping
14405 over a breakpoint>: Switch back to the stepping thread.
14406
14407 2014-02-07 Yao Qi <yao@codesourcery.com>
14408
14409 * target.c (target_xfer_partial): Return zero if LEN is zero.
14410
14411 2014-02-07 Yao Qi <yao@codesourcery.com>
14412
14413 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14414 (ld_so_xfer_auxv): Likewise.
14415 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14416 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14417 * corelow.c (core_xfer_partial): Likewise.
14418 * ctf.c (ctf_xfer_partial): Likewise.
14419 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14420 (darwin_xfer_partial): Likewise.
14421 * exec.c (exec_xfer_partial): Likewise.
14422 * gnu-nat.c (gnu_xfer_partial): Likewise.
14423 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14424 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14425 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14426 * linux-nat.c (linux_xfer_siginfo): Likewise.
14427 (linux_proc_xfer_spu): Likewise.
14428 * procfs.c (procfs_xfer_partial): Likewise.
14429 * record-full.c (record_full_xfer_partial): Likewise.
14430 (record_full_core_xfer_partial): Likewise.
14431 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14432 * remote.c (remote_write_qxfer): Likewise.
14433 (remote_write_qxfer, remote_read_qxfer): Likewise.
14434 (remote_xfer_partial): Likewise.
14435 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14436 (rs6000_xfer_shared_libraries): Likewise.
14437 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14438 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14439 (spu_xfer_partial): Likewise.
14440 * target.c (memory_xfer_partial_1): Likewise.
14441 * tracepoint.c (tfile_xfer_partial): Likewise.
14442 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14443 (windows_xfer_partial): Likewise.
14444
14445 2014-02-07 Yao Qi <yao@codesourcery.com>
14446
14447 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14448 comments.
14449 (core_xfer_shared_libraries_aix): Likewise.
14450 * gdbarch.c, gdbarch.h: Regenerated.
14451 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14452 ULONGEST. Change 'len_avail' type to ULONGEST.
14453 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14454 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14455 declaration.
14456 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14457
14458 2014-02-07 Yao Qi <yao@codesourcery.com>
14459
14460 * corefile.c (memory_error): Get 'exception' from ERR and pass
14461 'exception' to throw_error.
14462
14463 2014-02-06 Doug Evans <xdje42@gmail.com>
14464
14465 * configure.ac (libpython checking): Remove all but python.o from
14466 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14467 * configure: Regenerate.
14468
14469 * Makefile.in (SFILES): Add extension.c.
14470 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14471 (COMMON_OBS): Add extension.o.
14472 * extension.h: New file.
14473 * extension-priv.h: New file.
14474 * extension.c: New file.
14475
14476 * python/python-internal.h: #include "extension.h".
14477 (gdbpy_auto_load_enabled): Declare.
14478 (gdbpy_apply_val_pretty_printer): Declare.
14479 (gdbpy_apply_frame_filter): Declare.
14480 (gdbpy_preserve_values): Declare.
14481 (gdbpy_breakpoint_cond_says_stop): Declare.
14482 (gdbpy_breakpoint_has_cond): Declare.
14483 (void source_python_script_for_objfile): Delete.
14484 * python/python.c: #include "extension-priv.h".
14485 Delete inclusion of "observer.h".
14486 (extension_language_python): Moved here and renamed from
14487 script_language_python in py-auto-load.c.
14488 Redefined to be of type extension_language_defn.
14489 (python_extension_script_ops): New global.
14490 (python_extension_ops): New global.
14491 (struct python_env): New member previous_active.
14492 (restore_python_env): Call restore_active_ext_lang.
14493 (ensure_python_env): Call set_active_ext_lang.
14494 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14495 New arg extlang.
14496 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14497 New arg extlang.
14498 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14499 New arg extlang.
14500 (gdbpy_eval_from_control_command): Renamed from
14501 eval_python_from_control_command, made static. New arg extlang.
14502 (gdbpy_source_script) Renamed from source_python_script, made static.
14503 New arg extlang.
14504 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14505 result to int. New arg extlang.
14506 (gdbpy_source_objfile_script): Renamed from
14507 source_python_script_for_objfile, made static. New arg extlang.
14508 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14509 static. New args extlang, extlang_printers. Change result type to
14510 "void".
14511 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14512 static. New arg extlang. Rename arg printers to extlang_printers
14513 and change type to ext_lang_type_printers *.
14514 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14515 static. Replace argument arg with extlang, extlang_printers.
14516 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14517 (!HAVE_PYTHON, source_python_script): Delete.
14518 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14519 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14520 (!HAVE_PYTHON, start_type_printers): Delete.
14521 (!HAVE_PYTHON, apply_type_printers): Delete.
14522 (!HAVE_PYTHON, free_type_printers): Delete.
14523 (_initialize_python): Delete call to observer_attach_before_prompt.
14524 (finalize_python): Set/restore active extension language.
14525 (gdbpy_finish_initialization) Renamed from
14526 finish_python_initialization, made static. New arg extlang.
14527 (gdbpy_initialized): New function.
14528 * python/python.h: #include "extension.h". Delete #include
14529 "value.h", "mi/mi-cmds.h".
14530 (extension_language_python): Declare.
14531 (GDBPY_AUTO_FILE_NAME): Delete.
14532 (enum py_bt_status): Moved to extension.h and renamed to
14533 ext_lang_bt_status.
14534 (enum frame_filter_flags): Moved to extension.h.
14535 (enum py_frame_args): Moved to extension.h and renamed to
14536 ext_lang_frame_args.
14537 (finish_python_initialization): Delete.
14538 (eval_python_from_control_command): Delete.
14539 (source_python_script): Delete.
14540 (apply_val_pretty_printer): Delete.
14541 (apply_frame_filter): Delete.
14542 (preserve_python_values): Delete.
14543 (gdbpy_script_language_defn): Delete.
14544 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14545 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14546
14547 * auto-load.c: #include "extension.h".
14548 (GDB_AUTO_FILE_NAME): Delete.
14549 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14550 (script_language_gdb): Delete, moved to extension.c and renamed to
14551 extension_language_gdb.
14552 (source_gdb_script_for_objfile): Delete.
14553 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14554 (loaded_script): Change type of language member to
14555 struct extension_language_defn *.
14556 (init_loaded_scripts_info): Initialize
14557 unsupported_script_warning_printed.
14558 (maybe_add_script): Make static. Change type of language arg to
14559 struct extension_language_defn *.
14560 (clear_section_scripts): Reset unsupported_script_warning_printed.
14561 (auto_load_objfile_script_1): Rewrite to use extension language API.
14562 (auto_load_objfile_script): Make public. Remove support-compiled-in
14563 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14564 (source_section_scripts): Rewrite to use extension language API.
14565 (load_auto_scripts_for_objfile): Rewrite to use
14566 auto_load_scripts_for_objfile.
14567 (collect_matching_scripts_data): Change type of language member to
14568 struct extension_language_defn *.
14569 (auto_load_info_scripts): Change type of language arg to
14570 struct extension_language_defn *.
14571 (unsupported_script_warning_print): New function.
14572 (script_not_found_warning_print): Make static.
14573 (_initialize_auto_load): Rewrite construction of scripts-directory
14574 help.
14575 * auto-load.h (struct objfile): Add forward decl.
14576 (struct script_language): Delete.
14577 (struct auto_load_pspace_info): Add forward decl.
14578 (struct extension_language_defn): Add forward decl.
14579 (maybe_add_script): Delete.
14580 (auto_load_objfile_script): Declare.
14581 (script_not_found_warning_print): Delete.
14582 (auto_load_info_scripts): Update prototype.
14583 (auto_load_gdb_scripts_enabled): Declare.
14584 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14585 auto_load_python_scripts_enabled and made public.
14586 (script_language_python): Delete, moved to python.c.
14587 (gdbpy_script_language_defn): Delete.
14588 (info_auto_load_python_scripts): Update to use
14589 extension_language_python.
14590
14591 * breakpoint.c (condition_command): Replace call to
14592 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14593 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14594 with call to breakpoint_ext_lang_cond_says_stop.
14595 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14596 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14597 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14598 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14599 New arg slang.
14600 (local_setattro): Print name of extension language with existing
14601 stop condition.
14602
14603 * valprint.c (val_print, value_print): Update to call
14604 apply_ext_lang_val_pretty_printer.
14605 * cp-valprint.c (cp_print_value): Update call to
14606 apply_ext_lang_val_pretty_printer.
14607 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14608 (gdbpy_apply_val_pretty_printer): Renamed from
14609 apply_val_pretty_printer. New arg extlang.
14610 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14611
14612 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14613 extension language API.
14614 * cli/cli-script.c (execute_control_command): Update to call
14615 eval_ext_lang_from_control_command.
14616
14617 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14618 enum ext_lang_bt_status values. Update call to
14619 apply_ext_lang_frame_filter.
14620 (mi_cmd_stack_list_locals): Ditto.
14621 (mi_cmd_stack_list_args): Ditto.
14622 (mi_cmd_stack_list_variables): Ditto.
14623 * mi/mi-main.c: Delete #include "python/python-internal.h".
14624 Add #include "extension.h".
14625 (mi_cmd_list_features): Replace reference to python internal variable
14626 gdb_python_initialized with call to ext_lang_initialized_p.
14627
14628 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14629 Update to use enum ext_lang_frame_args. Update to call
14630 apply_ext_lang_frame_filter.
14631 * python/py-framefilter.c (extract_sym): Update to use enum
14632 ext_lang_bt_status.
14633 (extract_value, py_print_type, py_print_value): Ditto.
14634 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14635 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14636 (py_print_frame): Ditto.
14637 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14638 New arg extlang. Update to use enum ext_lang_bt_status.
14639
14640 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14641 finish_python_initialization. Replace with call to
14642 finish_ext_lang_initialization.
14643
14644 * typeprint.c (do_free_global_table): Update to call
14645 free_ext_lang_type_printers.
14646 (create_global_typedef_table): Update to call
14647 start_ext_lang_type_printers.
14648 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14649 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14650 (type_print_options): Change type of global_printers from "void *"
14651 to "struct ext_lang_type_printers *".
14652
14653 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14654 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14655 (gdbpy_preserve_values): Renamed from preserve_python_values.
14656 New arg extlang.
14657 (!HAVE_PYTHON, preserve_python_values): Delete.
14658
14659 * utils.c (quit_flag): Delete, moved to extension.c.
14660 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14661 extension.c.
14662
14663 * eval.c: Delete #include "python/python.h".
14664 * main.c: Delete #include "python/python.h".
14665
14666 * defs.h: Update comment.
14667
14668 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14669
14670 GDB 7.7 released.
14671
14672 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14673
14674 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14675 defined.
14676
14677 2014-02-05 Yao Qi <yao@codesourcery.com>
14678
14679 * remote.c (remote_pass_signals): Remove local 'buf' and use
14680 rs->buf.
14681 (remote_program_signals): Likewise.
14682
14683 2014-02-05 Yao Qi <yao@codesourcery.com>
14684
14685 * ctf.c: Include "inferior.h" and "gdbthread.h".
14686 (CTF_PID): A new macro.
14687 (ctf_open): Call inferior_appeared and add_thread_silent.
14688 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14689 (ctf_thread_alive): New function.
14690 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14691
14692 2014-02-05 Yao Qi <yao@codesourcery.com>
14693
14694 Revert this patch:
14695
14696 2013-05-24 Yao Qi <yao@codesourcery.com>
14697
14698 * tracepoint.c (TFILE_PID): Remove.
14699 (tfile_open): Don't add thread and inferior.
14700 (tfile_close): Don't set 'inferior_ptid'. Don't call
14701 exit_inferior_silent.
14702 (tfile_thread_alive): Remove.
14703 (init_tfile_ops): Don't set field 'to_thread_alive' of
14704 tfile_ops.
14705
14706 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14707
14708 * remote.c (remote_start_remote): Call remote_check_symbols even
14709 if only symbol-file (not file) has been given.
14710
14711 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14712
14713 * gdbarch.sh (skip_entrypoint): New callback.
14714 * gdbarch.c, gdbarch.h: Regenerate.
14715 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14716 * infrun.c (fill_in_stop_func): Likewise.
14717 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14718 (ppc_elfv2_elf_make_msymbol_special): New function.
14719 (ppc_elfv2_skip_entrypoint): Likewise.
14720 (ppc_linux_init_abi): Install them for ELFv2.
14721
14722 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14723
14724 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14725 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14726 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14727 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14728 structures returned in GPRs.
14729
14730 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14731
14732 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14733 offset to the stack parameter list for the ELFv2 ABI.
14734
14735 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14736
14737 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14738 set_gdbarch_convert_from_func_ptr_addr and
14739 set_gdbarch_elf_make_msymbol_special for ELFv1.
14740 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14741 function descriptors on ELFv1.
14742 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14743 set up r12 at function entry.
14744
14745 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14746
14747 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14748 (struct gdbarch_tdep): New member elf_abi.
14749
14750 * rs6000-tdep.c: Include "elf/ppc64.h".
14751 (rs6000_gdbarch_init): Detect ELF ABI version.
14752
14753 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14754
14755 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14756 within a register pair holding a DFP 128-bit value on little-endian.
14757 (ppc64_sysv_abi_return_value_base): Likewise.
14758 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14759 (dfp_pseudo_register_write): Likewise.
14760
14761 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14762
14763 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14764 offset on little-endian when passing _Decimal32.
14765 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14766
14767 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14768
14769 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14770 of the overlapped FP register within the VSX register on little-
14771 endian platforms.
14772 (efpr_pseudo_register_write): Likewise.
14773
14774 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14775
14776 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14777 offset on little-endian when passing small structures.
14778
14779 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14780
14781 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14782 (struct ppc64_sysv_argpos): New data structure.
14783 (ppc64_sysv_abi_push_float): Remove.
14784 (ppc64_sysv_abi_push_val): New function.
14785 (ppc64_sysv_abi_push_integer): Likewise.
14786 (ppc64_sysv_abi_push_freg): Likewise.
14787 (ppc64_sysv_abi_push_vreg): Likewise.
14788 (ppc64_sysv_abi_push_param): Likewise.
14789 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14790 (ppc64_sysv_abi_return_value_base): New function.
14791 (ppc64_sysv_abi_return_value): Refactor to use it.
14792
14793 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14794
14795 * NEWS: Document new target powerpc64le-*-linux*.
14796
14797 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14798
14799 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14800 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14801 core dumps.
14802 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14803 register set used in ELF core dumps. Add floating-point register set.
14804
14805 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14806
14807 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14808 dwarf2_to_gdb[] table using symbolic constants. Adjust
14809 penultimate entry from number representing the PC register
14810 to symbolic constant representing the MDR register. Add
14811 constant for the PC register to the end of the table.
14812
14813 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14814
14815 * bsd-kvm.c: Include <sys/param.h>
14816
14817 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14818
14819 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14820
14821 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14822
14823 * ada-lang.h (clear_ada_sym_cache): Delete.
14824
14825 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14826
14827 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14828
14829 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14830
14831 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14832 the sigreturn register save area only if the syscall is
14833 sigreturn.
14834
14835 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14836
14837 * valops.c (value_slice): Minor reformatting.
14838
14839 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14840
14841 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14842
14843 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14844
14845 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14846 New static globals.
14847 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14848 (ada_ignore_descriptive_types_p): New static global.
14849 (find_parallel_type_by_descriptive_type): Return immediately
14850 if ada_ignore_descriptive_types_p is set.
14851 (_initialize_ada_language): Register new commands "maintenance
14852 set ada", "maintenance show ada", "maintenance set ada
14853 ignore-descriptive-types" and "maintenance show ada
14854 ignore-descriptive-types".
14855 * NEWS: Add entry for new "maint ada set/show
14856 ignore-descriptive-types" commands.
14857
14858 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14859
14860 * record-btrace.c (record_btrace_close): Call btrace_teardown
14861 for all threads.
14862
14863 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14864
14865 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14866 "ui-out.h".
14867
14868 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14869
14870 * ada-typeprint (type_is_full_subrange_of_target_type):
14871 New function.
14872 (print_range): Add parameter bounds_prefered_p. If not set,
14873 try printing range types using the name of their base type.
14874 (print_range_type): Add parameter bounds_prefered_p.
14875 Use it in call to print_range.
14876 (print_array_type, ada_print_type): Update calls to print_range
14877 and print_range_type.
14878
14879 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14880
14881 * ada-typeprint.c (print_array_type, print_choices, print_range)
14882 (print_range_bound, print_dynamic_range_bound, print_range_type):
14883 Remove declaration.
14884
14885 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14886
14887 * ada-typeprint.c (print_range): Add missing empty line
14888 after local declaration.
14889
14890 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14891
14892 * ada-valprint.c (print_optional_low_bound): Get index_type's
14893 target type for as long as it is a TYPE_CODE_RANGE.
14894
14895 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14896
14897 * procfs.c (procfs_make_note_section): Remove assertion and
14898 associated comment.
14899
14900 2014-01-24 Yao Qi <yao@codesourcery.com>
14901
14902 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14903 * corelow.c (get_core_siginfo): Likewise.
14904
14905 2014-01-24 Yao Qi <yao@codesourcery.com>
14906
14907 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14908 ULONGEST. Don't check 'len' is negative.
14909 (remote_write_bytes): Change type of 'len' to ULONGEST.
14910
14911 2014-01-23 Tom Tromey <tromey@redhat.com>
14912
14913 PR python/16485:
14914 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14915 Handle exception from frame.block.
14916 (FrameVars.fetch_frame_locals): Likewise.
14917
14918 2014-01-23 Tom Tromey <tromey@redhat.com>
14919
14920 PR python/16487:
14921 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14922 on a NULL pointer. Move "goto error" to correct place.
14923
14924 2014-01-23 Tom Tromey <tromey@redhat.com>
14925
14926 PR python/16491:
14927 * python/py-framefilter.c (apply_frame_filter): Call
14928 ensure_python_env after computing gdbarch.
14929
14930 2014-01-23 Yao Qi <yao@codesourcery.com>
14931
14932 * target.c (raw_memory_xfer_partial): Change argument type
14933 from void * to gdb_byte *.
14934 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14935
14936 2014-01-22 Doug Evans <dje@google.com>
14937
14938 New gdbserver option --debug-format=timestamp.
14939 * NEWS: Mention it.
14940
14941 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14942
14943 * syscalls/s390x-linux.xml: New file.
14944 * syscalls/s390-linux.xml: New file.
14945 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14946 (XML_SYSCALL_FILENAME_S390X): Likewise.
14947 (op_svc): New enum value for SVC opcode.
14948 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14949 (s390_linux_get_syscall_number): New function.
14950 (s390_gdbarch_init): Register '*get_syscall_number' and the
14951 syscall xml file name.
14952 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14953 "s390-linux.xml" and "s390x-linux.xml".
14954 * NEWS: Announce new feature.
14955
14956 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14957
14958 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14959
14960 2014-01-22 Pedro Alves <palves@redhat.com>
14961
14962 * xtensa-config.c: Include defs.h.
14963
14964 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14965
14966 * common/common-utils.h: Add "ARI:" comment beside __func__
14967 reference.
14968
14969 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14970
14971 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14972 documentation a bit.
14973
14974 2014-01-21 Roland McGrath <mcgrathr@google.com>
14975
14976 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14977 * configure: Regenerate.
14978 * aclocal.m4: Regenerate.
14979 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14980 New substituted variables.
14981 (install-strip): New target.
14982 (INSTALL_SCRIPT): New substituted variable.
14983 (FLAGS_TO_PASS): Add it.
14984 (install-only): Use $(INSTALL_SCRIPT) rather than
14985 $(INSTALL_PROGRAM) for gcore.
14986
14987 2014-01-20 Tom Tromey <tromey@redhat.com>
14988
14989 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14990 together.
14991
14992 2014-01-20 Tom Tromey <tromey@redhat.com>
14993
14994 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14995 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14996 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14997 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14998 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14999 (struct cmd_list_element) <flags>: Remove.
15000 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15001 doc_allocated>: New fields.
15002 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15003 bitfields.
15004 * maint.c (maintenance_do_deprecate): Update.
15005 * top.c (execute_command): Update.
15006
15007 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15008
15009 * xtensa-linux-nat.c: Include asm/ptrace.h.
15010
15011 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15012
15013 * Makefile.in (SFILES): Add d-support.c.
15014 (COMMON_OBS): Add d-support.o.
15015 * d-lang.h (d_parse_symbol): Add comment, now defined in
15016 d-support.c.
15017 * d-lang.c (parse_call_convention)
15018 (parse_attributes, parse_function_types)
15019 (parse_function_args, parse_type, parse_identifier)
15020 (call_convention_p, d_parse_symbol): Move functions to ...
15021 * d-support.c: ... New file.
15022
15023 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15024
15025 * d-lang.h (d_parse_symbol): Add declaration.
15026 * d-lang.c (extract_identifiers)
15027 (extract_type_info): Remove functions.
15028 (parse_call_convention, parse_attributes)
15029 (parse_function_types, parse_function_args)
15030 (parse_type, parse_identifier, call_convention_p)
15031 (d_parse_symbol): New functions.
15032 (d_demangle): Use d_parse_symbol to demangle D symbols.
15033
15034 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15035
15036 * d-lang.h (struct builtin_d_type): New data type.
15037 (builtin_d_type): Add declaration.
15038 * d-lang.c (d_language_arch_info, build_d_types)
15039 (builtin_d_type): New functions.
15040 (enum d_primitive_types): New data type.
15041 (d_language_defn): Change c_language_arch_info to
15042 d_language_arch_info.
15043 (d_type_data): New static variable.
15044 (_initialize_d_language): Initialize d_type_data.
15045
15046 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15047
15048 * d-lang.h (d_main_name): Add declaration.
15049 * d-lang.c (d_main_name): New function.
15050 * symtab.c (find_main_name): Add call to d_main_name.
15051
15052 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15053
15054 * d-lang.c (d_language_defn): Change macro_expansion_c to
15055 macro_expansion_no.
15056
15057 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15058
15059 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15060
15061 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15062
15063 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15064 gdb_exception" declaration.
15065 * remote.c (getpkt_or_notif_sane): Likewise.
15066
15067 2014-01-17 Doug Evans <dje@google.com>
15068
15069 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15070 function, contents of dirnames_to_char_ptr_vec_append moved here.
15071 (delim_string_to_char_ptr_vec): New function.
15072 (dirnames_to_char_ptr_vec_append): Rewrite.
15073 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15074
15075 2014-01-17 Doug Evans <dje@google.com>
15076
15077 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15078 and moved here ...
15079 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15080 #include "common-utils.h".
15081 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15082 * common/vec.h (VEC_ASSERT_PASS): Update.
15083 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15084 (MACH_CHECK_ERROR): Update.
15085
15086 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15087
15088 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15089 comments.
15090 * gdbarch.h: Regenerate.
15091
15092 2014-01-16 Tom Tromey <tromey@redhat.com>
15093
15094 * value.c (struct value) <regnum>: Move earlier.
15095
15096 2014-01-16 Tom Tromey <tromey@redhat.com>
15097
15098 * remote.c (extended_remote_create_inferior): Rename from
15099 extended_remote_create_inferior_1. Add "ops" argument. Remove
15100 old implementation.
15101
15102 2014-01-16 Pedro Alves <palves@redhat.com>
15103
15104 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15105 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15106 the backchain.
15107
15108 2014-01-16 Doug Evans <dje@google.com>
15109
15110 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15111
15112 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15113
15114 * btrace.h (btrace_thread_flag): New.
15115 (struct btrace_thread_info) <flags>: New.
15116 * record-btrace.c (record_btrace_resume_thread)
15117 (record_btrace_find_thread_to_move, btrace_step_no_history)
15118 (btrace_step_stopped, record_btrace_start_replaying)
15119 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15120 (record_btrace_find_resume_thread): New.
15121 (record_btrace_resume, record_btrace_wait): Extend.
15122 (record_btrace_can_execute_reverse): New.
15123 (record_btrace_open): Fail in non-stop mode.
15124 (record_btrace_set_replay): Split into this, ...
15125 (record_btrace_stop_replaying): ... this, ...
15126 (record_btrace_clear_histories): ... and this.
15127 (init_record_btrace_ops): Init to_can_execute_reverse.
15128 * NEWS: Announce it.
15129
15130 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15131
15132 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15133 (forward_target_decr_pc_after_break)
15134 (target_decr_pc_after_break): New.
15135 * target.c (forward_target_decr_pc_after_break)
15136 (target_decr_pc_after_break): New.
15137 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15138 instead of gdbarch_decr_pc_after_break.
15139 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15140 instead of gdbarch_decr_pc_after_break.
15141 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15142 instead of gdbarch_decr_pc_after_break.
15143 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15144 instead of gdbarch_decr_pc_after_break.
15145 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15146 instead of gdbarch_decr_pc_after_break.
15147 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15148 instead of gdbarch_decr_pc_after_break.
15149
15150 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15151
15152 * btrace.c: Include regcache.h.
15153 (btrace_add_pc): New.
15154 (btrace_enable): Call btrace_add_pc.
15155 (btrace_is_empty): New.
15156 * btrace.h (btrace_is_empty): New.
15157 * record-btrace.c (require_btrace, record_btrace_info): Call
15158 btrace_is_empty.
15159
15160 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15161
15162 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15163 Support delta reads.
15164 (linux_disable_btrace): Change return type.
15165 * common/linux-btrace.h (linux_read_btrace): Change parameters
15166 and return type to allow error reporting. Update users.
15167 (linux_disable_btrace): Change return type. Update users.
15168 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15169 New.
15170 (btrace_error): New.
15171 (btrace_block) <begin>: Comment on BEGIN == 0.
15172 * btrace.c (btrace_compute_ftrace): Start from the end of
15173 the current trace.
15174 (btrace_stitch_trace, btrace_clear_history): New.
15175 (btrace_fetch): Read delta trace, return if replaying.
15176 (btrace_clear): Move clear history code to btrace_clear_history.
15177 (parse_xml_btrace): Throw an error if parsing failed.
15178 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15179 and return type to allow error reporting.
15180 (target_read_btrace): Change parameters and return type to allow
15181 error reporting.
15182 * target.c (target_read_btrace): Update.
15183 * remote.c (remote_read_btrace): Support delta reads. Pass
15184 errors on.
15185 * NEWS: Announce it.
15186
15187 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15188
15189 * record.h (record_btrace_frame_unwind)
15190 (record_btrace_tailcall_frame_unwind): New declarations.
15191 * dwarf2-frame: Include record.h
15192 (dwarf2_frame_cfa): Throw an error for btrace frames.
15193 * record-btrace.c: Include hashtab.h.
15194 (btrace_get_bfun_name): New.
15195 (btrace_call_history): Call btrace_get_bfun_name.
15196 (struct btrace_frame_cache): New.
15197 (bfcache): New.
15198 (bfcache_hash, bfcache_eq, bfcache_new): New.
15199 (btrace_get_frame_function): New.
15200 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15201 (record_btrace_frame_this_id): Compute own id.
15202 (record_btrace_frame_prev_register): Provide PC, throw_error
15203 for all other registers.
15204 (record_btrace_frame_sniffer): Detect btrace frames.
15205 (record_btrace_tailcall_frame_sniffer): New.
15206 (record_btrace_frame_dealloc_cache): New.
15207 (record_btrace_frame_unwind): Add new functions.
15208 (record_btrace_tailcall_frame_unwind): New.
15209 (_initialize_record_btrace): Allocate cache.
15210 * btrace.c (btrace_clear): Call reinit_frame_cache.
15211 * NEWS: Announce it.
15212
15213 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15214
15215 * record-btrace.c (record_btrace_set_replay)
15216 (record_btrace_goto_begin, record_btrace_goto_end)
15217 (record_btrace_goto): New.
15218 (init_record_btrace_ops): Initialize them.
15219 * NEWS: Announce it.
15220
15221 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15222
15223 * record-btrace.c (record_btrace_find_new_threads)
15224 (record_btrace_thread_alive): New.
15225 (init_record_btrace_ops): Initialize to_find_new_threads and
15226 to_thread_alive.
15227
15228 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15229
15230 * record-btrace.c (record_btrace_resume): New.
15231 (record_btrace_wait): New.
15232 (init_record_btrace_ops): Initialize to_wait and to_resume.
15233
15234 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15235
15236 * record-btrace.c (record_btrace_xfer_partial)
15237 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15238 (record_btrace_allow_memory_access): New.
15239 (init_record_btrace_ops): Initialize new methods.
15240 * target.c (raw_memory_xfer_partial): Bail out if target reports
15241 that this memory is not available.
15242
15243 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15244
15245 * target.h (target_ops) <to_insert_breakpoint>
15246 <to_remove_breakpoint>: Add target_ops parameter.
15247 (forward_target_insert_breakpoint): New.
15248 (forward_target_remove_breakpoint): New.
15249 (memory_remove_breakpoint, memory_insert_breakpoint):
15250 Add target_ops parameter.
15251 * target.c (target_insert_breakpoint): Split into this and ...
15252 (forward_target_insert_breakpoint): ... this.
15253 (target_remove_breakpoint): Split into this and ...
15254 (forward_target_remove_breakpoint): ... this.
15255 (debug_to_insert_breakpoint): Add target_ops parameter.
15256 Call forward_target_insert_breakpoint.
15257 (debug_to_remove_breakpoint): Add target_ops parameter.
15258 Call forward_target_remove_breakpoint.
15259 (update_current_target): Do not inherit or default to_insert_breakpoint
15260 and to_remove_breakpoint.
15261 * corelow.c (ignore): Add target_ops parameter.
15262 * exec.c (ignore): Add target_ops parameter.
15263 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15264 Add target_ops parameter.
15265 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15266 Add target_ops parameter.
15267 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15268 Add target_ops parameter.
15269 * record-full.c (record_full_beneath_to_insert_breakpoint)
15270 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15271 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15272 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15273 (record_full_core_remove_breakpoint): Add target_ops parameter.
15274 Update users.
15275 (record_full_beneath_to_insert_breakpoint_ops)
15276 (record_full_beneath_to_remove_breakpoint_ops)
15277 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15278 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15279 tmp_to_remove_breakpoint_ops,
15280 record_full_beneath_to_insert_breakpoint_ops, and
15281 record_full_beneath_to_remove_breakpoint_ops.
15282 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15283 (m32r_remove_breakpoint): Add target_ops parameter.
15284 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15285 Add target_ops parameter.
15286 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15287 Add target_ops parameter.
15288
15289 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15290 Markus Metzger <markus.t.metzger@intel.com>
15291
15292 * record-btrace.c: Include frame-unwind.h.
15293 (record_btrace_frame_unwind_stop_reason)
15294 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15295 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15296 New.
15297 (init_record_btrace_ops): Install it.
15298
15299 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15300
15301 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15302 get_prev_frame_1.
15303
15304 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15305
15306 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15307 earlier.
15308
15309 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15310
15311 * frame-unwind.c: Include target.h.
15312 (frame_unwind_try_unwinder): New function with code from ...
15313 (frame_unwind_find_by_frame): ... here. New variable
15314 unwinder_from_target, call also target_get_unwinder)
15315 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15316 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15317 * target.h (struct target_ops): New fields to_get_unwinder and
15318 to_get_tailcall_unwinder.
15319 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15320
15321 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15322
15323 * record-btrace.c (record_btrace_fetch_registers)
15324 (record_btrace_store_registers)
15325 (record_btrace_to_prepare_to_store): New.
15326 (init_record_btrace_ops): Add the above.
15327
15328 2014-01-16 Tom Tromey <tromey@redhat.com>
15329
15330 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15331 * target.h (struct target_ops) <to_prepare_to_store>: Add
15332 argument.
15333 (target_prepare_to_store): Add argument.
15334 * target.c (debug_to_prepare_to_store): Add argument.
15335 (update_current_target): Update.
15336 * remote.c (remote_prepare_to_store): Add 'self' argument.
15337 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15338 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15339 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15340 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15341 argument.
15342 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15343 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15344 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15345 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15346 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15347
15348 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15349
15350 * btrace.h (replay) <replay>: New.
15351 (btrace_is_replaying): New.
15352 * btrace.c (btrace_clear): Free replay iterator.
15353 (btrace_is_replaying): New.
15354 * record-btrace.c (record_btrace_is_replaying): New.
15355 (record_btrace_info): Print insn number if replaying.
15356 (record_btrace_insn_history): Start at replay position.
15357 (record_btrace_call_history): Start at replay position.
15358 (init_record_btrace_ops): Init to_record_is_replaying.
15359
15360 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15361
15362 * record-btrace.c (record_btrace_insn_history_range): Include
15363 end.
15364 (record_btrace_insn_history_from): Adjust range.
15365 (record_btrace_call_history_range): Include
15366 end.
15367 (record_btrace_call_history_from): Adjust range.
15368 * NEWS: Announce changes.
15369
15370 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15371
15372 * record.h (enum record_print_flag)
15373 <record_print_indent_calls>: New.
15374 * record.c (get_call_history_modifiers): Recognize /c modifier.
15375 (_initialize_record): Document /c modifier.
15376 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15377 Reorder fields. Optionally indent the function name. Update
15378 all users.
15379 * NEWS: Announce changes.
15380
15381 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15382
15383 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15384
15385 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15386
15387 * btrace.c (ftrace_new_function): Start counting at one.
15388 * record-btrace.c (record_btrace_info): Adjust number of calls
15389 and insns.
15390 * NEWS: Announce it.
15391
15392 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15393
15394 * record-btrace.c (btrace_call_history_insn_range): Print
15395 insn range as [begin, end].
15396
15397 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15398
15399 * btrace.h (struct btrace_func_link): New.
15400 (enum btrace_function_flag): New.
15401 (struct btrace_inst): Rename to ...
15402 (struct btrace_insn): ...this. Update all users.
15403 (struct btrace_func) <ibegin, iend>: Remove.
15404 (struct btrace_func_link): New.
15405 (struct btrace_func): Rename to ...
15406 (struct btrace_function): ...this. Update all users.
15407 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15408 (number, level, flags>: New.
15409 (struct btrace_insn_iterator): Rename to ...
15410 (struct btrace_insn_history): ...this.
15411 Update all users.
15412 (struct btrace_insn_iterator, btrace_call_iterator): New.
15413 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15414 (struct btrace_target_info) <begin, end, level>
15415 <insn_history, call_history>: New.
15416 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15417 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15418 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15419 (btrace_call_number, btrace_call_begin, btrace_call_end)
15420 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15421 (btrace_find_function_by_number, btrace_set_insn_history)
15422 (btrace_set_call_history): New.
15423 * btrace.c (btrace_init_insn_iterator)
15424 (btrace_init_func_iterator, compute_itrace): Remove.
15425 (ftrace_print_function_name, ftrace_print_filename)
15426 (ftrace_skip_file): Change
15427 parameter to const.
15428 (ftrace_init_func): Remove.
15429 (ftrace_debug): Use new btrace_function fields.
15430 (ftrace_function_switched): Also consider gaining and
15431 losing symbol information).
15432 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15433 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15434 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15435 New.
15436 (ftrace_new_function): Move. Remove debug print.
15437 (ftrace_update_lines, ftrace_update_insns): New.
15438 (ftrace_update_function): Check for call, ret, and jump.
15439 (compute_ftrace): Renamed to ...
15440 (btrace_compute_ftrace): ...this. Rewritten to compute call
15441 stack.
15442 (btrace_fetch, btrace_clear): Updated.
15443 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15444 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15445 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15446 (btrace_call_number, btrace_call_begin, btrace_call_end)
15447 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15448 (btrace_find_function_by_number, btrace_set_insn_history)
15449 (btrace_set_call_history): New.
15450 * record-btrace.c (require_btrace): Use new btrace thread
15451 info fields.
15452 (record_btrace_info, btrace_insn_history)
15453 (record_btrace_insn_history, record_btrace_insn_history_range):
15454 Use new btrace thread info fields and new iterator.
15455 (btrace_func_history_src_line): Rename to ...
15456 (btrace_call_history_src_line): ...this. Use new btrace
15457 thread info fields.
15458 (btrace_func_history): Rename to ...
15459 (btrace_call_history): ...this. Use new btrace thread info
15460 fields and new iterator.
15461 (record_btrace_call_history, record_btrace_call_history_range):
15462 Use new btrace thread info fields and new iterator.
15463
15464 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15465
15466 * frame.h (frame_id_build_unavailable_stack_special): New.
15467 * frame.c (frame_id_build_unavailable_stack_special): New.
15468
15469 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15470
15471 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15472 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15473 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15474 to gdbarch.
15475 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15476 (i386_insn_is_jump, i386_jmp_p): New.
15477 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15478 insn_is_jump to gdbarch.
15479 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15480 * gdbarch.h: Regenerated.
15481 * gdbarch.c: Regenerated.
15482 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15483 (default_insn_is_jump): New.
15484 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15485 (default_insn_is_jump): New.
15486
15487 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15488
15489 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15490 Change to ...
15491 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15492 (btrace_read_type) <btrace_read_new>: Change to ...
15493 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15494
15495 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15496
15497 * common/linux-btrace.c (linux_read_btrace): Free trace from
15498 previous iteration.
15499
15500 2014-01-15 Doug Evans <dje@google.com>
15501
15502 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15503 uint32_t.
15504
15505 2014-01-15 Tom Tromey <tromey@redhat.com>
15506
15507 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15508 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15509 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15510 (set_objfile_main_name): New function.
15511 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15512 language_of_main>: New fields.
15513 (set_objfile_main_name): Declare.
15514 * symtab.c (find_main_name): Loop over objfiles to find the main
15515 name and language.
15516 (set_main_name): Now static.
15517 (get_main_info): Add comment.
15518 * symtab.h (set_main_name): Don't declare.
15519
15520 2014-01-15 Tom Tromey <tromey@redhat.com>
15521
15522 * symtab.c (main_progspace_key): New global.
15523 (struct main_info): New.
15524 (name_of_main, language_of_main): Remove.
15525 (get_main_info, main_info_cleanup): New function.
15526 (set_main_name, main_name, main_language): Use get_main_info.
15527 (_initialize_symtab): Initialize main_progspace_key.
15528
15529 2014-01-15 Tom Tromey <tromey@redhat.com>
15530
15531 * dbxread.c (process_one_symbol): Update.
15532 * dwarf2read.c (read_partial_die): Update.
15533 * symfile.c (set_initial_language): Call main_language.
15534 * symtab.c (language_of_main): Now static.
15535 (set_main_name): Add 'lang' parameter.
15536 (find_main_name): Update.
15537 (main_language): New function.
15538 (symtab_observer_executable_changed): Update.
15539 * symtab.h (set_main_name): Update.
15540 (language_of_main): Remove.
15541 (main_language): Declare.
15542
15543 2014-01-15 Tom Tromey <tromey@redhat.com>
15544
15545 * symfile.c (init_entry_point_info): Use new "initialized" field.
15546 Update.
15547 * objfiles.h (struct entry_point) <initialized>: New field.
15548 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15549 (struct objfile) <ei>: ...here. Remove.
15550 * objfiles.c (entry_point_address_query): Update.
15551
15552 2014-01-15 Tom Tromey <tromey@redhat.com>
15553
15554 * objfiles.c (entry_point_address_query): Relocate entry point
15555 address.
15556 (objfile_relocate1): Do not relocate entry point address.
15557 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15558 <the_bfd_section_index>: New field.
15559 * symfile.c (init_entry_point_info): Find the entry point's
15560 section.
15561
15562 2014-01-15 Tom Tromey <tromey@redhat.com>
15563
15564 * solib-frv.c (enable_break): Use entry_point_address_query.
15565
15566 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15567
15568 * NEWS: Add note on improved process record-replay on
15569 arm*-linux* targets.
15570
15571 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15572
15573 * arm-tdep.c (enum arm_record_result): New enum.
15574 (arm_record_unsupported_insn): New function.
15575 (arm_record_coproc_data_proc): Removed.
15576 (thumb2_record_ld_st_multiple): New function.
15577 (thumb2_record_ld_st_dual_ex_tbb): New function.
15578 (thumb2_record_data_proc_sreg_mimm): New function.
15579 (thumb2_record_ps_dest_generic): New function.
15580 (thumb2_record_branch_misc_cntrl): New function.
15581 (thumb2_record_str_single_data): New function.
15582 (thumb2_record_ld_mem_hints): New function.
15583 (thumb2_record_ld_word): New function.
15584 (thumb2_record_lmul_lmla_div): New function.
15585 (thumb2_record_decode_insn_handler): New function.
15586 (decode_insn): Add thumb32 instruction handlers.
15587
15588 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15589
15590 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15591 (struct arm_linux_record_tdep): Declare.
15592 (arm_canonicalize_syscall): New function.
15593 (arm_all_but_pc_registers_record): New function.
15594 (arm_linux_syscall_record): New function.
15595 (arm_linux_init_abi): Add syscall recording constructs.
15596 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15597 decoding. (arm_record_coproc_data_proc): Update arm syscall
15598 decoding.
15599 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15600 <arm_syscall_record>: New field.
15601 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15602 gdb_target_obs.
15603
15604 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15605
15606 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15607 register for push instruction recording.
15608
15609 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15610
15611 * arm-tdep.c (thumb_record_misc): Update to correct logical
15612 error while recording ldm, ldmia and pop instructions.
15613
15614 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15615
15616 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15617
15618 2014-01-15 Pedro Alves <palves@redhat.com>
15619
15620 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15621 (go32_resume, go32_fetch_registers, store_register)
15622 (go32_store_registers, go32_prepare_to_store)
15623 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15624 (go32_create_inferior, go32_can_run, go32_terminal_init)
15625 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15626 declarations.
15627
15628 2014-01-15 Tom Tromey <tromey@redhat.com>
15629
15630 * target.h (async_callback_ftype): New typedef.
15631 (struct target_ops) <to_async>: Use it.
15632
15633 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15634
15635 * python/py-value.c (get_field_type): Remove unnecessary curly
15636 braces for single-statement if block.
15637
15638 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15639
15640 * python/py-type.c (convert_field): Add missing empty line
15641 after declarations.
15642
15643 2014-01-14 Doug Evans <dje@google.com>
15644
15645 * symfile.h (expand_symtabs_matching): Renamed from
15646 expand_partial_symbol_names. Update prototype.
15647 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15648 * symfile.c (expand_symtabs_matching): Renamed from
15649 expand_partial_symbol_names. New args file_matcher, kind.
15650 Rename arg fun to symbol_matcher.
15651 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15652 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15653 ada_expand_partial_symbol_name.
15654 (ada_make_symbol_completion_list): Update to call
15655 expand_symtabs_matching.
15656 (ada_add_global_exceptions): Call expand_symtabs_matching.
15657 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15658 call map_symbol_filenames.
15659 * symtab.c (sources_info): Update to call map_symbol_filenames.
15660 (search_symbols): Call expand_symtabs_matching.
15661 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15662 (default_make_symbol_completion_list_break_on): Update to call
15663 expand_symtabs_matching.
15664 (make_source_files_completion_list): Update to call
15665 map_symbol_filenames.
15666
15667 2014-01-14 Doug Evans <dje@google.com>
15668
15669 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15670 (expand_symtabs_symbol_matcher_ftype): New typedef.
15671 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15672 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15673 * symfile.c (expand_partial_symbol_names): Update to use
15674 expand_symtabs_symbol_matcher_ftype.
15675 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15676 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15677 Arg name_matcher renamed to symbol_matcher.
15678 * psymtab.c (recursively_search_psymtabs): Update to use
15679 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15680 sym_matcher.
15681 (expand_symtabs_matching_via_partial): Update to use
15682 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15683 Arg name_matcher renamed to symbol_matcher.
15684
15685 2014-01-14 Doug Evans <dje@google.com>
15686
15687 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15688 (map_partial_symbol_filenames): Ditto.
15689 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15690 (map_partial_symbol_filenames): Ditto.
15691 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15692 (map_partial_symbol_filenames): Ditto.
15693 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15694 (map_partial_symbol_filenames): Ditto.
15695 * symtab.c: Delete #include "psymtab.h".
15696
15697 2014-01-14 Pedro Alves <palves@redhat.com>
15698 Tom Tromey <tromey@redhat.com>
15699
15700 * infrun.c (use_displaced_stepping): Use find_record_target
15701 instead of RECORD_IS_USED.
15702 (adjust_pc_after_break): Use record_full_is_used instead of
15703 RECORD_IS_USED.
15704 * record-btrace.c (record_btrace_open): Call record_preopen
15705 instead of checking RECORD_IS_USED.
15706 * record-full.c (record_full_shortname)
15707 (record_full_core_shortname): New globals.
15708 (record_full_is_used): New function.
15709 (find_full_open): Call record_preopen instead of checking
15710 RECORD_IS_USED.
15711 (init_record_full_ops): Set the target's shortname to
15712 record_full_shortname.
15713 (init_record_full_core_ops): Set the target's shortname to
15714 record_full_core_shortname.
15715 * record-full.h (record_full_is_used): Declare.
15716 * record.c (find_record_target): Make extern.
15717 (record_preopen): New function.
15718 * record.h (RECORD_IS_USED): Delete macro.
15719 (find_record_target, record_preopen): Declare functions.
15720
15721 2014-01-14 Yao Qi <yao@codesourcery.com>
15722
15723 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15724 'len''s type to ULONGEST.
15725 (core_xfer_shared_libraries_aix): Likewise.
15726 * gdbarch.c, gdbarch.h: Regenerated.
15727 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15728 Change type of 'len' to ULONGEST.
15729 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15730 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15731
15732 2014-01-14 Yao Qi <yao@codesourcery.com>
15733
15734 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15735 type of 'len' to ULONGEST.
15736 (linux_xfer_osdata_processgroups): Likewise.
15737 (linux_xfer_osdata_threads): Likewise.
15738 (linux_xfer_osdata_fds): Likewise.
15739 (linux_xfer_osdata_isockets): Likewise.
15740 (linux_xfer_osdata_shm): Likewise.
15741 (linux_xfer_osdata_sem): Likewise.
15742 (linux_xfer_osdata_msg): Likewise.
15743 (linux_common_xfer_osdata): Likewise.
15744 (struct osdata_type) <getter>: Likewise.
15745 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15746 the declaration.
15747
15748 2014-01-14 Yao Qi <yao@codesourcery.com>
15749
15750 * target.h (target_xfer_partial_ftype): Update.
15751 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15752 ULONGEST.
15753 * aix-thread.c (aix_thread_xfer_partial): Change type of
15754 argument 'len' to ULONGEST.
15755 * auxv.c (procfs_xfer_auxv): Likewise.
15756 (ld_so_xfer_auxv): Likewise.
15757 (memory_xfer_auxv): Likewise.
15758 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15759 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15760 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15761 * corelow.c (core_xfer_partial): Likewise.
15762 * ctf.c (ctf_xfer_partial): Likewise.
15763 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15764 '%u'.
15765 (darwin_read_dyld_info): Likewise.
15766 (darwin_xfer_partial): Likewise.
15767 * exec.c (section_table_xfer_memory_partial): Likewise.
15768 (exec_xfer_partial): Likewise.
15769 * exec.h (section_table_xfer_memory_partial): Update
15770 declaration.
15771 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15772 instead of plongest.
15773 (gnu_xfer_partial): Likewise.
15774 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15775 (ia64_hpux_xfer_solib_got): Likewise.
15776 (ia64_hpux_xfer_partial): Likewise.
15777 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15778 * inf-ptrace.c (inf_ptrace_xfer_partial):
15779 * inf-ttrace.c (inf_ttrace_xfer_partial):
15780 * linux-nat.c (linux_xfer_siginfo): Likewise.
15781 (linux_nat_xfer_partial): Likewise.
15782 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15783 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15784 * monitor.c (monitor_xfer_memory): Likewise.
15785 (monitor_xfer_partial): Likewise.
15786 * procfs.c (procfs_xfer_partial): Likewise.
15787 * record-full.c (record_full_xfer_partial): Likewise.
15788 (record_full_core_xfer_partial): Likewise.
15789 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15790 instead of plongest.
15791 (gdbsim_xfer_partial): Likewise.
15792 * remote.c (remote_xfer_partial): Likewise.
15793 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15794 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15795 declaration.
15796 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15797 (rs6000_xfer_shared_libraries): Likewise.
15798 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15799 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15800 (sparc_xfer_partial): Likewise.
15801 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15802 (spu_xfer_partial): Likewise.
15803 * spu-multiarch.c (spu_xfer_partial): Likewise.
15804 * target.c (target_read_live_memory): Likewise.
15805 (memory_xfer_live_readonly_partial): Likewise.
15806 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15807 (target_xfer_partial, default_xfer_partial): Likewise.
15808 (current_xfer_partial): Likewise.
15809 * tracepoint.c (tfile_xfer_partial): Likewise.
15810 * windows-nat.c (windows_xfer_memory): Likewise. Call
15811 pulongest instead of plongest.
15812 (windows_xfer_partial): Likewise.
15813 (windows_xfer_shared_libraries): Likewise.
15814
15815 2014-01-14 Yao Qi <yao@codesourcery.com>
15816
15817 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15818 target_xfer_partial_ftype.
15819
15820 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15821
15822 PR python/15464
15823 PR python/16113
15824 * valops.c (value_struct_elt_bitpos): New function
15825 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15826 object to 'None' if the field name is an empty string ("").
15827 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15828 attribute to look for a field when 'name' is 'None'.
15829 (get_field_type): New function
15830
15831 2014-01-13 Doug Evans <dje@google.com>
15832
15833 PR symtab/16426
15834 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15835 (try_open_dwop_file): Ditto.
15836 * gdb_bfd.c: #include "vec.h".
15837 (bfdp): New typedef.
15838 (struct gdb_bfd_data): New member included_bfds.
15839 (gdb_bfd_unref): Unref all included bfds.
15840 (gdb_bfd_record_inclusion): New function.
15841 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15842
15843 2014-01-13 Tom Tromey <tromey@redhat.com>
15844
15845 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15846
15847 2014-01-13 Tom Tromey <tromey@redhat.com>
15848
15849 * defs.h (use_windows): Remove.
15850 * gdb.c (main): Update.
15851 * main.c (captured_main, gdb_main): Update.
15852 * main.h (struct captured_main_args) <use_windows>: Remove.
15853 * top.c (use_windows): Remove.
15854
15855 2014-01-13 Tom Tromey <tromey@redhat.com>
15856
15857 * defs.h (deprecated_flush_hook): Remove.
15858
15859 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15860
15861 PR threads/16216
15862 * linux-thread-db.c (try_thread_db_load): Add parameter
15863 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15864 (try_thread_db_load_from_pdir_1): Move it there from here.
15865 (try_thread_db_load_from_sdir): Update caller.
15866 (try_thread_db_load_from_dir): Move it there from here.
15867
15868 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15869
15870 * regformats/regdat.sh: Always rewrite the register file.
15871
15872 2014-01-13 Pedro Alves <palves@redhat.com>
15873
15874 * Makefile.in (CHECK_HEADERS): New variable.
15875 (check-headers:): New rule.
15876
15877 2014-01-13 Tom Tromey <tromey@redhat.com>
15878
15879 * cli/cli-setshow.c (do_set_command): Update.
15880 * defs.h (deprecated_set_hook): Remove.
15881 * top.c (deprecated_set_hook): Remove.
15882
15883 2014-01-13 Pedro Alves <palves@redhat.com>
15884
15885 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15886 the tracepoint if the PC is a pseudo-register.
15887
15888 2014-01-13 Tom Tromey <tromey@redhat.com>
15889
15890 * defs.h (XCALLOC): Remove.
15891 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15892 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15893 * dwarf2loc.c (allocate_piece_closure): Likewise.
15894 * elfread.c (elf_symfile_segments): Likewise.
15895 (elf_symfile_segments): Likewise.
15896 * gdbtypes.c (copy_type_recursive): Likewise.
15897 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15898 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15899 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15900 XCALLOC.
15901 * mt-tdep.c (mt_gdbarch_init): Likewise.
15902 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15903 XCALLOC.
15904 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15905 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15906 * registry.c (registry_alloc_data): Likewise.
15907 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15908 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15909 * serial.c (serial_fdopen_ops): Likewise.
15910 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15911 XCALLOC.
15912 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15913 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15914 not XCALLOC.
15915
15916 2014-01-13 Tom Tromey <tromey@redhat.com>
15917
15918 * defs.h (XMALLOC): Remove.
15919 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15920 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15921 * cli-out.c (struct ui_out *): Likewise.
15922 * cli/cli-dump.c (add_dump_command): Likewise.
15923 (add_dump_command): Likewise.
15924 * complaints.c (get_complaints): Likewise.
15925 (find_complaint): Likewise.
15926 * dwarf2-frame.c (execute_cfa_program): Likewise.
15927 * dwarf2read.c (abbrev_table_read_table): Likewise.
15928 * gdbarch.sh: Likewise.
15929 * gdbarch.c: Rebuild.
15930 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15931 * interps.c (interp_new): Likewise.
15932 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15933 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15934 * mi/mi-console.c (mi_console_file_new): Likewise.
15935 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15936 * mi/mi-out.c (mi_out_new): Likewise.
15937 * mi/mi-parse.c (mi_parse): Likewise.
15938 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15939 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15940 * observer.c (xalloc_observer_list_node): Likewise.
15941 * regcache.c (regcache_xmalloc_1): Likewise.
15942 * reggroups.c (reggroup_new): Likewise.
15943 (_initialize_reggroup): Likewise.
15944 * registry.c (register_data_with_cleanup): Likewise.
15945 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15946 * ser-base.c (serial_ttystate): Likewise.
15947 * ser-mingw.c (make_pipe_state): Likewise.
15948 * ser-pipe.c (pipe_open): Likewise.
15949 * serial.c (serial_open): Likewise.
15950 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15951 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15952 (tui_alloc_win_info): Likewise.
15953 (tui_add_content_elements): Likewise.
15954 * tui/tui-file.c (tui_file_new): Likewise.
15955 * tui/tui-out.c (tui_out_new): Likewise.
15956 * ui-file.c (mem_file_new): Likewise.
15957 * ui-out.c (push_level): Likewise.
15958 (make_cleanup_ui_out_end): Likewise.
15959 (append_header_to_list): Likewise.
15960 (ui_out_new): Likewise.
15961 * user-regs.c (user_reg_add_builtin): Likewise.
15962
15963 2014-01-13 Tom Tromey <tromey@redhat.com>
15964
15965 * defs.h (XZALLOC): Remove.
15966 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15967 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15968 (get_ada_tasks_inferior_data): Likewise.
15969 * auto-load.c (get_auto_load_pspace_data): Likewise.
15970 * auxv.c (get_auxv_inferior_data): Likewise.
15971 * bfd-target.c (target_bfd_reopen): Likewise.
15972 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15973 (deprecated_insert_raw_breakpoint): Likewise.
15974 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15975 * corelow.c (core_open): Likewise.
15976 * darwin-nat.c (darwin_check_new_threads): Likewise.
15977 (darwin_attach_pid): Likewise.
15978 * dummy-frame.c (dummy_frame_push): Likewise.
15979 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15980 * dwarf2loc.c (allocate_piece_closure): Likewise.
15981 * elfread.c (elf_symfile_segments): Likewise.
15982 * eval.c (ptrmath_type_p): Likewise.
15983 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15984 * gdbtypes.c (alloc_type_arch): Likewise.
15985 (alloc_type_instance): Likewise.
15986 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15987 * inf-child.c (inf_child_can_use_agent): Likewise.
15988 * inflow.c (get_inflow_inferior_data): Likewise.
15989 * infrun.c (save_infcall_suspend_state): Likewise.
15990 * jit.c (jit_reader_load): Likewise.
15991 (get_jit_objfile_data): Likewise.
15992 (get_jit_program_space_data): Likewise.
15993 (jit_object_open_impl): Likewise.
15994 (jit_symtab_open_impl): Likewise.
15995 (jit_block_open_impl): Likewise.
15996 (jit_frame_sniffer): Likewise.
15997 * linux-fork.c (add_fork): Likewise.
15998 * maint.c (make_command_stats_cleanup): Likewise.
15999 * objfiles.c (get_objfile_pspace_data): Likewise.
16000 * opencl-lang.c (struct lval_closure): Likewise.
16001 * osdata.c (osdata_start_osdata): Likewise.
16002 * progspace.c (new_address_space): Likewise.
16003 (add_program_space): Likewise.
16004 * remote-sim.c (get_sim_inferior_data): Likewise.
16005 * sh-tdep.c (sh_gdbarch_init): Likewise.
16006 * skip.c (Ignore): Likewise.
16007 (skip_delete_command): Likewise.
16008 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16009 (library_list_start_library): Likewise.
16010 (solib_aix_current_sos): Likewise.
16011 * solib-darwin.c (get_darwin_info): Likewise.
16012 (darwin_current_sos): Likewise.
16013 * solib-dsbt.c (get_dsbt_info): Likewise.
16014 * solib-ia64-hpux.c (new_so_list): Likewise.
16015 (ia64_hpux_get_solib_linkage_addr): Likewise.
16016 * solib-spu.c (append_ocl_sos): Likewise.
16017 (spu_current_sos): Likewise.
16018 * solib-svr4.c (get_svr4_info): Likewise.
16019 (svr4_keep_data_in_core): Likewise.
16020 (library_list_start_library): Likewise.
16021 (svr4_default_sos): Likewise.
16022 (svr4_read_so_list): Likewise.
16023 * solib-target.c (library_list_start_library): Likewise.
16024 (solib_target_current_sos): Likewise.
16025 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16026 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16027 * symfile.c (default_symfile_segments): Likewise.
16028 * target-descriptions.c (tdesc_data_init): Likewise.
16029 (tdesc_create_reg): Likewise.
16030 (struct tdesc_type *): Likewise.
16031 (tdesc_create_vector): Likewise.
16032 (tdesc_set_struct_size): Likewise.
16033 (struct tdesc_type *): Likewise.
16034 (tdesc_free_feature): Likewise.
16035 (tdesc_create_feature): Likewise.
16036 * windows-nat.c (windows_add_thread): Likewise.
16037 (windows_make_so): Likewise.
16038 * xml-support.c (gdb_xml_body_text): Likewise.
16039 (gdb_xml_create_parser_and_cleanup): Likewise.
16040 (xml_process_xincludes): Likewise.
16041 * xml-syscall.c (allocate_syscalls_info): Likewise.
16042 (syscall_create_syscall_desc): Likewise.
16043
16044 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16045
16046 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16047 function, with code from i386_stap_parse_special_token.
16048 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16049 (i386_stap_parse_special_token): Move code to the two functions
16050 above; simplify it.
16051
16052 2014-01-09 Pedro Alves <palves@redhat.com>
16053 Hui Zhu <hui@codesourcery.com>
16054
16055 PR gdb/16101
16056 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16057 bp_err_string. Don't mark the location shlib_disabled if the
16058 error thrown wasn't a generic or memory error. Catch errors
16059 thrown while inserting breakpoints in overlayed code. Output
16060 error message of software breakpoints.
16061 * remote.c (remote_insert_breakpoint): If this breakpoint has
16062 target-side commands but this stub doesn't support Z0 packets,
16063 throw NOT_SUPPORTED_ERROR error.
16064 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16065 * target.h (target_insert_breakpoint): Extend comment.
16066 (target_insert_hw_breakpoint): Add comment.
16067
16068 2014-01-08 Pedro Alves <palves@redhat.com>
16069
16070 * remote.c (remote_add_thread): Add threads silently if starting
16071 up.
16072 (remote_notice_new_inferior): If in all-stop, and starting up,
16073 don't call notice_new_inferior.
16074 (get_current_thread): New function, factored out from ...
16075 (add_current_inferior_and_thread): ... this. Adjust.
16076 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16077 found any thread, then select the remote's current thread as GDB's
16078 current thread too.
16079
16080 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16081
16082 * NEWS: Create a new section for the next release branch.
16083 Rename the section of the current branch, now that it has
16084 been cut.
16085
16086 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16087
16088 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16089 * version.in: Bump version to 7.7.50.DATE-cvs.
16090
16091 2014-01-08 Yao Qi <yao@codesourcery.com>
16092
16093 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16094 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16095 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16096
16097 2014-01-08 Yao Qi <yao@codesourcery.com>
16098
16099 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16100 return value of bfd_get_filename to symbol_file_add_from_bfd.
16101
16102 2014-01-08 Pierre Muller <muller@sourceware.org>
16103
16104 Fix PR16201.
16105 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16106 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16107 to prim_record_mininal_symbol_and_info.
16108 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16109 in call to prim_record_minimal_symbol_and_info.
16110 (read_pe_exported_syms): Set index field of section_data.
16111
16112 2014-01-07 Andrew Pinski <apinski@cavium.com>
16113
16114 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16115 * features/aarch64.c: Regenerate.
16116
16117 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16118
16119 * target.c (return_null): Define.
16120 (update_current_target): Use it instead of return_zero for
16121 functions that return a pointer.
16122
16123 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16124
16125 * source.c (add_path): Fix check for duplicated paths in the previously
16126 included paths.
16127
16128 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16129
16130 * ada-lang.c: Remove duplicated include statements.
16131 * alphabsd-nat.c: Ditto.
16132 * amd64-darwin-tdep.c: Ditto.
16133 * amd64fbsd-nat.c: Ditto.
16134 * auto-load.c: Ditto.
16135 * ax-gdb.c: Ditto.
16136 * breakpoint.c: Ditto.
16137 * dbxread.c: Ditto.
16138 * fork-child.c: Ditto.
16139 * gdb_usleep.c: Ditto.
16140 * i386-darwin-tdep.c: Ditto.
16141 * i386fbsd-nat.c: Ditto.
16142 * infcmd.c: Ditto.
16143 * inferior.c: Ditto.
16144 * jv-lang.c: Ditto.
16145 * linux-nat.c: Ditto.
16146 * linux-tdep.c: Ditto.
16147 * m68kbsd-nat.c: Ditto.
16148 * m68klinux-nat.c: Ditto.
16149 * microblaze-tdep.c: Ditto.
16150 * mips-linux-tdep.c: Ditto.
16151 * mn10300-tdep.c: Ditto.
16152 * nto-tdep.c: Ditto.
16153 * opencl-lang.c: Ditto.
16154 * osdata.c: Ditto.
16155 * printcmd.c: Ditto.
16156 * regcache.c: Ditto.
16157 * remote-m32r-sdi.c: Ditto.
16158 * remote.c: Ditto.
16159 * symfile.c: Ditto.
16160 * symtab.c: Ditto.
16161 * tilegx-linux-nat.c: Ditto.
16162 * tilegx-tdep.c: Ditto.
16163 * tracepoint.c: Ditto.
16164 * valops.c: Ditto.
16165 * vaxbsd-nat.c: Ditto.
16166 * windows-nat.c: Ditto.
16167 * xtensa-tdep.c: Ditto.
16168
16169 2014-01-07 Yao Qi <yao@codesourcery.com>
16170
16171 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16172
16173 2014-01-07 Yao Qi <yao@codesourcery.com>
16174 Joel Brobecker <brobecker@adacore.com>
16175
16176 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16177 (pdc_write_regs): Likewise.
16178 (fetch_regs_kernel_thread): Likewise.
16179 (store_regs_kernel_thread): Likewise.
16180
16181 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16182
16183 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16184 tagged type objects to their actual type.
16185
16186 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16187
16188 * ada-valprint.c (print_field_values): Add "language" parameter.
16189 Update calls to print_field_values and print_variant_part.
16190 Pass new parameter "language" in call to val_print instead
16191 of "current_language". Replace call to ada_val_print by call
16192 to val_print.
16193 (print_variant_part): Add "language" parameter.
16194 (ada_val_print_struct_union): Update call to print_field_values.
16195
16196 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16197
16198 * ada-valprint.c (ui_memcpy): Delete.
16199 (ada_print_floating): Update documentation. Add empty line
16200 between between function documentation and implementation.
16201 Delete variable "buffer". Use ui_file_xstrdup in place of
16202 ui_file_put. Minor adjustments following this change.
16203
16204 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16205
16206 * ada-valprint.c (ada_val_print_string): New function,
16207 extracted from ada_val_print_array.
16208 (ada_val_print_array): Replace extracted code by call
16209 to ada_val_print_string followed by a return. Move
16210 "else" branch to the function's top block.
16211
16212 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16213
16214 * ada-valprint.c (ada_val_print_array): Move implementation
16215 down. Rename parameter "offset" and "val" into "offset_aligned"
16216 and "original_value" respectively. Add parameter "offset".
16217
16218 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16219
16220 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16221 re-organizing the code. Change the "???" message printed
16222 when target type is a TYPE_CODE_UNDEF into
16223 "<ref to undefined type>".
16224
16225 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16226
16227 * ada-valprint.c (print_record): Delete, implementation inlined...
16228 (ada_val_print_struct_union): ... here. Remove call to
16229 ada_check_typedef in inlined implementation.
16230
16231 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16232
16233 * ada-valprint.c (ada_val_print_gnat_array): New function,
16234 extracted from ada_val_print_1;
16235 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16236 (ada_val_print_flt, ada_val_print_struct_union)
16237 (ada_val_print_ref): Likewise.
16238 (ada_val_print_1): Delete variables i and elttype.
16239 Replace extracted-out code by call to corresponding
16240 new functions.
16241
16242 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16243
16244 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16245
16246 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16247
16248 * ada-valprint.c (ada_val_print_1): Replace calls to
16249 ada_val_print_1 by calls to val_print.
16250
16251 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16252
16253 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16254 Update calls to self accordingly. Replace calls to c_val_print
16255 by calls to val_print.
16256
16257 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16258
16259 * ada-valprint.c (print_record): Delete declaration.
16260 (adjust_type_signedness, ada_val_print_1): Likewise.
16261 (ada_val_print): Move function implementation down.
16262 (print_variant_part, print_field_values, print_record):
16263 Move function implementation up.
16264
16265 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16266
16267 * python/py-type.c (typy_get_name): New function.
16268 (type_object_getset): Add entry for attribute "name".
16269 * NEWS: Add entry mentioning this new attribute.
16270
16271 2014-01-07 Yao Qi <yao@codesourcery.com>
16272
16273 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16274 statement.
16275
16276 2014-01-07 Yao Qi <yao@codesourcery.com>
16277
16278 * gnu-nat.c (info_port_rights): Add qualifier const to
16279 argument args.
16280
16281 2014-01-07 Yao Qi <yao@codesourcery.com>
16282
16283 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16284
16285 2014-01-07 Yao Qi <yao@codesourcery.com>
16286
16287 * gnu-nat.c (make_inf) Update declaration.
16288 (make_inf): Make it static.
16289 (inf_set_traced): Likewise.
16290 (inf_port_to_thread, inf_task_died_status): Likewise.
16291
16292 2014-01-07 Yao Qi <yao@codesourcery.com>
16293
16294 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16295
16296 2014-01-07 Yao Qi <yao@codesourcery.com>
16297
16298 * gnu-nat.c (_initialize_gnu_nat): Declare.
16299
16300 2014-01-07 Yao Qi <yao@codesourcery.com>
16301
16302 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16303 'enum bfd_endian'.
16304 (struct gdbarch_info) <byte_order>: Change type to
16305 'enum bfd_endian'.
16306 <byte_order_for_code>: Likewise.
16307 * gdbarch.c, gdbarch.h: Regenerated.
16308
16309 2014-01-06 Sasha Smundak <asmundak@google.com>
16310
16311 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16312
16313 2014-01-06 Tom Tromey <tromey@redhat.com>
16314
16315 * doublest.c (convert_doublest_to_floatformat): Use const, not
16316 CONST.
16317 * somread.c (som_symtab_read): Likewise.
16318
16319 2014-01-07 Hui Zhu <hui@codesourcery.com>
16320
16321 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16322 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16323 (gdb_bfd_fopen): Ditto.
16324 (gdb_bfd_openr): Ditto.
16325 (gdb_bfd_openw): Ditto.
16326 (gdb_bfd_openr_iovec): Ditto.
16327 (gdb_bfd_fdopenr): Ditto.
16328 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16329 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16330 with xstrdup.
16331 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16332 with xstrdup.
16333 * symfile-mem.c (symbol_file_add_from_memory): Removed
16334 gdb_bfd_stash_filename.
16335
16336 2014-01-03 Doug Evans <dje@google.com>
16337
16338 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16339 output.
16340
16341 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16342
16343 Update year range in copyright notice of all files.
16344
16345 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16346
16347 * top.c (print_gdb_version): Set copyright year to 2014.
16348
16349 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16350
16351 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16352
16353 For older changes see ChangeLog-2013.
16354 \f
16355 Local Variables:
16356 mode: change-log
16357 left-margin: 8
16358 fill-column: 74
16359 version-control: never
16360 coding: utf-8
16361 End:
This page took 0.492955 seconds and 5 git commands to generate.