b672dc3eec52a4b2298f18e1d8675f4d7aafed26
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-17 Doug Evans <xdje42@gmail.com>
2
3 * valops.c (value_maybe_namespace_elt): Remove redundant call to
4 lookup_static_symbol.
5
6 2014-12-17 Doug Evans <xdje42@gmail.com>
7
8 New parameter "debug symbol-lookup".
9 * NEWS: Mention it.
10 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
11 output.
12 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
13 (cp_lookup_nested_symbol): Ditto.
14 * language.c (language_lookup_primitive_type_by_name): Add debug
15 output.
16 * minsyms.c (lookup_minimal_symbol): Add debug output.
17 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
18 * symfile-debug.c (debug_objfile_name): ... from here. All callers
19 updated.
20 * objfiles.h (objfile_debug_name): Declare.
21 * symtab.h (symbol_lookup_debug): Declare.
22 * symtab.c (symbol_lookup_debug): New global.
23 (lookup_language_this): Add debug output.
24 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
25 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
26 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
27 (_initialize_symtab): Add new parameter "debug symbol-lookup".
28
29 2014-12-16 Doug Evans <xdje42@gmail.com>
30
31 * buildsym.c: Add comments describing how the buildsym machinery
32 is used by the various file formats.
33 (really_free_pendings): Enhance function comment.
34 See pending_macros to NULL. Simplify resetting pending_addrmap.
35 Call free_buildsym_compunit.
36 (free_buildsym_compunit): Set current_subfile to NULL.
37 (prepare_for_building): New function.
38 (start_symtab): Call it. Remove call to set_last_source_file.
39 (restart_symtab): New arg "cust". All callers updated.
40 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
41 (reset_symtab_globals): Enhance function comment.
42 Set local_symbols, file_symbols, global_symbols to NULL.
43 Set pending_macros to NULL. Simplify resetting pending_addrmap.
44 Call free_buildysym_compunit.
45 (end_symtab_without_blockvector): Delete. All callers updated.
46 (end_symtab_with_blockvector): Remove redundant call to
47 free_buildsym_compunit.
48 (augment_type_symtab): Remove arg "cust". All callers updated.
49 (buildsym_init): Remove resetting of free_pendings, file_symbols,
50 global_symbols, pending_blocks, pending_macros. Instead make
51 handling consistent with pending_addrmap: Assert value was reset
52 at end of previous symtab building. Initialize context_stack here.
53
54 2014-12-16 Doug Evans <xdje42@gmail.com>
55
56 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
57 cp_lookup_symbol_imports. All callers updated.
58
59 2014-12-16 Doug Evans <xdje42@gmail.com>
60
61 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
62 find_type_baseclass_by_name. All callers updated.
63
64 2014-12-16 Doug Evans <xdje42@gmail.com>
65
66 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
67 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
68 (print_symbol_info): Delete arg symtab. All callers updated.
69 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
70
71 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
72
73 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
74 "Name" columns. Assure that the output is always indented.
75
76 2014-12-16 Joel Brobecker <brobecker@adacore.com>
77
78 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
79 already defined.
80 (linux_enable_event_reporting): Add parameter "attached".
81 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
82 declaration. New function.
83 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
84 (linux_enable_event_reporting): Add new parameter "attached".
85 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
86 nonzero.
87 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
88 Use it. Update function description.
89 (linux_child_post_attach, linux_child_post_startup_inferior):
90 Update call to linux_enable_event_reporting.
91
92 2014-12-16 Yao Qi <yao@codesourcery.com>
93
94 * NEWS: Move some entries to "Changes since GDB 7.8" section.
95
96 2014-12-16 Yao Qi <yao@codesourcery.com>
97
98 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
99 ARG_LAST.
100
101 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
102
103 * inferior.c (find_inferior_ptid): New function.
104 * inferior.h (find_inferior_ptid): New declaration.
105 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
106 * corelow.c (core_pid_to_str): Same.
107 * darwin-nat.c (darwin_resume): Same.
108 * infrun.c (fetch_inferior_event): Same.
109 (get_inferior_stop_soon): Same.
110 (handle_inferior_event): Same.
111 (handle_signal_stop): Same.
112 * linux-nat.c (resume_lwp): Same.
113 (stop_wait_callback): Same.
114 * mi/mi-interp.c (mi_new_thread): Same.
115 (mi_thread_exit): Same.
116 * proc-service.c (ps_pglobal_lookup): Same.
117 * record-btrace.c (record_btrace_step_thread): Same.
118 * remote-sim.c (gdbsim_close_inferior): Same.
119 (gdbsim_resume): Same.
120 (gdbsim_stop): Same.
121 * sol2-tdep.c (sol2_core_pid_to_str): Same.
122 * target.c (memory_xfer_partial_1): Same.
123 (default_thread_address_space): Same.
124 * thread.c (thread_change_ptid): Same.
125 (switch_to_thread): Same.
126 (do_restore_current_thread_cleanup): Same.
127
128 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
129
130 * defs.h (gdb_readline): Constify argument.
131 (gdb_readline_wrapper): Same.
132 (command_line_input): Same.
133 (deprecated_readline_hook): Same.
134 * top.c (deprecated_readline_hook): Same.
135 (gdb_readline): Same.
136 (gdb_readline_wrapper): Same.
137 (command_line_input): Constify argument. Pass prompt_arg to called
138 functions instead of local_prompt, overwriting prompt_arg if necessary.
139 * event-top.h (display_gdb_prompt): Constify argument.
140 * event-top.c (display_gdb_prompt): Same.
141 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
142 if building with Python 3.4 and up.
143
144 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
145
146 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
147 os.getcwdu().
148
149 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
150
151 PR gdb/15684
152 * memattr.c (mem_info_command): Remove "unsigned long" casts.
153
154 2014-12-13 Doug Evans <xdje42@gmail.com>
155
156 * utils.c (make_hex_string): Fix off-by-one error.
157
158 2014-12-13 Joel Brobecker <brobecker@adacore.com>
159
160 * ada-lang.h (ada_ensure_varsize_limit): Declare.
161 * ada-lang.c (check_size): Remove advance declaration.
162 (ada_ensure_varsize_limit): Renames check_size.
163 Replace calls to check_size by calls to ada_ensure_varsize_limit
164 throughout.
165 * ada-valprint.c (ada_val_print_ref): Add call to
166 ada_ensure_varsize_limit. Add comment explaining why.
167
168 2014-12-13 Joel Brobecker <brobecker@adacore.com>
169
170 * utils.c (make_hex_string): Replace use of sprintf by use of
171 xsnprintf.
172
173 2014-12-13 Joel Brobecker <brobecker@adacore.com>
174
175 * compile/compile-object-load.c (link_callbacks_multiple_definition)
176 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
177 newline at end of warning message.
178
179 2014-12-13 Joel Brobecker <brobecker@adacore.com>
180
181 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
182 new "EXTRA-ARGS" parameter.
183 * configure.ac: If large-file support is disabled in GDB,
184 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
185 * configure: Regenerate.
186
187 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
188
189 PR symtab/17642
190 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
191 TYPE if not TYPE_CODE_TYPEDEF.
192
193 2014-12-13 Joel Brobecker <brobecker@adacore.com>
194
195 PR backtrace/16215:
196 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
197 the frame unwinder must either be the dwarf2_frame_unwind
198 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
199 stack_addr is valid before calling get_frame_base. Throw
200 an error if not valid.
201
202 2014-12-12 Doug Evans <xdje42@gmail.com>
203
204 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
205 result != NULL.
206
207 2014-12-12 Doug Evans <xdje42@gmail.com>
208
209 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
210 All callers updated. Rename arg "namespace" to "symbol_name".
211
212 2014-12-12 Doug Evans <xdje42@gmail.com>
213
214 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
215 partial_map_symtabs_matching_filename. All uses updated.
216 (psym_find_pc_sect_compunit_symtab): Renamed from
217 find_pc_sect_compunit_symtab_from_partial. All uses updated.
218 Add function comment.
219 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
220 All uses updated. Add function comment.
221 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
222 Add function comment.
223 (psym_find_last_source_symtab): Renamed from
224 find_last_source_symtab_from_partial. All uses updated.
225 Add function comment.
226 (psym_forget_cached_source_info): Renamed from
227 forget_cached_source_info_partial. All uses updated.
228 Add function comment.
229 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
230 All uses updated. Add function comment.
231 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
232 updated. Add function comment.
233 (psym_expand_symtabs_for_function): Renamed from
234 read_symtabs_for_function. All uses updated. Update function comment.
235 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
236 All uses updated. Add function comment.
237 (psym_expand_symtabs_with_fullname): Renamed from
238 read_psymtabs_with_fullname. All uses updated. Add function comment.
239 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
240 All uses updated. Add function comment.
241 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
242 All uses updated.
243 (psym_expand_symtabs_matching): Renamed from
244 expand_symtabs_matching_via_partial. All uses updated.
245 Add function comment.
246 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
247 Add function comment.
248
249 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
250 Jan Kratochvil <jan.kratochvil@redhat.com>
251 Tom Tromey <tromey@redhat.com>
252
253 * NEWS: Update.
254 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
255 field.
256 * p-lang.c (pascal_language_defn): Update.
257 * opencl-lang.c (opencl_language_defn): Update.
258 * objc-lang.c (objc_language_defn): Update.
259 * m2-lang.c (m2_language_defn): Update.
260 * language.h (struct language_defn) <la_get_compile_instance,
261 la_compute_program>: New fields.
262 * language.c (unknown_language_defn, auto_language_defn)
263 (local_language_defn): Update.
264 * jv-lang.c (java_language_defn): Update.
265 * go-lang.c (go_language_defn): Update.
266 * f-lang.c (f_language_defn): Update.
267 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
268 * dwarf2loc.c (dwarf2_compile_property_to_c)
269 (locexpr_generate_c_location, loclist_generate_c_location): New
270 functions.
271 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
272 * defs.h (enum compile_i_scope_types): New.
273 (enum command_control_type) <compile_control>: New constant.
274 (struct command_line) <control_u>: New field.
275 * d-lang.c (d_language_defn): Update.
276 * compile/compile.c: New file.
277 * compile/compile-c-support.c: New file.
278 * compile/compile-c-symbols.c: New file.
279 * compile/compile-c-types.c: New file.
280 * compile/compile.h: New file.
281 * compile/compile-internal.h: New file.
282 * compile/compile-loc2c.c: New file.
283 * compile/compile-object-load.c: New file.
284 * compile/compile-object-load.h: New file.
285 * compile/compile-object-run.c: New file.
286 * compile/compile-object-run.h: New file.
287 * cli/cli-script.c (multi_line_command_p, print_command_lines)
288 (execute_control_command, process_next_line)
289 (recurse_read_control_structure): Handle compile_control.
290 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
291 * c-lang.c (c_language_defn, cplus_language_defn)
292 (asm_language_defn, minimal_language_defn): Update.
293 * ada-lang.c (ada_language_defn): Update.
294 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
295 New variables.
296 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
297 (HFILES_NO_SRCDIR): Add compile.h.
298 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
299 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
300 (compile.o, compile-c-types.o, compile-c-symbols.o)
301 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
302 (compile-c-support.o): New targets.
303
304 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
305
306 * s390-linux-tdep.c (s390_gcc_target_options): New function.
307 (s390_gdbarch_init): Add it to gdbarch.
308
309 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
310
311 * linux-tdep.c: Include objfiles.h and infcall.h.
312 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
313 function.
314 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
315
316 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
317
318 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
319 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
320 translate_register. Now public.
321 (dwarf2_compile_expr_to_ax): Update.
322
323 2014-12-12 Tom Tromey <tromey@redhat.com>
324 Jan Kratochvil <jan.kratochvil@redhat.com>
325
326 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
327 (dwarf_expr_frame_base): Update caller.
328 (dwarf_expr_frame_base_1): Rename to ...
329 (func_get_frame_base_dwarf_block): ... this and make it public.
330 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
331 callers.
332 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
333
334 2014-12-12 Tom Tromey <tromey@redhat.com>
335
336 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
337 Update.
338 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
339 dwarf2_compile_cfa_to_ax.
340 (dwarf2_compile_cfa_to_ax): Remove.
341 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
342 (dwarf2_compile_cfa_to_ax): Remove.
343
344 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
345
346 * infcall.h (call_function_by_hand_dummy): Declare.
347 * infcall.c (call_function_by_hand): Use
348 call_function_by_hand_dummy.
349 (call_function_by_hand_dummy): Rename from call_function_by_hand.
350 Add arguments. Register a destructor.
351
352 2014-12-12 Tom Tromey <tromey@redhat.com>
353 Jan Kratochvil <jan.kratochvil@redhat.com>
354
355 * osabi.h (osabi_triplet_regexp): Declare.
356 * osabi.c (struct osabi_names): New.
357 (gdb_osabi_names): Change type to struct osabi_names. Update
358 values.
359 (gdbarch_osabi_name): Update.
360 (osabi_triplet_regexp): New function.
361 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
362 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
363 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
364 set_gdbarch_gnu_triplet_regexp.
365 * gdbarch.sh (gnu_triplet_regexp): New method.
366 * gdbarch.c, gdbarch.h: Rebuild.
367 * arch-utils.h (default_gnu_triplet_regexp): Declare.
368 * arch-utils.c (default_gnu_triplet_regexp): New function.
369
370 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
371
372 * arch-utils.c (default_infcall_mmap)
373 (default_gcc_target_options): New functions.
374 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
375 (GDB_MMAP_PROT_EXEC): Define.
376 (default_infcall_mmap, default_gcc_target_options): Declare.
377 * gdbarch.h: Rebuild.
378 * gdbarch.c: Rebuild.
379 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
380
381 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
382
383 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
384 fields.
385 (pop_dummy_frame): Call the destructor if it exists.
386 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
387 functions.
388 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
389 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
390
391 2014-12-12 Tom Tromey <tromey@redhat.com>
392
393 * gdbtypes.h (make_unqualified_type): Declare.
394 * gdbtypes.c (make_unqualified_type): New function.
395
396 2014-12-12 Tom Tromey <tromey@redhat.com>
397
398 * ui-file.h (ui_file_write_for_put): Declare.
399 * ui-file.c (ui_file_write_for_put): New function.
400 * mi/mi-out.c (do_write): Remove.
401 (mi_out_put): Use ui_file_write_for_put.
402
403 2014-12-12 Doug Evans <dje@google.com>
404
405 * NEWS: Mention gdb.lookup_objfile.
406 * python/python.c (GdbMethods): Add lookup_objfile.
407 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
408 * python/py-objfile.c: #include "symtab.h".
409 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
410 (objfpy_lookup_objfile_by_name): New function.
411 (objfpy_lookup_objfile_by_build_id): New function.
412 (gdbpy_lookup_objfile): New function.
413
414 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
415
416 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
417 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
418 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
419 macros.
420 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
421 Likewise.
422
423 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
424
425 * completer.c: Include "target.h", "reggroups.h", and
426 "user-regs.h".
427 (reg_or_group_completer): New.
428 * completer.h (reg_or_group_completer): Declare.
429 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
430 the "info registers" and "info all-registers" commands and the
431 dbx-mode "lr" command.
432
433 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
434
435 * user-regs.c: Include "arch-utils.h", "command.h", and
436 "cli/cli-cmds.h".
437 (maintenance_print_user_registers): New.
438 (_initialize_user_regs): Register new "maint print user-registers"
439 subcommand.
440 * NEWS: Mention new GDB command "maint print user-registers".
441
442 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
443 Maciej W. Rozycki <macro@mips.com>
444 Pedro Alves <pedro@codesourcery.com>
445
446 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
447 remove `predefault' and `invalid_p' initializers.
448 (make_symbol_special): New architecture method.
449 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
450 (objfile, symbol): New declarations.
451 * arch-utils.h (default_elf_make_msymbol_special): Remove
452 prototype.
453 (default_make_symbol_special): New prototype.
454 (default_adjust_dwarf2_addr): Likewise.
455 (default_adjust_dwarf2_line): Likewise.
456 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
457 * arch-utils.c (default_elf_make_msymbol_special): Remove
458 function.
459 (default_make_symbol_special): New function.
460 (default_adjust_dwarf2_addr): Likewise.
461 (default_adjust_dwarf2_line): Likewise.
462 * dwarf2-frame.c (decode_frame_entry_1): Call
463 `gdbarch_adjust_dwarf2_addr'.
464 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
465 * dwarf2read.c (create_addrmap_from_index): Likewise.
466 (process_psymtab_comp_unit_reader): Likewise.
467 (add_partial_symbol): Likewise.
468 (add_partial_subprogram): Likewise.
469 (process_full_comp_unit): Likewise.
470 (read_file_scope): Likewise.
471 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
472 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
473 (read_call_site_scope): Likewise.
474 (dwarf2_ranges_read): Likewise.
475 (dwarf2_record_block_ranges): Likewise.
476 (read_attribute_value): Likewise.
477 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
478 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
479 * elfread.c (elf_symtab_read): Don't call
480 `gdbarch_elf_make_msymbol_special' if unset.
481 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
482 the ISA bit from the PC.
483 * mips-tdep.c (mips_unmake_compact_addr): New function.
484 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
485 address appropriately.
486 (mips_make_symbol_special): New function.
487 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
488 (mips_pc_is_mips16): Likewise.
489 (mips_pc_is_micromips): Likewise.
490 (mips_pc_isa): Likewise.
491 (mips_adjust_dwarf2_addr): New function.
492 (mips_adjust_dwarf2_line): Likewise.
493 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
494 (mips_addr_bits_remove): Likewise.
495 (mips_skip_trampoline_code): Likewise.
496 (mips_write_pc): Don't set the ISA bit.
497 (mips_eabi_push_dummy_call): Likewise.
498 (mips_o64_push_dummy_call): Likewise.
499 (mips_gdbarch_init): Install `mips_make_symbol_special',
500 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
501 handlers.
502 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
503 target-specific symbol address adjustments.
504 * gdbarch.h: Regenerate.
505 * gdbarch.c: Regenerate.
506
507 2014-12-12 Yao Qi <yao@codesourcery.com>
508
509 PR tdep/14261
510 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
511 'skip_pc'. Remove code skipping prologue instructions, use
512 arm_analyze_prologue instead.
513 (arm_analyze_prologue): Stop the scanning for unrecognized
514 instruction when skipping prologue.
515
516 2014-12-12 Yao Qi <yao@codesourcery.com>
517
518 * arm-tdep.c (arm_instruction_restores_sp): New function.
519 (arm_analyze_prologue): Call arm_instruction_restores_sp.
520 (arm_in_function_epilogue_p): Move code to
521 arm_instruction_restores_sp.
522
523 2014-12-11 Doug Evans <xdje42@gmail.com>
524
525 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
526
527 2014-12-11 Doug Evans <xdje42@gmail.com>
528
529 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
530 (symbol *lookup_symbol_via_quick_fns): Ditto.
531 (lookup_symbol_in_objfile): Add forward decl.
532 (lookup_global_symbol_from_objfile): Simplify, call
533 lookup_symbol_in_objfile.
534
535 2014-12-11 Doug Evans <xdje42@gmail.com>
536
537 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
538
539 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
540
541 PR breakpoints/17012
542 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
543 it is marked as persistent.
544
545 2014-12-10 Doug Evans <xdje42@gmail.com>
546
547 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
548 closer to its subroutines.
549
550 2014-12-10 Doug Evans <xdje42@gmail.com>
551
552 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
553
554 2014-12-10 Doug Evans <xdje42@gmail.com>
555
556 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
557 * cp-support.c (cp_lookup_symbol_imports): Delete.
558
559 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
560
561 PR gdb/17627
562 * target.c (cleanup_restore_target_terminal): New function.
563 (make_cleanup_restore_target_terminal): New function.
564 * target.h (make_cleanup_restore_target_terminal): New declaration.
565 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
566
567 2014-12-08 Doug Evans <dje@google.com>
568
569 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
570
571 2014-12-08 Doug Evans <dje@google.com>
572
573 * NEWS: Mention gdb.Objfile.owner.
574 * python/py-objfile.c (objfpy_get_owner): New function.
575 (objfile_getset): Add "owner".
576
577 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
578
579 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
580 (lookup_global_symbol_from_objfile): Call it.
581
582 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
583
584 Remove const from struct objfile *.
585 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
586 symtab.c, symtab.h: In these files.
587
588 2014-12-05 Andreas From <andreas.from@ericsson.com>
589
590 * MAINTAINERS (Write After Approval): Add "Andreas From"
591
592 2014-12-05 Doug Evans <xdje42@gmail.com>
593
594 Revert:
595 PR symtab/17602
596 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
597
598 2014-12-04 Doug Evans <dje@google.com>
599
600 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
601 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
602 (objfile_getset): Add "add_separate_debug_file".
603
604 2014-12-04 Doug Evans <dje@google.com>
605
606 * NEWS: Mention gdb.Objfile.build_id.
607 * build-id.c (build_id_bfd_get): Make non-static.
608 * build-id.h (build_id_bfd_get): Add declaration.
609 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
610 (OBJFPY_REQUIRE_VALID): New macro.
611 (objfpy_get_build_id): New function.
612 (objfile_getset): Add "build_id".
613 * utils.c (make_hex_string): New function.
614 * utils.h (make_hex_string): Add declaration.
615
616 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
617
618 * block.c (block_lookup_symbol_primary): New function.
619 * block.h (block_lookup_symbol_primary): New declaration.
620 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
621 Call block_lookup_symbol_primary.
622
623 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
624
625 * tramp-frame.h (tramp_frame): Add `validate' member.
626 * tramp-frame.c (tramp_frame_start): Validate trampoline before
627 scanning.
628 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
629 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
630 (mips_linux_o32_sigframe): Initialize `validate' member.
631 (mips_linux_o32_rt_sigframe): Likewise.
632 (mips_linux_n32_rt_sigframe): Likewise.
633 (mips_linux_n64_rt_sigframe): Likewise.
634 (micromips_linux_o32_sigframe): New variable.
635 (micromips_linux_o32_rt_sigframe): Likewise.
636 (micromips_linux_n32_rt_sigframe): Likewise.
637 (micromips_linux_n64_rt_sigframe): Likewise.
638 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
639 (mips_linux_n32n64_sigframe_init): Likewise.
640 (mips_linux_sigframe_validate): New function.
641 (micromips_linux_sigframe_validate): Likewise.
642 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
643
644 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
645
646 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
647 * sparc-sol2-tdep.c: Include "regset.h".
648 (sparc32_sol2_supply_core_gregset): New function.
649 (sparc32_sol2_collect_core_gregset): Likewise.
650 (sparc32_sol2_supply_core_fpregset): Likewise.
651 (sparc32_sol2_collect_core_fpregset): Likewise.
652 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
653 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
654 tdep->fpregset/sizeof_fpregset.
655 * sparc64-sol2-tdep.c: Include "regset.h".
656 (sparc64_sol2_supply_core_gregset): New function.
657 (sparc64_sol2_collect_core_gregset): Likewise.
658 (sparc64_sol2_supply_core_fpregset): Likewise.
659 (sparc64_sol2_collect_core_fpregset): Likewise.
660 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
661 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
662 tdep->fpregset/sizeof_fpregset.
663
664 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
665
666 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
667 type.
668
669 2014-12-02 Doug Evans <dje@google.com>
670
671 * symtab.c (symbol_init_cplus_specific): Delete.
672 (symbol_set_demangled_name): Remove special c++ support.
673 (symbol_get_demangled_name, symbol_set_language): Ditto.
674 * symtab.h (struct cplus_specific): Delete.
675 (struct general_symbol_info) <language_specific>: Remove
676 cplus_specific.
677
678 2014-12-02 Doug Evans <dje@google.com>
679
680 PR symtab/17602
681 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
682
683 2014-12-02 Doug Evans <dje@google.com>
684
685 PR symtab/17591
686 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
687 to strip parameters.
688
689 2014-12-02 Doug Evans <dje@google.com>
690
691 * dwarf2read.c (peek_die_abbrev): Improve error message text.
692
693 2014-12-02 Doug Evans <dje@google.com>
694
695 * valops.c (do_search_struct_field): Remove remnant of Chill support.
696 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
697
698 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
699
700 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
701
702 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
703
704 * NEWS: Mention new Python events.
705 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
706 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
707 (py-infevents.o): New rule.
708 * doc/observer.texi (inferior_call_pre, inferior_call_post)
709 (memory_changed, register_changed): New observers.
710 * infcall.c (call_function_by_hand): Notify observer before and
711 after inferior call.
712 * python/py-event.h (inferior_call_kind): New enum.
713 (emit_inferior_call_event): New prototype.
714 (emit_register_changed_event): New prototype.
715 (emit_memory_changed_event): New prototype.
716 * python/py-events.h (events_object): New registries
717 inferior_call, memory_changed and register_changed.
718 * python/py-evts.c (gdbpy_initialize_py_events): Add the
719 inferior_call, memory_changed and register_changed registries.
720 * python/py-infevents.c: New.
721 * python/py-inferior.c (python_on_inferior_call_pre)
722 (python_on_inferior_call_post, python_on_register_change)
723 (python_on_memory_change): New functions.
724 (gdbpy_initialize_inferior): Attach python handler to new
725 observers.
726 * python/py-infthread.c(gdbpy_create_ptid_object): New.
727 (thpy_get_ptid) Use gdbpy_create_ptid_object.
728 * python/python-internal.h:
729 (gdbpy_create_ptid_object)
730 (gdbpy_initialize_inferior_call_pre_event)
731 (gdbpy_initialize_inferior_call_post_event)
732 (gdbpy_initialize_register_changed_event)
733 (gdbpy_initialize_memory_changed_event): New prototypes.
734 * python/python.c (_initialize_python): Initialize new events.
735 * valops.c (value_assign): Notify register_changed observer.
736
737 2014-12-02 Doug Evans <dje@google.com>
738
739 * python/py-infthread.c: Whitespace fixes.
740
741 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
742
743 * features/Makefile (s390-te-linux64-expedite): Replace
744 non-existant r14 and r15 by r14l and r15l, respectively.
745 * regformats/s390-te-linux64.dat: Regenerate.
746
747 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
748
749 * objfiles.c (allocate_objfile): Remove duplicate comment.
750
751 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
752
753 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
754 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
755 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
756 (supply_gregset, supply_fpregset): Remove.
757 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
758 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
759 and sizeof_gregset.
760
761 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
762
763 Add add-auto-load-scripts-directory.
764 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
765 * auto-load.c (add_auto_load_dir): New function.
766 (_initialize_auto_load): Install it.
767
768 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
769
770 Pushed by Joel Brobecker <brobecker@adacore.com>.
771 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
772
773 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
774
775 * eval.c (evaluate_subexp): Check that the thread stack temporaries
776 are not already enabled before enabling them.
777
778 2014-11-29 Yao Qi <yao@codesourcery.com>
779
780 * arm-tdep.c (arm_analyze_prologue): Move local variables
781 'framereg' and 'framesize' to inner block. Move code to
782 inner block too.
783
784 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
785
786 * eval.c: Include gdbthread.h.
787 (evaluate_subexp): Enable thread stack temporaries before
788 evaluating a complete expression and clean them up after the
789 evaluation is complete.
790 * gdbthread.h: Include common/vec.h.
791 (value_ptr): New typedef.
792 (VEC (value_ptr)): New vector type.
793 (value_vec): New typedef.
794 (struct thread_info): Add new fields stack_temporaries_enabled
795 and stack_temporaries.
796 (enable_thread_stack_temporaries)
797 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
798 (get_last_thread_stack_temporary)
799 (value_in_thread_stack_temporaries): Declare.
800 * gdbtypes.c (class_or_union_p): New function.
801 * gdbtypes.h (class_or_union_p): Declare.
802 * infcall.c (call_function_by_hand): Store return values of class
803 type as temporaries on stack.
804 * thread.c (enable_thread_stack_temporaries): New function.
805 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
806 (get_last_thread_stack_temporary): Likewise.
807 (value_in_thread_stack_temporaries): Likewise.
808 * value.c (value_force_lval): New function.
809 * value.h (value_force_lval): Declare.
810
811 2014-11-28 Pierre Muller <muller@sourceware.org>
812
813 Pushed by Joel Brobecker <brobecker@adacore.com>.
814 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
815 registers.
816
817 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
818
819 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
820 * config/sparc/linux.mh (NATDEPFILES): Likewise.
821 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
822 * m68klinux-nat.c (fetch_core_registers): Remove.
823 (linux_elf_core_fns): Remove.
824 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
825
826 2014-11-28 Joel Brobecker <brobecker@adacore.com>
827
828 * utils.c (gdb_realpath): Rework comment about handling on
829 Windows.
830
831 2014-11-28 Yao Qi <yao@codesourcery.com>
832
833 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
834 rename.
835 * gnulib/aclocal.m4: Re-generated.
836 * gnulib/config.in: Re-generated.
837 * gnulib/configure: Re-generated.
838 * gnulib/import/Makefile.am: Re-generated.
839 * gnulib/import/Makefile.in: Re-generated.
840 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
841 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
842 * import/basename-lgpl.c: New file.
843 * import/dirname-lgpl.c: New file.
844 * import/dirname.h: New file.
845 * import/m4/dirname.m4: New file.
846 * import/m4/malloc.m4: New file.
847 * import/m4/rename.m4: New file.
848 * import/m4/rmdir.m4: New file.
849 * import/m4/stdio_h.m4: New file.
850 * import/malloc.c: New file.
851 * import/rename.c: New file.
852 * import/rmdir.c: New file.
853 * import/same-inode.h: New file.
854 * import/stdio.c: New file.
855 * import/stdio.in.h: New file.
856 * import/stripslash.c: New file.
857
858 2014-11-28 Yao Qi <yao@codesourcery.com>
859
860 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
861 and realpath.
862 * config.in: Re-generated.
863 * configure: Re-generated.
864 * utils.c (gdb_realpath): Remove code calling realpath,
865 canonicalize_file_name and pathconf.
866 [!_WIN32]: Call canonicalize_file_name.
867
868 2014-11-28 Yao Qi <yao@codesourcery.com>
869
870 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
871 canonicalize-lgpl.
872 * aclocal.m4: Re-generated.
873 * config.in: Re-generated.
874 * configure: Re-generated.
875 * import/Makefile.am: Re-generated.
876 * import/Makefile.in: Re-generated.
877 * import/m4/gnulib-cache.m4: Re-generated.
878 * import/m4/gnulib-comp.m4: Re-generated.
879 * import/canonicalize-lgpl.c: New file.
880 * import/extra/snippet/_Noreturn.h: New file.
881 * import/m4/canonicalize.m4: New file.
882 * import/m4/double-slash-root.m4: New file.
883 * import/m4/eealloc.m4: New file.
884 * import/m4/malloca.m4: New file.
885 * import/m4/nocrash.m4: New file.
886 * import/m4/stdlib_h.m4: New file.
887 * import/malloca.c: New file.
888 * import/malloca.h: New file.
889 * import/malloca.valgrind: New file.
890
891 2014-11-28 Yao Qi <yao@codesourcery.com>
892
893 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
894 * config.in, configure: Regenerate.
895 * symfile.c (find_separate_debug_file_by_debuglink): Remove
896 code checking HAVE_LSTAT is defined.
897
898 2014-11-28 Yao Qi <yao@codesourcery.com>
899
900 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
901 lstat.
902 * gnulib/aclocal.m4: Re-generated.
903 * gnulib/config.in: Re-generated.
904 * gnulib/configure: Re-generated.
905 * gnulib/import/Makefile.am: Re-generated.
906 * gnulib/import/Makefile.in: Re-generated.
907 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
908 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
909 * gnulib/import/lstat.c: New file.
910 * gnulib/import/m4/lstat.m4: New file.
911
912 2014-11-28 Yao Qi <yao@codesourcery.com>
913
914 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
915 * config.in, configure: Re-generate.
916 * inf-child.c (inf_child_fileio_readlink): Don't check
917 HAVE_READLINK is defined.
918
919 2014-11-28 Yao Qi <yao@codesourcery.com>
920
921 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
922 * gnulib/aclocal.m4: Re-generated.
923 * gnulib/config.in: Likewise.
924 * gnulib/configure: Likewise.
925 * gnulib/import/Makefile.am: Likewise.
926 * gnulib/import/Makefile.in: Likewise.
927 * gnulib/import/m4/gnulib-cache.m4: Likewise.
928 * gnulib/import/m4/gnulib-comp.m4: Likewise.
929 * gnulib/import/dosname.h: New file
930 * gnulib/import/m4/largefile.m4: New file.
931 * gnulib/import/m4/readlink.m4: New file.
932 * gnulib/import/m4/stat.m4: New file.
933 * gnulib/import/readlink.c: New file.
934 * gnulib/import/stat.c: New file.
935
936 2014-11-26 Mark Wielaard <mjw@redhat.com>
937
938 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
939 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
940
941 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
942
943 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
944 that there can be only one stack adjustment in the prologue
945 with tests to detect specific disallowed stack adjustments.
946
947 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
948
949 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
950 adjustments.
951
952 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
953
954 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
955 the instruction as well as reading it from memory.
956 (nios2_match_add): New.
957 (nios2_match_sub): New.
958 (nios2_match_addi): New.
959 (nios2_match_orhi): New.
960 (nios2_match_stw): New.
961 (nios2_match_ldw): New.
962 (nios2_match_rdctl): New.
963 (enum branch_condition): New.
964 (nios2_match_branch): New.
965 (nios2_match_jmpi): New.
966 (nios2_match_calli): New.
967 (nios2_match_jmpr): New.
968 (nios2_match_callr): New.
969 (nios2_match_break): New.
970 (nios2_match_trap): New.
971 (nios2_in_epilogue_p): Rewrite to use new functions.
972 (nios2_analyze_prologue): Likewise.
973 (nios2_skip_prologue): Delete unused local limit_pc.
974 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
975 (nios2_get_next_pc): Rewrite to use new functions.
976
977 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
978
979 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
980
981 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
982
983 Pushed by Joel Brobecker <brobecker@adacore.com>
984 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
985 elements pi_len by the size of the elements before calling
986 vm_deallocate.
987 (inf_validate_task_sc): Likewise, and properly deallocate the
988 noise array.
989
990 2014-11-23 Doug Evans <xdje42@gmail.com>
991
992 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
993 number and name if present. All callers updated.
994 (dump_fn_fieldlists): Fix indentation of args.
995
996 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
997
998 * MAINTAINERS (Write After Approval): Add myself.
999
1000 2014-11-23 Joel Brobecker <brobecker@adacore.com>
1001
1002 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1003 to a bp_call_dummy breakpoint type.
1004
1005 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1006
1007 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1008 registering the signal handler.
1009
1010 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1011
1012 * event-top.h (call_stdin_event_handler_again_p): Declare.
1013 * event-top.c (call_stdin_event_handler_again_p): Define.
1014 (stdin_event_handler): Use it.
1015 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1016 handler again if there is pending input following a
1017 start sequence.
1018
1019 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1020
1021 Pushed by Joel Brobecker <brobecker@adacore.com>
1022 * linux-fork.c (checkpoint_command): Print index of new
1023 checkpoint in response message.
1024
1025 2014-11-23 Yao Qi <yao@codesourcery.com>
1026
1027 * valprint.c (read_string): Move local variables 'found_nul',
1028 'chunksize' and 'limit' to inner scope. Update comments.
1029
1030 2014-11-22 Doug Evans <xdje42@gmail.com>
1031
1032 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1033 function comment.
1034 (search_symbols): Fix comments and whitespace.
1035
1036 2014-11-22 Doug Evans <xdje42@gmail.com>
1037
1038 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1039
1040 2014-11-21 Doug Evans <dje@google.com>
1041
1042 * psymtab.c (psymtab_search_name): Fix whitespace.
1043
1044 2014-11-21 Yao Qi <yao@codesourcery.com>
1045
1046 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1047 errno.
1048 * gnulib/import/Makefile.am: Re-generated.
1049 * gnulib/import/Makefile.in: Likewise.
1050 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1051
1052 2014-11-21 Yao Qi <yao@codesourcery.com>
1053
1054 * gdb_wchar.h: Include wchar.h and wctype.h.
1055 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1056 include wchar.h and wctype.h.
1057 Don't check HAVE_WCHAR_H.
1058
1059 2014-11-21 Yao Qi <yao@codesourcery.com>
1060
1061 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1062 and wctype-h.
1063 * gnulib/import/Makefile.am: Re-generated.
1064 * gnulib/import/Makefile.in: Likewise.
1065 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1066
1067 2014-11-21 Yao Qi <yao@codesourcery.com>
1068
1069 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1070 memchr.
1071 * gnulib/import/Makefile.am: Re-generated.
1072 * gnulib/import/Makefile.in: Likewise.
1073 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1074
1075 2014-11-21 Yao Qi <yao@codesourcery.com>
1076
1077 * common/common-defs.h: Include alloca.h
1078 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1079 * configure: Re-generated.
1080 * defs.h: Remove code handling alloca.
1081 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1082 or not.
1083
1084 2014-11-21 Yao Qi <yao@codesourcery.com>
1085
1086 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1087 alloca.
1088 * gnulib/import/Makefile.am: Re-generated.
1089 * gnulib/import/Makefile.in: Likewise..
1090 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1091
1092 2014-11-21 Yao Qi <yao@codesourcery.com>
1093
1094 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1095 alphabetical order.
1096
1097 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1098
1099 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1100 flag_unsigned if HIGH_BOUND is constant and negative.
1101
1102 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1103
1104 PR breakpoints/10737
1105 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1106 modifier from "struct gdbarch" when compiling without Expat (XML)
1107 support.
1108 (get_syscall_by_number): Likewise.
1109 (get_syscall_by_name): Likewise.
1110 (get_syscall_names): Likewise.
1111
1112 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1113
1114 PR breakpoints/10737
1115 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1116 set_xml_syscall_file_name to provide gdbarch.
1117 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1118 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1119 * breakpoint.c (print_it_catch_syscall): Adjust call to
1120 get_syscall_by_number to provide gdbarch.
1121 (print_one_catch_syscall): Likewise.
1122 (print_mention_catch_syscall): Likewise.
1123 (print_recreate_catch_syscall): Likewise.
1124 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1125 and get_syscall_by_name to provide gdbarch.
1126 (catch_syscall_completer): Adjust call to get_syscall_names to
1127 provide gdbarch.
1128 * gdbarch.c: Regenerate.
1129 * gdbarch.h: Likewise.
1130 * gdbarch.sh: Forward declare "struct syscalls_info".
1131 (xml_syscall_file): New variable.
1132 (syscalls_info): Likewise.
1133 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1134 set_xml_syscall_file_name to provide gdbarch.
1135 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1136 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1137 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1138 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1139 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1140 * xml-syscall.c: Include gdbarch.h.
1141 (set_xml_syscall_file_name): Accept gdbarch parameter.
1142 (get_syscall_by_number): Likewise.
1143 (get_syscall_by_name): Likewise.
1144 (get_syscall_names): Likewise.
1145 (my_gdb_datadir): Delete global variable.
1146 (struct syscalls_info) <my_gdb_datadir>: New variable.
1147 (struct syscalls_info) <sysinfo>: Rename variable to
1148 "syscalls_info".
1149 (sysinfo): Delete global variable.
1150 (have_initialized_sysinfo): Likewise.
1151 (xml_syscall_file): Likewise.
1152 (sysinfo_free_syscalls_desc): Rename to...
1153 (syscalls_info_free_syscalls_desc): ... this.
1154 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1155 code to the new layout of "struct syscalls_info".
1156 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1157 "syscalls_info".
1158 (syscall_create_syscall_desc): Likewise.
1159 (syscall_start_syscall): Likewise.
1160 (syscall_parse_xml): Likewise.
1161 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1162 (init_sysinfo): Rename to...
1163 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1164 Adjust function to deal with gdbarch.
1165 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1166 gdbarch as a parameter. Adjust code.
1167 (xml_get_syscall_name): Likewise.
1168 (xml_list_of_syscalls): Likewise.
1169 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1170 (get_syscall_by_number): Likewise.
1171 (get_syscall_by_name): Likewise.
1172 (get_syscall_names): Likewise.
1173 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1174 (get_syscall_by_number): Likewise.
1175 (get_syscall_by_name): Likewise.
1176 (get_syscall_names): Likewise.
1177
1178 2014-11-20 Doug Evans <xdje42@gmail.com>
1179
1180 Split struct symtab into two: struct symtab and compunit_symtab.
1181 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1182 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1183 to "struct compunit_symtab *". All callers updated.
1184 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1185 "struct symtab *" argument to "struct compunit_symtab *".
1186 All callers updated.
1187 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1188 result to "struct compunit_symtab *". All callers updated.
1189 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1190 Change result to "struct compunit_symtab *". All callers updated.
1191 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1192 hange type to "struct compunit_symtab *". All uses updated.
1193 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1194 Change type to "struct compunit_symtab *". All uses updated.
1195 * buildsym.c (struct buildsym_compunit): New struct.
1196 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1197 (buildsym_compunit): New static global.
1198 (finish_block_internal): Update to fetch objfile from
1199 buildsym_compunit.
1200 (make_blockvector): Delete objfile argument.
1201 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1202 debugformat, producer.
1203 (start_buildsym_compunit): New function.
1204 (free_buildsym_compunit): Renamed from free_subfiles_list.
1205 All callers updated.
1206 (patch_subfile_names): Rewrite to use buildsym_compunit.
1207 (get_compunit_symtab): New function.
1208 (get_macro_table): Delete argument comp_dir. All callers updated.
1209 (start_symtab): Change result to "struct compunit_symtab *".
1210 All callers updated. Create the subfile of the main source file.
1211 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1212 (reset_symtab_globals): Update.
1213 (end_symtab_get_static_block): Update to use buildsym_compunit.
1214 (end_symtab_without_blockvector): Rewrite.
1215 (end_symtab_with_blockvector): Change result to
1216 "struct compunit_symtab *". All callers updated.
1217 Update to use buildsym_compunit. Don't set symtab->dirname,
1218 instead set it in the compunit.
1219 Explicitly make sure main symtab is first in its list.
1220 Set debugformat, producer, blockvector, block_line_section, and
1221 macrotable in the compunit.
1222 (end_symtab_from_static_block): Change result to
1223 "struct compunit_symtab *". All callers updated.
1224 (end_symtab, end_expandable_symtab): Ditto.
1225 (set_missing_symtab): Change symtab argument to
1226 "struct compunit_symtab *". All callers updated.
1227 (augment_type_symtab): Ditto.
1228 (record_debugformat): Update to use buildsym_compunit.
1229 (record_producer): Update to use buildsym_compunit.
1230 * buildsym.h (struct subfile) <dirname>: Delete.
1231 <producer, debugformat>: Delete.
1232 <buildsym_compunit>: New member.
1233 (get_compunit_symtab): Declare.
1234 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1235 from primary_symtab. Change type to "struct compunit_symtab *".
1236 All uses updated.
1237 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1238 All callers updated.
1239 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1240 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1241 symtab. Change type to "struct compunit_symtab *". All uses updated.
1242 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1243 All callers updated.
1244 (dw2_find_last_source_symtab): Ditto.
1245 (dw2_lookup_symbol): Ditto.
1246 (recursively_find_pc_sect_compunit_symtab): Renamed from
1247 recursively_find_pc_sect_symtab. Change result to
1248 "struct compunit_symtab *". All callers updated.
1249 (dw2_find_pc_sect_compunit_symtab): Renamed from
1250 dw2_find_pc_sect_symtab. Change result to
1251 "struct compunit_symtab *". All callers updated.
1252 (get_compunit_symtab): Renamed from get_symtab. Change result to
1253 "struct compunit_symtab *". All callers updated.
1254 (recursively_compute_inclusions): Change type of immediate_parent
1255 argument to "struct compunit_symtab *". All callers updated.
1256 (compute_compunit_symtab_includes): Renamed from
1257 compute_symtab_includes. All callers updated. Rewrite to compute
1258 includes of compunit_symtabs and not symtabs.
1259 (process_full_comp_unit): Update to work with struct compunit_symtab.
1260 (process_full_type_unit): Ditto.
1261 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1262 (dwarf_decode_lines): Remove special case handling of main subfile.
1263 (macro_start_file): Delete argument comp_dir. All callers updated.
1264 (dwarf_decode_macro_bytes): Ditto.
1265 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1266 use struct compunit_symtab.
1267 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1268 * jit.c (finalize_symtab): Build compunit_symtab.
1269 * jv-lang.c (get_java_class_symtab): Change result to
1270 "struct compunit_symtab *". All callers updated.
1271 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1272 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1273 comp_dir. Change type to "struct compunit_symtab *".
1274 All uses updated.
1275 (new_macro_table): Change comp_dir argument to cust,
1276 "struct compunit_symtab *". All callers updated.
1277 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1278 nr_primary_symtabs. All uses updated.
1279 (count_symtabs_and_blocks): Update to handle compunits.
1280 (report_command_stats): Update output, "primary symtabs" renamed to
1281 "compunits".
1282 * mdebugread.c (new_symtab): Change result to
1283 "struct compunit_symtab *". All callers updated.
1284 (parse_procedure): Change type of search_symtab argument to
1285 "struct compunit_symtab *". All callers updated.
1286 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1287 separate loop.
1288 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1289 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1290 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1291 All uses updated.
1292 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1293 All uses updated.
1294 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1295 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1296 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1297 symtab. Change type to "struct compunit_symtab *". All uses updated.
1298 * psymtab.c (psymtab_to_symtab): Change result type to
1299 "struct compunit_symtab *". All callers updated.
1300 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1301 find_pc_sect_symtab_from_partial. Change result type to
1302 "struct compunit_symtab *". All callers updated.
1303 (lookup_symbol_aux_psymtabs): Change result type to
1304 "struct compunit_symtab *". All callers updated.
1305 (find_last_source_symtab_from_partial): Ditto.
1306 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1307 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1308 and macro_table from compunit.
1309 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1310 type to "struct compunit_symtab *". All callers updated.
1311 (debug_qf_lookup_symbol): Ditto.
1312 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1313 debug_qf_find_pc_sect_symtab, change result type to
1314 "struct compunit_symtab *". All callers updated.
1315 * symfile.c (allocate_symtab): Delete objfile argument.
1316 New argument cust.
1317 (allocate_compunit_symtab): New function.
1318 (add_compunit_symtab_to_objfile): New function.
1319 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1320 Change result type to "struct compunit_symtab *". All uses updated.
1321 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1322 Change result type to "struct compunit_symtab *". All uses updated.
1323 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1324 separate loop.
1325 (dump_symtab_1): Update test for primary source symtab.
1326 (maintenance_info_symtabs): Update to handle compunit symtabs.
1327 (maintenance_check_symtabs): Ditto.
1328 * symtab.c (set_primary_symtab): Delete.
1329 (compunit_primary_filetab): New function.
1330 (compunit_language): New function.
1331 (iterate_over_some_symtabs): Change type of arguments "first",
1332 "after_last" to "struct compunit_symtab *". All callers updated.
1333 Update to loop over symtabs in each compunit.
1334 (error_in_psymtab_expansion): Rename symtab argument to cust,
1335 and change type to "struct compunit_symtab *". All callers updated.
1336 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1337 Change result type to "struct compunit_symtab *". All callers updated.
1338 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1339 Change result type to "struct compunit_symtab *". All callers updated.
1340 (find_pc_sect_line): Only loop over symtabs within selected compunit
1341 instead of all symtabs in the objfile.
1342 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1343 <compunit_symtab> New member.
1344 <block_line_section>: Moved to compunit_symtab.
1345 <locations_valid>: Ditto.
1346 <epilogue_unwind_valid>: Ditto.
1347 <macro_table>: Ditto.
1348 <dirname>: Ditto.
1349 <debugformat>: Ditto.
1350 <producer>: Ditto.
1351 <objfile>: Ditto.
1352 <call_site_htab>: Ditto.
1353 <includes>: Ditto.
1354 <user>: Ditto.
1355 <primary>: Delete
1356 (SYMTAB_COMPUNIT): New macro.
1357 (SYMTAB_BLOCKVECTOR): Update definition.
1358 (SYMTAB_OBJFILE): Update definition.
1359 (SYMTAB_DIRNAME): Update definition.
1360 (struct compunit_symtab): New type. Common members among all source
1361 symtabs within a compilation unit moved here. All uses updated.
1362 (COMPUNIT_OBJFILE): New macro.
1363 (COMPUNIT_FILETABS): New macro.
1364 (COMPUNIT_DEBUGFORMAT): New macro.
1365 (COMPUNIT_PRODUCER): New macro.
1366 (COMPUNIT_DIRNAME): New macro.
1367 (COMPUNIT_BLOCKVECTOR): New macro.
1368 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1369 (COMPUNIT_LOCATIONS_VALID): New macro.
1370 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1371 (COMPUNIT_CALL_SITE_HTAB): New macro.
1372 (COMPUNIT_MACRO_TABLE): New macro.
1373 (ALL_COMPUNIT_FILETABS): New macro.
1374 (compunit_symtab_ptr): New typedef.
1375 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1376
1377 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1378
1379 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1380 if the TYPE_CODE of range_type's base type does not match
1381 the TYPE_CODE of encoding_type's base type.
1382
1383 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1384
1385 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1386 it starts with '<'.
1387
1388 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1389
1390 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1391 (ada_is_redundant_index_type_desc): New function.
1392 (to_fixed_array_type): Ignore parallel XA type if redundant.
1393
1394 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1395
1396 * ada-lang.c (constrained_packed_array_type): Set the length
1397 of the return array as if both bounds where zero if that
1398 returned array's index type is dynamic.
1399
1400 2014-11-19 Yao Qi <yao@codesourcery.com>
1401
1402 * config/i386/go32.mh (CC): Remove.
1403
1404 2014-11-18 Doug Evans <xdje42@gmail.com>
1405
1406 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1407 updated.
1408
1409 2014-11-18 Doug Evans <xdje42@gmail.com>
1410
1411 * buildsym.c (buildsym_objfile): New static global.
1412 (buildsym_comp_dir): New static global.
1413 (finish_block_internal): Delete arg objfile. All callers updated.
1414 (finish_block): Delete arg objfile. All callers updated.
1415 (start_subfile): Delete arg dirname. All callers updated.
1416 (patch_subfile_names): Update buildsym_comp_dir.
1417 (get_macro_table): Delete arg objfile. All callers updated.
1418 (start_symtab): New arg objfile. All callers updated.
1419 Rename arg dirname to comp_dir.
1420 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1421 (end_symtab_get_static_block): Delete arg objfile. All callers
1422 updated.
1423 (end_symtab_without_blockvector): Ditto.
1424 (end_symtab_with_blockvector): Ditto.
1425 (end_symtab_from_static_block): Ditto.
1426 (end_symtab): Ditto.
1427 (end_expandable_symtab): Ditto.
1428 (augment_type_symtab): Ditto.
1429 * coffread.c (coff_start_symtab): New arg objfile. All callers
1430 updated.
1431
1432 2014-11-18 Doug Evans <xdje42@gmail.com>
1433
1434 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1435 updated.
1436
1437 2014-11-18 Doug Evans <xdje42@gmail.com>
1438
1439 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1440 symtab.dirname updated to use it.
1441
1442 2014-11-18 Doug Evans <xdje42@gmail.com>
1443
1444 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1445 symtab.objfile updated to use it.
1446
1447 2014-11-18 Doug Evans <xdje42@gmail.com>
1448
1449 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1450
1451 2014-11-18 Doug Evans <xdje42@gmail.com>
1452
1453 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1454 SYMBOL_OBJFILE.
1455 * findvar.c (default_read_var_value): Ditto.
1456 * jv-lang.c (add_class_symtab_symbol): Ditto.
1457 * parse.c (operator_check_standard): Ditto.
1458 * printcmd.c (address_info): Ditto.
1459 * symtab.c (fixup_symbol_section): Ditto.
1460 (skip_prologue_sal): Ditto.
1461 * tracepoint.c (scope_info): Ditto.
1462 * valops.c (find_function_in_inferior): Ditto.
1463 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1464 * python/py-symbol.c (set_symbol): Ditto.
1465
1466 2014-11-18 Doug Evans <xdje42@gmail.com>
1467
1468 * buildsym.c (main_subfile): New static global.
1469 (free_subfiles_list): New function.
1470 (start_symtab): Set main_subfile.
1471 (restart_symtab): Replace init of subfiles, current_subfile with
1472 call to free_subfiles_list.
1473 (watch_main_source_file_lossage): Use main_subfile.
1474 (reset_symtab_globals): Replace init of current_subfile with call
1475 to free_subfiles_list.
1476 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1477 functions, split out from ...
1478 (end_symtab_from_static_block): ... here. Rewrite to call them.
1479
1480 2014-11-18 Doug Evans <xdje42@gmail.com>
1481
1482 The result of symtab expansion is always a primary symtab.
1483 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1484 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1485 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1486 (psymtab_to_symtab): Add comment and assert.
1487 (map_matching_symbols_psymtab): Remove unnecessary test for
1488 non-primary symtab.
1489
1490 2014-11-15 Doug Evans <xdje42@gmail.com>
1491
1492 PR symtab/17559
1493 * symtab.c (find_pc_line_symtab): New function.
1494 * symtab.h (find_pc_line_symtab): Declare.
1495 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1496 find_pc_symtab.
1497 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1498 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1499 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1500 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1501 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1502 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1503
1504 2014-11-15 Doug Evans <xdje42@gmail.com>
1505
1506 * symtab.c (expand_symtab_containing_pc): Renamed from
1507 find_pc_sect_symtab_via_partial. All callers updated.
1508
1509 2014-11-15 Yao Qi <yao@codesourcery.com>
1510
1511 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1512
1513 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1514
1515 * common/common-defs.h: Move <stdarg.h> #include ahead of
1516 <stdio.h> #include.
1517
1518 2014-11-14 Pedro Alves <palves@redhat.com>
1519
1520 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1521 [!PHONY_ICONV] (gdb_iconv): New function.
1522 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1523
1524 2014-11-13 Doug Evans <dje@google.com>
1525
1526 PR symtab/17591
1527 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1528 "(anonymous namespace)".
1529
1530 2014-11-13 Doug Evans <dje@google.com>
1531
1532 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1533 infinite loop.
1534
1535 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1536
1537 * NEWS (maint set target-async): Fix typo.
1538
1539 2014-11-12 Pedro Alves <palves@redhat.com>
1540
1541 * infrun.c (enum infwait_states, infwait_state): Delete.
1542
1543 2014-11-12 Pedro Alves <palves@redhat.com>
1544
1545 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1546 Rewrite stepping over a permanent breakpoint.
1547 (thread_still_needs_step_over, proceed): Don't set
1548 stepping_over_breakpoint for permanent breakpoints.
1549 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1550 single-step breakpoints out of the target on hardware step
1551 targets.
1552 (process_event_stop_test): If stepping a permanent breakpoint
1553 doesn't hit the step-resume breakpoint, delete the step-resume
1554 breakpoint.
1555 (switch_back_to_stepped_thread): Also check if the stepped thread
1556 has advanced already on hardware step targets.
1557 (currently_stepping): Return true if the thread stepped a
1558 breakpoint.
1559
1560 2014-11-12 Pedro Alves <palves@redhat.com>
1561
1562 Mark locations as permanent, not the whole breakpoint.
1563 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1564 (mark_breakpoints_out): Don't mark permanent breakpoints as
1565 uninserted.
1566 (breakpoint_init_inferior): Use mark_breakpoints_out.
1567 (breakpoint_here_p): Adjust.
1568 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1569 of permanent breakpoints.
1570 (make_breakpoint_permanent): Mark each location as permanent,
1571 instead of marking the breakpoint.
1572 (add_location_to_breakpoint): If the location is permanent, mark
1573 it as such, and as inserted.
1574 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1575 (bp_location_compare, update_global_location_list): Adjust.
1576 (update_breakpoint_locations): Don't make the breakpoint permanent
1577 here.
1578 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1579 breakpoints.
1580 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1581 (struct bp_location) <permanent>: New field.
1582 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1583 reference to bp_permanent.
1584
1585 2014-11-12 Pedro Alves <palves@redhat.com>
1586
1587 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1588 * arch-utils.h (default_skip_permanent_breakpoint): New
1589 declaration.
1590 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1591 Install default_skip_permanent_breakpoint as default method.
1592 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1593 (i386_gdbarch_init): Don't install it.
1594 * infrun.c (resume): Assume there's always a
1595 gdbarch_skip_permanent_breakpoint implementation.
1596 * gdbarch.h, gdbarch.c: Regenerate.
1597
1598 2014-11-11 Daniel Colascione <dancol@dancol.org>
1599
1600 Warn about cross-PID-namespace debugging.
1601 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1602 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1603 * linux-thread-db.c (check_pid_namespace_match): New function.
1604 (thread_db_inferior_created): Call it.
1605
1606 2014-11-10 Doug Evans <xdje42@gmail.com>
1607
1608 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1609 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1610
1611 2014-11-10 Doug Evans <xdje42@gmail.com>
1612
1613 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1614
1615 2014-11-10 Doug Evans <xdje42@gmail.com>
1616
1617 PR symtab/17564
1618 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1619 (lookup_static_symbol): Move definition to new location and rewrite.
1620 (lookup_symbol_in_objfile): New function.
1621 (lookup_symbol_global_iterator_cb): Call it.
1622
1623 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1624
1625 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1626
1627 2014-11-07 Pedro Alves <palves@redhat.com>
1628
1629 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1630 check if we did a "nexti" inside a prologue.
1631 * symtab.c (in_prologue): Delete function.
1632 * symtab.h (in_prologue): Delete declaration.
1633
1634 2014-11-06 Doug Evans <xdje42@gmail.com>
1635
1636 * symtab.h (lookup_global_symbol): Improve function comment.
1637
1638 2014-11-06 Doug Evans <xdje42@gmail.com>
1639
1640 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1641 All callers updated.
1642 * symtab.h (lookup_global_symbol): Update decl.
1643 (lookup_static_symbol): Move decl to better location.
1644
1645 2014-11-06 Doug Evans <xdje42@gmail.com>
1646
1647 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1648
1649 2014-11-06 Doug Evans <xdje42@gmail.com>
1650
1651 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1652 All callers updated.
1653 (lookup_symbol_in_all_objfiles): Renamed from
1654 lookup_symbol_aux_symtabs. All callers updated.
1655 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1656 All callers updated.
1657 (lookup_symbol_in_objfile_symtabs): Renamed from
1658 lookup_symbol_aux_objfile. All callers updated.
1659
1660 2014-11-06 Doug Evans <xdje42@gmail.com>
1661
1662 * symtab.c (lookup_symbol_in_block): Renamed from
1663 lookup_symbol_aux_block. All callers updated.
1664
1665 2014-11-06 Doug Evans <xdje42@gmail.com>
1666
1667 * symtab.c (lookup_static_symbol): Renamed from
1668 lookup_static_symbol_aux. All callers updated.
1669 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1670 All callers updated.
1671
1672 2014-11-06 Doug Evans <xdje42@gmail.com>
1673
1674 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1675 * block.c (block_lookup_symbol): Use it.
1676 * cp-support.c (make_symbol_overload_list_block): Use it.
1677 * symtab.c (iterate_over_symbols): Use it.
1678
1679 2014-11-06 Doug Evans <xdje42@gmail.com>
1680
1681 * symtab.c (lookup_block_symbol): Moved to ...
1682 * block.c (block_lookup_symbol): ... here and renamed.
1683 All callers updated.
1684 * block.h (block_lookup_symbol): Declare.
1685 * symtab.h (lookup_block_symbol): Delete.
1686
1687 2014-11-06 Doug Evans <xdje42@gmail.com>
1688
1689 * ada-lang.c (ada_make_symbol_completion_list): Use
1690 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1691 * symtab.c (lookup_objfile_from_block): Ditto.
1692
1693 2014-11-06 Doug Evans <xdje42@gmail.com>
1694
1695 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1696 TYPE_CODE_STRUCT.
1697
1698 2014-11-06 Doug Evans <xdje42@gmail.com>
1699
1700 * objfiles.c (get_objfile_arch): Constify.
1701 * objfiles.h (get_objfile_arch): Update prototype.
1702 * solib.c (solib_global_lookup): Fetch arch from objfile,
1703 not target_gdbarch.
1704
1705 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1706
1707 * nios2-tdep.c (wild_insn): Delete.
1708 (profiler_insn, irqentry_insn): Delete.
1709 (nios2_match_sequence): Delete.
1710 (nios2_analyze_prologue): Update comments. Remove matching
1711 of obsolete profiler_insn and irqentry_insn sequences.
1712
1713 2014-11-05 Alan Modra <amodra@gmail.com>
1714
1715 * charset.c (convert_between_encodings): Shrink obstack using
1716 obstack_blank_fast.
1717 * minsyms.c (install_minimal_symbols): Likewise.
1718 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1719 to char* before doing pointer arithmetic.
1720
1721 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1722
1723 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1724
1725 2014-11-04 Pedro Alves <palves@redhat.com>
1726
1727 * breakpoint.c (breakpoint_thread_match): Delete function.
1728 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1729
1730 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1731
1732 PR c++/17494
1733 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1734 the method args also under EVAL_SKIP when evaluating method
1735 calls under EVAL_SKIP.
1736
1737 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1738
1739 * dwarf2loc.c (read_pieced_value): Do big endian
1740 processing only if gdb_regnum is not -1.
1741 (write_pieced_value): Ditto.
1742
1743 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1744
1745 * arm-linux-tdep.c (arm_linux_init_abi): Use
1746 info.byte_order_for_code to choose endianity of breakpoint
1747 instructions snippets.
1748
1749 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1750
1751 * arm-tdep.c (extract_arm_insn): Use
1752 gdbarch_byte_order_for_code to read arm instruction.
1753
1754 2014-11-02 Doug Evans <xdje42@gmail.com>
1755
1756 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1757
1758 2014-11-02 Doug Evans <xdje42@gmail.com>
1759
1760 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1761 main_subfile before returning.
1762
1763 2014-10-31 Doug Evans <xdje42@gmail.com>
1764
1765 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1766 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1767
1768 2014-10-31 Doug Evans <xdje42@gmail.com>
1769
1770 * valops.c (value_cast_pointers): Fix whitespace.
1771 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1772 Ditto.
1773
1774 2014-10-30 Doug Evans <dje@google.com>
1775
1776 * NEWS: Mention ability add attributes to gdb.Objfile and
1777 gdb.Progspace objects.
1778 * python/py-objfile.c (objfile_object): New member dict.
1779 (objfpy_dealloc): Py_XDECREF dict.
1780 (objfpy_initialize): Initialize dict.
1781 (objfile_getset): Add __dict__.
1782 (objfile_object_type): Set tp_dictoffset member.
1783 * python/py-progspace.c (progspace_object): New member dict.
1784 (pspy_dealloc): Py_XDECREF dict.
1785 (pspy_initialize): Initialize dict.
1786 (pspace_getset): Add __dict__.
1787 (pspace_object_type): Set tp_dictoffset member.
1788
1789 2014-10-30 Yao Qi <yao@codesourcery.com>
1790
1791 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1792 replace '\\' with '\\\\'.
1793
1794 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1795
1796 GDB 7.8.1 released.
1797
1798 2014-10-29 Pedro Alves <palves@redhat.com>
1799
1800 PR gdb/17408
1801 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1802 instead of assuming a thread with a stepping range is always
1803 stepping.
1804
1805 2014-10-29 Pedro Alves <palves@redhat.com>
1806
1807 PR python/17372
1808 * event-top.c (change_line_handler): Call
1809 gdb_rl_callback_handler_remove instead of
1810 rl_callback_handler_remove.
1811 (callback_handler_installed): New global.
1812 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1813 (gdb_rl_callback_handler_reinstall): New functions.
1814 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1815 gdb_rl_callback_handler_install instead of
1816 rl_callback_handler_remove and rl_callback_handler_install.
1817 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1818 instead of rl_callback_handler_remove.
1819 * event-top.h (gdb_rl_callback_handler_remove)
1820 (gdb_rl_callback_handler_install)
1821 (gdb_rl_callback_handler_reinstall): New declarations.
1822 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1823 cleanup function.
1824 (fetch_inferior_event): Install it.
1825 * top.c (gdb_readline_wrapper_line) Call
1826 gdb_rl_callback_handler_remove instead of
1827 rl_callback_handler_remove.
1828 (gdb_readline_wrapper_cleanup): Don't call
1829 rl_callback_handler_install.
1830
1831 2014-10-29 Pedro Alves <palves@redhat.com>
1832
1833 * event-top.c (command_line_handler): Clear the first byte of
1834 linebuffer, when it is first allocated.
1835
1836 2014-10-29 Pedro Alves <palves@redhat.com>
1837
1838 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1839 TRY_CATCH.
1840
1841 2014-10-29 Pedro Alves <palves@redhat.com>
1842
1843 PR tui/16138
1844 PR tui/17519
1845 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1846 (tui_allowed_p): Delete function.
1847 * tui/tui.c: Include "interps.h".
1848 (tui_enable): Don't use tui_allowed_p. Error out here with
1849 detailed error messages if the TUI is the top level interpreter,
1850 or if output is not a terminal. Use newterm instead of initscr,
1851 and error out if initializing the terminal fails. Also error out if
1852 the terminal doesn't support cursor addressing.
1853 * tui/tui.h (tui_allowed_p): Delete declaration.
1854
1855 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1856
1857 * arm-tdep.c (arm_skip_stack_protector): Return early if
1858 address loaded by first "ldr" instruction does not have
1859 a corresponding minimal symbol. Update comment.
1860
1861 2014-10-29 Yao Qi <yao@codesourcery.com>
1862
1863 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1864 loaded address correctly of ldr instruction.
1865
1866 2014-10-28 Pedro Alves <palves@redhat.com>
1867
1868 PR gdb/12623
1869 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1870 field.
1871 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1872 thread's stepped_breakpoint field. Skip if reverse debugging.
1873 Add comment.
1874 (init_thread_stepping_state, handle_signal_stop): Clear the
1875 thread's stepped_breakpoint field.
1876
1877 2014-10-27 Pedro Alves <palves@redhat.com>
1878
1879 * remote.c (remote_thread_alive): New, factored out from ...
1880 (remote_thread_alive): ... this.
1881 (remote_update_thread_list): Bail out before deleting threads if
1882 the target returned an empty list, and, the current thread has a
1883 magic/fake ptid.
1884
1885 2014-10-27 Pedro Alves <palves@redhat.com>
1886
1887 * infrun.c (handle_signal_stop): Also skip handlers when a random
1888 signal arrives while handling a "stepi" or a "nexti". Set the
1889 thread's 'step_after_step_resume_breakpoint' flag.
1890
1891 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1892
1893 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1894 (arm_record_ld_st_imm_offset): Reimplement to cover all
1895 load/store cases for ARM opcode 010.
1896 (arm_record_ld_st_multiple): Reimplement to cover all
1897 load/store cases for ARM opcode 100.
1898
1899 2014-10-26 Doug Evans <xdje42@gmail.com>
1900
1901 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1902
1903 2014-10-26 Doug Evans <xdje42@gmail.com>
1904
1905 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1906 parameter "kind" to "block_index".
1907 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1908 "block_index".
1909 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1910
1911 2014-10-26 Doug Evans <xdje42@gmail.com>
1912
1913 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1914
1915 2014-10-26 Doug Evans <xdje42@gmail.com>
1916
1917 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1918 obstack_alloc.
1919
1920 2014-10-26 Doug Evans <xdje42@gmail.com>
1921
1922 * parser-defs.h (block_found): Move decl from here ...
1923 * symtab.h (block_found): ... to here.
1924
1925 2014-10-26 Doug Evans <xdje42@gmail.com>
1926
1927 * symtab.h (struct field_of_this_result): Fix typo in comment.
1928 (lookup_symbol_in_language): Move function comment here.
1929 (lookup_symbol): Improve function comment.
1930 (basic_lookup_symbol_nonlocal): Ditto.
1931 (lookup_symbol_static, lookup_symbol_global): Ditto.
1932 (lookup_symbol_aux_block): Ditto.
1933 (lookup_language_this): Add function comment.
1934 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1935 function comment.
1936 (lookup_block_symbol): Improve function comment.
1937 (lookup_struct): Fix capitalization in function comment.
1938 (lookup_transparent_type): Add function comment.
1939 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1940 Improve function comment.
1941 (lookup_objfile_from_block): Add function comment.
1942 * symtab.c (lookup_symbol_in_language): Update function comment.
1943 (lookup_symbol, lookup_language_this): Ditto.
1944 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1945 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1946 (basic_lookup_symbol_nonlocal): Ditto.
1947 (lookup_symbol_static, lookup_symbol_global): Ditto.
1948 (lookup_transparent_type, lookup_block_symbol): Ditto.
1949
1950 2014-10-25 Doug Evans <xdje42@gmail.com>
1951
1952 * symtab.c (types_info): Delete forward decl.
1953 (functions_info, variables_info, sources_info): Ditto.
1954 (_initialize_symtab): Rewrite forward decl to use
1955 initialize_file_ftype.
1956
1957 2014-10-25 Doug Evans <xdje42@gmail.com>
1958
1959 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1960
1961 2014-10-25 Doug Evans <xdje42@gmail.com>
1962
1963 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1964 of local var child_die.
1965
1966 2014-10-24 Don Breazeal <donb@codesourcery.com>
1967
1968 * infrun.c (follow_fork_inferior): Update fork message printing
1969 to use target_terminal_ours_for_output instead of
1970 target_terminal_ours, to use _() for all format strings, to print
1971 "vfork" instead of "fork" for vforks, and to add a detach message.
1972 (handle_vfork_child_exec_or_exit): Update message printing to use
1973 target_terminal_ours_for_output instead of target_terminal_ours, to
1974 use _() for all format strings, and to fix some formatting.
1975
1976 2014-10-24 Pedro Alves <palves@redhat.com>
1977
1978 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1979 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1980 * config/vax/vax.mh: Delete.
1981 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1982 obsolete configurations section.
1983 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1984 * vax-nat.c: Delete file.
1985
1986 2014-10-24 Pedro Alves <palves@redhat.com>
1987
1988 * NEWS (Removed targets): Add OS/arch column.
1989
1990 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1991
1992 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1993 on the arg type of a constructor only if it is of reference type.
1994
1995 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1996
1997 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1998 accessors and constants from nios2 opcodes update.
1999 (nios2_get_next_pc): Likewise.
2000
2001 2014-10-19 Doug Evans <xdje42@gmail.com>
2002
2003 * gdbthread.h (set_running): Fix comment.
2004 (set_executing, finish_thread_state): Fix comment.
2005
2006 2014-10-18 Doug Evans <xdje42@gmail.com>
2007
2008 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2009
2010 2014-10-17 Doug Evans <dje@google.com>
2011
2012 * NEWS: Mention new event gdb.clear_objfiles.
2013 * python/py-event.h (emit_clear_objfiles_event): Clear
2014 * python/py-events.h (events_object): New member clear_objfiles.
2015 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2016 event.
2017 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2018 emit clear_objfiles event.
2019 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2020 function.
2021 (emit_clear_objfiles_event): New function.
2022 (clear_objfiles): New event.
2023 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2024 Declare.
2025 * python/python.c (_initialize_python): Call
2026 gdbpy_initialize_clear_objfiles_event.
2027
2028 2014-10-17 Doug Evans <dje@google.com>
2029
2030 * NEWS: Mention new gdb.Objfile.progspace attribute.
2031 * python/py-objfile.c (objfpy_get_progspace): New function.
2032 (objfile_getset): New entry for "progspace".
2033
2034 2014-10-17 Pedro Alves <palves@redhat.com>
2035
2036 PR gdb/17471
2037 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2038 returns a copy of the input.
2039 (run_command_1, continue_command, step_1, jump_command)
2040 (signal_command, until_command, advance_command, finish_command)
2041 (attach_command): Adjust and install a cleanup to free the
2042 stripped args.
2043
2044 2014-10-17 Pedro Alves <palves@redhat.com>
2045
2046 PR gdb/17300
2047 * infcmd.c (continue_1): If continuing all threads in the
2048 foreground, make sure the inferior's terminal settings are put in
2049 effect.
2050
2051 2014-10-17 Pedro Alves <palves@redhat.com>
2052
2053 PR gdb/17472
2054 * annotate.c (annotate_breakpoints_invalid): Use
2055 target_terminal_our_for_output instead of target_terminal_ours.
2056 Give back the terminal to the target.
2057 (annotate_frames_invalid): Likewise.
2058
2059 2014-10-17 Pedro Alves <palves@redhat.com>
2060
2061 * target.c (enum terminal_state): New enum.
2062 (terminal_state): New global.
2063 (target_terminal_init): New function.
2064 (target_terminal_inferior): Skip if inferior already owns the
2065 terminal.
2066 (target_terminal_ours, target_terminal_ours_for_output): New
2067 functions.
2068 * target.h (target_terminal_init): Convert to function prototype.
2069 (target_terminal_ours_for_output): Convert to function prototype
2070 and tweak comment.
2071 (target_terminal_ours): Convert to function prototype and tweak
2072 comment.
2073 * windows-nat.c (do_initial_windows_stuff): Call
2074 target_terminal_init instead of child_terminal_init_with_pgrp.
2075
2076 2014-10-17 Pedro Alves <palves@redhat.com>
2077
2078 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2079 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2080 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2081 solib-osf.c.
2082 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2083 * ada-lang.h [__alpha__ && __osf__]
2084 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2085 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2086 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2087 GDB_OSABI_OSF1.
2088 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2089 files.
2090 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2091 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2092 * configure: Regenerate.
2093 * configure.ac: Remove references to osf.
2094 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2095 section. Remove all other references to osf.
2096 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2097 Remove all other references to osf.
2098 * dec-thread.c: Delete file.
2099 * defs.h (GDB_OSABI_OSF1): Delete.
2100 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2101 defined.
2102 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2103 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2104 Delete code.
2105 (unconditionally_kill_inferior)
2106 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2107 * solib-osf.c: Delete file.
2108
2109 2014-10-17 Pedro Alves <palves@redhat.com>
2110
2111 * remote.c (clear_threads_listing_context): Move higher up, out of
2112 the HAVE_LIBEXPAT guard.
2113
2114 2014-10-16 Tristan Gingold <gingold@adacore.com>
2115
2116 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2117 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2118 on amd64.
2119
2120 2014-10-15 Pedro Alves <palves@redhat.com>
2121
2122 * dec-thread.c (dec_thread_count_gdb_threads)
2123 (dec_thread_add_gdb_thread): Delete.
2124 (dec_thread_update_thread_list): Delete.
2125 (dec_thread_find_new_threads): Rename to ...
2126 (dec_thread_update_thread_list): ... this. Delete GDB-size
2127 threads that are no longer found in dec_thread_list.
2128 (resync_thread_list): Delete.
2129 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2130 resync_thread_list.
2131
2132 2014-10-15 Pedro Alves <palves@redhat.com>
2133
2134 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2135 * remote.c (remote_update_thread_list): Skip calling prune_threads
2136 if any thread listing method is supported, and instead walk over
2137 the set of remote threads listed, deleting those that are not
2138 found in GDB's thread list.
2139
2140 2014-10-15 Pedro Alves <palves@redhat.com>
2141
2142 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2143 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2144 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2145 (bsd_uthread_target): Adjust.
2146 * corelow.c (core_open): Adjust.
2147 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2148 (dec_thread_update_thread_list): New function.
2149 (init_dec_thread_ops): Adjust.
2150 * gdbthread.h (prune_threads): New declaration.
2151 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2152 (thread_db_update_thread_list): ... this. Call prune_threads.
2153 (init_thread_db_ops): Adjust.
2154 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2155 (procfs_update_thread_list): ... this. Call prune_threads.
2156 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2157 Adjust.
2158 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2159 (obsd_update_thread_list): ... this. Call prune_threads.
2160 (obsd_add_target): Adjust.
2161 * procfs.c (procfs_target): Adjust.
2162 (procfs_notice_thread): Update comment.
2163 (procfs_find_new_threads): Rename to ...
2164 (procfs_update_thread_list): ... this. Call prune_threads.
2165 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2166 comment.
2167 (ravenscar_wait): Adjust.
2168 (ravenscar_find_new_threads): Rename to ...
2169 (ravenscar_update_thread_list): ... this. Call prune_threads.
2170 (init_ravenscar_thread_ops): Adjust.
2171 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2172 (record_btrace_update_thread_list): ... this. Adjust comment.
2173 (init_record_btrace_ops): Adjust.
2174 * remote.c (remote_threads_info): Rename to ...
2175 (remote_update_thread_list): ... this. Call prune_threads.
2176 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2177 Adjust.
2178 * sol-thread.c (check_for_thread_db): Adjust.
2179 (sol_find_new_threads_callback): Rename to ...
2180 (sol_update_thread_list_callback): ... this.
2181 (sol_find_new_threads): Rename to ...
2182 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2183 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2184 * target-delegates.c: Regenerate.
2185 * target.c (target_find_new_threads): Rename to ...
2186 (target_update_thread_list): ... this.
2187 * target.h (struct target_ops): Rename to_find_new_threads field
2188 to to_update_thread_list.
2189 (target_find_new_threads): Rename to ...
2190 (target_update_thread_list): ... this.
2191 * thread.c (prune_threads): Make extern.
2192 (update_thread_list): Adjust.
2193
2194 2014-10-15 Pedro Alves <palves@redhat.com>
2195
2196 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2197 Add describing comment. Return -1 if the qL packet is not
2198 supported.
2199 (struct thread_item, thread_item_t): Move higher up in
2200 the file. Add comments.
2201 (struct threads_parsing_context): Move higher up in
2202 the file, add comments, and remote to ...
2203 (struct threads_listing_context): ... this.
2204 (remote_newthread_step): Don't add the thread to GDB's thread
2205 database here. Instead push it to the thread_listing_context
2206 list.
2207 (remote_find_new_threads): Rename to ...
2208 (remote_get_threads_with_ql): ... this. Add target_ops and
2209 targets_listing_context parameters. Pass down context.
2210 (start_thread): Adjust.
2211 (clear_threads_parsing_context): Rename to ...
2212 (clear_threads_listing_context): ... this.
2213 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2214 remote_threads_info.
2215 (remote_get_threads_with_qthreadinfo): Ditto.
2216 (remote_threads_info): Reimplement.
2217
2218 2014-10-15 Pedro Alves <palves@redhat.com>
2219
2220 * infrun.c (resume): Don't force displaced-stepping for all
2221 single-steps on software single-stepping archs.
2222
2223 2014-10-15 Pedro Alves <palves@redhat.com>
2224
2225 * breakpoint.c (single_step_breakpoints): Delete global.
2226 (insert_single_step_breakpoint): Adjust to store the breakpoint
2227 pointer in the current thread.
2228 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2229 (cancel_single_step_breakpoints): Delete functions.
2230 (breakpoint_has_location_inserted_here): Make extern.
2231 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2232 breakpoint list.
2233 * breakpoint.h (breakpoint_has_location_inserted_here): New
2234 declaration.
2235 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2236 (cancel_single_step_breakpoints): Remove declarations.
2237 * gdbthread.h (struct thread_control_state)
2238 <single_step_breakpoints>: New field.
2239 (delete_single_step_breakpoints)
2240 (thread_has_single_step_breakpoints_set)
2241 (thread_has_single_step_breakpoint_here): New declarations.
2242 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2243 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2244 (singlestep_pc): Delete globals.
2245 (infrun_thread_ptid_changed): Remove references to removed
2246 globals.
2247 (resume_cleanups): Delete the current thread's single-step
2248 breakpoints.
2249 (maybe_software_singlestep): Remove references to removed globals.
2250 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2251 delete_single_step_breakpoints.
2252 (init_wait_for_inferior): Remove references to removed globals.
2253 (delete_thread_infrun_breakpoints): Delete the thread's
2254 single-step breakpoints too.
2255 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2256 single-step breakpoints here.
2257 (delete_stopped_threads_single_step_breakpoints): New function.
2258 (adjust_pc_after_break): Adjust to use
2259 thread_has_single_step_breakpoints_set.
2260 (handle_inferior_event): Remove references to removed globals.
2261 Use delete_stopped_threads_single_step_breakpoints.
2262 (handle_signal_stop): Adjust to per-thread single-step
2263 breakpoints. Swap test order to do cheaper tests first.
2264 (switch_back_to_stepped_thread): Extend debug output. Remove
2265 references to removed globals.
2266 * record-full.c (record_full_wait_1): Adjust to per-thread
2267 single-step breakpoints.
2268 * thread.c (delete_single_step_breakpoints)
2269 (thread_has_single_step_breakpoints_set)
2270 (thread_has_single_step_breakpoint_here): New functions.
2271 (clear_thread_inferior_resources): Also delete the thread's
2272 single-step breakpoints.
2273
2274 2014-10-15 Pedro Alves <palves@redhat.com>
2275
2276 * thread.c (delete_thread_breakpoint): New function.
2277 (delete_step_resume_breakpoint)
2278 (delete_exception_resume_breakpoint): Use it.
2279 (delete_at_next_stop): New function.
2280 (clear_thread_inferior_resources): Use delete_at_next_stop.
2281
2282 2014-10-15 Pedro Alves <palves@redhat.com>
2283
2284 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2285 (breakpoint_inserted_here_p): ... here. Remove special case for
2286 software single-step breakpoints.
2287 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2288 (software_breakpoint_inserted_here_p): ... here. Remove special
2289 case for software single-step breakpoints.
2290 (bp_target_info_copy_insertion_state)
2291 (deprecated_insert_raw_breakpoint)
2292 (deprecated_remove_raw_breakpoint): Delete functions.
2293 * breakpoint.h (deprecated_insert_raw_breakpoint)
2294 (deprecated_remove_raw_breakpoint): Remove declarations.
2295
2296 2014-10-15 Pedro Alves <palves@redhat.com>
2297
2298 PR breakpoints/9649
2299 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2300 Delete array globals.
2301 (single_step_breakpoints): New global.
2302 (breakpoint_xfer_memory): Remove special handling for single-step
2303 breakpoints.
2304 (update_breakpoints_after_exec): Delete bp_single_step
2305 breakpoints.
2306 (detach_breakpoints): Remove special handling for single-step
2307 breakpoints.
2308 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2309 (bpstat_stop_status): Add comment.
2310 (bpstat_what, bptype_string, print_one_breakpoint_location)
2311 (adjust_breakpoint_address, init_bp_location): Handle
2312 bp_single_step.
2313 (new_single_step_breakpoint): New function.
2314 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2315 handling for single-step breakpoints.
2316 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2317 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2318 Rewrite.
2319 (detach_single_step_breakpoints, find_single_step_breakpoint):
2320 Delete functions.
2321 (breakpoint_has_location_inserted_here): New function.
2322 (single_step_breakpoint_inserted_here_p): Rewrite.
2323 * breakpoint.h: Remove FIXME.
2324 (enum bptype) <bp_single_step>: New enum value.
2325 (insert_single_step_breakpoint): Update comment.
2326 * infrun.c (resume_cleanups)
2327 (delete_step_thread_step_resume_breakpoint): Remove single-step
2328 breakpoints.
2329 (fetch_inferior_event): Install a cleanup that removes infrun
2330 breakpoints.
2331 (switch_back_to_stepped_thread) <expect thread advanced also>:
2332 Clear step-over info.
2333
2334 2014-10-15 Pedro Alves <palves@redhat.com>
2335
2336 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2337 (delete_thread_infrun_breakpoints): New function, with parts
2338 salvaged from delete_step_resume_breakpoint_callback.
2339 (delete_step_thread_step_resume_breakpoint): Delete.
2340 (for_each_just_stopped_thread_callback_func): New typedef.
2341 (for_each_just_stopped_thread): New function.
2342 (delete_just_stopped_threads_infrun_breakpoints): New function.
2343 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2344 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2345 ... this. Adjust.
2346 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2347
2348 2014-10-15 Pedro Alves <palves@redhat.com>
2349
2350 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2351 trying to step past a non-steppable watchpoint.
2352 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2353 field.
2354 * infrun.c (struct step_over_info): Add new field
2355 'nonsteppable_watchpoint_p' and adjust comments.
2356 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2357 Adjust.
2358 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2359 (stepping_past_nonsteppable_watchpoint): New function.
2360 (step_over_info_valid_p): Also return true if stepping past a
2361 nonsteppable watchpoint.
2362 (proceed): Adjust call to set_step_over_info. Remove reference to
2363 init_infwait_state.
2364 (init_wait_for_inferior): Remove reference to init_infwait_state.
2365 (waiton_ptid): Delete global.
2366 (struct execution_control_state)
2367 <stepped_after_stopped_by_watchpoint>: Delete field.
2368 (wait_for_inferior, fetch_inferior_event): Always pass
2369 minus_one_ptid to target_wait.
2370 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2371 field.
2372 (init_infwait_state): Delete function.
2373 (handle_inferior_event): Remove infwait_state handling.
2374 (handle_signal_stop) <watchpoints handling>: Adjust after
2375 stepped_after_stopped_by_watchpoint removal. Don't remove
2376 breakpoints here nor set infwait_state. Set the thread's
2377 stepping_over_watchpoint flag, and call keep_going instead.
2378 (keep_going): Handle stepping_over_watchpoint. Adjust
2379 set_step_over_info calls.
2380 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2381 function.
2382
2383 2014-10-15 Pedro Alves <palves@redhat.com>
2384
2385 * infrun.c (step_over_info_valid_p): New function.
2386 (resume): Use step_over_info_valid_p instead of checking the
2387 threads's trap_expected flag.
2388
2389 2014-10-15 Doug Evans <dje@google.com>
2390 Walfred Tedeschi <walfred.tedeschi@intel.com>
2391
2392 PR python/17364
2393 * python/lib/gdb/__init__.py (packages): Add "printer".
2394 * python/lib/gdb/command/bound_registers.py: Moved to ...
2395 * python/lib/gdb/printer/bound_registers.py: ... here.
2396 Add printer to global set of builtin printers. Rename printer from
2397 "bound" to "mpx_bound128".
2398 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2399 registered as global "builtin" printer.
2400 (add_builtin_pretty_printer): New function.
2401 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2402 gdb/printer/__init__.py.
2403
2404 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2405
2406 * Makefile.in (SFILES): Remove d-support.c.
2407 (COMMON_OBS): Remove d-support.o.
2408 * d-lang.h (d_parse_symbol): Remove declaration.
2409 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2410 * d-support.c: Remove file.
2411
2412 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2413
2414 * gdb/infrun.c (process_event_stop_test): Apply
2415 gdbarch_addr_bits_remove to longjmp resume address.
2416
2417 2014-10-15 Pedro Alves <palves@redhat.com>
2418
2419 * regformats/microblaze.dat: Delete file.
2420
2421 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2422
2423 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2424 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2425
2426 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2427
2428 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2429 as non-trivial.
2430
2431 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2432
2433 PR c++/13403
2434 PR c++/15154
2435 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2436 with qualified args.
2437
2438 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2439
2440 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2441 of the case where the second operand is a pointer.
2442 <BINOP_SUB>: Likewise.
2443
2444 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2445
2446 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2447 only if it is not NULL.
2448 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2449 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2450 (struct probe_ops) <clear_semaphore>: Likewise.
2451 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2452 not NULL.
2453 (stop_tracing): Likewise, for clear_semaphore.
2454
2455 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2456
2457 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2458 using language_c, instead of current_language.
2459
2460 2014-10-13 Doug Evans <dje@google.com>
2461
2462 * python/py-objfile.c (objfpy_initialize): New function.
2463 (objfpy_new, objfile_to_objfile_object): Call it.
2464 * python/py-progspace.c (pspy_initialize): New function.
2465 (pspy_new, pspace_to_pspace_object): Call it.
2466
2467 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2468 Jan Kratochvil <jan.kratochvil@redhat.com>
2469
2470 Fix "save breakpoints" for "catch" command.
2471 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2472 newline.
2473
2474 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2475
2476 Fix "save breakpoints" for "disable $bpnum" command.
2477 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2478
2479 2014-10-10 Pedro Alves <palves@redhat.com>
2480
2481 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2482 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2483 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2484 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2485 and been removed.
2486 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2487 * configure.ac: Remove references to IRIX.
2488 * configure.host: Add *-*-irix* to the obsolete hosts section.
2489 Remove all other references to irix.
2490 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2491 Delete files.
2492
2493 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2494
2495 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2496 isn't valid, release the tdesc arch data and return NULL.
2497
2498 2014-10-10 Pedro Alves <palves@redhat.com>
2499
2500 * linux-tdep.c: Include observer.h.
2501 (linux_inferior_data): New global.
2502 (struct linux_info): New structure.
2503 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2504 (get_linux_inferior_data): New functions.
2505 (linux_vsyscall_range): Rename to ...
2506 (linux_vsyscall_range_raw): ... this.
2507 (linux_vsyscall_range): New function; handles caching.
2508 (_initialize_linux_tdep): Register linux_inferior_data. Install
2509 inferior_exit and inferior_appeared observers.
2510
2511 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2512 Pedro Alves <palves@redhat.com>
2513
2514 PR symtab/14466
2515 * solib-svr4.c (svr4_read_so_list): Rename to ...
2516 (svr4_current_sos_1): ... this and change the function comment.
2517 (svr4_current_sos): New function.
2518
2519 2014-10-10 Pedro Alves <palves@redhat.com>
2520
2521 * arch-utils.c (default_vsyscall_range): New function.
2522 * arch-utils.h (default_vsyscall_range): New declaration.
2523 * gdbarch.sh (vsyscall_range): New hook.
2524 * gdbarch.h, gdbarch.c: Regenerate.
2525 * linux-tdep.c (linux_vsyscall_range): New function.
2526 (linux_init_abi): Install linux_vsyscall_range as
2527 vsyscall_range gdbarch hook.
2528 * memrange.c (address_in_mem_range): New function.
2529 * memrange.h (address_in_mem_range): New declaration.
2530 * symfile-mem.c (find_vdso_size): Delete function.
2531 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2532
2533 2014-10-10 Pedro Alves <palves@redhat.com>
2534
2535 * infrun.c (normal_stop): Fix typo in comment.
2536
2537 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2538
2539 PR tdep/9390
2540 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2541 typo when using logical AND to determine instruction type.
2542
2543 2014-10-09 Yao Qi <yao@codesourcery.com>
2544
2545 * infrun.c (handle_signal_stop): Remove local variable
2546 'printed'.
2547
2548 2014-10-08 Stan Shebs <stan@codesourcery.com>
2549
2550 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2551
2552 2014-10-08 Gary Benson <gbenson@redhat.com>
2553
2554 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2555
2556 2014-10-08 Gary Benson <gbenson@redhat.com>
2557
2558 * common/common-defs.h: Include common-exceptions.h.
2559 * exceptions.h: Do not include common-exceptions.h.
2560
2561 2014-10-08 Gary Benson <gbenson@redhat.com>
2562
2563 * common/common-defs.h: Include cleanups.h.
2564 * common/common-exceptions.c: Do not include cleanups.h.
2565 * utils.h: Likewise.
2566
2567 2014-10-08 Gary Benson <gbenson@redhat.com>
2568
2569 * ada-lang.c: Do not include exceptions.h.
2570 * ada-valprint.c: Likewise.
2571 * amd64-tdep.c: Likewise.
2572 * auto-load.c: Likewise.
2573 * block.c: Likewise.
2574 * break-catch-throw.c: Likewise.
2575 * breakpoint.c: Likewise.
2576 * btrace.c: Likewise.
2577 * c-lang.c: Likewise.
2578 * cli/cli-cmds.c: Likewise.
2579 * cli/cli-interp.c: Likewise.
2580 * cli/cli-script.c: Likewise.
2581 * completer.c: Likewise.
2582 * corefile.c: Likewise.
2583 * corelow.c: Likewise.
2584 * cp-abi.c: Likewise.
2585 * cp-support.c: Likewise.
2586 * cp-valprint.c: Likewise.
2587 * darwin-nat.c: Likewise.
2588 * dwarf2-frame-tailcall.c: Likewise.
2589 * dwarf2-frame.c: Likewise.
2590 * dwarf2loc.c: Likewise.
2591 * dwarf2read.c: Likewise.
2592 * eval.c: Likewise.
2593 * event-loop.c: Likewise.
2594 * event-top.c: Likewise.
2595 * f-valprint.c: Likewise.
2596 * frame-unwind.c: Likewise.
2597 * frame.c: Likewise.
2598 * gdbtypes.c: Likewise.
2599 * gnu-v2-abi.c: Likewise.
2600 * gnu-v3-abi.c: Likewise.
2601 * guile/scm-auto-load.c: Likewise.
2602 * guile/scm-breakpoint.c: Likewise.
2603 * guile/scm-cmd.c: Likewise.
2604 * guile/scm-frame.c: Likewise.
2605 * guile/scm-lazy-string.c: Likewise.
2606 * guile/scm-param.c: Likewise.
2607 * guile/scm-symbol.c: Likewise.
2608 * guile/scm-type.c: Likewise.
2609 * hppa-hpux-tdep.c: Likewise.
2610 * i386-tdep.c: Likewise.
2611 * inf-loop.c: Likewise.
2612 * infcall.c: Likewise.
2613 * infcmd.c: Likewise.
2614 * infrun.c: Likewise.
2615 * interps.c: Likewise.
2616 * interps.h: Likewise.
2617 * jit.c: Likewise.
2618 * linespec.c: Likewise.
2619 * linux-nat.c: Likewise.
2620 * linux-thread-db.c: Likewise.
2621 * m32r-rom.c: Likewise.
2622 * main.c: Likewise.
2623 * memory-map.c: Likewise.
2624 * mi/mi-cmd-break.c: Likewise.
2625 * mi/mi-cmd-stack.c: Likewise.
2626 * mi/mi-interp.c: Likewise.
2627 * mi/mi-main.c: Likewise.
2628 * monitor.c: Likewise.
2629 * nto-procfs.c: Likewise.
2630 * objc-lang.c: Likewise.
2631 * p-valprint.c: Likewise.
2632 * parse.c: Likewise.
2633 * ppc-linux-tdep.c: Likewise.
2634 * printcmd.c: Likewise.
2635 * probe.c: Likewise.
2636 * python/py-auto-load.c: Likewise.
2637 * python/py-breakpoint.c: Likewise.
2638 * python/py-cmd.c: Likewise.
2639 * python/py-finishbreakpoint.c: Likewise.
2640 * python/py-frame.c: Likewise.
2641 * python/py-framefilter.c: Likewise.
2642 * python/py-function.c: Likewise.
2643 * python/py-gdb-readline.c: Likewise.
2644 * python/py-inferior.c: Likewise.
2645 * python/py-infthread.c: Likewise.
2646 * python/py-lazy-string.c: Likewise.
2647 * python/py-linetable.c: Likewise.
2648 * python/py-param.c: Likewise.
2649 * python/py-prettyprint.c: Likewise.
2650 * python/py-symbol.c: Likewise.
2651 * python/py-type.c: Likewise.
2652 * python/py-value.c: Likewise.
2653 * python/python-internal.h: Likewise.
2654 * python/python.c: Likewise.
2655 * record-btrace.c: Likewise.
2656 * record-full.c: Likewise.
2657 * regcache.c: Likewise.
2658 * remote-fileio.c: Likewise.
2659 * remote-mips.c: Likewise.
2660 * remote.c: Likewise.
2661 * rs6000-aix-tdep.c: Likewise.
2662 * rs6000-nat.c: Likewise.
2663 * skip.c: Likewise.
2664 * solib-darwin.c: Likewise.
2665 * solib-dsbt.c: Likewise.
2666 * solib-frv.c: Likewise.
2667 * solib-ia64-hpux.c: Likewise.
2668 * solib-spu.c: Likewise.
2669 * solib-svr4.c: Likewise.
2670 * solib.c: Likewise.
2671 * spu-tdep.c: Likewise.
2672 * stack.c: Likewise.
2673 * stap-probe.c: Likewise.
2674 * symfile-mem.c: Likewise.
2675 * symmisc.c: Likewise.
2676 * target.c: Likewise.
2677 * thread.c: Likewise.
2678 * top.c: Likewise.
2679 * tracepoint.c: Likewise.
2680 * tui/tui-interp.c: Likewise.
2681 * typeprint.c: Likewise.
2682 * utils.c: Likewise.
2683 * valarith.c: Likewise.
2684 * valops.c: Likewise.
2685 * valprint.c: Likewise.
2686 * value.c: Likewise.
2687 * varobj.c: Likewise.
2688 * windows-nat.c: Likewise.
2689 * xml-support.c: Likewise.
2690
2691 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2692
2693 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2694 name implies.
2695 (extended_mips16_next_pc): Update accordingly.
2696
2697 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2698
2699 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2700 function.
2701 (micromips_instruction_is_compact_branch): Likewise.
2702 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2703 or a compact jump, reaching a jump delay slot, or seeing a
2704 second non-prologue instruction.
2705 (micromips_scan_prologue): Also terminate scanning upon seeing a
2706 compact branch or jump, or reaching a branch or jump delay slot.
2707 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2708 or jump delay slot, or seeing a second non-prologue instruction.
2709 (mips32_instruction_has_delay_slot): Retain instruction
2710 examination code only, update arguments accordingly and move
2711 instruction fetch pieces to...
2712 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2713 (micromips_instruction_has_delay_slot): Likewise and to...
2714 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2715 (mips16_instruction_has_delay_slot): Likewise and to...
2716 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2717 (mips_single_step_through_delay): Update accordingly.
2718 (mips_adjust_breakpoint_address): Likewise.
2719
2720 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2721
2722 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2723 !mustbe32 also return 1 for 32-bit instructions.
2724 (mips16_instruction_has_delay_slot): Likewise. Add an
2725 explanatory comment.
2726
2727 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2728
2729 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2730 symbols special.
2731
2732 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2733
2734 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2735 update comments.
2736 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2737 for the breakpoint's address. Don't preinitialize `placed_size'.
2738 (insert_bp_location): Set `reqstd_address' rather than
2739 `placed_address'.
2740 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2741 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2742 address.
2743 (bkpt_remove_location): Likewise.
2744 (deprecated_insert_raw_breakpoint): Likewise.
2745 (deprecated_remove_raw_breakpoint): Likewise.
2746 (find_single_step_breakpoint): Likewise.
2747 * mem-break.c (default_memory_insert_breakpoint): Use
2748 `reqstd_address' for the breakpoint's address. Don't set
2749 `placed_address' or `placed_size' if breakpoint contents couldn't
2750 have been determined.
2751 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2752 the breakpoint's address.
2753 (remote_insert_hw_breakpoint): Likewise. Don't set
2754 `placed_address' or `placed_size' if breakpoint couldn't have been
2755 set.
2756 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2757 `reqstd_address' for the breakpoint's address.
2758 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2759 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2760 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2761 * microblaze-linux-tdep.c
2762 (microblaze_linux_memory_remove_breakpoint): Likewise.
2763 * monitor.c (monitor_insert_breakpoint): Likewise.
2764 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2765 (procfs_insert_hw_breakpoint): Likewise.
2766 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2767 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2768 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2769 * remote-mips.c (mips_insert_breakpoint): Likewise.
2770 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2771
2772 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2773
2774 * valops.c (value_assign): Check for bit field assignments
2775 before calling architecture-specific register value
2776 conversion functions.
2777
2778 2014-10-03 Pierre Muller <muller@sourceware.org>
2779
2780 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2781
2782 2014-10-02 Pedro Alves <palves@redhat.com>
2783
2784 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2785 threads_are_executing.
2786 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2787 describing comment.
2788 * gdbthread.h (threads_are_executing): Declare.
2789 (handle_signal_stop) <random signals>: Don't print about the
2790 signal here if stopping.
2791 (end_stepping_range): Don't notify observers here.
2792 (normal_stop): Update the thread list. If stopped by a random
2793 signal or a stepping range ended, notify observers.
2794 * thread.c (threads_executing): New global.
2795 (init_thread_list): Clear 'threads_executing'.
2796 (set_executing): Set or clear 'threads_executing'.
2797 (threads_are_executing): New function.
2798 (update_threads_executing): New function.
2799 (update_thread_list): Use it.
2800
2801 2014-10-02 Pedro Alves <palves@redhat.com>
2802
2803 PR breakpoints/17431
2804 * breakpoint.c (update_breakpoints_after_exec): Don't create
2805 overlay, longjmp, std terminate nor exception breakpoints here.
2806
2807 2014-10-02 Pedro Alves <palves@redhat.com>
2808
2809 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2810 Adjust comments.
2811 * inferior.c (find_inferior_for_program_space): Give preference to
2812 the current inferior.
2813 * inferior.h (find_inferior_for_program_space): Update comment.
2814 * progspace.c (switch_to_program_space_and_thread): Prefer the
2815 current inferior if it's bound to the program space requested. If
2816 the inferior found doesn't have a PID yet, don't bother looking up
2817 a thread.
2818 * progspace.h (switch_to_program_space_and_thread): Adjust
2819 comment.
2820 * thread.c (any_thread_of_process, any_live_thread_of_process):
2821 Give preference to the current thread.
2822
2823 2014-10-01 Pedro Alves <palves@redhat.com>
2824
2825 * breakpoint.c (insert_bp_location): Error out if inserting a
2826 software breakpoint at a read-only address.
2827 * target.c (memory_xfer_check_region): New function, factored out
2828 from ...
2829 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2830 ULONGEST.
2831 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2832 against the memory region attributes.
2833
2834 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2835
2836 * NEWS: Announce new exit-code field in -list-thread-groups
2837 output.
2838 * inferior.c (exit_inferior_1): Don't clear exit code.
2839 (inferior_appeared): Clear exit code.
2840 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2841 code.
2842
2843 2014-10-01 Pedro Alves <palves@redhat.com>
2844
2845 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2846 GENERATED" along with emacs/vi read-only markers.
2847 * regformats/aarch64.dat: Regenerate.
2848 * regformats/arm-with-iwmmxt.dat: Regenerate.
2849 * regformats/arm-with-neon.dat: Regenerate.
2850 * regformats/arm-with-vfpv2.dat: Regenerate.
2851 * regformats/arm-with-vfpv3.dat: Regenerate.
2852 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2853 * regformats/i386/amd64-avx.dat: Regenerate.
2854 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2855 * regformats/i386/amd64-avx512.dat: Regenerate.
2856 * regformats/i386/amd64-linux.dat: Regenerate.
2857 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2858 * regformats/i386/amd64-mpx.dat: Regenerate.
2859 * regformats/i386/amd64.dat: Regenerate.
2860 * regformats/i386/i386-avx-linux.dat: Regenerate.
2861 * regformats/i386/i386-avx.dat: Regenerate.
2862 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2863 * regformats/i386/i386-avx512.dat: Regenerate.
2864 * regformats/i386/i386-linux.dat: Regenerate.
2865 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2866 * regformats/i386/i386-mmx.dat: Regenerate.
2867 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2868 * regformats/i386/i386-mpx.dat: Regenerate.
2869 * regformats/i386/i386.dat: Regenerate.
2870 * regformats/i386/x32-avx-linux.dat: Regenerate.
2871 * regformats/i386/x32-avx.dat: Regenerate.
2872 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2873 * regformats/i386/x32-avx512.dat: Regenerate.
2874 * regformats/i386/x32-linux.dat: Regenerate.
2875 * regformats/i386/x32.dat: Regenerate.
2876 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2877 * regformats/mips-dsp-linux.dat: Regenerate.
2878 * regformats/mips-linux.dat: Regenerate.
2879 * regformats/mips64-dsp-linux.dat: Regenerate.
2880 * regformats/mips64-linux.dat: Regenerate.
2881 * regformats/nios2-linux.dat: Regenerate.
2882 * regformats/rs6000/powerpc-32.dat: Regenerate.
2883 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2884 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2885 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2886 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2887 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2888 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2889 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2890 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2891 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2892 * regformats/s390-linux32.dat: Regenerate.
2893 * regformats/s390-linux32v1.dat: Regenerate.
2894 * regformats/s390-linux32v2.dat: Regenerate.
2895 * regformats/s390-linux64.dat: Regenerate.
2896 * regformats/s390-linux64v1.dat: Regenerate.
2897 * regformats/s390-linux64v2.dat: Regenerate.
2898 * regformats/s390-te-linux64.dat: Regenerate.
2899 * regformats/s390x-linux64.dat: Regenerate.
2900 * regformats/s390x-linux64v1.dat: Regenerate.
2901 * regformats/s390x-linux64v2.dat: Regenerate.
2902 * regformats/s390x-te-linux64.dat: Regenerate.
2903 * regformats/tic6x-c62x-linux.dat: Regenerate.
2904 * regformats/tic6x-c62x.dat: Regenerate.
2905 * regformats/tic6x-c64x-linux.dat: Regenerate.
2906 * regformats/tic6x-c64x.dat: Regenerate.
2907 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2908 * regformats/tic6x-c64xp.dat: Regenerate.
2909
2910 2014-10-01 Pedro Alves <palves@redhat.com>
2911
2912 * features/Makefile: Update comments.
2913 (XMLTOC): List all xml files we build C files from.
2914 (clean-cfiles): New rule.
2915
2916 2014-10-01 Pedro Alves <palves@redhat.com>
2917
2918 * features/i386/amd64-avx512-linux.c: Regenerate.
2919 * features/i386/amd64-avx512.c: Regenerate.
2920 * features/i386/x32-avx512-linux.c: Regenerate.
2921 * features/i386/x32-avx512.c: Regenerate.
2922
2923 2014-10-01 Pedro Alves <palves@redhat.com>
2924
2925 * features/Makefile (WHICH): Remove arm-with-m,
2926 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2927
2928 2014-10-01 Pedro Alves <palves@redhat.com>
2929
2930 * features/Makefile (clean): New rule.
2931
2932 2014-10-01 Pedro Alves <palves@redhat.com>
2933
2934 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2935 (zmm14h): Add missing end quotes.
2936
2937 2014-10-01 Pedro Alves <palves@redhat.com>
2938
2939 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2940 * features/aarch64.c: Regenerate.
2941
2942 2014-09-30 Don Breazeal <donb@codesourcery.com>
2943
2944 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2945 code so as to work with follow_fork_inferior.
2946 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2947 (inf_ttrace_create_inferior): Remove reference to
2948 inf_ttrace_vfork_ppid.
2949 (inf_ttrace_attach): Ditto.
2950 (inf_ttrace_detach): Ditto.
2951 (inf_ttrace_kill): Use current_inferior instead of
2952 inf_ttrace_vfork_ppid.
2953 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2954 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2955 inferior away from the parent.
2956 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2957 target_follow_fork.
2958 (follow_fork_inferior): New function.
2959 (follow_inferior_reset_breakpoints): Make function static.
2960 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2961 * linux-nat.c (linux_child_follow_fork): Move target-independent
2962 code to infrun.c:follow_fork_inferior.
2963
2964 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2965
2966 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2967 * gdbarch.c: Regenerate.
2968 * gdbarch.h: Likewise.
2969 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2970 gdbarch method 'regset_from_core_section'.
2971 (get_core_register_section): Remove handling for the case that
2972 regset == NULL and regset_from_core_section is defined.
2973 (get_core_registers): Drop check for deleted method.
2974 * procfs.c (procfs_do_thread_registers): Adjust comment.
2975
2976 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2977
2978 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2979 (linux_nat_make_corefile_notes): Remove.
2980 (linux_target_install_ops): Do not set target method
2981 'make_corefile_notes'.
2982 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2983 Remove field.
2984 (linux_corefile_thread_callback): Instead of args->collect, call
2985 linux_collect_thread_registers.
2986 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2987 NULL unless there is a regset iterator.
2988 (linux_make_corefile_notes_1): Remove.
2989 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2990 by linux_make_corefile_notes.
2991 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2992
2993 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2994
2995 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2996 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2997 Remove.
2998 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2999
3000 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3001
3002 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3003 (xtensa_iterate_over_regset_sections): New.
3004 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3005
3006 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3007
3008 * vax-tdep.c (vax_regset_from_core_section): Remove.
3009 (vax_iterate_over_regset_sections): New.
3010 (vax_gdbarch_init): Adjust gdbarch initialization.
3011
3012 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3013
3014 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3015 (tilegx_regset_from_core_section): Remove.
3016 (tilegx_iterate_over_regset_sections): New.
3017 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3018
3019 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3020
3021 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3022 (sparc_iterate_over_regset_sections): New.
3023 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3024 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3025 targets.
3026 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3027 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3028 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3029 target method 'make_corefile_notes'.
3030
3031 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3032
3033 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3034 'sizeof_gregset' and 'sizeof_fpregset'.
3035 * sh-tdep.c (sh_regset_from_core_section): Remove.
3036 (sh_iterate_over_regset_sections): New.
3037 (sh_gdbarch_init): Adjust gdbarch initialization.
3038 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3039 sizeof_fpregset.
3040 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3041 'sizeof_gregset'.
3042
3043 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3044
3045 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3046 (score7_linux_iterate_over_regset_sections): New.
3047 (score_gdbarch_init): Adjust gdbarch initialization.
3048
3049 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3050
3051 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3052 FreeBSD targets.
3053 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3054 method 'make_corefile_notes'.
3055 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3056 (ppcfbsd_regset_from_core_section): Remove.
3057 (ppcfbsd_iterate_over_regset_sections): New.
3058 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3059 initialization.
3060 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3061 (ppcnbsd_iterate_over_regset_sections): New.
3062 (ppcnbsd_init_abi): Adjust.
3063 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3064 (ppcobsd_iterate_over_regset_sections): New.
3065 (ppcobsd_init_abi): Adjust.
3066 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3067 (rs6000_aix_iterate_over_regset_sections): New.
3068 (rs6000_aix_init_osabi): Adjust.
3069
3070 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3071
3072 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3073 (nios2_regset_from_core_section): Remove.
3074 (nios2_iterate_over_regset_sections): New.
3075 (nios2_linux_init_abi): Adjust gdbarch initialization.
3076
3077 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3078
3079 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3080 (am33_iterate_over_regset_sections): New.
3081 (am33_linux_init_osabi): Adjust gdbarch initialization.
3082
3083 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3084
3085 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3086 (mips_linux_iterate_over_regset_sections): New.
3087 (mips_linux_init_abi): Adjust gdbarch initialization.
3088 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3089 (mips64obsd_iterate_over_regset_sections): New.
3090 (mips64obsd_init_abi): Adjust.
3091 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3092 (mipsnbsd_iterate_over_regset_sections): New.
3093 (mipsnbsd_init_abi): Adjust.
3094
3095 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3096
3097 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3098 (m88k_iterate_over_regset_sections): New.
3099 (m88k_gdbarch_init): Adjust gdbarch initialization.
3100
3101 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3102
3103 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3104 (ia64_linux_iterate_over_regset_sections): New.
3105 (ia64_linux_init_abi): Adjust gdbarch initialization.
3106
3107 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3108
3109 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3110 (m68kbsd_iterate_over_regset_sections): New.
3111 (m68kbsd_init_abi): Adjust gdbarch initialization.
3112 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3113 (m68k_linux_iterate_over_regset_sections): New.
3114 (m68k_linux_init_abi): Adjust gdbarch initialization.
3115
3116 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3117
3118 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3119 (m32r_linux_regset_from_core_section): Remove.
3120 (m32r_linux_iterate_over_regset_sections): New.
3121 (m32r_linux_init_abi): Adjust gdbarch initialization.
3122
3123 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3124
3125 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3126 (amd64obsd_iterate_over_regset_sections): New.
3127 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3128 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3129 Remove.
3130 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3131 regset_from_core_section initialization.
3132 * i386-tdep.c (i386_regset_from_core_section): Remove.
3133 (i386_iterate_over_regset_sections): New.
3134 (i386_gdbarch_init): Adjust gdbarch initialization.
3135 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3136 (i386_iterate_over_regset_sections): New prototype.
3137 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3138 Remove.
3139 (i386obsd_aout_iterate_over_regset_sections): New.
3140 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3141 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3142 targets.
3143 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3144 (amd64fbsd_init_abi): Call fbsd_init_abi.
3145 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3146 (i386fbsd4_init_abi): Call fbsd_init_abi.
3147 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3148 target method 'make_corefile_notes'.
3149 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3150
3151 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3152
3153 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3154 (hppa_hpux_iterate_over_regset_sections): New.
3155 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3156 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3157 (hppa_linux_iterate_over_regset_sections): New.
3158 (hppa_linux_init_abi): Adjust.
3159 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3160 (hppanbsd_iterate_over_regset_sections): New.
3161 (hppanbsd_init_abi): Adjust.
3162 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3163 (hppaobsd_iterate_over_regset_sections): New.
3164 (hppaobsd_init_abi): Adjust.
3165
3166 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3167
3168 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3169 (frv_linux_iterate_over_regset_sections): New.
3170 (frv_linux_init_abi): Adjust gdbarch initialization.
3171
3172 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3173
3174 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3175 (armbsd_iterate_over_regset_sections): New prototype.
3176 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3177 (armbsd_iterate_over_regset_sections): New.
3178 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3179 initialization.
3180
3181 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3182
3183 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3184 (alpha_linux_iterate_over_regset_sections): New.
3185 (alpha_linux_init_abi): Adjust gdbarch initialization.
3186 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3187 prototype.
3188 (alphanbsd_iterate_over_regset_sections): New prototype.
3189
3190 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3191
3192 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3193 Remove.
3194 (aarch64_linux_iterate_over_regset_sections): New.
3195 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3196
3197 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3198
3199 * fbsd-tdep.c: New file.
3200 * fbsd-tdep.h: New file.
3201 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3202 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3203 (ALLDEPFILES): Add fbsd-tdep.c.
3204
3205 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3206
3207 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3208 parameter.
3209 * gdbarch.h: Regenerate.
3210 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3211 iterator.
3212 (get_core_register_section): Add parameter 'regset' and use it, if
3213 set. Add parameter 'min_size' and verify the bfd section size
3214 against it.
3215 (get_core_registers_cb): Add parameter 'regset' and pass it to
3216 get_core_register section. For the "standard" register sections
3217 ".reg" and ".reg2", set an appropriate default for human_name.
3218 (get_core_registers): Don't abort when the gdbarch has an iterator
3219 but no regset_from_core_section. Add NULL/0 for parameters
3220 'regset'/'min_size' in calls to get_core_register_section.
3221 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3222 'regset' and use it instead of calling the
3223 regset_from_core_section gdbarch method.
3224 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3225 * i386-tdep.c (i386_supply_xstateregset)
3226 (i386_collect_xstateregset, i386_xstateregset): Moved to
3227 i386-linux-tdep.c.
3228 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3229 .reg-xstate.
3230 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3231 core file support only if the regset iterator hasn't been set.
3232 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3233 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3234 Moved from i386-tdep.c and renamed to *_linux*.
3235 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3236 each callback invocation. Allow any .reg-xstate size when reading
3237 from a core file.
3238 * amd64-tdep.c (amd64_supply_xstateregset)
3239 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3240 amd64-linux-tdep.c.
3241 (amd64_regset_from_core_section): Remove.
3242 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3243 install an amd64-specific regset_from_core_section gdbarch method.
3244 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3245 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3246 Moved from amd64-tdep.c and renamed to *_linux*.
3247 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3248 to each callback invocation. Allow any .reg-xstate size when
3249 reading from a core file.
3250 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3251 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3252 each callback invocation.
3253 (arm_linux_init_abi): No longer set the regset_from_core_section
3254 gdbarch method.
3255 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3256 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3257 each callback invocation.
3258 (ppc_linux_init_abi): No longer set the regset_from_core_section
3259 gdbarch method.
3260 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3261 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3262 (s390_regset_from_core_section): Remove.
3263 (s390_iterate_over_regset_sections): Add regset parameter to each
3264 callback invocation.
3265 (s390_gdbarch_init): No longer set the regset_from_core_section
3266 gdbarch method. Drop initialization of deleted tdep fields.
3267
3268 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3269
3270 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3271 (amd64_linux_iterate_over_regset_sections): New.
3272 (amd64_linux_init_abi_common): Don't install the regset section
3273 list, but the new iterator in gdbarch.
3274 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3275 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3276 (arm_linux_iterate_over_regset_sections): ...here. New function.
3277 (arm_linux_init_abi): Set iterator instead of section list.
3278 * corelow.c (get_core_registers_cb): New function, logic moved
3279 from...
3280 (get_core_registers): ...loop body here. Use new iterator method
3281 instead of walking through the regset section list.
3282 * gdbarch.sh: Remove 'core_regset_sections'. New method
3283 'iterate_over_regset_sections'. New typedef
3284 'iterate_over_regset_sections_cb'.
3285 * gdbarch.c: Regenerate.
3286 * gdbarch.h: Likewise.
3287 * i386-linux-tdep.c (i386_linux_regset_sections)
3288 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3289 Remove.
3290 (i386_linux_iterate_over_regset_sections): New.
3291 (i386_linux_init_abi): Don't choose a regset section list, but
3292 install new iterator in gdbarch.
3293 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3294 (linux_collect_regset_section_cb): New function, logic moved
3295 from...
3296 (linux_collect_thread_registers): ...loop body here. Use iterator
3297 method instead of walking through list.
3298 (linux_make_corefile_notes_1): Check for presence of iterator
3299 method instead of regset section list.
3300 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3301 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3302 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3303 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3304 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3305 (ppc_linux_init_abi): Don't choose from above regset section
3306 lists, but install new iterator in gdbarch.
3307 * regset.h (struct core_regset_section): Remove.
3308 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3309 have_linux_v1, have_linux_v2, and have_tdb.
3310 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3311 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3312 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3313 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3314 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3315 (s390_iterate_over_regset_sections): ...here. New function. Use
3316 new tdep fields.
3317 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3318 regset section lists, but install new iterator.
3319
3320 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3321
3322 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3323
3324 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3325
3326 * progspace.c (print_program_space): Don't prune program spaces
3327 before printing them.
3328
3329 2014-09-25 Pedro Alves <palves@redhat.com>
3330
3331 * infrun.c (user_visible_resume_ptid): Don't check
3332 singlestep_breakpoints_inserted_p.
3333
3334 2014-09-25 Pedro Alves <palves@redhat.com>
3335
3336 * breakpoint.c (should_be_inserted): Add debug output.
3337
3338 2014-09-25 Pedro Alves <palves@redhat.com>
3339
3340 * infrun.c (stepping_past_instruction_at)
3341 (clear_exit_convenience_vars): Point at infrun.h instead of
3342 inferior.h.
3343 (handle_signal_stop): Fix typo.
3344
3345 2014-09-24 Yao Qi <yao@codesourcery.com>
3346
3347 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3348 bitmask.
3349
3350 2014-09-22 Gary Benson <gbenson@redhat.com>
3351
3352 * target.c (target_stop): Updated comment.
3353
3354 2014-09-22 Gary Benson <gbenson@redhat.com>
3355
3356 * target/target.h (target_stop_ptid): Renamed as...
3357 (target_stop_and_wait): New function. Updated comment.
3358 All uses updated.
3359 (target_continue_ptid): Renamed as...
3360 (target_continue_no_signal): New function. Updated comment.
3361 All uses updated.
3362
3363 2014-09-22 Pedro Alves <palves@redhat.com>
3364
3365 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3366 and "auto" merged.
3367 * breakpoint.c (enum ugll_insert_mode): New enum.
3368 (always_inserted_mode): Now a plain boolean.
3369 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3370 (breakpoints_always_inserted_mode): Delete.
3371 (breakpoints_should_be_inserted_now): New function.
3372 (insert_breakpoints): Pass UGLL_INSERT to
3373 update_global_location_list instead of calling
3374 insert_breakpoint_locations manually.
3375 (create_solib_event_breakpoint_1): New, factored out from ...
3376 (create_solib_event_breakpoint): ... this.
3377 (create_and_insert_solib_event_breakpoint): Use
3378 create_solib_event_breakpoint_1 instead of calling
3379 insert_breakpoint_locations manually.
3380 (update_global_location_list): Change parameter type from boolean
3381 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3382 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3383 (update_global_location_list_nothrow): Change parameter type from
3384 boolean to enum ugll_insert_mode.
3385 (_initialize_breakpoint): "breakpoint always-inserted" option is
3386 now a boolean command. Update help text.
3387 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3388 (breakpoints_should_be_inserted_now): New declaration.
3389 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3390 Remove breakpoints_always_inserted_mode check.
3391 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3392 * remote.c (remote_start_remote): Likewise.
3393
3394 2014-09-22 Pedro Alves <palves@redhat.com>
3395
3396 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3397 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3398 Instead, pass UGLL_INSERT to update_global_location_list.
3399 (update_global_location_list): Change parameter type from boolean
3400 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3401 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3402 (create_solib_event_breakpoint_1): New, factored out from ...
3403 (create_solib_event_breakpoint): ... this.
3404 (create_and_insert_solib_event_breakpoint): Use
3405 create_solib_event_breakpoint_1 instead of calling
3406 insert_breakpoint_locations manually.
3407 (update_global_location_list): Handle UGLL_INSERT.
3408
3409 2014-09-22 Pedro Alves <palves@redhat.com>
3410
3411 * breakpoint.c (enum ugll_insert_mode): New enum.
3412 (update_global_location_list)
3413 (update_global_location_list_nothrow): Change parameter type from
3414 boolean to enum ugll_insert_mode. All callers adjusted.
3415
3416 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3417
3418 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3419 SystemTap support in GDB.
3420
3421 2014-09-19 Don Breazeal <donb@codesourcery.com>
3422
3423 * linux-nat.c (linux_handle_extended_wait): Call
3424 linux_ptrace_get_extended_event.
3425 (wait_lwp): Call linux_is_extended_waitstatus.
3426 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3427 and linux_is_extended_waitstatus.
3428 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3429 linux_ptrace_get_extended_event.
3430 (linux_ptrace_get_extended_event): New function.
3431 (linux_is_extended_waitstatus): New function.
3432 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3433 (linux_is_extended_waitstatus): New declarations.
3434
3435 2014-09-19 Yao Qi <yao@codesourcery.com>
3436
3437 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3438 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3439 comments. Callers update.
3440 (dwarf_decode_lines): Likewise.
3441 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3442 comments. Skip the line table if 'lowpc' is greater than
3443 'address'. Don't check
3444 dwarf2_per_objfile->has_section_at_zero.
3445
3446 2014-09-18 Doug Evans <dje@google.com>
3447
3448 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3449 * python/py-symtab.c (stpy_get_producer): New function.
3450 (symtab_object_getset): Add "producer" attribute.
3451
3452 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3453
3454 PR gdb/17384
3455 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3456 (do_captured_read_memory_integer): Remove.
3457 (safe_read_memory_integer): Use target_read_memory directly instead
3458 of catching errors in do_captured_read_memory_integer.
3459
3460 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3461
3462 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3463 not gdb/doc.
3464
3465 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3466
3467 * objc-lang.c (find_implementation_from_class): Remove dead code.
3468
3469 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3470
3471 PR cli/7233
3472 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3473 "fprintf_unfiltered (gdb_stdlog...)".
3474
3475 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3476
3477 PR breakpoints/12526
3478 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3479 val_bitsize.
3480 * breakpoint.c (watch_command_1): Use these fields to retain
3481 bitfield information.
3482 (extract_bitfield_from_watchpoint_value): New function.
3483 (watchpoint_check): Use it.
3484 (update_watchpoint): Use it. Optimize the address and length of a
3485 HW watchpoint pointing to a bitfield.
3486 * value.h (unpack_value_bitfield): New prototype.
3487 * value.c (unpack_value_bitfield): Make extern.
3488
3489 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3490
3491 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3492 x86-dregs.o.
3493 * gnu-nat.c (inf_threads): New function.
3494 * gnu-nat.h (inf_threads_ftype): New typedef.
3495 (inf_threads): New declaration.
3496 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3497 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3498 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3499 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3500 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3501 (i386_gnu_dr_get_control): New functions.
3502 (reg_addr): New structure.
3503 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3504 i386 debugging register hooks.
3505 * NEWS: Mention this.
3506
3507 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3508
3509 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3510 vector data transfer instructions.
3511 (arm_record_coproc_data_proc): Updated.
3512
3513 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3514
3515 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3516 arm_record_exreg_ld_st_insn.
3517 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3518 load/store insns.
3519
3520 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3521
3522 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3523 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3524 processing instructions.
3525
3526 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3527
3528 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3529 for advance SIMD struct ld/st insn.
3530 (thumb2_record_decode_insn_handler): Replace stub handler with
3531 thumb2_record_asimd_struct_ld_st.
3532
3533 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3534
3535 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3536 for asimd, vfp and coprocessor insns.
3537 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3538 and coprocessor insns.
3539 (thumb2_record_coproc_insn): New function.
3540 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3541 handlers.
3542 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3543 opcode 110 insns.
3544
3545 2014-09-13 Doug Evans <xdje42@gmail.com>
3546
3547 * NEWS: Mention new "queue-signal" command.
3548 * infcmd.c (queue_signal_command): New function.
3549 (_initialize_infcmd): Add new queue-signal command.
3550
3551 2014-09-13 Doug Evans <xdje42@gmail.com>
3552
3553 * linux-nat.c (wait_lwp): Add debugging printf.
3554 (linux_nat_wait_1): Ditto.
3555
3556 2014-09-12 Pedro Alves <palves@redhat.com>
3557
3558 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3559 (create_and_insert_solib_event_breakpoint): New functions.
3560 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3561 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3562 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3563 (remove_dbx_link_breakpoint): Delete function.
3564 (insert_dbx_link_bpt_in_file): Use
3565 create_and_insert_solib_event_breakpoint instead of
3566 deprecated_insert_raw_breakpoint.
3567 (procfs_wait): Don't check whether we hit __dbx_link here.
3568 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3569 here.
3570 * solib-irix.c (base_breakpoint): Delete global.
3571 (disable_break): Delete function.
3572 (enable_break): Use create_solib_event_breakpoint
3573 instead of deprecated_insert_raw_breakpoint.
3574 (irix_solib_handle_event): New function.
3575 (irix_solib_create_inferior_hook): Don't run the target or disable
3576 the mapping-complete breakpoint here.
3577 (_initialize_irix_solib): Install irix_solib_handle_event as
3578 so_ops->handle_event hook.
3579
3580 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3581 Ulrich Weigand  <uweigand@de.ibm.com>
3582
3583 PR tdep/17379
3584 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3585 instead of read_memory_unsigned_integer.
3586
3587 2014-09-12 Gary Benson <gbenson@redhat.com>
3588
3589 * nat/linux-waitpid.c: Include common-defs.h.
3590 [GDBSERVER]: Add FIXME comment.
3591 [!GDBSERVER]: Don't include defs.h or signal.h.
3592 (linux_debug) [!GDBSERVER]: Remove empty block.
3593
3594 2014-09-12 Gary Benson <gbenson@redhat.com>
3595
3596 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3597 Don't include defs.h or server.h.
3598
3599 2014-09-12 Gary Benson <gbenson@redhat.com>
3600
3601 * nat/linux-btrace.c: Include common-defs.h.
3602 Don't include defs.h, server.h or gdbthread.h.
3603 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3604
3605 2014-09-12 Gary Benson <gbenson@redhat.com>
3606
3607 * common/agent.c: Include common-defs.h.
3608 Don't include defs.h or server.h.
3609 * common/buffer.c: Likewise.
3610 * common/common-debug.c: Likewise.
3611 * common/common-utils.c: Likewise.
3612 * common/errors.c: Likewise.
3613 * common/filestuff.c: Likewise.
3614 * common/format.c: Likewise.
3615 * common/gdb_vecs.c: Likewise.
3616 * common/print-utils.c: Likewise.
3617 * common/ptid.c: Likewise.
3618 * common/rsp-low.c: Likewise.
3619 * common/signals.c: Likewise.
3620 * common/vec.c: Likewise.
3621 * common/xml-utils.c: Likewise.
3622 * nat/linux-osdata.c: Likewise.
3623 * nat/linux-procfs.c: Likewise.
3624 * nat/linux-ptrace.c: Likewise.
3625 * nat/mips-linux-watch.c: Likewise.
3626 * target/waitstatus.c: Likewise.
3627
3628 2014-09-12 Tom Tromey <tromey@redhat.com>
3629 Gary Benson <gbenson@redhat.com>
3630
3631 * common/common-regcache.h: New file.
3632 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3633 * regcache.h: Include common-regcache.h.
3634 (regcache_read_pc): Don't declare.
3635 * regcache.c (get_thread_regcache_for_ptid): New function.
3636 * nat/linux-btrace.c: Don't include regcache.h.
3637 Include common-regcache.h.
3638 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3639
3640 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3641
3642 * regcache.h (struct regset): Declare.
3643
3644 2014-09-11 Pedro Alves <palves@redhat.com>
3645
3646 PR gdb/17347
3647 * main.c: Include "infrun.h".
3648 (catch_command_errors, catch_command_errors_const): Wait for the
3649 foreground command to complete.
3650 * top.c (maybe_wait_sync_command_done): New function, factored out
3651 from ...
3652 (maybe_wait_sync_command_done): ... here.
3653 * top.h (maybe_wait_sync_command_done): New declaration.
3654
3655 2014-09-11 Tom Tromey <tromey@redhat.com>
3656 Gary Benson <gbenson@redhat.com>
3657
3658 * common/symbol.h: New file.
3659 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3660 * minsyms.c (find_minimal_symbol_address): New function.
3661 * common/agent.c: Include common/symbol.h.
3662 [!GDBSERVER]: Don't include objfiles.h.
3663 (agent_look_up_symbols): Use find_minimal_symbol_address.
3664
3665 2014-09-11 Gary Benson <gbenson@redhat.com>
3666
3667 * target/target.h (target_stop_ptid, target_continue_ptid):
3668 Declare.
3669 * target.c (target_stop_ptid, target_continue_ptid): New
3670 functions.
3671 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3672 (agent_run_command): Always use target_stop_ptid and
3673 target_continue_ptid.
3674
3675 2014-09-11 Tom Tromey <tromey@redhat.com>
3676 Gary Benson <gbenson@redhat.com>
3677
3678 * target/target.h: New file.
3679 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3680 * target.h: Include target/target.h.
3681 (target_read_memory, target_write_memory): Don't declare.
3682 * target.c (target_read_uint32): New function.
3683 * common/agent.c: Include target/target.h.
3684 [!GDBSERVER]: Don't include target.h.
3685 (helper_thread_id): Type changed to uint32_t.
3686 (agent_get_helper_thread_id): Use target_read_uint32.
3687 (agent_run_command): Always use target_read_memory and
3688 target_write_memory.
3689 (agent_capability): Type changed to uint32_t.
3690 (agent_capability_check): Use target_read_uint32.
3691
3692 2014-09-11 Gary Benson <gbenson@redhat.com>
3693
3694 * common/common-debug.h (show_debug_regs): Declare.
3695 * common/common-debug.c (show_debug_regs): Define.
3696 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3697 all uses with show_debug_regs. Replace all uses that considered
3698 debug_hw_points as a multi-value integer with straight boolean
3699 uses.
3700 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3701 with show_debug_regs.
3702 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3703 all uses with show_debug_regs.
3704 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3705 uses with show_debug_regs.
3706
3707 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3708
3709 * findvar.c (address_from_register): Handle targets requiring
3710 a special conversion routine even for plain pointer types.
3711
3712 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3713
3714 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3715 (store_register): Do not call exec_one_dummy_insn.
3716
3717 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3718
3719 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3720 dereference it first. Use value_enclosing_type instead of
3721 value_type.
3722 (ada_array_length): Likewise.
3723
3724 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3725
3726 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3727 Adjust function implementation and documentation accordingly.
3728 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3729 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3730 Update call to ada_value_ptr_subscript.
3731
3732 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3733
3734 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3735 instead of VAL's type.
3736
3737 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3738
3739 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3740
3741 2014-09-09 Doug Evans <xdje42@gmail.com>
3742
3743 PR guile/17367
3744 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3745 last parameter to pkg-config, not first.
3746 * configure.ac: Pass --with-guile provided pkg-config path to
3747 GDB_GUILE_PROGRAM_NAMES.
3748 * configure: Regenerate.
3749
3750 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3751
3752 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3753 Bertazi".
3754
3755 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3756
3757 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3758 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3759 the list of sections determining GDB_OSABI_IRIX.
3760
3761 2014-09-09 James Hogan <james.hogan@imgtec.com>
3762
3763 * MAINTAINERS (Write After Approval): Add "James Hogan".
3764
3765 2014-09-09 James Hogan <james.hogan@imgtec.com>
3766
3767 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3768
3769 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3770
3771 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3772
3773 2014-09-08 Doug Evans <xdje42@gmail.com>
3774
3775 PR 17247
3776 * guile.c: #include <signal.h>.
3777 (_initialize_guile): Block SIGCHLD while initializing Guile.
3778
3779 Replaces the following, which is reverted.
3780
3781 2014-07-26 Doug Evans <xdje42@gmail.com>
3782
3783 PR 17185
3784 * configure.ac: Add check for header gc/gc.h.
3785 Add check for function setenv.
3786 * configure: Regenerate.
3787 * config.in: Regenerate.
3788 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3789
3790 2014-09-08 Doug Evans <xdje42@gmail.com>
3791
3792 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3793 with named constant. Fix style of pointer comparison.
3794 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3795
3796 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3797
3798 PR gdb/17035
3799 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3800 decide whether we display the command on "show user".
3801 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3802 printing command name.
3803 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3804 * cli/cli-decode.c (cli_user_command_p): Create helper function
3805 to verify whether cmd_list_element is a user-defined command.
3806
3807 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3808
3809 PR python/17355
3810 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3811 Fix goto out of TRY_CATCH.
3812
3813 2014-09-06 Doug Evans <xdje42@gmail.com>
3814 Tom Tromey <tromey@redhat.com>
3815
3816 PR 15276
3817 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3818 $_any_caller_matches.
3819 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3820 * python/lib/gdb/function/caller_is.py: New file.
3821
3822 2014-09-06 Doug Evans <xdje42@gmail.com>
3823
3824 * infcmd.c (program_info): Fix typo.
3825
3826 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3827
3828 PR gdb/17235
3829 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3830 'number'. New variable 'has_digit'. Rewrite code to deal with
3831 subexpressions on SDT probes.
3832
3833 2014-09-04 Pedro Alves <palves@redhat.com>
3834
3835 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3836 the input is only one character long.
3837
3838 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3839
3840 PR fortran/17237
3841 * f-valprint.c (f_val_print): Specify the correct print option to
3842 use when printing integer values.
3843
3844 2014-09-04 Gary Benson <gbenson@redhat.com>
3845
3846 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3847 Remove code to cope with LWPs wrapped as PIDs.
3848 Add assertions to ensure no wrapped LWPs are passed.
3849
3850 2014-09-04 Pedro Alves <palves@redhat.com>
3851
3852 * value.c (value_ranges_copy_adjusted): New function, factored out
3853 from ...
3854 (value_contents_copy_raw): ... here.
3855 (unpack_value_bits_as_long_1): Rename back to ...
3856 (unpack_bits_as_long): ... this. Remove 'original_value' and
3857 'result' parameters. Change return type to LONGEST.
3858 (unpack_value_bits_as_long): Delete.
3859 (unpack_value_field_as_long_1): Delete.
3860 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3861 (unpack_value_bitfield): New function.
3862 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3863 (value_fetch_lazy): Use unpack_value_bitfield.
3864 * value.h (unpack_value_bits_as_long): Delete declaration.
3865
3866 2014-09-03 Sasha Smundak <asmundak@google.com>
3867
3868 * python/py-frame.c (frapy_read_register): New function.
3869
3870 2014-09-03 James Hogan <james.hogan@imgtec.com>
3871
3872 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3873 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3874
3875 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3876
3877 PR python/16699
3878 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3879 function.
3880 (add_cmd): Set "completer_handle_brkchars" to NULL.
3881 * cli/cli-decode.h (struct cmd_list_element)
3882 <completer_handle_brkchars>: New field.
3883 * command.h (completer_ftype_void): New typedef.
3884 (set_cmd_completer_handle_brkchars): New prototype.
3885 * completer.c (set_gdb_completion_word_break_characters): New
3886 function.
3887 (complete_line_internal): Call "completer_handle_brkchars"
3888 callback from command.
3889 * completer.h: Include "command.h".
3890 (set_gdb_completion_word_break_characters): New prototype.
3891 * python/py-cmd.c (cmdpy_completer_helper): New function.
3892 (cmdpy_completer_handle_brkchars): New function.
3893 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3894 (cmdpy_init): Set completer_handle_brkchars to
3895 cmdpy_completer_handle_brkchars.
3896
3897 2014-09-03 Gary Benson <gbenson@redhat.com>
3898
3899 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3900 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3901 Loop conditions changed to equivalent form.
3902 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3903 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3904 ALL_DEBUG_ADDRESS_REGISTERS.
3905
3906 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3907
3908 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3909 description fix.
3910
3911 2014-09-02 Doug Evans <dje@google.com>
3912
3913 * typeprint.c (find_global_typedef): Fix comment.
3914
3915 2014-09-02 Gary Benson <gbenson@redhat.com>
3916
3917 * i386-nat.h: Renamed as...
3918 * x86-nat.h: New file. All type, function and variable name
3919 prefixes changed from "i386_" to "x86_". All references updated.
3920 * i386-nat.c: Renamed as...
3921 * x86-nat.c: New file. All type, function and variable name
3922 prefixes changed from "i386_" to "x86_". All references updated.
3923 * common/i386-xstate.h: Renamed as...
3924 * common/x86-xstate.h: New file. All type, function and variable
3925 name prefixes changed from "i386_" to "x86_". All references
3926 updated.
3927 * nat/i386-cpuid.h: Renamed as...
3928 * nat/x86-cpuid.h: New file. All type, function and variable name
3929 prefixes changed from "i386_" to "x86_". All references updated.
3930 * nat/i386-gcc-cpuid.h: Renamed as...
3931 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3932 name prefixes changed from "i386_" to "x86_". All references
3933 updated.
3934 * nat/i386-dregs.h: Renamed as...
3935 * nat/x86-dregs.h: New file. All type, function and variable name
3936 prefixes changed from "i386_" to "x86_". All references updated.
3937 * nat/i386-dregs.c: Renamed as...
3938 * nat/x86-dregs.c: New file. All type, function and variable name
3939 prefixes changed from "i386_" to "x86_". All references updated.
3940
3941 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3942
3943 * varobj.c (_initialize_varobj): Move to the end of file.
3944
3945 2014-08-29 Gary Benson <gbenson@redhat.com>
3946
3947 * common/common-exceptions.h: New file.
3948 * common/common-exceptions.c: Likewise.
3949 * Makefile.in (SFILES): Add common/common-exceptions.c.
3950 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3951 (COMMON_OBS): Add common-exceptions.o.
3952 (common-exceptions.o): New rule.
3953 * exceptions.h (common-exceptions.h): Include.
3954 (gdb_setjmp.h): Do not include.
3955 (return_reason): Moved to common-exceptions.h.
3956 (enum return_reason): Likewise.
3957 (RETURN_MASK): Likewise.
3958 (typedef return_mask): Likewise.
3959 (enum errors): Likewise.
3960 (struct gdb_exception): Likewise.
3961 (exceptions_state_mc_init): Likewise.
3962 (exceptions_state_mc_action_iter): Likewise.
3963 (exceptions_state_mc_action_iter_1): Likewise.
3964 (TRY_CATCH): Likewise.
3965 (throw_exception): Likewise.
3966 (throw_verror): Likewise.
3967 (throw_vquit): Likewise.
3968 (throw_error): Likewise.
3969 (throw_quit): Likewise.
3970 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3971 (enum catcher_action): Likewise.
3972 (struct catcher): Likewise.
3973 (current_catcher): Likewise.
3974 (catcher_list_size): Likewise.
3975 (exceptions_state_mc_init): Likewise.
3976 (catcher_pop): Likewise.
3977 (exceptions_state_mc): Likewise.
3978 (exceptions_state_mc_action_iter): Likewise.
3979 (exceptions_state_mc_action_iter_1): Likewise.
3980 (throw_exception): Likewise.
3981 (exception_messages): Likewise.
3982 (exception_messages_size): Likewise.
3983 (throw_it): Likewise.
3984 (throw_verror): Likewise.
3985 (throw_vquit): Likewise.
3986 (throw_error): Likewise.
3987 (throw_quit): Likewise.
3988 (prepare_to_throw_exception): New function.
3989
3990 2014-08-29 Gary Benson <gbenson@redhat.com>
3991
3992 * common/gdb_setjmp.h: New file.
3993 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3994 * configure.ac: Move sigsetjmp check...
3995 * common/common.m4: ...here.
3996 * configure: Regenerate.
3997 * cp-support.c (SIGJMP_BUF): Delete.
3998 (SIGSETJMP): Likewise.
3999 (SIGLONGJMP): Likewise.
4000 * exceptions.h (gdb_setjmp.h): Include.
4001 (setjmp.h): Do not include.
4002 (EXCEPTIONS_SIGJMP_BUF): Delete.
4003 (EXCEPTIONS_SIGSETJMP): Likewise.
4004 (EXCEPTIONS_SIGLONGJMP): Likewise.
4005 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4006 from gdb_setjmp.h.
4007 * exceptions.c: Likewise.
4008
4009 2014-08-29 Gary Benson <gbenson@redhat.com>
4010
4011 * cleanups.h: Moved to...
4012 * common/cleanups.h: New file.
4013 * cleanups.c: Moved to...
4014 * common/cleanups.c: New file. Include common-defs.h and
4015 cleanups.h. Do not include defs.h.
4016 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4017 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4018 (cleanups.o): New rule.
4019
4020 2014-08-29 Gary Benson <gbenson@redhat.com>
4021
4022 * common/errors.h (internal_warning): New declaration.
4023 (internal_vwarning): Likewise.
4024 * common/errors.c (internal_warning): New function.
4025 * utils.h (internal_warning): Don't declare.
4026 (internal_vwarning): Likewise.
4027 * utils.c (internal_warning): Removed.
4028
4029 2014-08-29 Gary Benson <gbenson@redhat.com>
4030
4031 * main.c (captured_main): Use warning during startup.
4032 Prefix startup warning messages with command name.
4033
4034 2014-08-29 Gary Benson <gbenson@redhat.com>
4035
4036 * main.c (captured_main): Handle usage errors with error.
4037
4038 2014-08-29 Gary Benson <gbenson@redhat.com>
4039
4040 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4041 exit pair with a call to error. Wrap the message with _().
4042
4043 2014-08-29 Gary Benson <gbenson@redhat.com>
4044
4045 * main.c (captured_main): Replace a fprintf/exit
4046 pair with a call to error. Wrap the message with _().
4047
4048 2014-08-29 Gary Benson <gbenson@redhat.com>
4049
4050 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4051 pairs with calls to error. Wrap the message with _().
4052
4053 2014-08-29 Gary Benson <gbenson@redhat.com>
4054
4055 * utils.c (vwarning): Protect calls to target_terminal_ours
4056 and wrap_here.
4057
4058 2014-08-29 Gary Benson <gbenson@redhat.com>
4059
4060 * exceptions.c (print_flush): Protect calls to
4061 target_terminal_ours and wrap_here.
4062
4063 2014-08-29 Gary Benson <gbenson@redhat.com>
4064
4065 * utils.h (filtered_printing_initialized): New declaration.
4066 * utils.c (abort_with_message): New function.
4067 (internal_vproblem): Use abort_with_message for first level
4068 recursive internal problems, and if gdb_stderr is not set up.
4069 Protect calls to target_terminal_ours, begin_line and query.
4070
4071 2014-08-28 Doug Evans <dje@google.com>
4072
4073 * symtab.c (in_prologue): Move definition to better spot.
4074 (skip_prologue_using_sal): Ditto.
4075
4076 2014-08-28 Doug Evans <dje@google.com>
4077
4078 * symtab.c (find_function_start_sal): Move definition to better spot.
4079
4080 2014-08-28 Yao Qi <yao@codesourcery.com>
4081
4082 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4083 found_stack_adjust in forward scan. Remove condition check
4084 on found_stack_adjust which is always true. Indent the code.
4085
4086 2014-08-28 Yao Qi <yao@codesourcery.com>
4087
4088 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4089 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4090 (dwarf_decode_lines): Remove argument
4091 want_line_info. Remove condition check on want_line_info.
4092 Callers update.
4093
4094 2014-08-27 Doug Evans <dje@google.com>
4095
4096 * dwarf2read.c (dwarf_record_line): Fix typo.
4097
4098 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4099
4100 * target.h (struct target_ops::to_terminal_save_ours): Remove
4101 declaration.
4102 (target_terminal_save_ours): Remove macro.
4103 * target-delegates.c: Regenerate.
4104 * inf-child.c (inf_child_target): Don't set the nonexistent
4105 field to_terminal_save_ours.
4106 * inferior.h (child_terminal_save_ours): Remove declaration.
4107 * terminal.h (gdb_save_tty_state): New declaration.
4108 * inflow.c (child_terminal_save_ours): Rename to ...
4109 (gdb_save_tty_state): ... this.
4110 * tui/tui.c: Include terminal.h.
4111 (tui_enable): Use gdb_save_tty_state instead of
4112 target_terminal_save_ours.
4113 (tui_disable): Likewise.
4114
4115 2014-08-25 Doug Evans <dje@google.com>
4116
4117 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4118 Pass NULL instead of 0 for context pointer.
4119
4120 2014-08-25 Yao Qi <yao@codesourcery.com>
4121
4122 * dwarf2read.c: Fix grammatical error.
4123
4124 2014-08-24 Yao Qi <yao@codesourcery.com>
4125
4126 * dwarf2read.c (scan_partial_symbols): Update comments.
4127 Rename argument 'need_pc' with 'set_addrmap'.
4128 (add_partial_namespace): Rename argument 'need_pc' with
4129 'set_addrmap'.
4130 (add_partial_module): Likewise.
4131 (add_partial_subprogram): Likewise. Update comments.
4132 (dwarf2_name): Fix typo.
4133
4134 2014-08-22 Doug Evans <dje@google.com>
4135
4136 PR 17276
4137 * dwarf2read.c (dwarf_record_line_p): New function.
4138 (dwarf_decode_lines_1): Ignore subsequent line number entries
4139 for the same line if any entry had a non-zero discriminator.
4140
4141 2014-08-22 Doug Evans <dje@google.com>
4142
4143 * buildsym.h (record_line_ftype): New typedef.
4144 (record_line): Use it.
4145 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4146 (dwarf_decode_lines_1): Call them.
4147
4148 2014-08-22 Yao Qi <yao@codesourcery.com>
4149
4150 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4151 (ctf_end): Remove code.
4152
4153 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4154
4155 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4156 (linux_make_corefile_notes): call update_thread_list, protected against
4157 exceptions.
4158
4159 2014-08-21 Pedro Alves <palves@redhat.com>
4160
4161 * infcmd.c (attach_command): Remove comment.
4162
4163 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4164
4165 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4166 unsigned LONGEST to ULONGEST.
4167
4168 2014-08-20 Pedro Alves <palves@redhat.com>
4169
4170 * Makefile.in (check-read1): New rule.
4171
4172 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4173
4174 * value.c (value_from_contents_and_address): Strip resolved_type's
4175 typedef layers before checking its TYPE_DATA_LOCATION.
4176
4177 2014-08-20 Pedro Alves <palves@redhat.com>
4178
4179 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4180
4181 2014-08-20 Yao Qi <yao@codesourcery.com>
4182
4183 * amd64-tdep.c (amd64_classify): Add a blank line after the
4184 example. Move "*/" to a new line.
4185 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4186 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4187 * dwarf2read.c (psymtab_include_file_name): Likewise.
4188
4189 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4190 Pedro Alves <palves@redhat.com>
4191
4192 PR symtab/14604
4193 PR symtab/14605
4194 * ada-lang.c (coerce_unspec_val_to_type): Use
4195 value_contents_copy_raw.
4196 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4197 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4198 * cp-valprint.c (cp_print_value_fields): Let the common printing
4199 code handle optimized out values.
4200 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4201 * d-valprint.c (dynamic_array_type): Use
4202 value_bits_any_optimized_out.
4203 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4204 check_any_valid fields.
4205 (check_pieced_value_bits): Delete and inline ...
4206 (check_pieced_synthetic_pointer): ... here.
4207 (check_pieced_value_validity): Delete.
4208 (check_pieced_value_invalid): Delete.
4209 (pieced_value_funcs): Remove check_validity and check_any_valid
4210 fields.
4211 (read_pieced_value): Use mark_value_bits_optimized_out.
4212 (write_pieced_value): Switch to use
4213 mark_value_bytes_optimized_out.
4214 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4215 of assuming the whole value is optimized out.
4216 * findvar.c (read_frame_register_value): Remove special handling
4217 of optimized out registers.
4218 (value_from_register): Use mark_value_bytes_optimized_out.
4219 * frame-unwind.c (frame_unwind_got_optimized): Use
4220 mark_value_bytes_optimized_out.
4221 * jv-valprint.c (java_value_print): Adjust.
4222 (java_print_value_fields): Let the common printing code handle
4223 optimized out values.
4224 * mips-tdep.c (mips_print_register): Remove special handling of
4225 optimized out registers.
4226 * opencl-lang.c (lval_func_check_validity): Delete.
4227 (lval_func_check_any_valid): Delete.
4228 (opencl_value_funcs): Remove check_validity and check_any_valid
4229 fields.
4230 * p-valprint.c (pascal_object_print_value_fields): Let the common
4231 printing code handle optimized out values.
4232 * stack.c (read_frame_arg): Remove special handling of optimized
4233 out values. Fetch both VAL and ENTRYVAL before comparing
4234 contents. Adjust to value_available_contents_eq rename.
4235 * valprint.c (valprint_check_validity)
4236 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4237 (val_print_array_elements): Adjust.
4238 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4239 (value_bits_any_optimized_out): New function.
4240 (value_entirely_covered_by_range_vector): New function, factored
4241 out from value_entirely_unavailable.
4242 (value_entirely_unavailable): Reimplement.
4243 (value_entirely_optimized_out): New function.
4244 (insert_into_bit_range_vector): New function, factored out from
4245 mark_value_bits_unavailable.
4246 (mark_value_bits_unavailable): Reimplement.
4247 (struct ranges_and_idx): New struct.
4248 (find_first_range_overlap_and_match): New function, factored out
4249 from value_available_contents_bits_eq.
4250 (value_available_contents_bits_eq): Rename to ...
4251 (value_contents_bits_eq): ... this. Check both unavailable
4252 contents and optimized out contents.
4253 (value_available_contents_eq): Rename to ...
4254 (value_contents_eq): ... this.
4255 (allocate_value_lazy): Remove reference to the old optimized_out
4256 boolean.
4257 (allocate_optimized_out_value): Use
4258 mark_value_bytes_optimized_out.
4259 (require_not_optimized_out): Adjust to check whether the
4260 optimized_out vec is empty.
4261 (ranges_copy_adjusted): New function, factored out from
4262 value_contents_copy_raw.
4263 (value_contents_copy_raw): Also copy the optimized out ranges.
4264 Assert the destination ranges aren't optimized out.
4265 (value_contents_copy): Update comment, remove call to
4266 require_not_optimized_out.
4267 (value_contents_equal): Adjust to check whether the optimized_out
4268 vec is empty.
4269 (set_value_optimized_out, value_optimized_out_const): Delete.
4270 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4271 New functions.
4272 (value_entirely_optimized_out, value_bits_valid): Delete.
4273 (value_copy): Take a VEC copy of the 'optimized_out' field.
4274 (value_primitive_field): Remove special handling of optimized out.
4275 (value_fetch_lazy): Assert that lazy values have no unavailable
4276 regions. Use value_bits_any_optimized_out. Remove some special
4277 handling for optimized out values.
4278 * value.h: Add intro comment about <optimized out> and
4279 <unavailable>.
4280 (struct lval_funcs): Remove check_validity and check_any_valid
4281 fields.
4282 (set_value_optimized_out, value_optimized_out_const): Remove.
4283 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4284 New declarations.
4285 (value_bits_any_optimized_out): New declaration.
4286 (value_bits_valid): Delete declaration.
4287 (value_available_contents_eq): Rename to ...
4288 (value_contents_eq): ... this, and extend comments.
4289
4290 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4291
4292 Fix -fsanitize=address on unreadable inferior strings.
4293 * valprint.c (val_print_string): Fix access before BUFFER.
4294
4295 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4296
4297 * target.c (target_struct_size): Remove.
4298 (target_struct_allocsize): Remove.
4299 (DEFAULT_ALLOCSIZE): Remove.
4300 (target_ops_p): New typedef.
4301 (DEF_VEC_P (target_ops_p)): New vector type.
4302 (target_structs): Change type to VEC (target_ops_p).
4303 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4304 (find_default_run_target): Rewrite for loop following changes to
4305 target_structs.
4306
4307 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4308
4309 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4310 Adjust code accordingly. Adjust function description comment.
4311
4312 2014-08-19 Yao Qi <yao@codesourcery.com>
4313
4314 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4315 types.
4316
4317 2014-08-19 Alan Modra <amodra@gmail.com>
4318
4319 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4320 * config.in: Regenerate.
4321 * configure: Regenerate.
4322
4323 2014-08-19 Tom Tromey <tromey@redhat.com>
4324 Gary Benson <gbenson@redhat.com>
4325
4326 * common/common-debug.h: New file.
4327 * common/common-debug.c: Likewise.
4328 * debug.c: Likewise.
4329 * Makefile.in (SFILES): Add common/common-debug.c.
4330 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4331 (COMMON_OBS): Add common-debug.o and debug.o.
4332 (common-debug.o): New rule.
4333 * common/common-defs.h: Include common-debug.h.
4334 * common/agent.c (debug_agent_printf): New function.
4335 (DEBUG_AGENT): Redefine.
4336 * nat/i386-dregs.c (debug_printf): Undefine.
4337
4338 2014-08-19 Gary Benson <gbenson@redhat.com>
4339
4340 * common/common-defs.h: Include print-utils.h.
4341 * utils.h: Do not include print-utils.h.
4342
4343 2014-08-19 Tom Tromey <tromey@redhat.com>
4344 Gary Benson <gbenson@redhat.com>
4345
4346 * common/common-types.h: New file.
4347 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4348 * common/common-defs.h: Include common-types.h.
4349 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4350 (ULONGEST): Remove.
4351
4352 2014-08-19 Tom Tromey <tromey@redhat.com>
4353 Gary Benson <gbenson@redhat.com>
4354
4355 * common/errors.h: New file.
4356 * common/errors.c: Likewise.
4357 * Makefile.in (SFILES): Add common/errors.c.
4358 (HFILES_NO_SRCDIR): Add common/errors.h.
4359 (COMMON_OBS): Add errors.o.
4360 (errors.o): New rule.
4361 * common/common-defs.h: Include errors.h.
4362 * utils.h (perror_with_name, error, verror, warning, vwarning):
4363 Don't declare.
4364 * common/common-utils.h: (malloc_failure, internal_error):
4365 Likewise.
4366
4367 2014-08-19 Gary Benson <gbenson@redhat.com>
4368
4369 * utils.c (internal_vproblem): Always print the message.
4370
4371 2014-08-18 Doug Evans <dje@google.com>
4372
4373 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4374
4375 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4376
4377 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4378 Return 0 if TYPE is dynamic.
4379 (print_range): Add handling of dynamic ranges.
4380
4381 2014-08-18 Keven Boell <keven.boell@intel.com>
4382 Joel Brobecker <brobecker@adacore.com>
4383
4384 * gdbtypes.h (struct main_type): Add field "data_location".
4385 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4386 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4387 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4388 a dynamic data location.
4389 (resolve_dynamic_type): Add DW_AT_data_location handling.
4390 (copy_recursive, copy_type): Copy the data_location information
4391 when present.
4392 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4393 * value.c (value_from_contents_and_address): Add
4394 DW_AT_data_location handling.
4395
4396 2014-08-18 Keven Boell <keven.boell@intel.com>
4397 Joel Brobecker <brobecker@adacore.com>
4398
4399 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4400 field "get_object_address".
4401 * dwarf2expr.c (execute_stack_op): Add handling for
4402 DW_OP_push_object_address.
4403 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4404 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4405 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4406 (dwarf_expr_get_obj_addr): New function.
4407 (dwarf_expr_ctx_funcs): Add get_object_address field.
4408 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4409 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4410 (dwarf2_evaluate_property): Add parameter "address". Use it.
4411 (needs_get_obj_addr): New function.
4412 (needs_frame_ctx_funcs): Add get_object_address field.
4413 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4414 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4415 (resolve_dynamic_array): Likewise.
4416
4417 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4418
4419 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4420 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4421 fixed value for records and unions for which some GNAT encodings
4422 are present.
4423
4424 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4425
4426 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4427 rewrite to avoid "else if" and "else" constructs. Should be
4428 a no-op in practice.
4429
4430 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4431
4432 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4433 of lexical block.
4434
4435 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4436
4437 PR c++/17132
4438 * eval.c: Update all calls to find_overload_match.
4439 * valarith.c: Likewise.
4440 (value_user_defined_cpp_op, value_user_defined_op): New
4441 argument NOSIDE. Update all callers.
4442 * valops.c (find_overload_match): New argument NOSIDE.
4443 * value.h (find_overload_match): Update signature.
4444
4445 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4446
4447 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4448 'items' methods instead of 'iteritems' method on dictionaries.
4449
4450 2014-08-15 Doug Evans <dje@google.com>
4451
4452 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4453 closer to use.
4454
4455 2014-08-15 Doug Evans <dje@google.com>
4456
4457 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4458
4459 2014-08-15 Doug Evans <dje@google.com>
4460
4461 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4462
4463 2014-08-15 Doug Evans <dje@google.com>
4464
4465 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4466 unused.
4467
4468 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4469
4470 * dcache.h: Include target.h, to avoid compile time warnings.
4471
4472 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4473
4474 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4475 frame_info" partial declaration.
4476 * gdbarch.h: Regenerate.
4477
4478 2014-08-15 Yao Qi <yao@codesourcery.com>
4479
4480 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4481 Add parameter 'decode_for_pst_p'. Callers update.
4482
4483 2014-08-13 Yao Qi <yao@codesourcery.com>
4484
4485 PR build/17104
4486 * configure.ac: Use local variable 'pos'.
4487 * configure: Regenerated.
4488
4489 2014-08-11 Doug Evans <dje@google.com>
4490
4491 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4492 message, it is redundant with "Reading symbols from ..." message.
4493
4494 2014-08-10 Doug Evans <xdje42@gmail.com>
4495
4496 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4497
4498 2014-08-09 Yao Qi <yao@codesourcery.com>
4499
4500 PR remote/9053
4501 * remote.c (remote_xfer_partial): Remove dead code.
4502
4503 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4504
4505 * ia64-linux-tdep.c: Include "regset.h".
4506 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4507 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4508 (ia64_linux_supply_fpregset): New function.
4509 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4510 (ia64_linux_regset_from_core_section): New function.
4511 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4512 method.
4513
4514 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4515
4516 * m68klinux-tdep.c: Include "regset.h".
4517 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4518 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4519 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4520 (m68k_linux_regset_from_core_section): New function.
4521 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4522 method.
4523
4524 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4525
4526 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4527 function. Move logic to...
4528 (tilegx_linux_regmap): ... this new register map.
4529 (tilegx_linux_regset): Refer to register map, replace supply
4530 method by regcache_supply_regset, and add collect method.
4531 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4532 TILEGX_FIRST_EASY_REGNUM.
4533
4534 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4535
4536 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4537 that calls regcache_supply_regset and handles the EPC register
4538 separately. Move main logic to...
4539 (score7_linux_gregmap): ... this new register map.
4540 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4541 (score7_linux_gregset): Refer to register map. Add collect method.
4542 (score7_linux_regset_from_core_section): Replace
4543 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4544 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4545 (struct regset): Delete unused forward declaraction.
4546 (struct pt_regs): Delete structure definition.
4547 (elf_gregset_t): Delete typedef.
4548
4549 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4550
4551 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4552 (nios2_core_regset): Add collect method.
4553
4554 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4555
4556 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4557 platform-independent and don't write to read-only input buffer.
4558 (m32r_linux_collect_gregset): New function.
4559 (m32r_linux_gregset): Add collect method.
4560
4561 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4562
4563 * hppa-linux-tdep.c (greg_map): Rename to...
4564 (hppa_linux_gregmap): ... this. Also convert to
4565 regcache_map_entry format.
4566 (hppa_linux_supply_regset): Delete function.
4567 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4568 (hppa_linux_fpregmap): ... this new register map.
4569 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4570 register map, replace supply method by regcache_supply_regset, and
4571 add collect method regcache_collect_regset.
4572
4573 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4574
4575 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4576 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4577 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4578 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4579 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4580 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4581 (frv_linux_supply_gregset): Replace main logic by call to
4582 regcache_supply_regset, but keep clearing gr32-gr63.
4583 (frv_linux_supply_fpregset): Delete function.
4584 (frv_linux_gregset): Refer to appropriate register map and add
4585 regcache_collect_regset as the collect method.
4586 (frv_linux_fpregset): Likewise. Also exchange the supply method
4587 by regcache_supply_regset.
4588
4589 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4590
4591 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4592 by call to alpha_supply_int_regs.
4593 (alpha_linux_collect_gregset): New function.
4594 (alpha_linux_supply_fpregset): Replace logic by call to
4595 alpha_supply_fp_regs.
4596 (alpha_linux_collect_fpregset): New function.
4597 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4598
4599 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4600
4601 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4602 by call to regcache_collect_regset.
4603 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4604 instead of aarch64_linux_supply_gregset/_fpregset.
4605 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4606 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4607 header file instead.
4608 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4609 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4610 functions. Move logic to ...
4611 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4612 register maps.
4613 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4614 refer to new register maps, replace *_regset_from_core by
4615 regcache_supply_regset, and also use regcache_collect_regset.
4616 * aarch64-linux-tdep.h: Include "regset.h".
4617 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4618 Delete prototypes.
4619 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4620 macros, moved from C source file.
4621 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4622 variable declarations.
4623
4624 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4625
4626 * s390-linux-nat.c: Include "regset.h".
4627 (regmap_gregset): Delete macro.
4628 (s390_64_regmap_gregset): New register map for
4629 regcache_supply/_collect_regset.
4630 (s390_64_gregset): New regset.
4631 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4632 (regmap_fpregset): Delete macro.
4633 (s390_native_supply, s390_native_collect): Delete functions.
4634 (supply_gregset, fill_gregset): Replace s390-specific regmap
4635 handling by a call to regcache_supply/_collect_regset.
4636 (supply_fpregset, fill_fpregset): Call regcache_supply/
4637 _collect_regset instead of s390_native_supply/_collect.
4638 (fetch_regset, store_regset): Likewise. Also change the last
4639 parameter to a regset instead of a regmap.
4640 (s390_linux_fetch_inferior_registers)
4641 (390_linux_store_inferior_registers): Adjust last parameter in
4642 calls to fetch_regset and store_regset.
4643 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4644 (s390_gregmap): ... this. Also make static const and convert to
4645 regcache_map_entry format.
4646 (s390x_regmap_gregset): Delete.
4647 (s390_regmap_fpregset): Rename to...
4648 (s390_fpregmap): ... this. Make static const and convert to
4649 regcache_map_entry format.
4650 (s390_regmap_upper, s390_regmap_last_break)
4651 (s390x_regmap_last_break, s390_regmap_system_call)
4652 (s390_regmap_tdb): Likewise.
4653 (s390_supply_regset, s390_collect_regset): Remove functions.
4654 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4655 s390_supply_regset.
4656 (s390_gregset, s390_fpregset, s390_upper_regset)
4657 (s390_last_break_regset, s390x_last_break_regset)
4658 (s390_system_call_regset, s390_tdb_regset): Make global and
4659 replace s390_supply/_collect_regset by regcache_supply/
4660 _collect_regset.
4661 (s390x_gregset): Delete.
4662 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4663 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4664 (s390_regmap_fpregset, s390_regmap_last_break)
4665 (s390x_regmap_last_break, s390_regmap_system_call)
4666 (s390_regmap_tdb): Delete global variable declarations.
4667 (s390_gregset, s390_fpregset, s390_last_break_regset)
4668 (s390x_last_break_regset, s390_system_call_regset)
4669 (s390_tdb_regset): New global variable declarations.
4670
4671 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4672
4673 * regcache.c: Include "regset.h".
4674 (regcache_transfer_regset): New local function.
4675 (regcache_supply_regset, regcache_collect_regset): New functions.
4676 * regcache.h (struct regcache_map_entry): New structure.
4677 (REGCACHE_MAP_SKIP): New enum value.
4678 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4679
4680 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4681
4682 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4683 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4684 (ppc_linux_collect_gregset ): Likewise.
4685 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4686 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4687 (ppc_collect_vrregset): Likewise.
4688 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4689 Likewise.
4690
4691 2014-08-07 Yao Qi <yao@codesourcery.com>
4692
4693 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4694 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4695 * remote.c (remote_read_bytes): Likewise.
4696
4697 2014-08-07 Yao Qi <yao@codesourcery.com>
4698
4699 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4700
4701 2014-08-07 Yao Qi <yao@codesourcery.com>
4702
4703 PR remote/17230
4704 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4705 TARGET_XFER_OK instead of 0.
4706
4707 2014-08-07 Gary Benson <gbenson@redhat.com>
4708
4709 * common/common-defs.h: Include errno.h.
4710 * defs.h: Do not include errno.h.
4711 * ada-typeprint.c: Likewise.
4712 * c-typeprint.c: Likewise.
4713 * core-regset.c: Likewise.
4714 * corefile.c: Likewise.
4715 * corelow.c: Likewise.
4716 * event-loop.c: Likewise.
4717 * f-typeprint.c: Likewise.
4718 * gnu-nat.c: Likewise.
4719 * go32-nat.c: Likewise.
4720 * i386gnu-nat.c: Likewise.
4721 * m2-typeprint.c: Likewise.
4722 * nat/linux-btrace.c: Likewise.
4723 * p-typeprint.c: Likewise.
4724 * procfs.c: Likewise.
4725 * remote-sim.c: Likewise.
4726 * rs6000-nat.c: Likewise.
4727 * target.c: Likewise.
4728 * typeprint.c: Likewise.
4729 * ui-file.c: Likewise.
4730 * valops.c: Likewise.
4731 * valprint.c: Likewise.
4732
4733 2014-08-07 Gary Benson <gbenson@redhat.com>
4734
4735 * common/common-defs.h: Include string.h.
4736 * aarch64-tdep.c: Do not include string.h.
4737 * ada-exp.y: Likewise.
4738 * ada-lang.c: Likewise.
4739 * ada-lex.l: Likewise.
4740 * ada-typeprint.c: Likewise.
4741 * ada-valprint.c: Likewise.
4742 * aix-thread.c: Likewise.
4743 * alpha-linux-tdep.c: Likewise.
4744 * alpha-mdebug-tdep.c: Likewise.
4745 * alpha-nat.c: Likewise.
4746 * alpha-osf1-tdep.c: Likewise.
4747 * alpha-tdep.c: Likewise.
4748 * alphanbsd-tdep.c: Likewise.
4749 * amd64-dicos-tdep.c: Likewise.
4750 * amd64-linux-tdep.c: Likewise.
4751 * amd64-nat.c: Likewise.
4752 * amd64-sol2-tdep.c: Likewise.
4753 * amd64fbsd-tdep.c: Likewise.
4754 * amd64obsd-tdep.c: Likewise.
4755 * arch-utils.c: Likewise.
4756 * arm-linux-nat.c: Likewise.
4757 * arm-linux-tdep.c: Likewise.
4758 * arm-tdep.c: Likewise.
4759 * arm-wince-tdep.c: Likewise.
4760 * armbsd-tdep.c: Likewise.
4761 * armnbsd-nat.c: Likewise.
4762 * armnbsd-tdep.c: Likewise.
4763 * armobsd-tdep.c: Likewise.
4764 * avr-tdep.c: Likewise.
4765 * ax-gdb.c: Likewise.
4766 * ax-general.c: Likewise.
4767 * bcache.c: Likewise.
4768 * bfin-tdep.c: Likewise.
4769 * breakpoint.c: Likewise.
4770 * build-id.c: Likewise.
4771 * buildsym.c: Likewise.
4772 * c-exp.y: Likewise.
4773 * c-lang.c: Likewise.
4774 * c-typeprint.c: Likewise.
4775 * c-valprint.c: Likewise.
4776 * charset.c: Likewise.
4777 * cli-out.c: Likewise.
4778 * cli/cli-cmds.c: Likewise.
4779 * cli/cli-decode.c: Likewise.
4780 * cli/cli-dump.c: Likewise.
4781 * cli/cli-interp.c: Likewise.
4782 * cli/cli-logging.c: Likewise.
4783 * cli/cli-script.c: Likewise.
4784 * cli/cli-setshow.c: Likewise.
4785 * cli/cli-utils.c: Likewise.
4786 * coffread.c: Likewise.
4787 * common/agent.c: Likewise.
4788 * common/buffer.c: Likewise.
4789 * common/buffer.h: Likewise.
4790 * common/common-utils.c: Likewise.
4791 * common/filestuff.c: Likewise.
4792 * common/filestuff.c: Likewise.
4793 * common/format.c: Likewise.
4794 * common/print-utils.c: Likewise.
4795 * common/rsp-low.c: Likewise.
4796 * common/signals.c: Likewise.
4797 * common/vec.h: Likewise.
4798 * common/xml-utils.c: Likewise.
4799 * core-regset.c: Likewise.
4800 * corefile.c: Likewise.
4801 * corelow.c: Likewise.
4802 * cp-abi.c: Likewise.
4803 * cp-name-parser.y: Likewise.
4804 * cp-support.c: Likewise.
4805 * cp-valprint.c: Likewise.
4806 * cris-tdep.c: Likewise.
4807 * d-exp.y: Likewise.
4808 * darwin-nat.c: Likewise.
4809 * dbxread.c: Likewise.
4810 * dcache.c: Likewise.
4811 * demangle.c: Likewise.
4812 * dicos-tdep.c: Likewise.
4813 * disasm.c: Likewise.
4814 * doublest.c: Likewise.
4815 * dsrec.c: Likewise.
4816 * dummy-frame.c: Likewise.
4817 * dwarf2-frame.c: Likewise.
4818 * dwarf2loc.c: Likewise.
4819 * dwarf2read.c: Likewise.
4820 * elfread.c: Likewise.
4821 * environ.c: Likewise.
4822 * eval.c: Likewise.
4823 * event-loop.c: Likewise.
4824 * exceptions.c: Likewise.
4825 * exec.c: Likewise.
4826 * expprint.c: Likewise.
4827 * f-exp.y: Likewise.
4828 * f-lang.c: Likewise.
4829 * f-typeprint.c: Likewise.
4830 * f-valprint.c: Likewise.
4831 * fbsd-nat.c: Likewise.
4832 * findcmd.c: Likewise.
4833 * findvar.c: Likewise.
4834 * fork-child.c: Likewise.
4835 * frame.c: Likewise.
4836 * frv-linux-tdep.c: Likewise.
4837 * frv-tdep.c: Likewise.
4838 * gdb.c: Likewise.
4839 * gdb_bfd.c: Likewise.
4840 * gdbarch.c: Likewise.
4841 * gdbarch.sh: Likewise.
4842 * gdbtypes.c: Likewise.
4843 * gnu-nat.c: Likewise.
4844 * gnu-v2-abi.c: Likewise.
4845 * gnu-v3-abi.c: Likewise.
4846 * go-exp.y: Likewise.
4847 * go-lang.c: Likewise.
4848 * go32-nat.c: Likewise.
4849 * guile/guile.c: Likewise.
4850 * guile/scm-auto-load.c: Likewise.
4851 * hppa-hpux-tdep.c: Likewise.
4852 * hppa-linux-nat.c: Likewise.
4853 * hppanbsd-tdep.c: Likewise.
4854 * hppaobsd-tdep.c: Likewise.
4855 * i386-cygwin-tdep.c: Likewise.
4856 * i386-dicos-tdep.c: Likewise.
4857 * i386-linux-tdep.c: Likewise.
4858 * i386-nto-tdep.c: Likewise.
4859 * i386-sol2-tdep.c: Likewise.
4860 * i386-tdep.c: Likewise.
4861 * i386bsd-tdep.c: Likewise.
4862 * i386gnu-nat.c: Likewise.
4863 * i386nbsd-tdep.c: Likewise.
4864 * i386obsd-tdep.c: Likewise.
4865 * i387-tdep.c: Likewise.
4866 * ia64-libunwind-tdep.c: Likewise.
4867 * ia64-linux-nat.c: Likewise.
4868 * inf-child.c: Likewise.
4869 * inf-ptrace.c: Likewise.
4870 * inf-ttrace.c: Likewise.
4871 * infcall.c: Likewise.
4872 * infcmd.c: Likewise.
4873 * inflow.c: Likewise.
4874 * infrun.c: Likewise.
4875 * interps.c: Likewise.
4876 * iq2000-tdep.c: Likewise.
4877 * irix5-nat.c: Likewise.
4878 * jv-exp.y: Likewise.
4879 * jv-lang.c: Likewise.
4880 * jv-typeprint.c: Likewise.
4881 * jv-valprint.c: Likewise.
4882 * language.c: Likewise.
4883 * linux-fork.c: Likewise.
4884 * linux-nat.c: Likewise.
4885 * lm32-tdep.c: Likewise.
4886 * m2-exp.y: Likewise.
4887 * m2-typeprint.c: Likewise.
4888 * m32c-tdep.c: Likewise.
4889 * m32r-linux-nat.c: Likewise.
4890 * m32r-linux-tdep.c: Likewise.
4891 * m32r-rom.c: Likewise.
4892 * m32r-tdep.c: Likewise.
4893 * m68hc11-tdep.c: Likewise.
4894 * m68k-tdep.c: Likewise.
4895 * m68kbsd-tdep.c: Likewise.
4896 * m68klinux-nat.c: Likewise.
4897 * m68klinux-tdep.c: Likewise.
4898 * m88k-tdep.c: Likewise.
4899 * machoread.c: Likewise.
4900 * macrocmd.c: Likewise.
4901 * main.c: Likewise.
4902 * mdebugread.c: Likewise.
4903 * mem-break.c: Likewise.
4904 * memattr.c: Likewise.
4905 * memory-map.c: Likewise.
4906 * mep-tdep.c: Likewise.
4907 * mi/mi-cmd-break.c: Likewise.
4908 * mi/mi-cmd-disas.c: Likewise.
4909 * mi/mi-cmd-env.c: Likewise.
4910 * mi/mi-cmd-stack.c: Likewise.
4911 * mi/mi-cmd-var.c: Likewise.
4912 * mi/mi-cmds.c: Likewise.
4913 * mi/mi-console.c: Likewise.
4914 * mi/mi-getopt.c: Likewise.
4915 * mi/mi-interp.c: Likewise.
4916 * mi/mi-main.c: Likewise.
4917 * mi/mi-parse.c: Likewise.
4918 * microblaze-rom.c: Likewise.
4919 * microblaze-tdep.c: Likewise.
4920 * mingw-hdep.c: Likewise.
4921 * minidebug.c: Likewise.
4922 * minsyms.c: Likewise.
4923 * mips-irix-tdep.c: Likewise.
4924 * mips-linux-tdep.c: Likewise.
4925 * mips-tdep.c: Likewise.
4926 * mips64obsd-tdep.c: Likewise.
4927 * mipsnbsd-tdep.c: Likewise.
4928 * mipsread.c: Likewise.
4929 * mn10300-linux-tdep.c: Likewise.
4930 * mn10300-tdep.c: Likewise.
4931 * monitor.c: Likewise.
4932 * moxie-tdep.c: Likewise.
4933 * mt-tdep.c: Likewise.
4934 * nat/linux-btrace.c: Likewise.
4935 * nat/linux-osdata.c: Likewise.
4936 * nat/linux-procfs.c: Likewise.
4937 * nat/linux-ptrace.c: Likewise.
4938 * nat/linux-waitpid.c: Likewise.
4939 * nbsd-tdep.c: Likewise.
4940 * nios2-linux-tdep.c: Likewise.
4941 * nto-procfs.c: Likewise.
4942 * nto-tdep.c: Likewise.
4943 * objc-lang.c: Likewise.
4944 * objfiles.c: Likewise.
4945 * opencl-lang.c: Likewise.
4946 * osabi.c: Likewise.
4947 * osdata.c: Likewise.
4948 * p-exp.y: Likewise.
4949 * p-lang.c: Likewise.
4950 * p-typeprint.c: Likewise.
4951 * parse.c: Likewise.
4952 * posix-hdep.c: Likewise.
4953 * ppc-linux-nat.c: Likewise.
4954 * ppc-sysv-tdep.c: Likewise.
4955 * ppcfbsd-tdep.c: Likewise.
4956 * ppcnbsd-tdep.c: Likewise.
4957 * ppcobsd-tdep.c: Likewise.
4958 * printcmd.c: Likewise.
4959 * procfs.c: Likewise.
4960 * prologue-value.c: Likewise.
4961 * python/py-auto-load.c: Likewise.
4962 * python/py-gdb-readline.c: Likewise.
4963 * ravenscar-thread.c: Likewise.
4964 * regcache.c: Likewise.
4965 * registry.c: Likewise.
4966 * remote-fileio.c: Likewise.
4967 * remote-m32r-sdi.c: Likewise.
4968 * remote-mips.c: Likewise.
4969 * remote-notif.c: Likewise.
4970 * remote-sim.c: Likewise.
4971 * remote.c: Likewise.
4972 * reverse.c: Likewise.
4973 * rs6000-aix-tdep.c: Likewise.
4974 * ser-base.c: Likewise.
4975 * ser-go32.c: Likewise.
4976 * ser-mingw.c: Likewise.
4977 * ser-pipe.c: Likewise.
4978 * ser-tcp.c: Likewise.
4979 * ser-unix.c: Likewise.
4980 * serial.c: Likewise.
4981 * sh-tdep.c: Likewise.
4982 * sh64-tdep.c: Likewise.
4983 * shnbsd-tdep.c: Likewise.
4984 * skip.c: Likewise.
4985 * sol-thread.c: Likewise.
4986 * solib-dsbt.c: Likewise.
4987 * solib-frv.c: Likewise.
4988 * solib-osf.c: Likewise.
4989 * solib-som.c: Likewise.
4990 * solib-spu.c: Likewise.
4991 * solib-target.c: Likewise.
4992 * solib.c: Likewise.
4993 * somread.c: Likewise.
4994 * source.c: Likewise.
4995 * sparc-nat.c: Likewise.
4996 * sparc-sol2-tdep.c: Likewise.
4997 * sparc-tdep.c: Likewise.
4998 * sparc64-tdep.c: Likewise.
4999 * sparc64fbsd-tdep.c: Likewise.
5000 * sparc64nbsd-tdep.c: Likewise.
5001 * sparcnbsd-tdep.c: Likewise.
5002 * spu-linux-nat.c: Likewise.
5003 * spu-multiarch.c: Likewise.
5004 * spu-tdep.c: Likewise.
5005 * stabsread.c: Likewise.
5006 * stack.c: Likewise.
5007 * std-regs.c: Likewise.
5008 * symfile.c: Likewise.
5009 * symmisc.c: Likewise.
5010 * symtab.c: Likewise.
5011 * target.c: Likewise.
5012 * thread.c: Likewise.
5013 * tilegx-linux-nat.c: Likewise.
5014 * tilegx-tdep.c: Likewise.
5015 * top.c: Likewise.
5016 * tracepoint.c: Likewise.
5017 * tui/tui-command.c: Likewise.
5018 * tui/tui-data.c: Likewise.
5019 * tui/tui-disasm.c: Likewise.
5020 * tui/tui-file.c: Likewise.
5021 * tui/tui-layout.c: Likewise.
5022 * tui/tui-out.c: Likewise.
5023 * tui/tui-regs.c: Likewise.
5024 * tui/tui-source.c: Likewise.
5025 * tui/tui-stack.c: Likewise.
5026 * tui/tui-win.c: Likewise.
5027 * tui/tui-windata.c: Likewise.
5028 * tui/tui-winsource.c: Likewise.
5029 * typeprint.c: Likewise.
5030 * ui-file.c: Likewise.
5031 * ui-out.c: Likewise.
5032 * user-regs.c: Likewise.
5033 * utils.c: Likewise.
5034 * v850-tdep.c: Likewise.
5035 * valarith.c: Likewise.
5036 * valops.c: Likewise.
5037 * valprint.c: Likewise.
5038 * value.c: Likewise.
5039 * varobj.c: Likewise.
5040 * vax-tdep.c: Likewise.
5041 * vaxnbsd-tdep.c: Likewise.
5042 * vaxobsd-tdep.c: Likewise.
5043 * windows-nat.c: Likewise.
5044 * xcoffread.c: Likewise.
5045 * xml-support.c: Likewise.
5046 * xstormy16-tdep.c: Likewise.
5047 * xtensa-linux-nat.c: Likewise.
5048
5049 2014-08-07 Gary Benson <gbenson@redhat.com>
5050
5051 * common/common-defs.h: Include gdb_assert.h.
5052 * aarch64-tdep.c: Do not include gdb_assert.h.
5053 * addrmap.c: Likewise.
5054 * aix-thread.c: Likewise.
5055 * alpha-linux-tdep.c: Likewise.
5056 * alpha-mdebug-tdep.c: Likewise.
5057 * alphanbsd-tdep.c: Likewise.
5058 * amd64-nat.c: Likewise.
5059 * amd64-tdep.c: Likewise.
5060 * amd64bsd-nat.c: Likewise.
5061 * amd64fbsd-nat.c: Likewise.
5062 * amd64fbsd-tdep.c: Likewise.
5063 * amd64nbsd-nat.c: Likewise.
5064 * amd64nbsd-tdep.c: Likewise.
5065 * amd64obsd-nat.c: Likewise.
5066 * amd64obsd-tdep.c: Likewise.
5067 * arch-utils.c: Likewise.
5068 * arm-tdep.c: Likewise.
5069 * armbsd-tdep.c: Likewise.
5070 * auxv.c: Likewise.
5071 * bcache.c: Likewise.
5072 * bfin-tdep.c: Likewise.
5073 * blockframe.c: Likewise.
5074 * breakpoint.c: Likewise.
5075 * bsd-kvm.c: Likewise.
5076 * bsd-uthread.c: Likewise.
5077 * buildsym.c: Likewise.
5078 * c-exp.y: Likewise.
5079 * c-lang.c: Likewise.
5080 * charset.c: Likewise.
5081 * cleanups.c: Likewise.
5082 * cli-out.c: Likewise.
5083 * cli/cli-decode.c: Likewise.
5084 * cli/cli-dump.c: Likewise.
5085 * cli/cli-logging.c: Likewise.
5086 * cli/cli-script.c: Likewise.
5087 * cli/cli-utils.c: Likewise.
5088 * coffread.c: Likewise.
5089 * common/common-utils.c: Likewise.
5090 * common/queue.h: Likewise.
5091 * common/signals.c: Likewise.
5092 * common/vec.h: Likewise.
5093 * complaints.c: Likewise.
5094 * completer.c: Likewise.
5095 * corelow.c: Likewise.
5096 * cp-abi.c: Likewise.
5097 * cp-name-parser.y: Likewise.
5098 * cp-namespace.c: Likewise.
5099 * cp-support.c: Likewise.
5100 * cris-tdep.c: Likewise.
5101 * dbxread.c: Likewise.
5102 * dictionary.c: Likewise.
5103 * doublest.c: Likewise.
5104 * dsrec.c: Likewise.
5105 * dummy-frame.c: Likewise.
5106 * dwarf2-frame-tailcall.c: Likewise.
5107 * dwarf2-frame.c: Likewise.
5108 * dwarf2expr.c: Likewise.
5109 * dwarf2loc.c: Likewise.
5110 * dwarf2read.c: Likewise.
5111 * eval.c: Likewise.
5112 * event-loop.c: Likewise.
5113 * exceptions.c: Likewise.
5114 * expprint.c: Likewise.
5115 * f-valprint.c: Likewise.
5116 * fbsd-nat.c: Likewise.
5117 * findvar.c: Likewise.
5118 * frame-unwind.c: Likewise.
5119 * frame.c: Likewise.
5120 * frv-tdep.c: Likewise.
5121 * gcore.c: Likewise.
5122 * gdb-dlfcn.c: Likewise.
5123 * gdb_bfd.c: Likewise.
5124 * gdbarch.c: Likewise.
5125 * gdbarch.sh: Likewise.
5126 * gdbtypes.c: Likewise.
5127 * gnu-nat.c: Likewise.
5128 * gnu-v3-abi.c: Likewise.
5129 * go-lang.c: Likewise.
5130 * guile/scm-exception.c: Likewise.
5131 * guile/scm-gsmob.c: Likewise.
5132 * guile/scm-lazy-string.c: Likewise.
5133 * guile/scm-math.c: Likewise.
5134 * guile/scm-pretty-print.c: Likewise.
5135 * guile/scm-safe-call.c: Likewise.
5136 * guile/scm-utils.c: Likewise.
5137 * guile/scm-value.c: Likewise.
5138 * h8300-tdep.c: Likewise.
5139 * hppa-hpux-nat.c: Likewise.
5140 * hppa-tdep.c: Likewise.
5141 * hppanbsd-tdep.c: Likewise.
5142 * hppaobsd-tdep.c: Likewise.
5143 * i386-darwin-nat.c: Likewise.
5144 * i386-darwin-tdep.c: Likewise.
5145 * i386-nto-tdep.c: Likewise.
5146 * i386-tdep.c: Likewise.
5147 * i386bsd-nat.c: Likewise.
5148 * i386fbsd-tdep.c: Likewise.
5149 * i386gnu-nat.c: Likewise.
5150 * i386nbsd-tdep.c: Likewise.
5151 * i386obsd-tdep.c: Likewise.
5152 * i387-tdep.c: Likewise.
5153 * ia64-libunwind-tdep.c: Likewise.
5154 * ia64-tdep.c: Likewise.
5155 * inf-ptrace.c: Likewise.
5156 * inf-ttrace.c: Likewise.
5157 * infcall.c: Likewise.
5158 * infcmd.c: Likewise.
5159 * infrun.c: Likewise.
5160 * inline-frame.c: Likewise.
5161 * interps.c: Likewise.
5162 * jv-lang.c: Likewise.
5163 * jv-typeprint.c: Likewise.
5164 * linux-fork.c: Likewise.
5165 * linux-nat.c: Likewise.
5166 * linux-thread-db.c: Likewise.
5167 * m32c-tdep.c: Likewise.
5168 * m32r-linux-nat.c: Likewise.
5169 * m32r-tdep.c: Likewise.
5170 * m68k-tdep.c: Likewise.
5171 * m68kbsd-nat.c: Likewise.
5172 * m68kbsd-tdep.c: Likewise.
5173 * m88k-tdep.c: Likewise.
5174 * machoread.c: Likewise.
5175 * macroexp.c: Likewise.
5176 * macrotab.c: Likewise.
5177 * maint.c: Likewise.
5178 * mdebugread.c: Likewise.
5179 * memory-map.c: Likewise.
5180 * mep-tdep.c: Likewise.
5181 * mi/mi-common.c: Likewise.
5182 * microblaze-tdep.c: Likewise.
5183 * mingw-hdep.c: Likewise.
5184 * mips-linux-nat.c: Likewise.
5185 * mips-linux-tdep.c: Likewise.
5186 * mips-tdep.c: Likewise.
5187 * mips64obsd-tdep.c: Likewise.
5188 * mipsnbsd-tdep.c: Likewise.
5189 * mn10300-linux-tdep.c: Likewise.
5190 * mn10300-tdep.c: Likewise.
5191 * moxie-tdep.c: Likewise.
5192 * mt-tdep.c: Likewise.
5193 * nat/linux-btrace.c: Likewise.
5194 * nat/linux-osdata.c: Likewise.
5195 * nat/linux-ptrace.c: Likewise.
5196 * nat/mips-linux-watch.c: Likewise.
5197 * nios2-linux-tdep.c: Likewise.
5198 * nios2-tdep.c: Likewise.
5199 * objc-lang.c: Likewise.
5200 * objfiles.c: Likewise.
5201 * obsd-nat.c: Likewise.
5202 * opencl-lang.c: Likewise.
5203 * osabi.c: Likewise.
5204 * parse.c: Likewise.
5205 * ppc-linux-nat.c: Likewise.
5206 * ppc-sysv-tdep.c: Likewise.
5207 * ppcfbsd-nat.c: Likewise.
5208 * ppcfbsd-tdep.c: Likewise.
5209 * ppcnbsd-nat.c: Likewise.
5210 * ppcnbsd-tdep.c: Likewise.
5211 * ppcobsd-nat.c: Likewise.
5212 * ppcobsd-tdep.c: Likewise.
5213 * printcmd.c: Likewise.
5214 * procfs.c: Likewise.
5215 * prologue-value.c: Likewise.
5216 * psymtab.c: Likewise.
5217 * python/py-lazy-string.c: Likewise.
5218 * python/py-value.c: Likewise.
5219 * regcache.c: Likewise.
5220 * reggroups.c: Likewise.
5221 * registry.c: Likewise.
5222 * remote-sim.c: Likewise.
5223 * remote.c: Likewise.
5224 * rs6000-aix-tdep.c: Likewise.
5225 * rs6000-tdep.c: Likewise.
5226 * s390-linux-tdep.c: Likewise.
5227 * score-tdep.c: Likewise.
5228 * ser-base.c: Likewise.
5229 * ser-mingw.c: Likewise.
5230 * sh-tdep.c: Likewise.
5231 * sh64-tdep.c: Likewise.
5232 * solib-darwin.c: Likewise.
5233 * solib-spu.c: Likewise.
5234 * solib-svr4.c: Likewise.
5235 * source.c: Likewise.
5236 * sparc-nat.c: Likewise.
5237 * sparc-sol2-tdep.c: Likewise.
5238 * sparc-tdep.c: Likewise.
5239 * sparc64-sol2-tdep.c: Likewise.
5240 * sparc64-tdep.c: Likewise.
5241 * sparc64fbsd-tdep.c: Likewise.
5242 * sparc64nbsd-tdep.c: Likewise.
5243 * sparc64obsd-tdep.c: Likewise.
5244 * sparcnbsd-tdep.c: Likewise.
5245 * sparcobsd-tdep.c: Likewise.
5246 * spu-multiarch.c: Likewise.
5247 * spu-tdep.c: Likewise.
5248 * stabsread.c: Likewise.
5249 * stack.c: Likewise.
5250 * symfile.c: Likewise.
5251 * symtab.c: Likewise.
5252 * target-descriptions.c: Likewise.
5253 * target-memory.c: Likewise.
5254 * target.c: Likewise.
5255 * tic6x-linux-tdep.c: Likewise.
5256 * tic6x-tdep.c: Likewise.
5257 * tilegx-linux-nat.c: Likewise.
5258 * tilegx-tdep.c: Likewise.
5259 * top.c: Likewise.
5260 * tramp-frame.c: Likewise.
5261 * tui/tui-out.c: Likewise.
5262 * tui/tui-winsource.c: Likewise.
5263 * ui-out.c: Likewise.
5264 * user-regs.c: Likewise.
5265 * utils.c: Likewise.
5266 * v850-tdep.c: Likewise.
5267 * valops.c: Likewise.
5268 * value.c: Likewise.
5269 * varobj.c: Likewise.
5270 * vax-nat.c: Likewise.
5271 * xml-syscall.c: Likewise.
5272 * xml-tdesc.c: Likewise.
5273 * xstormy16-tdep.c: Likewise.
5274 * xtensa-linux-nat.c: Likewise.
5275 * xtensa-tdep.c: Likewise.
5276
5277 2014-08-07 Gary Benson <gbenson@redhat.com>
5278
5279 * common/common-defs.h: Include common-utils.h.
5280 * defs.h: Do not include common-utils.h.
5281 * common/gdb_assert.h: Likewise.
5282 * darwin-nat.h: Likewise.
5283 * nat/linux-btrace.c: Likewise.
5284 * target/waitstatus.h: Likewise.
5285
5286 2014-08-07 Gary Benson <gbenson@redhat.com>
5287
5288 * common/common-defs.h: Include ptid.h.
5289 * defs.h: Do not include ptid.h.
5290 * inferior.h: Likewise.
5291 * infrun.h: Likewise.
5292 * nat/linux-btrace.h: Likewise.
5293 * nat/linux-osdata.h: Likewise.
5294 * target/waitstatus.h: Likewise.
5295
5296 2014-08-07 Gary Benson <gbenson@redhat.com>
5297
5298 * common/common-defs.h: Include gdb_locale.h.
5299 * defs.h: Do not include gdb_locale.h.
5300
5301 2014-08-07 Gary Benson <gbenson@redhat.com>
5302
5303 * common/common-defs.h: Include gdb/signals.h.
5304 * defs.h: Do not include gdb/signals.h.
5305
5306 2014-08-07 Gary Benson <gbenson@redhat.com>
5307
5308 * common/common-defs.h: Include pathmax.h.
5309 * defs.h: Do not include pathmax.h.
5310
5311 2014-08-07 Gary Benson <gbenson@redhat.com>
5312
5313 * common/common-defs.h: Include libiberty.h.
5314 * defs.h: Do not include libiberty.h.
5315 * common/queue.h: Likewise.
5316 * cp-name-parser.y: Likewise.
5317 * mi/mi-cmd-catch.c: Likewise.
5318 * python/python.c: Likewise.
5319
5320 2014-08-07 Gary Benson <gbenson@redhat.com>
5321
5322 * common/common-defs.h: Include ansidecl.h.
5323 * defs.h: Do not include ansidecl.h.
5324 * common/buffer.h: Likewise.
5325 * common/common-utils.h: Likewise.
5326
5327 2014-08-07 Gary Benson <gbenson@redhat.com>
5328
5329 * common/common-defs.h: Include stddef.h.
5330 * defs.h: Do not include stddef.h.
5331 * common/common-utils.h: Likewise.
5332 * amd64fbsd-nat.c: Likewise.
5333 * bcache.c: Likewise.
5334 * charset.c: Likewise.
5335 * common/buffer.h: Likewise.
5336 * common/vec.h: Likewise.
5337 * i386bsd-nat.c: Likewise.
5338 * nat/linux-btrace.h: Likewise.
5339 * ppcfbsd-nat.c: Likewise.
5340 * ppcnbsd-tdep.h: Likewise.
5341 * ppcobsd-nat.c: Likewise.
5342 * ppcobsd-tdep.h: Likewise.
5343 * python/py-gdb-readline.c: Likewise.
5344
5345 2014-08-07 Gary Benson <gbenson@redhat.com>
5346
5347 * common/common-defs.h: Include stdarg.h.
5348 * defs.h: Do not include stdarg.h.
5349 * ada-lang.c: Likewise.
5350 * common/common-utils.h: Likewise.
5351 * guile/scm-string.c: Likewise.
5352 * guile/scm-utils.c: Likewise.
5353 * m32c-tdep.c: Likewise.
5354
5355 2014-08-07 Gary Benson <gbenson@redhat.com>
5356
5357 * common/common-defs.h: Include stdlib.h.
5358 * defs.h: Do not include stdlib.h.
5359 * addrmap.c: Likewise.
5360 * bcache.c: Likewise.
5361 * common/buffer.c: Likewise.
5362 * common/common-utils.c: Likewise.
5363 * cp-name-parser.y: Likewise.
5364 * go32-nat.c: Likewise.
5365 * mn10300-linux-tdep.c: Likewise.
5366 * nat/linux-osdata.c: Likewise.
5367 * tui/tui.c: Likewise.
5368 * windows-nat.c: Likewise.
5369
5370 2014-08-07 Gary Benson <gbenson@redhat.com>
5371
5372 * common/common-defs.h: Include stdio.h.
5373 * defs.h: Do not include stdio.h.
5374 * ada-lang.c: Likewise.
5375 * common/buffer.c: Likewise.
5376 * common/common-utils.c: Likewise.
5377 * cp-name-parser.y: Likewise.
5378 * gnu-nat.c: Likewise.
5379 * go32-nat.c: Likewise.
5380 * i386gnu-nat.c: Likewise.
5381 * proc-api.c: Likewise.
5382 * proc-events.c: Likewise.
5383 * proc-flags.c: Likewise.
5384 * proc-why.c: Likewise.
5385 * python/python-internal.h: Likewise.
5386 * target-memory.c: Likewise.
5387 * tui/tui-io.c: Likewise.
5388 * tui/tui.c: Likewise.
5389
5390 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5391
5392 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5393 (scan_dyntag_auxv): Same.
5394
5395 2014-08-06 Yao Qi <yao@codesourcery.com>
5396
5397 * amd64-linux-nat.c: Remove duplicated include
5398 "x86-linux-nat.h".
5399 * i386-linux-nat.c: Likewise.
5400
5401 2014-08-06 Yao Qi <yao@codesourcery.com>
5402
5403 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5404 operand" with "Special opcode" in comments.
5405
5406 2014-08-05 Gary Benson <gbenson@redhat.com>
5407
5408 * interps.c (initialize_interps): Remove prototype.
5409 (interpreter_initialized): Remove static global.
5410 (interp_add): Do not call initialize_interps.
5411 (initialize_interps): Remove function.
5412
5413 2014-08-05 Gary Benson <gbenson@redhat.com>
5414
5415 * utils.c (vwarning): Remove spurious va_end.
5416
5417 2014-08-05 Alan Modra <amodra@gmail.com>
5418
5419 * charset.c (convert_between_encodings): Cast result of obstack_base.
5420 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5421 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5422 (read_unwind_info): Use size_t for some locals.
5423 * jit.c (finalize_symtab): Likewise.
5424 * utils.c (hashtab_obstack_allocate): Likewise.
5425 * symmisc.c (print_objfile_statistics): Update format strings.
5426
5427 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5428
5429 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5430 (Changes in GDB 7.8): ... here.
5431
5432 2014-08-04 Tom Tromey <tromey@redhat.com>
5433
5434 * target.c (set_targetdebug): New function.
5435 (initialize_targets): Pass set_targetdebug when creating "set
5436 debug target".
5437
5438 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5439
5440 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5441 if detecting a variable-sized field that is not the last field.
5442 Fix struct type length computation.
5443
5444 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5445
5446 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5447 Add debug trace.
5448
5449 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5450
5451 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5452 Remove "+ 8" offset in computation of CHAIN_VMA.
5453
5454 2014-07-31 Doug Evans <dje@google.com>
5455
5456 * inflow.c (child_terminal_inferior): Add comment.
5457 (child_terminal_ours_for_output): Add comment.
5458 (child_terminal_ours): Add comment.
5459 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5460 (linux_nat_terminal_ours): Add comment.
5461
5462 2014-07-31 Gary Benson <gbenson@redhat.com>
5463
5464 * common/btrace-common.h: Do not include defs.h or server.h.
5465 * nat/mips-linux-watch.h: Likewise.
5466 * gdb-dlfcn.h: Do not include defs.h.
5467 * tracefile.h: Likewise.
5468
5469 2014-07-30 Roland McGrath <mcgrathr@google.com>
5470
5471 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5472
5473 2014-07-30 Tom Tromey <tromey@redhat.com>
5474
5475 * bsd-kvm.c (bsd_kvm_open): Constify.
5476 * corelow.c (core_open): Constify.
5477 * ctf.c (ctf_open): Constify.
5478 * dbug-rom.c (dbug_open): Constify.
5479 * exec.c (exec_open): Constify.
5480 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5481 * microblaze-rom.c (picobug_open): Constify.
5482 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5483 Constify.
5484 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5485 * record-btrace.c (record_btrace_open): Constify.
5486 * record-full.c (record_full_core_open_1, record_full_open_1)
5487 (record_full_open): Constify.
5488 * remote-m32r-sdi.c (m32r_open): Constify.
5489 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5490 (rockhopper_open, lsi_open): Constify.
5491 * remote-sim.c (gdbsim_open): Constify.
5492 * remote.c (remote_open, extended_remote_open, remote_open_1):
5493 Constify.
5494 * target.h (struct target_ops) <to_open>: Make "arg" const.
5495 * tracefile-tfile.c (tfile_open): Constify.
5496
5497 2014-07-30 Tom Tromey <tromey@redhat.com>
5498
5499 * breakpoint.c (map_breakpoint_numbers): Update.
5500 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5501 (get_number_const): New function.
5502 (get_number): Rewrite using get_number_const.
5503 (init_number_or_range): Make "string" const.
5504 (number_is_in_list): Make "list" const.
5505 * cli/cli-utils.h (get_number_const): Declare.
5506 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5507 (init_number_or_range, number_is_in_list): Update.
5508 * printcmd.c (map_display_numbers): Update.
5509 * value.c (value_from_history_ref): Constify.
5510 * value.h (value_from_history_ref): Update.
5511
5512 2014-07-30 Tom Tromey <tromey@redhat.com>
5513
5514 * corefile.c (hook_type, call_extra_exec_file_hooks)
5515 (specify_exec_file_hook): Constify.
5516 * exec.c (exec_file_attach): Make "filename" const.
5517 * gdbcore.h (deprecated_exec_file_display_hook)
5518 (specify_exec_file_hook, exec_file_attach): Constify.
5519 * main.c (captured_main): Use catch_command_errors_const.
5520
5521 2014-07-30 Tom Tromey <tromey@redhat.com>
5522
5523 * target.c (open_target): New function.
5524 (add_target_with_completer, add_deprecated_target_alias): Use
5525 set_cmd_sfunc, set_cmd_context.
5526 (debug_to_open): Remove.
5527 (setup_target_debug): Update.
5528
5529 2014-07-30 Yao Qi <yao@codesourcery.com>
5530
5531 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5532 comments.
5533 * parse.c (exp_iterate): Update comments.
5534
5535 2014-07-30 Gary Benson <gbenson@redhat.com>
5536
5537 * common/common-defs.h: New file.
5538 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5539 * defs.h: Include common-defs.h.
5540 Do not include config.h or build-gnulib/config.h.
5541
5542 2014-07-30 Gary Benson <gbenson@redhat.com>
5543
5544 * common/common-utils.h: Do not include config.h.
5545 * nat/linux-btrace.h: Likewise.
5546
5547 2014-07-30 Gary Benson <gbenson@redhat.com>
5548
5549 * btrace.c: Include defs.h.
5550 * common/ptid.c: Include defs.h or server.h as appropriate.
5551 * nat/mips-linux-watch.c: Likewise.
5552
5553 2014-07-29 Tom Tromey <tromey@redhat.com>
5554
5555 * target.c (target_is_pushed): Simplify.
5556
5557 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5558
5559 GDB 7.8 released.
5560
5561 2014-07-29 Yao Qi <yao@codesourcery.com>
5562
5563 PR gdb/17206
5564 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5565
5566 2014-07-28 Doug Evans <xdje42@gmail.com>
5567
5568 PR guile/17203
5569 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5570 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5571 parameters.
5572
5573 2014-07-28 Will Newton <will.newton@linaro.org>
5574
5575 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5576 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5577 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5578 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5579 (THUMB2_EABI_SYSCALL): Likewise.
5580 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5581 struct tramp_frame.
5582 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5583 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5584
5585 2014-07-27 Doug Evans <xdje42@gmail.com>
5586
5587 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5588
5589 2014-07-27 Doug Evans <xdje42@gmail.com>
5590
5591 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5592
5593 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5594 Doug Evans <xdje42@gmail.com>
5595
5596 PR guile/17146
5597 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5598 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5599 * configure.ac: Try to use guild to compile an scm file, if it fails
5600 then disable guile support.
5601 * configure: Regenerate.
5602 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5603 GUILE_FILE_LIST.
5604 (GUILE_COMPILED_FILES): New variable.
5605 (GUILE_FILES) Update.
5606 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5607 (stamp-guile): Compile scm files.
5608 * guile/guile.c (boot_guile_support): New function.
5609 (standard_throw_args_p): New function.
5610 (print_standard_throw_error, print_throw_error): New functions.
5611 (handle_boot_error): New function.
5612 (initialize_scheme_side): Rewrite to call boot_guile_support.
5613 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5614 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5615
5616 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5617 Doug Evans <xdje42@gmail.com>
5618
5619 PR guile/17146
5620 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5621 * guile/lib/gdb/support.scm: New file.
5622 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5623 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5624 All uses updated.
5625 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5626 All uses updated.
5627 (%assert-type): Ditto, and renamed to assert-type.
5628 (%exception-print-style): Delete.
5629
5630 2014-07-26 Doug Evans <xdje42@gmail.com>
5631
5632 PR build/17105
5633 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5634 * configure: Regenerate.
5635 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5636 PYTHON_FILES.
5637 (PYTHON_FILES): New variable.
5638 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5639 (GUILE_FILES): New variable.
5640 (stamp-python, install-python, uninstall-python): Handle empty
5641 file list.
5642 (stamp-guile, install-guile, uninstall-guile): Ditto.
5643
5644 2014-07-26 Doug Evans <xdje42@gmail.com>
5645
5646 PR guile/17177
5647 * guile/lib/gdb.scm (pretty-printers): Export.
5648 (set-pretty-printers!): Export.
5649 * guile/lib/gdb/printing.scm (gdb module): Update.
5650 (prepend-pretty-printer!, append-pretty-printer!): Update.
5651 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5652 (pretty_printer_list_var): Delete.
5653 (pretty_printer_list): New static global.
5654 (gdbscm_pretty_printers): New function.
5655 (gdbscm_set_pretty_printers_x): New function.
5656 (ppscm_find_pretty_printer_from_gdb): Update.
5657 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5658 (gdbscm_initialize_pretty_printers): Update.
5659
5660 2014-07-26 Doug Evans <xdje42@gmail.com>
5661
5662 PR 17185
5663 * configure.ac: Add check for header gc/gc.h.
5664 Add check for function setenv.
5665 * configure: Regenerate.
5666 * config.in: Regenerate.
5667 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5668
5669 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5670
5671 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5672 variation in gdbarch matching.
5673
5674 2014-07-25 Tom Tromey <tromey@redhat.com>
5675
5676 * exec.c (using_exec_ops): Remove.
5677 (exec_close_1): Update. Remove extraneous block, reindent.
5678 (add_target_sections): Use target_is_pushed.
5679
5680 2014-07-25 Pedro Alves <palves@redhat.com>
5681
5682 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5683 * monitor.c (monitor_create_inferior): Likewise.
5684 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5685 * remote-sim.c (gdbsim_create_inferior): Likewise.
5686 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5687 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5688 * windows-nat.c (do_initial_windows_stuff): Likewise.
5689
5690 2014-07-25 Pedro Alves <palves@redhat.com>
5691
5692 * NEWS: Mention signal passing and "signal" command changes.
5693 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5694 comment.
5695 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5696 call.
5697 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5698 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5699 (jump_command): Adjust clear_proceed_status call.
5700 (signal_command): Warn if other thread that are resumed have
5701 signals that will be delivered. Adjust clear_proceed_status call.
5702 (until_next_command, finish_command)
5703 (proceed_after_attach_callback, attach_command_post_wait)
5704 (attach_command): Adjust clear_proceed_status call.
5705 * infrun.c (proceed_after_vfork_done): Likewise.
5706 (proceed_after_attach_callback): Adjust comment.
5707 (clear_proceed_status_thread): Clear stop_signal if not in pass
5708 state.
5709 (clear_proceed_status_callback): Delete.
5710 (clear_proceed_status): New 'step' parameter. Only clear the
5711 proceed status of threads the command being prepared is about to
5712 resume.
5713 (proceed): If passed in an explicit signal, override stop_signal
5714 with it. Don't pass the last stop signal to the thread we're
5715 resuming.
5716 (init_wait_for_inferior): Adjust clear_proceed_status call.
5717 (switch_back_to_stepped_thread): Clear the signal if it should not
5718 be passed.
5719 * infrun.h (clear_proceed_status): New 'step' parameter.
5720 (user_visible_resume_ptid): Add comment.
5721 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5722 signal is in pass state.
5723 * remote.c (append_pending_thread_resumptions): Likewise.
5724 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5725
5726 2014-07-25 Tom Tromey <tromey@redhat.com>
5727
5728 * target.h (target_stopped_data_address)
5729 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5730 parentheses.
5731
5732 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5733
5734 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5735 comments.
5736 (avr_pointer_to_address): Likewise.
5737
5738 2014-07-24 Tom Tromey <tromey@redhat.com>
5739
5740 * monitor.c (compile_pattern): Update.
5741 * target.h (struct target_ops) <to_shortname, to_longname,
5742 to_doc>: Now const.
5743
5744 2014-07-24 Tom Tromey <tromey@redhat.com>
5745
5746 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5747 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5748 (add_info_alias, add_com): Make "doc" const.
5749 (print_doc_line): Make "str" const.
5750 (delete_cmd): Update.
5751 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5752 (print_doc_line): Update.
5753 * cli/cli-script.c (document_command): Update.
5754 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5755 (add_com, add_info, add_info_alias): Update.
5756 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5757 * python/py-cmd.c (cmdpy_destroyer): Update.
5758
5759 2014-07-24 Tom Tromey <tromey@redhat.com>
5760
5761 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5762 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5763 (help_cmd_list): Constify.
5764 (lookup_cmd): Update.
5765 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5766 const.
5767 (help_cmd_list, apropos_cmd): Update.
5768 * cli/cli-script.c (show_user): Update.
5769 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5770 * cli/cli-setshow.h (cmd_show_list): Update.
5771 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5772 (cmd_show_list): Update.
5773 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5774 * python/py-cmd.c (cmdpy_destroyer): Update.
5775
5776 2014-07-24 Tom Tromey <tromey@redhat.com>
5777
5778 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5779 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5780 const.
5781 * command.h (deprecate_cmd): Update.
5782 * maint.c (maintenance_do_deprecate): Add casts.
5783
5784 2014-07-24 Tom Tromey <tromey@redhat.com>
5785
5786 * cli/cli-decode.c (help_cmd): Make parameter "const".
5787 * cli/cli-decode.h (help_cmd): Update.
5788
5789 2014-07-24 Tom Tromey <tromey@redhat.com>
5790
5791 * stack.c (up_silently_base, down_silently_base): Make argument
5792 const.
5793
5794 2014-07-24 Tom Tromey <tromey@redhat.com>
5795
5796 * solib.c (solib_add): Make "pattern" const.
5797 * solib.h (solib_add): Update.
5798
5799 2014-07-24 Tom Tromey <tromey@redhat.com>
5800
5801 * remote.c (remote_serial_open, print_packet, putpkt)
5802 (putpkt_binary): Constify.
5803 * remote.h (putpkt): Update.
5804
5805 2014-07-24 Tom Tromey <tromey@redhat.com>
5806
5807 * monitor.c (monitor_open): Make "args" const.
5808 * monitor.h (monitor_open): Update.
5809
5810 2014-07-24 Tom Tromey <tromey@redhat.com>
5811
5812 * maint.c (match_bfd_flags): Make "string" const.
5813 (print_bfd_section_info): Remove casts.
5814 (print_objfile_section_info): Make "string" const.
5815
5816 2014-07-24 Tom Tromey <tromey@redhat.com>
5817
5818 * inf-child.c (inf_child_open_target): Make "arg" const.
5819 * inf-child.h (inf_child_open_target): Update.
5820
5821 2014-07-24 Tom Tromey <tromey@redhat.com>
5822
5823 * environ.c (unset_in_environ): Make "var" const.
5824 * environ.h (unset_in_environ): Update.
5825
5826 2014-07-24 Tom Tromey <tromey@redhat.com>
5827
5828 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5829 Make "cmd" const.
5830 (scan_filename_with_cleanup): Likewise.
5831 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5832 Make arguments const.
5833 (restore_command): Update.
5834
5835 2014-07-24 Pedro Alves <palves@redhat.com>
5836
5837 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5838
5839 2014-07-24 Tom Tromey <tromey@redhat.com>
5840 Gary Benson <gbenson@redhat.com>
5841
5842 * nat/linux-ptrace.c (additional_flags): New global.
5843 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5844 additional_flags; don't check GDBSERVER.
5845 (linux_ptrace_set_additional_flags): New function.
5846 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5847 Declare.
5848 * linux-nat.c (_initialize_linux_nat): Call
5849 linux_ptrace_set_additional_flags.
5850
5851 2014-07-24 Tom Tromey <tromey@redhat.com>
5852
5853 * make-target-delegates (munge_type, write_debugmethod): New
5854 functions.
5855 (debug_names): New global.
5856 ($TARGET_DEBUG_PRINTER): New global.
5857 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5858 name.
5859 Write debug methods. Generate init_debug_target.
5860 * target-debug.h: New file.
5861 * target-delegates.c: Rebuild.
5862 * target.c: Include target-debug.h.
5863 (debug_target): Hoist definition.
5864 (target_kill, target_get_section_table, target_memory_map)
5865 (target_flash_erase, target_flash_done, target_detach)
5866 (target_disconnect, target_wait, target_resume)
5867 (target_pass_signals, target_program_signals, target_follow_fork)
5868 (target_mourn_inferior, target_search_memory)
5869 (target_thread_address_space, target_close)
5870 (target_find_new_threads, target_core_of_thread)
5871 (target_verify_memory, target_insert_mask_watchpoint)
5872 (target_remove_mask_watchpoint): Remove targetdebug code.
5873 (debug_to_post_attach, debug_to_prepare_to_store)
5874 (debug_to_files_info, debug_to_insert_breakpoint)
5875 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5876 (debug_to_region_ok_for_hw_watchpoint)
5877 (debug_to_can_accel_watchpoint_condition)
5878 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5879 (debug_to_watchpoint_addr_within_range)
5880 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5881 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5882 (debug_to_terminal_init, debug_to_terminal_inferior)
5883 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5884 (debug_to_terminal_save_ours, debug_to_terminal_info)
5885 (debug_to_load, debug_to_post_startup_inferior)
5886 (debug_to_insert_fork_catchpoint)
5887 (debug_to_remove_fork_catchpoint)
5888 (debug_to_insert_vfork_catchpoint)
5889 (debug_to_remove_vfork_catchpoint)
5890 (debug_to_insert_exec_catchpoint)
5891 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5892 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5893 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5894 (setup_target_debug): Call init_debug_target.
5895 * target.h (TARGET_DEBUG_PRINTER): New macro.
5896 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5897 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5898
5899 2014-07-24 Gary Benson <gbenson@redhat.com>
5900
5901 * exceptions.h (throw_vfatal): Renamed to...
5902 (throw_vquit): New declaration.
5903 (throw_quit): Likewise.
5904 * exceptions.c (throw_vfatal): Renamed to...
5905 (throw_vquit): New function.
5906 (throw_quit): Likewise.
5907 (throw_error): Call throw_verror rather than throw_it.
5908 * utils.h (vfatal): Removed.
5909 (fatal): Likewise.
5910 * utils.c (vfatal): Removed.
5911 (fatal): Likewise.
5912 (internal_verror): Replaced call to fatal with call to throw_quit.
5913 (quit): Replaced calls to fatal with calls to throw_quit.
5914
5915 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5916
5917 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5918 target_read_code.
5919
5920 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5921
5922 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5923 less than zero in conditional expression.
5924
5925 2014-07-23 Tom Tromey <tromey@redhat.com>
5926
5927 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5928 ($INTRO_PART): Don't match whitespace.
5929 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5930 argument matching.
5931 ($METHOD): Add $METHOD_TRAILER.
5932 (trim): Rewrite.
5933 (scan_target_h): New sub.
5934 Change main loop not to collect state.
5935 * target-delegates.c: Rebuild.
5936
5937 2014-07-23 Gary Benson <gbenson@redhat.com>
5938
5939 * cp-support.c (gdb_demangle): Fix build on systems without
5940 sigaltstack.
5941
5942 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5943
5944 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5945 for reference entry value target data value.
5946
5947 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5948
5949 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5950 value_available_contents_eq.
5951
5952 2014-07-22 Pedro Alves <palves@redhat.com>
5953
5954 * value.c (allocate_optimized_out_value): Don't mark value as
5955 non-lazy.
5956
5957 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5958
5959 * MAINTAINERS (Write After Approval): Update my email address.
5960
5961 2014-07-20 Doug Evans <dje@google.com>
5962
5963 PR server/17147
5964 * remote.c (putpkt_binary): Add text to error message.
5965
5966 2014-07-20 Yao Qi <yao@codesourcery.com>
5967
5968 * eval.c: Remove "Chill" from comments.
5969 * gdbtypes.h: Likewise.
5970 * symtab.h: Likewise.
5971
5972 2014-07-20 Yao Qi <yao@codesourcery.com>
5973
5974 * std-operator.def: Update comments to TERNOP_SLICE.
5975
5976 2014-07-20 Yao Qi <yao@codesourcery.com>
5977
5978 * std-operator.def: Remove BINOP_RANGE.
5979 * breakpoint.c (watchpoint_exp_is_const): Update.
5980 * expprint.c (dump_subexp_body_standard): Likewise.
5981 * eval.c (init_array_element): Remove dead code.
5982 (evaluate_subexp_standard): Likewise.
5983
5984 2014-07-20 Yao Qi <yao@codesourcery.com>
5985
5986 * std-operator.def: Remove BINOP_IN.
5987 * breakpoint.c (watchpoint_exp_is_const): Update.
5988 * eval.c (evaluate_subexp_standard): Likewise.
5989 * expprint.c (dump_subexp_body_standard): Likewise.
5990
5991 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5992
5993 * microblaze-tdep.c (microblaze_register_names): Add
5994 the rshr and rslr register names.
5995 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5996 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5997 Use of tdesc_numbered_register. Use of
5998 microblaze_register_g_packet_guesses. Use of
5999 tdesc_use_registers. Use of set_gdbarch_register_type.
6000 (microblaze_register_g_packet_guesses): New.
6001 * microblaze-tdep.h (microblaze_reg_num): Add
6002 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6003 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6004 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6005 * features/microblaze-core.xml: New file.
6006 * features/microblaze-stack-protect.xml: New file.
6007 * features/microblaze-with-stack-protect.c: New file.
6008 * features/microblaze-with-stack-protect.xml: New file.
6009 * features/microblaze.xml: New file.
6010 * features/microblaze.c: New file.
6011 * features/Makefile (microblaze-with-stack-protect): Add
6012 microblaze-with-stack-protect microblaze and microblaze-expedite.
6013 * regformats/microblaze-with-stack-protect.dat: New file.
6014 * regformats/microblaze.dat: New file.
6015 * doc/gdb.texinfo (MicroBlaze Features): Added.
6016
6017 2014-07-18 Tom Tromey <tromey@redhat.com>
6018
6019 * exec.c (exec_ops): Now static.
6020 * exec.h (exec_ops): Don't declare.
6021
6022 2014-07-18 Tom Tromey <tromey@redhat.com>
6023
6024 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6025 to find_target_beneath.
6026 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6027 find_target_beneath.
6028 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6029
6030 2014-07-18 Tom Tromey <tromey@redhat.com>
6031
6032 PR gdb/17130:
6033 * utils.c (quit): Use target_supports_terminal_ours.
6034 * target.h (target_supports_terminal_ours): Declare.
6035 * target.c (target_supports_delete_record): Don't check
6036 to_delete_record against NULL.
6037 (target_supports_terminal_ours): New function.
6038
6039 2014-07-18 Tom Tromey <tromey@redhat.com>
6040
6041 PR gdb/17130:
6042 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6043 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6044 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6045 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6046 * windows-nat.c (windows_xfer_partial): Always delegate.
6047 * record-btrace.c (record_btrace_xfer_partial): Simplify
6048 delegation.
6049 (record_btrace_fetch_registers, record_btrace_store_registers)
6050 (record_btrace_prepare_to_store, record_btrace_resume)
6051 (record_btrace_wait, record_btrace_find_new_threads)
6052 (record_btrace_thread_alive): Likewise.
6053 * procfs.c (procfs_xfer_partial): Always delegate.
6054 * corelow.c (core_xfer_partial): Always delegate.
6055 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6056
6057 2014-07-18 Tom Tromey <tromey@redhat.com>
6058
6059 * exec.c (exec_make_note_section): Move earlier.
6060
6061 2014-07-17 Doug Evans <dje@google.com>
6062
6063 PR gdb/17170
6064 * maint.c (count_symtabs_and_blocks): Handle NULL
6065 current_program_space.
6066 (report_command_stats): Check global enabled flag in addition to
6067 recorded enabled flag.
6068 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6069
6070 2014-07-16 Pedro Alves <palves@redhat.com>
6071
6072 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6073
6074 2014-07-16 Tom Tromey <tromey@redhat.com>
6075
6076 * target.h (struct target_ops) <to_delete_record>: Reformat
6077 comment.
6078
6079 2014-07-16 Tom Tromey <tromey@redhat.com>
6080
6081 * target-delegates.c: Rebuild.
6082
6083 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6084
6085 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6086 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6087 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6088 (avr_pointer_to_address): Likewise.
6089 (avr_address_class_type_flags): New function.
6090 (avr_address_class_type_flags_to_name): Likewise.
6091 (avr_address_class_name_to_type_flags): Likewise.
6092 (avr_gdbarch_init): Set address_class_type_flags,
6093 address_class_type_flags_to_name and
6094 address_class_name_to_type_flags.
6095
6096 2014-07-15 Pedro Alves <palves@redhat.com>
6097
6098 * linux-nat.c (kill_callback): Save errno and work with saved
6099 copy.
6100
6101 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6102
6103 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6104
6105 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6106
6107 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6108 breakpoint support correctly.
6109
6110 2014-07-14 Pedro Alves <palves@redhat.com>
6111
6112 * utils.c (prompt_for_continue): Call target_terminal_ours.
6113
6114 2014-07-14 Pedro Alves <palves@redhat.com>
6115
6116 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6117 catch_errors. Don't re-enable stdin or notify observers where,
6118 and rethrow error.
6119 (fetch_inferior_event_wrapper): Delete.
6120
6121 2014-07-14 Pedro Alves <palves@redhat.com>
6122
6123 PR gdb/17072
6124 * top.c: Include "inf-loop.h".
6125 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6126 field.
6127 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6128 was async before.
6129 (gdb_readline_wrapper): Store whether the target is async, and
6130 make it sync.
6131
6132 2014-07-14 Pedro Alves <palves@redhat.com>
6133
6134 PR gdb/17072
6135 * top.c (gdb_readline_wrapper_line): Tweak comment.
6136 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6137 the input handler callback.
6138
6139 2014-07-14 Pedro Alves <palves@redhat.com>
6140
6141 PR gdb/17072
6142 * main.c: Include event-top.h.
6143 (handle_command_errors): New function.
6144 (catch_command_errors, catch_command_errors_const): Use it.
6145
6146 2014-07-14 Pedro Alves <palves@redhat.com>
6147
6148 * exceptions.c (catch_command_errors, catch_command_errors_const):
6149 Moved to main.c.
6150 * exceptions.h (catch_command_errors_ftype)
6151 (catch_command_errors_const_ftype): Moved to main.c.
6152 (catch_command_errors, catch_command_errors_const): Delete
6153 declarations.
6154 * main.c (catch_command_errors_ftype)
6155 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6156 (catch_command_errors, catch_command_errors_const)): Moved here
6157 from exceptions.c and make static.
6158
6159 2014-07-14 Pedro Alves <palves@redhat.com>
6160
6161 * exceptions.c (print_any_exception): Delete.
6162 (catch_exceptions_with_msg): Use exception_print instead of
6163 print_any_exception.
6164 (catch_errors): Use exception_fprintf instead of
6165 print_any_exception.
6166 (catch_command_errors, catch_command_errors_const): Use
6167 exception_print instead of print_any_exception.
6168
6169 2014-07-14 Pedro Alves <palves@redhat.com>
6170
6171 * infcall.c (run_inferior_call): Set 'sync_execution' while
6172 running the inferior call.
6173
6174 2014-07-14 Pedro Alves <palves@redhat.com>
6175
6176 * value.c (value_contents_equal): Delete function.
6177 * value.h (value_contents_equal): Delete declaration.
6178
6179 2014-07-14 Tom Tromey <tromey@redhat.com>
6180
6181 PR exp/17106:
6182 * gdbtypes.c (is_dynamic_type_internal): New function, from
6183 is_dynamic_type.
6184 (is_dynamic_type): Rewrite.
6185 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6186 (resolve_dynamic_struct): Likewise.
6187 (resolve_dynamic_type_internal): New function, from
6188 resolve_dynamic_type.
6189 (resolve_dynamic_type): Rewrite.
6190
6191 2014-07-14 Tom Tromey <tromey@redhat.com>
6192
6193 * target.c (target_require_runnable): Also check record_stratum.
6194 Update comment.
6195
6196 2014-07-11 Yao Qi <yao@codesourcery.com>
6197
6198 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6199 thumb_instruction_restores_sp return true.
6200
6201 2014-07-11 Yao Qi <yao@codesourcery.com>
6202
6203 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6204 (thumb_in_function_epilogue_p): Call
6205 thumb_instruction_restores_sp.
6206
6207 2014-07-11 Yao Qi <yao@codesourcery.com>
6208
6209 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6210 'add sp, #imm'.
6211 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6212
6213 2014-07-11 Gary Benson <gbenson@redhat.com>
6214
6215 * amd64-linux-nat.c (gdbcore.h): Remove include.
6216 (regset.h): Likewise.
6217 (nat/linux-btrace.h): Likewise.
6218 (btrace.h): Likewise.
6219 (gdb_assert.h): Likewise.
6220 (string.h): Likewise.
6221 (sys/uio.h): Likewise.
6222 (sys/debugreg.h): Likewise.
6223 (sys/syscall.h): Likewise.
6224 (sys/procfs.h): Likewise.
6225 (sys/user.h): Likewise.
6226 (asm/ptrace.h): Likewise.
6227 (i386-nat.h): Likewise.
6228 * i386-linux-nat.c (i386-nat.h): Likewise.
6229 (regset.h): Likewise.
6230 (target.h): Likewise.
6231 (linux-nat.h): Likewise.
6232 (nat/linux-btrace.h): Likewise.
6233 (btrace.h): Likewise.
6234 (gdb_assert.h): Likewise.
6235 (string.h): Likewise.
6236 (sys/uio.h): Likewise.
6237 (sys/user.h): Likewise.
6238 (sys/procfs.h): Likewise.
6239 (sys/reg.h): Likewise.
6240 (sys/debugreg.h): Likewise.
6241 (ORIG_EAX): Remove definition.
6242
6243 2014-07-11 Gary Benson <gbenson@redhat.com>
6244
6245 * i386-linux-nat.h: New file.
6246 * x86-linux-nat.h: Likewise.
6247 * x86-linux-nat.c: Likewise.
6248 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6249 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6250 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6251 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6252 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6253 (PTRACE_SETREGSET): Likewise.
6254 (arch_lwp_info): Now in x86-linux-nat.c.
6255 (have_ptrace_getregset): Now in x86-linux-nat.h.
6256 (x86_linux_dr_get): Now in x86-linux-nat.c.
6257 (x86_linux_dr_set): Likewise.
6258 (x86_linux_dr_get_addr): Likewise.
6259 (x86_linux_dr_get_control): Likewise.
6260 (x86_linux_dr_get_status): Likewise.
6261 (update_debug_registers_callback): Likewise.
6262 (x86_linux_dr_set_control): Likewise.
6263 (x86_linux_dr_set_addr): Likewise.
6264 (x86_linux_prepare_to_resume): Likewise.
6265 (x86_linux_new_thread): Likewise.
6266 (x86_linux_new_fork): Likewise.
6267 (x86_linux_get_thread_area): Likewise.
6268 (super_post_startup_inferior): Likewise.
6269 (x86_linux_child_post_startup_inferior): Likewise.
6270 (AMD64_LINUX_USER64_CS): Likewise.
6271 (AMD64_LINUX_X32_DS): Likewise.
6272 (x86_linux_read_description): Likewise.
6273 (x86_linux_enable_btrace): Likewise.
6274 (x86_linux_disable_btrace): Likewise.
6275 (x86_linux_teardown_btrace): Likewise.
6276 (x86_linux_read_btrace): Likewise.
6277 (x86_linux_create_target): Likewise.
6278 (x86_linux_add_target): Likewise.
6279 * i386-linux-nat.c (x86-linux-nat.h): New include.
6280 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6281 (PTRACE_SETREGSET): Likewise.
6282 (arch_lwp_info): Now in x86-linux-nat.c.
6283 (have_ptrace_getregset): Now in x86-linux-nat.h.
6284 (x86_linux_dr_get): Now in x86-linux-nat.c.
6285 (x86_linux_dr_set): Likewise.
6286 (x86_linux_dr_get_addr): Likewise.
6287 (x86_linux_dr_get_control): Likewise.
6288 (x86_linux_dr_get_status): Likewise.
6289 (update_debug_registers_callback): Likewise.
6290 (x86_linux_dr_set_control): Likewise.
6291 (x86_linux_dr_set_addr): Likewise.
6292 (x86_linux_prepare_to_resume): Likewise.
6293 (x86_linux_new_thread): Likewise.
6294 (x86_linux_new_fork): Likewise.
6295 (x86_linux_get_thread_area): Likewise.
6296 (super_post_startup_inferior): Likewise.
6297 (x86_linux_child_post_startup_inferior): Likewise.
6298 (AMD64_LINUX_USER64_CS): Likewise.
6299 (AMD64_LINUX_X32_DS): Likewise.
6300 (x86_linux_read_description): Likewise.
6301 (x86_linux_enable_btrace): Likewise.
6302 (x86_linux_disable_btrace): Likewise.
6303 (x86_linux_teardown_btrace): Likewise.
6304 (x86_linux_read_btrace): Likewise.
6305 (x86_linux_create_target): Likewise.
6306 (x86_linux_add_target): Likewise.
6307
6308 2014-07-11 Gary Benson <gbenson@redhat.com>
6309
6310 * amd64-linux-nat.c: Comment and whitespace changes.
6311 * i386-linux-nat.c: Comment and whitespace changes.
6312
6313 2014-07-11 Gary Benson <gbenson@redhat.com>
6314
6315 * amd64-linux-nat.c (x86_linux_create_target): New function.
6316 (x86_linux_add_target): Likewise.
6317 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6318 * i386-linux-nat.c (x86_linux_create_target): New function.
6319 (x86_linux_add_target): Likewise.
6320 (_initialize_i386_linux_nat): Delegate to the above new functions.
6321
6322 2014-07-11 Gary Benson <gbenson@redhat.com>
6323
6324 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6325 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6326 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6327 (ps_get_thread_area): Delegate to the above.
6328
6329 2014-07-11 Gary Benson <gbenson@redhat.com>
6330
6331 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6332 x86_linux_read_description. All uses updated. amd64-specific
6333 code conditionalized. Conditionalized i386-specific code added.
6334 Redundant cast removed.
6335 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6336 x86_linux_read_description. All uses updated. i386-specific
6337 code conditionalized. Conditionalized amd64-specific code added.
6338 One sizeof replaced with the actual type it is describing.
6339
6340 2014-07-11 Gary Benson <gbenson@redhat.com>
6341
6342 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6343 x86_linux_dr_get. All uses updated.
6344 (amd64_linux_dr_set): Renamed to
6345 x86_linux_dr_set. All uses updated.
6346 (amd64_linux_dr_get_addr): Renamed to
6347 x86_linux_dr_get_addr. All uses updated.
6348 (amd64_linux_dr_get_control): Renamed to
6349 x86_linux_dr_get_control. All uses updated.
6350 (amd64_linux_dr_get_status): Renamed to
6351 x86_linux_dr_get_status. All uses updated.
6352 (amd64_linux_dr_set_control): Renamed to
6353 x86_linux_dr_set_control. All uses updated.
6354 (amd64_linux_dr_set_addr): Renamed to
6355 x86_linux_dr_set_addr. All uses updated.
6356 (amd64_linux_prepare_to_resume): Renamed to
6357 x86_linux_prepare_to_resume. All uses updated.
6358 (amd64_linux_new_thread): Renamed to
6359 x86_linux_new_thread. All uses updated.
6360 (amd64_linux_new_fork): Renamed to
6361 x86_linux_new_fork. All uses updated.
6362 (amd64_linux_child_post_startup_inferior): Renamed to
6363 x86_linux_child_post_startup_inferior. All uses updated.
6364 (amd64_linux_enable_btrace): Renamed to
6365 x86_linux_enable_btrace. All uses updated.
6366 (amd64_linux_disable_btrace): Renamed to
6367 x86_linux_disable_btrace. All uses updated.
6368 (amd64_linux_teardown_btrace): Renamed to
6369 x86_linux_teardown_btrace. All uses updated.
6370 (amd64_linux_read_btrace): Renamed to
6371 x86_linux_read_btrace. All uses updated.
6372 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6373 x86_linux_dr_get. All uses updated.
6374 (i386_linux_dr_set): Renamed to
6375 x86_linux_dr_set. All uses updated.
6376 (i386_linux_dr_get_addr): Renamed to
6377 x86_linux_dr_get_addr. All uses updated.
6378 (i386_linux_dr_get_control): Renamed to
6379 x86_linux_dr_get_control. All uses updated.
6380 (i386_linux_dr_get_status): Renamed to
6381 x86_linux_dr_get_status. All uses updated.
6382 (i386_linux_dr_set_control): Renamed to
6383 x86_linux_dr_set_control. All uses updated.
6384 (i386_linux_dr_set_addr): Renamed to
6385 x86_linux_dr_set_addr. All uses updated.
6386 (i386_linux_prepare_to_resume): Renamed to
6387 x86_linux_prepare_to_resume. All uses updated.
6388 (i386_linux_new_thread): Renamed to
6389 x86_linux_new_thread. All uses updated.
6390 (i386_linux_new_fork): Renamed to
6391 x86_linux_new_fork. All uses updated.
6392 (i386_linux_child_post_startup_inferior): Renamed to
6393 x86_linux_child_post_startup_inferior. All uses updated.
6394 (i386_linux_enable_btrace): Renamed to
6395 x86_linux_enable_btrace. All uses updated.
6396 (i386_linux_disable_btrace): Renamed to
6397 x86_linux_disable_btrace. All uses updated.
6398 (i386_linux_teardown_btrace): Renamed to
6399 x86_linux_teardown_btrace. All uses updated.
6400 (i386_linux_read_btrace): Renamed to
6401 x86_linux_read_btrace. All uses updated.
6402
6403 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6404
6405 * remote.c (extended_remote_post_attach): New function.
6406 (init_extended_remote_ops): Install it as to_post_attach method.
6407
6408 2014-07-09 Pedro Alves <palves@redhat.com>
6409
6410 * infcmd.c (attach_command_post_wait): Don't call
6411 target_terminal_inferior here.
6412 (attach_command): Call it here instead.
6413
6414 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6415
6416 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6417 field.
6418 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6419 from varobj.c, with additional checks.
6420 (c_varobj_ops): Fill in is_path_expr_parent field.
6421 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6422 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6423 field.
6424 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6425 ops method.
6426 (varobj_default_is_path_expr_parent): New function.
6427 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6428 (varobj_default_is_path_expr_parent): Declare new function.
6429
6430 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6431
6432 * infcmd.c (finish_backward): Turn internal error into normal error.
6433
6434 2014-07-07 Pedro Alves <palves@redhat.com>
6435
6436 PR gdb/17096
6437 * remote.c (async_handle_remote_sigint)
6438 (async_handle_remote_sigint_twice): Call
6439 gdb_call_async_signal_handler instead of
6440 mark_async_signal_handler.
6441
6442 2014-07-07 Tom Tromey <tromey@redhat.com>
6443
6444 * target-delegates.c: Rebuild.
6445 * target.c (target_info_record): Remove.
6446 * record.c (info_record_command): Unconditionally call
6447 to_info_record.
6448 * target.h (struct target_ops) <to_info_record>: Use
6449 TARGET_DEFAULT_IGNORE.
6450 (target_info_record): Remove.
6451
6452 2014-07-07 Tom Tromey <tromey@redhat.com>
6453
6454 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6455 TARGET_DEFAULT_NORETURN.
6456 * target.c (generic_tls_error): New function.
6457 (target_translate_tls_address): Don't search target stack.
6458 * target-delegates.c: Rebuild.
6459 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6460 stack.
6461 * linux-thread-db.c (thread_db_get_thread_local_address):
6462 Unconditionally call beneath target.
6463
6464 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6465
6466 * cli/cli-logging.c (pop_output_files): Assign targerr to
6467 gdb_stdtargerr.
6468
6469 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6470
6471 * MAINTAINERS (Write After Approval): Update my email address.
6472
6473 2014-07-02 Gary Benson <gbenson@redhat.com>
6474
6475 * proc-service.c (ps_xfer_memory): Update comment.
6476 (ps_pstop): Remove unused function.
6477 (ps_pcontinue): Likewise.
6478 (ps_lstop): Likewise.
6479 (ps_lcontinue): Likewise.
6480 (ps_lgetxregsize): Likewise.
6481 (ps_lgetxregs): Likewise.
6482 (ps_lsetxregs): Likewise.
6483 (ps_plog): Likewise.
6484 (ps_ptread): Likewise.
6485 (ps_ptwrite): Likewise.
6486
6487 2014-07-01 Mark Wielaard <mjw@redhat.com>
6488
6489 * dwarf2read.c (add_array_cv_type): New function.
6490 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6491 (read_tag_volatile_type): Likewise.
6492
6493 2014-07-01 Tom Tromey <tromey@redhat.com>
6494
6495 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6496 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6497 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6498 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6499 * command.h (cmd_cfunc_ftype): Move earlier.
6500 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6501 (add_com, add_info): Use cmd_cfunc_ftype.
6502
6503 2014-06-30 Tom Tromey <tromey@redhat.com>
6504
6505 * symtab.c (operator_chars): Make parameters and return type
6506 const.
6507 (file_matches): Make "files" const.
6508 (struct search_symbols_data) <files>: Now const.
6509 (search_symbols): Make "regexp" and "files" parameters const.
6510 Update.
6511 (symtab_symbol_info): Remove cast.
6512 (rbreak_command): Update.
6513 * symtab.h (search_symbols): Update.
6514
6515 2014-06-27 Yao Qi <yao@codesourcery.com>
6516
6517 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6518 Change parameter type to 'struct thread_info *'. Caller
6519 updated.
6520 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6521 Update declaration.
6522 * dummy-frame.c (struct dummy_frame_id): New.
6523 (dummy_frame_id_eq): New function.
6524 (struct dummy_frame) <id>: Change its type to 'struct
6525 dummy_frame_id'.
6526 (dummy_frame_push): Add parameter ptid and save it in
6527 dummy_frame_id.
6528 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6529 inferior_ptid.
6530 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6531 to inferior_ptid.
6532 (lookup_dummy_frame): Change parameter type to 'struct
6533 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6534 instead of frame_id_eq.
6535 (dummy_frame_pop): Add parameter ptid. Callers updated.
6536 Update comments. Compose dummy_frame_id and pass it to
6537 lookup_dummy_frame.
6538 (dummy_frame_discard): Add parameter ptid.
6539 (dummy_frame_sniffer): Compose dummy_frame_id and call
6540 dummy_frame_id_eq instead of frame_id_eq.
6541 (fprint_dummy_frames): Print ptid.
6542 * dummy-frame.h: Remove comments.
6543 (dummy_frame_push): Add ptid in declaration.
6544 (dummy_frame_pop, dummy_frame_discard): Likewise.
6545
6546 2014-06-26 Tom Tromey <tromey@redhat.com>
6547
6548 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6549 * command.h (error_no_arg): Update.
6550
6551 2014-06-26 Tom Tromey <tromey@redhat.com>
6552
6553 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6554 (do_show_command): Make "arg" const.
6555 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6556
6557 2014-06-26 Tom Tromey <tromey@redhat.com>
6558
6559 * record-full.c (record_full_get_bookmark): Make "args" const.
6560 (record_full_goto_bookmark): Make "raw_bookmark" const.
6561 * record.c (record_goto): New function.
6562 (cmd_record_goto): Use it. Now static.
6563 * record.h (record_goto): Declare.
6564 (cmd_record_goto): Remove declaration.
6565 * target-delegates.c: Rebuild.
6566 * target.h (struct target_ops) <to_get_bookmark,
6567 to_goto_bookmark>: Make parameter const.
6568
6569 2014-06-26 Tom Tromey <tromey@redhat.com>
6570
6571 * defs.h (generic_load): Update.
6572 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6573 * monitor.c (monitor_load): Make "args" const.
6574 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6575 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6576 const.
6577 (mips_load): Make "file" const.
6578 * remote-sim.c (gdbsim_load): Make "args" const.
6579 * remote.c (remote_load): Make "name" const.
6580 * symfile.c (generic_load): Make "args" const.
6581 * target-delegates.c: Rebuild.
6582 * target.c (target_load): Make "arg" const.
6583 (debug_to_load): Make "args" const.
6584 * target.h (struct target_ops) <to_load>: Make parameter const.
6585 (target_load): Update.
6586
6587 2014-06-26 Tom Tromey <tromey@redhat.com>
6588
6589 PR symtab/16902:
6590 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6591 (dwarf2_physname, read_partial_die)
6592 (guess_partial_die_structure_name, fixup_partial_die)
6593 (guess_full_die_structure_name, anonymous_struct_prefix)
6594 (dwarf2_name): Use per-BFD obstack.
6595
6596 2014-06-26 Yao Qi <yao@codesourcery.com>
6597
6598 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6599 dummyframe and this_id into inner block below.
6600
6601 2014-06-26 Yao Qi <yao@codesourcery.com>
6602
6603 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6604 with "signal_pass[0]" in the initialization of signal_pass.
6605
6606 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6607
6608 * record-btrace.c (record_btrace_generating_corefile)
6609 (record_btrace_prepare_to_generate_core)
6610 (record_btrace_done_generating_core): New.
6611 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6612 (record_btrace_store_registers, record_btrace_prepare_to_store):
6613 Forward request when generating a core file.
6614 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6615 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6616 to_done_generating_core.
6617
6618 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6619
6620 * target.h (target_ops) <to_prepare_to_generate_core>
6621 <to_done_generating_core>: New.
6622 (target_prepare_to_generate_core, target_done_generating_core): New.
6623 * target.c (target_prepare_to_generate_core)
6624 (target_done_generating_core): New.
6625 * target-delegates.c: Regenerate.
6626 * gcore.c: (write_gcore_file): Rename to ...
6627 (write_gcore_file_1): ...this.
6628 (write_gcore_file): Call target_prepare_to_generate_core
6629 and target_done_generating_core.
6630
6631 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6632
6633 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6634 * gcore.c (write_gcore_file): Free memory returned from
6635 make_corefile_notes.
6636 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6637 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6638
6639 2014-06-24 Yao Qi <yao@codesourcery.com>
6640
6641 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6642 (arm_linux_init_abi): Set skip_trampoline_code with
6643 gdbarch_skip_trampoline_code instead of
6644 find_solib_trampoline_target.
6645
6646 2014-06-24 Yao Qi <yao@codesourcery.com>
6647
6648 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6649 arm_skip_bx_reg returns non-zero.
6650
6651 2014-06-24 Yao Qi <yao@codesourcery.com>
6652
6653 * arm-tdep.c (arm_skip_bx_reg): New function.
6654 (arm_skip_stub): Call arm_skip_bx_reg.
6655
6656 2014-06-23 Don Breazeal <donb@codesourcery.com>
6657
6658 * MAINTAINERS: Add myself as write-after-approval maintainer.
6659
6660 2014-06-23 Pedro Alves <palves@redhat.com>
6661
6662 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6663 DR_CONTROL before setting DR0..DR3.
6664 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6665 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6666 bits of DR_CONTROL related to the debug register slot being
6667 disabled. If all slots are vacant, clear local slowdown as well,
6668 and assert DR_CONTROL is 0.
6669
6670 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6671
6672 * python/lib/gdb/command/xmethods.py
6673 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6674 current progspace only if the string "progspace" matches LOCUS_RE.
6675
6676 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6677
6678 Fix --with-system-readline with readline-6.3 patch 5.
6679 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6680 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6681 types.
6682
6683 2014-06-20 Tom Tromey <tromey@redhat.com>
6684
6685 * dwarf2read.c (dw2_get_real_path): Use correct type in
6686 OBSTACK_CALLOC.
6687 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6688
6689 2014-06-20 Gary Benson <gbenson@redhat.com>
6690
6691 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6692 * common/glibc_thread_db.h: Likewise.
6693 * common/i386-cpuid.h: Likewise.
6694 * common/i386-gcc-cpuid.h: Likewise.
6695 * common/linux-btrace.h: Likewise.
6696 * common/linux-osdata.h: Likewise.
6697 * common/linux-procfs.h: Likewise.
6698 * common/linux-ptrace.h: Likewise.
6699 * common/mips-linux-watch.h: Likewise.
6700 * common/linux-btrace.c: Moved to nat.
6701 * common/linux-osdata.c: Likewise.
6702 * common/linux-procfs.c: Likewise.
6703 * common/linux-ptrace.c: Likewise.
6704 * common/mips-linux-watch.c: Likewise.
6705 * nat/gdb_thread_db.h: Moved from common.
6706 * nat/glibc_thread_db.h: Likewise.
6707 * nat/i386-cpuid.h: Likewise.
6708 * nat/i386-gcc-cpuid.h: Likewise.
6709 * nat/linux-btrace.c: Likewise.
6710 * nat/linux-btrace.h: Likewise.
6711 * nat/linux-osdata.c: Likewise.
6712 * nat/linux-osdata.h: Likewise.
6713 * nat/linux-procfs.c: Likewise.
6714 * nat/linux-procfs.h: Likewise.
6715 * nat/linux-ptrace.c: Likewise.
6716 * nat/linux-ptrace.h: Likewise.
6717 * nat/mips-linux-watch.c: Likewise.
6718 * nat/mips-linux-watch.h: Likewise.
6719 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6720 (object file files): Reordered.
6721 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6722 of glibc_thread_db.h.
6723
6724 2014-06-20 Gary Benson <gbenson@redhat.com>
6725
6726 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6727 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6728 (i386_dr_low): Likewise.
6729 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6730 (i386_dr_low_set_addr): Likewise.
6731 (i386_dr_low_get_addr): Likewise.
6732 (i386_dr_low_can_set_control): Likewise.
6733 (i386_dr_low_set_control): Likewise.
6734 (i386_dr_low_get_control): Likewise.
6735 (i386_dr_low_get_status): Likewise.
6736 (i386_get_debug_register_length): Likewise.
6737 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6738 (i386_dr_low): Likewise.
6739 * nat/i386-dregs.c (i386-low.h): Remove include.
6740 (i386-nat.h): Likewise.
6741 (nat/i386-dregs.h): New include.
6742 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6743 (i386_dr_low_set_addr): Likewise.
6744 (i386_dr_low_get_addr): Likewise.
6745 (i386_dr_low_can_set_control): Likewise.
6746 (i386_dr_low_set_control): Likewise.
6747 (i386_dr_low_get_control): Likewise.
6748 (i386_dr_low_get_status): Likewise.
6749 (i386_get_debug_register_length): Likewise.
6750 (debug_hw_points): Likewise.
6751
6752 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6753
6754 * Makefile.in (SFILES): Add d-exp.y.
6755 (YYFILES): Add d-exp.c.
6756 (YYOBJ): Add d-exp.o.
6757 (local-maintainer-clean): Delete d-exp.c.
6758 * d-exp.y: New file.
6759 * d-lang.h (d_parse): New declaration.
6760 (d_error): New declaration.
6761 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6762 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6763 PREC_ORDER operators.
6764 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6765
6766 2014-06-19 Yao Qi <yao@codesourcery.com>
6767
6768 * gdbthread.h (any_running): Remove the declaration.
6769 * thread.c (any_running): Remove.
6770
6771 2014-06-19 Yao Qi <yao@codesourcery.com>
6772
6773 * gdbthread.h (struct thread_info) <state>: Change its type to
6774 'enum thread_state'. Update comments.
6775
6776 2014-06-19 Pedro Alves <palves@redhat.com>
6777
6778 * gdbthread.h (ALL_THREADS): Delete.
6779 (ALL_NON_EXITED_THREADS): New macro.
6780 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6781 instead of ALL_THREADS.
6782 * infrun.c (find_thread_needs_step_over)
6783 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6784 instead of ALL_THREADS.
6785 * record-btrace.c (record_btrace_open)
6786 (record_btrace_stop_recording, record_btrace_close)
6787 (record_btrace_is_replaying, record_btrace_resume)
6788 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6789 * remote.c (append_pending_thread_resumptions): Likewise.
6790 * thread.c (thread_apply_all_command): Likewise.
6791
6792 2014-06-19 Gary Benson <gbenson@redhat.com>
6793
6794 * i386-nat.c (i386_stopped_by_watchpoint):
6795 Use i386_dr_stopped_by_watchpoint.
6796 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6797 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6798
6799 2014-06-19 Gary Benson <gbenson@redhat.com>
6800
6801 * nat/i386-dregs.c: New file.
6802 * Makefile.in (i386-dregs.o): New rule.
6803 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6804 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6805 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6806 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6807 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6808 * config/i386/go32.mh (NATDEPFILES): Likewise.
6809 * config/i386/linux.mh (NATDEPFILES): Likewise.
6810 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6811 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6812 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6813 * i386-nat.h (debug_hw_points): New declaration.
6814 * i386-nat.c (breakpoint.h): Remove include.
6815 (command.h): Likewise.
6816 (target.h): Likewise.
6817 (gdb_assert.h): Likewise.
6818 (debug_hw_points): Made nonstatic.
6819 (debug_printf): Now in i386-dregs.c.
6820 (TARGET_HAS_DR_LEN_8): Likewise.
6821 (DR_CONTROL_SHIFT): Likewise.
6822 (DR_CONTROL_SIZE): Likewise.
6823 (DR_RW_EXECUTE): Likewise.
6824 (DR_RW_WRITE): Likewise.
6825 (DR_RW_READ): Likewise.
6826 (DR_RW_IORW): Likewise.
6827 (DR_LEN_1): Likewise.
6828 (DR_LEN_2): Likewise.
6829 (DR_LEN_4): Likewise.
6830 (DR_LEN_8): Likewise.
6831 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6832 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6833 (DR_ENABLE_SIZE): Likewise.
6834 (DR_LOCAL_SLOWDOWN): Likewise.
6835 (DR_GLOBAL_SLOWDOWN): Likewise.
6836 (DR_CONTROL_RESERVED): Likewise.
6837 (I386_DR_CONTROL_MASK): Likewise.
6838 (I386_DR_VACANT): Likewise.
6839 (I386_DR_LOCAL_ENABLE): Likewise.
6840 (I386_DR_GLOBAL_ENABLE): Likewise.
6841 (I386_DR_DISABLE): Likewise.
6842 (I386_DR_SET_RW_LEN): Likewise.
6843 (I386_DR_GET_RW_LEN): Likewise.
6844 (I386_DR_WATCH_HIT): Likewise.
6845 (i386_wp_op_t): Likewise.
6846 (i386_show_dr): Likewise.
6847 (i386_length_and_rw_bits): Likewise.
6848 (i386_insert_aligned_watchpoint): Likewise.
6849 (i386_remove_aligned_watchpoint): Likewise.
6850 (i386_handle_nonaligned_watchpoint): Likewise.
6851 (i386_update_inferior_debug_regs): Likewise.
6852 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6853 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6854 (i386_region_ok_for_watchpoint):
6855 Use i386_dr_region_ok_for_watchpoint.
6856 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6857
6858 2014-06-19 Gary Benson <gbenson@redhat.com>
6859
6860 * i386-nat.c (i386_insert_hw_breakpoint): Use
6861 i386_insert_watchpoint.
6862 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6863
6864 2014-06-19 Gary Benson <gbenson@redhat.com>
6865
6866 * i386-nat.c (i386_dr_show): Renamed to
6867 i386_show_dr and made static. All uses updated.
6868 (i386_dr_length_and_rw_bits): Renamed to
6869 i386_length_and_rw_bits and made static.
6870 All uses updated.
6871 (i386_dr_insert_aligned_watchpoint): Renamed to
6872 i386_insert_aligned_watchpoint and made static.
6873 All uses updated.
6874 (i386_dr_remove_aligned_watchpoint): Renamed to
6875 i386_remove_aligned_watchpoint and made static.
6876 All uses updated.
6877 (i386_dr_update_inferior_debug_regs): Renamed to
6878 i386_update_inferior_debug_regs and made static.
6879 All uses updated.
6880 * nat/i386-dregs.h (i386_dr_show): Removed.
6881 (i386_dr_length_and_rw_bits): Likewise.
6882 (i386_dr_insert_aligned_watchpoint): Likewise.
6883 (i386_dr_remove_aligned_watchpoint): Likewise.
6884 (i386_dr_update_inferior_debug_regs): Likewise.
6885
6886 2014-06-19 Gary Benson <gbenson@redhat.com>
6887
6888 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6889 * configure: Regenerate.
6890 * config.in: Likewise.
6891 * main.c (signal.h): New include.
6892 (setup_alternate_signal_stack): New function.
6893 (captured_main): Call the above.
6894 * cp-support.c (signal.h): New include.
6895 (catch_demangler_crashes): New flag.
6896 (SIGJMP_BUF): New define.
6897 (SIGSETJMP): Likewise.
6898 (SIGLONGJMP): Likewise.
6899 (gdb_demangle_jmp_buf): New static global.
6900 (gdb_demangle_attempt_core_dump): Likewise.
6901 (gdb_demangle_signal_handler): New function.
6902 (gdb_demangle): If catch_demangler_crashes is set, install the
6903 above signal handler before calling bfd_demangle, and restore
6904 the original signal handler afterwards. Display the offending
6905 symbol and call demangler_warning the first time a segmentation
6906 fault is caught.
6907 (_initialize_cp_support): New maint set/show command.
6908
6909 2014-06-19 Gary Benson <gbenson@redhat.com>
6910
6911 * utils.h (resource_limit_kind): New enum.
6912 (can_dump_core): New declaration.
6913 (warn_cant_dump_core): Likewise.
6914 (dump_core): Likewise.
6915 * utils.c (dump_core): Made nonstatic. Added new
6916 parameter "limit_kind".
6917 (can_dump_core): Made nonstatic. Moved printing code to...
6918 (warn_cant_dump_core): New function.
6919 (can_dump_core_warn): Likewise.
6920 (internal_vproblem): Replace calls to can_dump_core with
6921 calls to can_dump_core_warn. Supply new argument to each.
6922
6923 2014-06-19 Gary Benson <gbenson@redhat.com>
6924
6925 * utils.h (demangler_vwarning): New declaration.
6926 (demangler_warning): Likewise.
6927 * utils.c (struct internal_problem)
6928 <user_settable_should_quit>: New field.
6929 <user_settable_should_dump_core>: Likewise
6930 (internal_error_problem): Add values for above new fields.
6931 (internal_warning_problem): Likewise.
6932 (demangler_warning_problem): New static global.
6933 (demangler_vwarning): New function.
6934 (demangler_warning): Likewise.
6935 (add_internal_problem_command): Selectively add commands.
6936 (_initialize_utils): New internal problem command.
6937 * maint.c (maintenance_demangler_warning): New function.
6938 (_initialize_maint_cmds): New command.
6939
6940 2014-06-18 Tom Tromey <tromey@redhat.com>
6941
6942 * f-valprint.c (info_common_command_for_block): Update.
6943 * symtab.h (struct general_symbol_info) <common_block>: Now
6944 const.
6945
6946 2014-06-18 Tom Tromey <tromey@redhat.com>
6947
6948 * symtab.h (struct symtab) <blockvector>: Now const.
6949 * ada-lang.c (ada_add_global_exceptions): Update.
6950 * buildsym.c (augment_type_symtab): Update.
6951 * dwarf2read.c (dw2_lookup_symbol): Update.
6952 * jit.c (finalize_symtab): Update.
6953 * jv-lang.c (add_class_symtab_symbol): Update.
6954 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6955 Update.
6956 * objfiles.c (objfile_relocate1): Update.
6957 * psymtab.c (lookup_symbol_aux_psymtabs)
6958 (maintenance_check_psymtabs): Update.
6959 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6960 Update.
6961 * spu-tdep.c (spu_catch_start): Update.
6962 * symmisc.c (dump_symtab_1): Update.
6963 * symtab.c (lookup_global_symbol_from_objfile)
6964 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6965 (basic_lookup_transparent_type_quick)
6966 (basic_lookup_transparent_type, find_pc_sect_symtab)
6967 (find_pc_sect_line, search_symbols): Update.
6968 * block.c (find_block_in_blockvector): Make "bl" const.
6969 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6970 const.
6971 (blockvector_contains_pc): Make "bv" const.
6972 (block_for_pc_sect): Update.
6973 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6974 (blockvector_contains_pc): Update.
6975 * breakpoint.c (resolve_sal_pc): Update.
6976 * inline-frame.c (block_starting_point_at): Update.
6977
6978 2014-06-18 Tom Tromey <tromey@redhat.com>
6979
6980 * completer.c (complete_line): Make "line_buffer" const.
6981 * completer.h (complete_line): Update.
6982
6983 2014-06-18 Tom Tromey <tromey@redhat.com>
6984
6985 * symtab.c (add_macro_name): Remove unneeded cast.
6986
6987 2014-06-18 Tom Tromey <tromey@redhat.com>
6988
6989 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6990 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6991
6992 2014-06-18 Tom Tromey <tromey@redhat.com>
6993
6994 * probe.c (info_probes_for_ops): Make "arg" const.
6995 * probe.h (info_probes_for_ops): Update.
6996
6997 2014-06-18 Tom Tromey <tromey@redhat.com>
6998
6999 * varobj.c (varobj_create): Update.
7000 * valops.c (value_of_this): Update.
7001 * tracepoint.c (add_local_symbols, scope_info): Update.
7002 * symtab.h (struct general_symbol_info) <block>: Now const.
7003 * symtab.c (skip_prologue_sal)
7004 (default_make_symbol_completion_list_break_on)
7005 (skip_prologue_using_sal): Update.
7006 * stack.h (iterate_over_block_locals)
7007 (iterate_over_block_local_vars): Update.
7008 * stack.c (print_frame_args): Update.
7009 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7010 parameter const.
7011 (get_selected_block): Make return type const.
7012 * python/py-frame.c (frapy_block): Update.
7013 * python/py-block.c (gdbpy_block_for_pc): Update.
7014 * p-exp.y (%union) <bval>: Now const.
7015 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7016 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7017 * m2-exp.y (%union) <bval>: Now const.
7018 * linespec.c (get_current_search_block): Make return type const.
7019 (create_sals_line_offset, find_label_symbols): Update.
7020 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7021 Update.
7022 (block_starting_point_at): Make "block" const.
7023 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7024 (check_exception_resume): Update.
7025 * guile/scm-frame.c (gdbscm_frame_block): Update.
7026 * guile/scm-block.c (gdbscm_lookup_block): Update.
7027 * frame.h (get_frame_block): Update.
7028 (get_selected_block): Make return type const.
7029 * frame.c (frame_id_inner): Update.
7030 * f-valprint.c (info_common_command_for_block)
7031 (info_common_command): Update.
7032 * dwarf2loc.c (dwarf2_find_location_expression)
7033 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7034 (locexpr_describe_location_piece): Update.
7035 * c-exp.y (%union) <bval>: Now const.
7036 * breakpoint.c (resolve_sal_pc): Update.
7037 * blockframe.c (get_frame_block):Make return type const.
7038 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7039 (block_innermost_frame): Update.
7040 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7041 (block_for_pc, block_for_pc_sect): Update.
7042 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7043 'pblock' const.
7044 (block_for_pc_sect, block_for_pc): Make return type const.
7045 * ax-gdb.c (gen_expr): Update.
7046 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7047 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7048 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7049 (ada_read_var_value): Update.
7050 * ada-exp.y (struct name_info) <block>: Now const.
7051 (%union): Likewise.
7052 (block_lookup): Constify.
7053
7054 2014-06-18 Gary Benson <gbenson@redhat.com>
7055
7056 * nat/i386-dregs.h: New file.
7057 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7058 * i386-nat.h (i386-dregs.h): New include.
7059 (DR_FIRSTADDR): Now in i386-dregs.h.
7060 (DR_LASTADDR): Likewise.
7061 (DR_NADDR): Likewise.
7062 (DR_STATUS): Likewise.
7063 (DR_CONTROL): Likewise.
7064 (i386_debug_reg_state): Likewise.
7065 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7066
7067 2014-06-18 Don Breazeal <donb@codesourcery.com>
7068
7069 * breakpoint.c (set_longjmp_breakpoint): Call
7070 momentary_breakpoint_from_master with additional argument.
7071 (set_longjmp_breakpoint_for_call_dummy): Call
7072 momentary_breakpoint_from_master with additional argument.
7073 (set_std_terminate_breakpoint): Call
7074 momentary_breakpoint_from_master with additional argument.
7075 (momentary_breakpoint_from_master): Add argument to function
7076 definition and use it to initialize structure member flag.
7077 (clone_momentary_breakpoint): Call
7078 momentary_breakpoint_from_master with additional argument.
7079 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7080 member flags set in momentary_breakpoint_from_master.
7081
7082 2014-06-18 Gary Benson <gbenson@redhat.com>
7083
7084 * i386-nat.c (i386_show_dr): Renamed to
7085 i386_dr_show and made nonstatic. All uses updated.
7086 (i386_length_and_rw_bits): Renamed to
7087 i386_dr_length_and_rw_bits and made nonstatic.
7088 All uses updated.
7089 (i386_insert_aligned_watchpoint): Renamed to
7090 i386_dr_insert_aligned_watchpoint and made nonstatic.
7091 All uses updated.
7092 (i386_remove_aligned_watchpoint): Renamed to
7093 i386_dr_remove_aligned_watchpoint and made nonstatic.
7094 All uses updated.
7095 (i386_update_inferior_debug_regs): Renamed to
7096 i386_dr_update_inferior_debug_regs and made nonstatic.
7097 All uses updated.
7098
7099 2014-06-18 Gary Benson <gbenson@redhat.com>
7100
7101 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7102 (i386_dr_low_can_set_control): Likewise.
7103 (i386_dr_low_set_addr): Likewise.
7104 (i386_dr_low_set_control): Likewise.
7105 (i386_dr_low_get_addr): Likewise.
7106 (i386_dr_low_get_status): Likewise.
7107 (i386_dr_low_get_control): Likewise.
7108 (i386_insert_aligned_watchpoint): Use new macros.
7109 (i386_update_inferior_debug_regs): Likewise.
7110 (i386_stopped_data_address): Likewise.
7111
7112 2014-06-18 Gary Benson <gbenson@redhat.com>
7113
7114 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7115 New parameter. All uses updated.
7116
7117 2014-06-18 Gary Benson <gbenson@redhat.com>
7118
7119 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7120 All uses updated.
7121
7122 2014-06-18 Gary Benson <gbenson@redhat.com>
7123
7124 * i386-nat.c (debug_printf): New macro.
7125 (i386_get_debug_register_length): Likewise.
7126 (TARGET_HAS_DR_LEN_8): Use above macro.
7127 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7128 and printf_unfiltered. Use phex to format values.
7129
7130 2014-06-18 Gary Benson <gbenson@redhat.com>
7131
7132 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7133 Make const.
7134
7135 2014-06-18 Gary Benson <gbenson@redhat.com>
7136
7137 * i386-nat.c: Comment changes.
7138
7139 2014-06-18 Gary Benson <gbenson@redhat.com>
7140
7141 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7142
7143 2014-06-18 Gary Benson <gbenson@redhat.com>
7144
7145 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7146 (i386_insert_aligned_watchpoint): Likewise.
7147 (i386_remove_aligned_watchpoint): Likewise.
7148 (i386_handle_nonaligned_watchpoint): Likewise.
7149
7150 2014-06-18 Gary Benson <gbenson@redhat.com>
7151
7152 * i386-nat.c: Whitespace changes.
7153
7154 2014-06-17 Samuel Bronson <naesten@gmail.com>
7155
7156 * MAINTAINERS: Update Roland McGrath's email address.
7157 Thanks to Sergio Durigan Junior for pointing out that he left
7158 Red Hat a while ago, and giving me a current address.
7159
7160 2014-06-17 Tom Tromey <tromey@redhat.com>
7161
7162 * utils.h (savestring): Remove declaration.
7163
7164 2014-06-17 Tom Tromey <tromey@redhat.com>
7165
7166 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7167
7168 2014-06-16 Keith Seitz <keiths@redhat.com>
7169
7170 PR mi/15863
7171 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7172 to update the varobj if inferior_ptid is null_ptid.
7173
7174 2014-06-16 Tom Tromey <tromey@redhat.com>
7175
7176 * target.h (struct target_ops) <to_info_proc>: Make parameter
7177 const.
7178 (target_info_proc): Update.
7179 * target.c (target_info_proc): Make "args" const.
7180 * procfs.c (procfs_info_proc): Update.
7181 * linux-tdep.c (linux_info_proc): Update.
7182 (linux_core_info_proc_mappings): Make "args" const.
7183 (linux_core_info_proc): Update.
7184 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7185 * gdbarch.c: Rebuild.
7186 * gdbarch.h: Rebuild.
7187 * corelow.c (core_info_proc): Update.
7188
7189 2014-06-16 Tom Tromey <tromey@redhat.com>
7190
7191 * target.h (struct target_ops) <to_disconnect>: Make parameter
7192 const.
7193 (target_disconnect): Update.
7194 * target.c (target_disconnect): Make "args" const.
7195 * target-delegates.c: Rebuild.
7196 * remote.c (remote_disconnect): Update.
7197 * record.h (record_disconnect): Update.
7198 * record.c (record_disconnect): Update.
7199 * inf-child.c (inf_child_disconnect): Update.
7200
7201 2014-06-16 Tom Tromey <tromey@redhat.com>
7202
7203 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7204 * target.c (debug_to_rcmd, default_rcmd): Update.
7205 * target-delegates.c: Rebuild.
7206 * remote.c (remote_rcmd): Update.
7207 * monitor.c (monitor_rcmd): Update.
7208
7209 2014-06-16 Pedro Alves <palves@redhat.com>
7210
7211 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7212 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7213 have OBJF_SHARED set.
7214 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7215 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7216 instead of OBJF_USERLOADED.
7217 * objfiles.h (OBJF_SHARED): Update comment.
7218 (userloaded_objfile_contains_address_p): Rename to ...
7219 (shared_objfile_contains_address_p): ... this, and update
7220 comments.
7221 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7222 new objfile.
7223 (remove_symbol_file_command): Skip objfiles that don't have
7224 OBJF_SHARED set.
7225
7226 2014-06-16 Tom Tromey <tromey@redhat.com>
7227
7228 * minsyms.h (prim_record_minimal_symbol)
7229 (prim_record_minimal_symbol_and_info): Update comments.
7230
7231 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7232
7233 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7234 or --without-guile, according to how GDB was built.
7235
7236 2014-06-13 Tom Tromey <tromey@redhat.com>
7237
7238 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7239 to help_list.
7240 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7241 to help_list.
7242 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7243 help_list.
7244 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7245 help_list.Pass all_commands, not -1, to help_list.
7246 * cli/cli-dump.c (dump_command, append_command)
7247 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7248 (binary_dump_command, binary_append_command): Pass all_commands,
7249 not -1, to help_list.
7250 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7251 -1, to help_list.
7252 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7253 -1, to help_list.
7254 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7255 help_list.
7256 * top.c (set_history): Pass all_commands, not -1, to help_list.
7257 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7258 all_commands, not -1, to help_list.
7259 * symfile.c (overlay_command): Pass all_commands, not -1, to
7260 help_list.
7261 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7262 help_list.
7263 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7264 help_list.
7265 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7266 -1, to help_list.
7267 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7268 not -1, to help_list.
7269 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7270 not -1, to help_list.
7271 * maint.c (maintenance_command, maintenance_info_command)
7272 (maintenance_print_command, maintenance_set_cmd): Pass
7273 all_commands, not -1, to help_list.
7274 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7275 help_list.
7276 * language.c (set_check): Pass all_commands, not -1, to help_list.
7277 * infcmd.c (unset_command): Pass all_commands, not -1, to
7278 help_list.
7279 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7280 help_list.
7281 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7282 help_list.
7283 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7284 help_list.
7285 * breakpoint.c (save_command): Pass all_commands, not -1, to
7286 help_list.
7287 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7288 all_commands, not -1, to help_list.
7289
7290 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7291
7292 * regcache.c (struct register_to_invalidate): New structure.
7293 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7294 functions.
7295 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7296
7297 2014-06-12 Yao Qi <yao@codesourcery.com>
7298
7299 * varobj.c (varobj_get_num_children): Call
7300 varobj_is_dynamic_p.
7301 (varobj_list_children): Likewise.
7302 (varobj_update): Likewise. Update comments.
7303
7304 2014-06-12 Yao Qi <yao@codesourcery.com>
7305
7306 * varobj.c (varobj_pretty_printed_p): Rename to ...
7307 (varobj_is_dynamic_p): ... this. New function.
7308 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7309 (varobj_is_dynamic_p): Declare.
7310 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7311 (mi_print_value_p, varobj_update_one): Likewise.
7312
7313 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7314 Yao Qi <yao@codesourcery.com>
7315
7316 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7317 (varobj_get_iterator): Wrap up code for pretty-printer by
7318 "#if HAVE_PYTHON" and "#endif".
7319 (update_dynamic_varobj_children): Likewise.
7320
7321 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7322 Yao Qi <yao@codesourcery.com>
7323
7324 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7325 gdb_python_initialized is false. Move some code from varobj.c.
7326 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7327 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7328 (struct varobj_item): Moved to varobj-iter.h".
7329 (varobj_clear_saved_item): New function.
7330 (update_dynamic_varobj_children): Move python-related code to
7331 py-varobj.c.
7332 (free_variable): Call varobj_clear_saved_item and
7333 varobj_iter_delete.
7334
7335 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7336 Yao Qi <yao@codesourcery.com>
7337
7338 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7339 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7340 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7341 (py-varobj.o): New rule.
7342 * python/py-varobj.c: New file.
7343 * python/python-internal.h (py_varobj_get_iterator): Declare.
7344 * varobj-iter.h: New file.
7345 * varobj.c: Include "varobj-iter.h"
7346 (struct varobj) <child_iter>: Change its type from "PyObject *"
7347 to "struct varobj_iter *".
7348 <saved_item>: Likewise.
7349 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7350 [HAVE_PYTHON] (varobj_get_iterator): New function.
7351 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7352 python-specific code to python/py-varobj.c.
7353 (install_visualizer): Call varobj_iter_delete instead of
7354 Py_XDECREF.
7355 * varobj.h (varobj_ensure_python_env): Declare.
7356
7357 2014-06-12 Yao Qi <yao@codesourcery.com>
7358
7359 * varobj.c (struct varobj_item): New structure.
7360 (create_child_with_value): Update declaration.
7361 (varobj_add_child): Replace arguments 'name' and 'value' with
7362 'item'. All callers updated.
7363 (install_dynamic_child): Likewise.
7364 (update_dynamic_varobj_children): Likewise.
7365 (varobj_add_child): Likewise.
7366 (create_child_with_value): Likewise.
7367
7368 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7369
7370 * NEWS: Create a new section for the next release branch.
7371 Rename the section of the current branch, now that it has
7372 been cut.
7373
7374 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7375
7376 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7377 * version.in: Bump version to 7.8.50.DATE-cvs.
7378
7379 2014-06-11 Pedro Alves <palves@redhat.com>
7380
7381 PR remote/17028
7382 * ser-mingw.c (net_windows_socket_check_pending): New function.
7383 (net_windows_select_thread): Ignore spurious wakeups. Use
7384 net_windows_socket_check_pending.
7385 (net_windows_wait_handle): Check for pending events with
7386 ioctlsocket, through net_windows_socket_check_pending, instead of
7387 checking the socket's event.
7388
7389 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7390
7391 * python/python-internal.h (gdb_PyObject_GetAttrString)
7392 (gdb_PyObject_HasAttrString): New inline function definitions.
7393 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7394 char * of the second argument to PyObject_GetAttrString.
7395
7396 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7397
7398 * serial.c (serial_write): Fix index of character to be printed
7399 in call to serial_logchar when serial debug traces are enabled.
7400
7401 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7402
7403 * gdbtypes (resolve_dynamic_range): Add function description.
7404
7405 2014-06-09 Pedro Alves <palves@redhat.com>
7406
7407 * linux-nat.c (linux_child_follow_fork): Initialize status with
7408 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7409 inner block. Only pass the signal to PTRACE_DETACH if in pass
7410 state.
7411
7412 2014-06-09 Gary Benson <gbenson@redhat.com>
7413
7414 * common/signals.c (gdb_signal_from_host): Reorder to separate
7415 the always-available ANSI-standard signals from the signals that
7416 require checking.
7417 (do_gdb_signal_to_host): Likewise.
7418 * proc-events.c (signal_table): Likewise.
7419
7420 2014-06-08 Hui Zhu <hui@codesourcery.com>
7421
7422 * common/linux-ptrace.c (linux_disable_event_reporting): New
7423 function.
7424 * common/linux-ptrace.h (linux_disable_event_reporting): New
7425 declaration.
7426 * linux-nat.c (linux_child_follow_fork): Do a single step before
7427 detach.
7428
7429 2014-06-07 Keith Seitz <keiths@redhat.com>
7430
7431 Revert:
7432 PR c++/16253
7433 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7434 from symbol_matches_domain in symtab.c. All local callers
7435 of symbol_matches_domain updated.
7436 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7437 search STRUCT_DOMAIN.
7438 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7439 independently. standard_lookup will do that automatically.
7440 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7441 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7442 (cp_lookup_symbol_in_namespace): Likewise.
7443 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7444 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7445 may return a STRUCT_DOMAIN match.
7446 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7447 * cp-support.c: Include language.h.
7448 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7449 VAR_DOMAIN.
7450 * psymtab.c (match_partial_symbol): Compare the requested
7451 domain with the symbol's domain directly.
7452 (lookup_partial_symbol): Likewise.
7453 * symtab.c (lookup_symbol_in_language): Explain when/why
7454 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7455 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7456 appropriate languages.
7457 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7458 and moved to ada-lang.c
7459 (lookup_block_symbol): Explain that this function only returns
7460 symbol matching the requested DOMAIN.
7461 Compare the requested domain with the symbol's domain directly.
7462 (iterate_over_symbols): Compare the requested domain with the
7463 symbol's domain directly.
7464 * symtab.h (symbol_matches_domain): Remove.
7465
7466 2014-06-06 Doug Evans <xdje42@gmail.com>
7467
7468 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7469 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7470 (gdbscm_guile_version_is_at_least): Declare.
7471 (gdbscm_scm_string_to_int): Declare.
7472 * guile/guile.c (gdbscm_guile_major_version): New global.
7473 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7474 (guile_datadir): New static global.
7475 (gdbscm_guile_data_directory): New function.
7476 (initialize_scheme_side): Update.
7477 (misc_guile_functions): Add guile-data-directory.
7478 (initialize_gdb_module): Fetch guile version number.
7479 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7480 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7481 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7482 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7483 comments.
7484 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7485 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7486 * guile/scm-value.c (gdbscm_value_to_string): Only call
7487 scm_port_conversion_strategy if Guile version >= 2.0.6.
7488
7489 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7490
7491 * main.c (print_gdb_help): Add -q and --silent.
7492
7493 2014-06-06 Gary Benson <gbenson@redhat.com>
7494
7495 * common/signals.c: Remove preprocessor conditionals for
7496 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7497 SIGSEGV and SIGTERM.
7498 * proc-events.c: Likewise.
7499
7500 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7501
7502 * symfile.c (symfile_free_objfile): Remove restriction to
7503 OBJF_USERLOADED.
7504 * symfile-mem.c (symbol_file_add_from_memory): Call
7505 add_target_sections_of_objfile.
7506
7507 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7508
7509 * guile/scm-value.c (gdbscm_history_append_x): Use
7510 'vlscm_get_value_smob_arg_unsafe' instead of
7511 'vlscm_scm_to_value'.
7512
7513 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7514
7515 PR mi/15806
7516 * utils.c (printchar): Don't escape at all if quoter is NUL.
7517 Update function documentation to clarify effect of parameter
7518 QUOTER.
7519 * remote.c (escape_buffer): Pass '\\' as the quoter to
7520 fputstrn_unfiltered.
7521 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7522 generate the output.
7523 (mi_solib_unloaded): Same.
7524
7525 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7526
7527 * development.sh: Delete.
7528 * Makefile.in (config.status): Adjust dependency on development.sh.
7529 * configure.ac: Adjust development.sh source call.
7530 * configure: Regenerate.
7531
7532 2014-06-04 Doug Evans <xdje42@gmail.com>
7533
7534 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7535 is_scheme_bkpt, spec.
7536 (bpscm_make_breakpoint_smob): Initialize new members.
7537 (gdbscm_create_breakpoint_x): Split into two ...
7538 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7539 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7540 (scheme_function breakpoint_functions): Update.
7541 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7542 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7543 register-breakpoint!.
7544
7545 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7546
7547 PR server/17023
7548 * mem-break.c (z_type_supported): Return zero if
7549 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7550
7551 2014-06-04 Tom Tromey <tromey@redhat.com>
7552
7553 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7554 value_from_contents_and_address_unresolved.
7555 (ada_template_to_fixed_record_type_1): Likewise.
7556 (ada_which_variant_applies): Likewise.
7557 * value.h (value_from_contents_and_address_unresolved): Declare.
7558 * value.c (value_from_contents_and_address_unresolved): New
7559 function.
7560 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7561 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7562 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7563
7564 2014-06-04 Tom Tromey <tromey@redhat.com>
7565
7566 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7567
7568 2014-06-04 Tom Tromey <tromey@redhat.com>
7569
7570 * procfs.c (procfs_attach): Make "args" const.
7571 * windows-nat.c (windows_attach): Make "args" const.
7572 * nto-procfs.c (procfs_attach): Make "args" const.
7573 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7574 * go32-nat.c (go32_attach): Make "args" const.
7575 * gnu-nat.c (gnu_attach): Make "args" const.
7576 * darwin-nat.c (darwin_attach): Make "args" const.
7577 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7578 * linux-nat.c (linux_nat_attach): Make "args" const.
7579 * remote.c (extended_remote_attach_1, extended_remote_attach):
7580 Make "args" const.
7581 * target.h (struct target_ops) <to_attach>: Make "args" const.
7582 (find_default_attach): Likewise.
7583 * utils.c (parse_pid_to_attach): Make "args" const.
7584 * utils.h (parse_pid_to_attach): Update.
7585
7586 2014-06-04 Tom Tromey <tromey@redhat.com>
7587
7588 * target-delegates.c: Rebuild.
7589 * target.c (default_thread_address_space): New function.
7590 (target_thread_address_space): Simplify.
7591 * target.h (struct target_ops) <to_thread_address_space>: Add
7592 TARGET_DEFAULT_FUNC.
7593
7594 2014-06-04 Doug Evans <xdje42@gmail.com>
7595
7596 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7597
7598 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7599
7600 * record-btrace.c: Include event-loop.h and inf-loop.h.
7601 (record_btrace_resume_exec_dir)
7602 (record_btrace_async_inferior_event_handler)
7603 (record_btrace_handle_async_inferior_event): New.
7604 (record_btrace_open): Create async event handler.
7605 (record_btrace_close): Delete async event handler.
7606 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7607 Mark async event handler.
7608 (record_btrace_execution_direction): New.
7609 (init_record_btrace_ops): Initialize to_execution_direction.
7610
7611 2014-06-03 Doug Evans <xdje42@gmail.com>
7612
7613 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7614 (gdbscm_make_parameter): Ditto.
7615
7616 2014-06-03 Doug Evans <dje@google.com>
7617
7618 * exec.c (exec_close_1): Call clear_section_table instead of
7619 resize_section_table.
7620 (clear_section_table): New function.
7621 (resize_section_table): Make static. Rename arg num_added to
7622 adjustment.
7623 * exec.h (clear_section_table): Declare.
7624 (resize_section_table): Delete.
7625 * progspace.c (release_program_space): Call clear_section_table
7626 instead of resize_section_table.
7627
7628 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7629
7630 * NEWS (Python Scripting): Add entry about the new xmethods
7631 feature.
7632
7633 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7634
7635 * python/py-xmethods.c: New file.
7636 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7637 (objfpy_dealloc): XDECREF on the new xmethods field.
7638 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7639 field.
7640 (objfpy_get_xmethods): New function.
7641 (objfile_getset): New entry 'xmethods'.
7642 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7643 (pspy_dealloc): XDECREF on the new xmethods field.
7644 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7645 field.
7646 (pspy_get_xmethods): New function.
7647 (pspace_getset): New entry 'xmethods'.
7648 * python/python-internal.h: Add declarations for new functions.
7649 * python/python.c (_initialize_python): Invoke
7650 gdbpy_initialize_xmethods.
7651 * python/lib/gdb/__init__.py (xmethods): New
7652 attribute.
7653 * python/lib/gdb/xmethod.py: New file.
7654 * python/lib/gdb/command/xmethods.py: New file.
7655
7656 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7657
7658 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7659 best match method returned by find_overload_match is an xmethod.
7660 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7661 the best matching operator returned by find_overload_match is an
7662 xmethod.
7663 * valops.c: #include "extension.h".
7664 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7665 Return void. The list of matching source methods is returned in
7666 "fn_list" and a vector of matching debug method workers is
7667 returned in "xm_worker_vec". Update all callers.
7668 (value_find_oload_method_list): Likewise.
7669 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7670 non-NULL, then the index of the best matching method in this
7671 vector is returned. Update all callers.
7672 (find_overload_match): Include xmethods while performing overload
7673 resolution.
7674
7675 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7676
7677 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7678 * extension-priv.h (struct extension_language_ops): Add the
7679 xmethod interface.
7680 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7681 get_matching_xmethod_workers, get_xmethod_argtypes,
7682 invoke_xmethod, free_xmethod_worker,
7683 free_xmethod_worker_vec): New functions.
7684 * extension.h: #include "common/vec.h".
7685 New function declarations.
7686 (struct xmethod_worker): New struct.
7687 (VEC (xmethod_worker_ptr)): New vector type.
7688 (xmethod_worker_ptr): New typedef.
7689 (xmethod_worker_vec): Likewise.
7690 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7691 builtin_type.
7692 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7693 (struct builtin_type): New field "xmethod".
7694 * valarith.c (value_ptradd): Assert that the value argument is not
7695 lval_xcallable.
7696 * valops.c (value_must_coerce_to_target): Return 0 for
7697 lval_xcallable values.
7698 * value.c (struct value): New field XM_WORKER in the field
7699 LOCATION.
7700 (value_address, value_raw_address): Return 0 for lval_xcallable
7701 values.
7702 (set_value_address): Assert that the value is not an
7703 lval_xcallable.
7704 (value_free): Free the associated xmethod worker when freeing
7705 lval_xcallable values.
7706 (set_value_component_location): Assert that the WHOLE value is not
7707 lval_xcallable.
7708 (value_of_xmethod, call_xmethod): New functions.
7709 * value.h: Declare "struct xmethod_worker".
7710 Declare new functions value_of_xmethod, call_xmethod.
7711
7712 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7713 Pedro Alves <palves@redhat.com>
7714
7715 PR breakpoints/17000
7716 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7717 New function, extracted from software_breakpoint_inserted_here_p.
7718 (software_breakpoint_inserted_here_p): Replace factored out code
7719 by call to find_non_raw_software_breakpoint_inserted_here.
7720 (bp_target_info_copy_insertion_state): New function.
7721 (bkpt_insert_location): Handle the case of a single-step
7722 breakpoint already inserted at the same address.
7723 (bkpt_remove_location): Handle the case of a single-step
7724 breakpoint still inserted at the same address.
7725 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7726 breakpoint already inserted at the same address.
7727 (deprecated_remove_raw_breakpoint): Handle the case of a
7728 non-raw breakpoint still inserted at the same address.
7729 (find_single_step_breakpoint): New function, extracted from
7730 single_step_breakpoint_inserted_here_p.
7731 (find_single_step_breakpoint): New function,
7732 factored out from single_step_breakpoint_inserted_here_p.
7733 (single_step_breakpoint_inserted_here_p): Reimplement.
7734
7735 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7736
7737 Pushed by Joel Brobecker <brobecker@adacore.com>
7738 * source.c (show_substitute_path_command): Fix display of matching
7739 substitution rules.
7740
7741 2014-06-03 Gary Benson <gbenson@redhat.com>
7742
7743 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7744
7745 2014-06-02 Doug Evans <xdje42@gmail.com>
7746
7747 Add parameter support for Guile.
7748 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7749 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7750 (scm-param.o): New rule.
7751 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7752 (gdbscm_misc_error): Declare.
7753 (gdbscm_canonicalize_command_name): Declare.
7754 (gdbscm_scm_to_host_string): Declare.
7755 (gdbscm_scm_from_host_string): Declare.
7756 (gdbscm_initialize_parameters): Declare.
7757 * guile/guile.c (initialize_gdb_module): Call
7758 gdbscm_initialize_parameters.
7759 * guile/lib/gdb.scm: Export parameter symbols.
7760 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7761 cmdscm_canonicalize_name and made public. All callers updated.
7762 * guile/scm-exception.c (gdbscm_misc_error): New function.
7763 * guile/scm-param.c: New file.
7764 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7765 (gdbscm_scm_to_host_string): New function.
7766 (gdbscm_scm_from_host_string): New function.
7767 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7768
7769 2014-06-02 Doug Evans <xdje42@gmail.com>
7770
7771 Add command support for Guile.
7772 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7773 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7774 (scm-cmd.o): New rule.
7775 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7776 (gdbscm_user_error_p): Declare.
7777 (gdbscm_parse_command_name): Declare.
7778 (gdbscm_valid_command_class_p): Declare.
7779 (gdbscm_initialize_commands): Declare.
7780 * guile/guile.c (initialize_gdb_module): Call
7781 gdbscm_initialize_commands.
7782 * guile/lib/gdb.scm: Export command symbols.
7783 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7784 (throw-user-error): New function.
7785 * guile/scm-cmd.c: New file.
7786 * guile/scm-exception.c (user_error_symbol): New static global.
7787 (gdbscm_user_error_p): New function.
7788 (gdbscm_initialize_exceptions): Set user_error_symbol.
7789 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7790
7791 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7792
7793 * top.c (command_loop): Handle comments here...
7794 (command_line_input): ... not here.
7795
7796 2014-06-02 Doug Evans <xdje42@gmail.com>
7797
7798 Add progspace support for Guile.
7799 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7800 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7801 (scm-progspace.o): New rule.
7802 * guile/guile-internal.h (pspace_smob): New typedef.
7803 (psscm_pspace_smob_pretty_printers): Declare.
7804 (psscm_pspace_smob_from_pspace): Declare.
7805 (psscm_scm_from_pspace): Declare.
7806 * guile/guile.c (initialize_gdb_module): Call
7807 gdbscm_initialize_pspaces.
7808 * guile/lib/gdb.scm: Export progspace symbols.
7809 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7810 support.
7811 (append-pretty-printer!): Ditto.
7812 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7813 Implement.
7814 * guile/scm-progspace.c: New file.
7815
7816 2014-06-03 Alan Modra <amodra@gmail.com>
7817
7818 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7819 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7820
7821 2014-06-02 Doug Evans <dje@google.com>
7822
7823 Add support for skeletonless type units.
7824 * dwarf2read.c (struct dwarf2_per_objfile): New member
7825 n_allocated_type_units.
7826 (struct dwarf2_per_objfile) <tu_stats>: New member
7827 nr_all_type_units_reallocs.
7828 (create_signatured_type_table_from_index): Initialize
7829 n_allocated_type_units
7830 (create_all_type_units): Ditto.
7831 (add_type_unit): Move up in file. New arg slot.
7832 All callers updated. Increase space for all_type_units more
7833 efficiently.
7834 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7835 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7836 (lookup_dwp_signatured_type): Ditto.
7837 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7838 All callers updated.
7839 (build_type_psymtabs_1): Leave type_unit_groups as
7840 NULL if no TUs present.
7841 (print_tu_stats): New function.
7842 (process_skeletonless_type_unit): New function.
7843 (process_dwo_file_for_skeletonless_type_units): New
7844 function.
7845 (process_skeletonless_type_units): New function.
7846 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7847 Call print tu_stats if debugging enabled.
7848
7849 2014-06-02 Pedro Alves <palves@redhat.com>
7850
7851 * breakpoint.c (build_target_command_list): Don't build a command
7852 list if we have any duplicate location that isn't a dprintf.
7853
7854 2014-06-02 Pedro Alves <palves@redhat.com>
7855
7856 * breakpoint.c (dprintf_breakpoint_hit): New function.
7857 (initialize_breakpoint_ops): Install it as dprintf's
7858 breakpoint_hit method.
7859
7860 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7861
7862 * source.c (substitute_path_rule_matches): Simplify using
7863 filename_ncmp instead of FILENAME_CMP.
7864
7865 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7866
7867 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7868
7869 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7870
7871 * configure.ac: When Guile is available, check for the
7872 availability of 'scm_new_smob'.
7873 * configure, config.h.in: Regenerate.
7874 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7875 function.
7876
7877 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7878
7879 * frame.c (struct frame_info): Add stop_string field.
7880 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7881 (get_prev_frame_always): Old content moved into
7882 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7883 TRY_CATCH, handle MEMORY_ERROR exceptions.
7884 (frame_stop_reason_string): New function definition.
7885 * frame.h (unwind_stop_reason_to_string): Extend comment to
7886 mention frame_stop_reason_string.
7887 (frame_stop_reason_string): New function declaration.
7888 * stack.c (frame_info): Switch to frame_stop_reason_string.
7889 (backtrace_command_1): Switch to frame_stop_reason_string.
7890 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7891 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7892 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7893
7894 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7895
7896 * frame.c (frame_stop_reason_string): Rename to ...
7897 (unwind_stop_reason_to_string): this.
7898 * frame.h (frame_stop_reason_string): Rename to ...
7899 (unwind_stop_reason_to_string): this.
7900 * stack.c (frame_info): Update call to frame_stop_reason_string.
7901 (backtrace_command_1): Likewise.
7902 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7903 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7904
7905 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7906
7907 * frame.c (remove_prev_frame): New function.
7908 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7909 remove_prev_frame.
7910
7911 2014-05-29 Pedro Alves <palves@redhat.com>
7912
7913 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7914 and make it const. When a single-step decays to a continue,
7915 clear 'step', not 'hw_step'. Pass whether the caller wanted
7916 to step to user_visible_resume_ptid, not what we ask the
7917 target to do.
7918
7919 2014-05-29 Pedro Alves <palves@redhat.com>
7920
7921 * infrun.c (process_event_stop_test, handle_step_into_function)
7922 (handle_step_into_function_backward): Adjust.
7923 Don't set the even thread's stop_step and call stop_waiting before
7924 calling end_stepping_range. Instead do that ...
7925 (end_stepping_range): ... here. Take an ecs pointer parameter.
7926
7927 2014-05-29 Pedro Alves <palves@redhat.com>
7928
7929 * infrun.c (stop_stepping): Rename to ...
7930 (stop_waiting): ... this.
7931 (proceed): Update comment.
7932 (process_event_stop_test, handle_inferior_event)
7933 (handle_signal_stop, handle_step_into_function)
7934 (handle_step_into_function_backward): Update.
7935
7936 2014-05-29 Pedro Alves <palves@redhat.com>
7937
7938 * infcall.c (run_inferior_call): Don't check whether the current
7939 thread is running after the proceed call.
7940
7941 2014-05-29 Pedro Alves <palves@redhat.com>
7942 Tom Tromey <tromey@redhat.com>
7943
7944 * NEWS: Mention "maint set target-async", "set mi-async", and that
7945 background execution commands are now always available.
7946 * target.h (target_async_permitted): Update comment.
7947 * target.c (target_async_permitted, target_async_permitted_1):
7948 Default to 1.
7949 (set_target_async_command): Rename to ...
7950 (maint_set_target_async_command): ... this.
7951 (show_target_async_command): Rename to ...
7952 (maint_show_target_async_command): ... this.
7953 (_initialize_target): Adjust.
7954 * infcmd.c (prepare_execution_command): Make extern.
7955 * inferior.h (prepare_execution_command): Declare.
7956 * infrun.c (set_observer_mode): Leave target async alone.
7957 * mi/mi-interp.c (mi_interpreter_init): Install
7958 mi_on_sync_execution_done as sync_execution_done observer.
7959 (mi_on_sync_execution_done): New function.
7960 (mi_execute_command_input_handler): Don't print the prompt if we
7961 just started a synchronous command with an async target.
7962 (mi_on_resume): Check sync_execution before printing prompt.
7963 * mi/mi-main.h (mi_async_p): Declare.
7964 * mi/mi-main.c: Include gdbcmd.h.
7965 (mi_async_p): New function.
7966 (mi_async, mi_async_1): New globals.
7967 (set_mi_async_command, show_mi_async_command, mi_async): New
7968 functions.
7969 (exec_continue): Call prepare_execution_command.
7970 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7971 (mi_execute_async_cli_command): Use mi_async_p.
7972 (_initialize_mi_main): Install "set mi-async". Make
7973 "target-async" a deprecated alias.
7974
7975 2014-05-29 Pedro Alves <palves@redhat.com>
7976
7977 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7978 (_initialize_cli_interp): Adjust.
7979 * event-loop.c: Include "observer.h".
7980 (start_event_loop): Notify 'command_error' observers instead of
7981 calling display_gdb_prompt. Remove FIXME comment.
7982 * event-top.c (display_gdb_prompt): Remove call into the
7983 interpreters.
7984 * inf-loop.c: Include "observer.h".
7985 (inferior_event_handler): Notify 'command_error' observers instead
7986 of calling display_gdb_prompt.
7987 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7988 observers instead of calling display_gdb_prompt.
7989 * interps.c (interp_set): Don't call display_gdb_prompt.
7990 (current_interp_display_prompt_p): Delete.
7991 * interps.h (interp_prompt_p): Delete declaration.
7992 (interp_prompt_p_ftype): Delete.
7993 (struct interp_procs) <prompt_proc_p>: Delete field.
7994 (current_interp_display_prompt_p): Delete declaration.
7995 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7996 (_initialize_mi_interp): Adjust.
7997 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7998 'command_error' observers.
7999 (tui_on_sync_execution_done, tui_on_command_error): New
8000 functions.
8001 (tui_display_prompt_p): Delete.
8002 (_initialize_tui_interp): Adjust.
8003
8004 2014-05-29 Pedro Alves <palves@redhat.com>
8005
8006 PR gdb/13860
8007 * cli/cli-interp.c: Include infrun.h and observer.h.
8008 (cli_uiout, cli_interp): New globals.
8009 (cli_on_signal_received, cli_on_end_stepping_range)
8010 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8011 functions.
8012 (cli_interpreter_init): Install them as 'end_stepping_range',
8013 'signal_received' 'signal_exited', 'exited' and 'no_history'
8014 observers.
8015 (_initialize_cli_interp): Remove cli_interp local.
8016 * infrun.c (handle_inferior_event): Call the several stop reason
8017 observers instead of printing the stop reason directly.
8018 (end_stepping_range): New function.
8019 (print_end_stepping_range_reason, print_signal_exited_reason)
8020 (print_exited_reason, print_signal_received_reason)
8021 (print_no_history_reason): Make static, and add an uiout
8022 parameter. Print to that instead of to CURRENT_UIOUT.
8023 * infrun.h (print_end_stepping_range_reason)
8024 (print_signal_exited_reason, print_exited_reason)
8025 (print_signal_received_reason print_no_history_reason): New
8026 declarations.
8027 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8028 'mi_uiout'.
8029 <cli_uiout>: New field.
8030 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8031 uiout for CLI output. Install 'signal_received',
8032 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8033 observers.
8034 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8035 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8036 (mi_on_no_history): New functions.
8037 (ui_out_free_cleanup): Delete function.
8038 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8039 instead use the one already stored in the MI interpreter data.
8040 (mi_ui_out): Adjust.
8041 * tui/tui-interp.c: Include infrun.h and observer.h.
8042 (tui_interp): New global.
8043 (tui_on_signal_received, tui_on_end_stepping_range)
8044 (tui_on_signal_exited, tui_on_exited)
8045 (tui_on_no_history): New functions.
8046 (tui_init): Install them as 'end_stepping_range',
8047 'signal_received' 'signal_exited', 'exited' and 'no_history'
8048 observers.
8049 (_initialize_tui_interp): Delete tui_interp local.
8050
8051 2014-05-29 Pedro Alves <palves@redhat.com>
8052
8053 PR gdb/15713
8054 * linux-nat.c (linux_nat_resume_callback): Rename the second
8055 parameter to 'except'. Skip LP if it points to EXCEPT.
8056 (linux_nat_resume): Don't mark the event lwp as not stopped
8057 before resuming sibling lwps. Instead ask
8058 linux_nat_resume_callback to skip the event lwp. Mark it as not
8059 stopped after actually resuming it.
8060 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8061 resuming it.
8062 (wait_lwp): Mark the lwp as stopped here.
8063 (stop_wait_callback): Mark the lwp as not stopped right after
8064 resuming it. Don't mark lwps as stopped here.
8065 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8066 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8067
8068 2014-05-29 Pedro Alves <palves@redhat.com>
8069
8070 PR PR15693
8071 * infrun.c (resume): Determine how much to resume depending on
8072 whether the caller wanted a step, not whether we can hardware step
8073 the target. Mark all threads that we intend to run as running,
8074 unless we're calling an inferior function.
8075 (normal_stop): If the thread is running an infcall, don't finish
8076 thread state.
8077 * target.c (target_resume): Don't mark threads as running here.
8078
8079 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8080
8081 * serial.c (_initialize_serial): Remove support for
8082 the "set remotebaud" and "show remotebaud" commands.
8083 * NEWS: Add entry documenting the removal of that command.
8084
8085 2014-05-28 Yao Qi <yao@codesourcery.com>
8086
8087 * charset.c: Fix typo in comments.
8088
8089 2014-05-27 Gary Benson <gbenson@redhat.com>
8090
8091 * utils.c (internal_vproblem): Prompt for a bug report.
8092
8093 2014-05-26 Andy Wingo <wingo@igalia.com>
8094
8095 * guile/scm-arch.c (arscm_mark_arch_smob):
8096 * guile/scm-block.c (bkscm_mark_block_smob)
8097 (bkscm_mark_block_syms_progress_smob):
8098 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8099 * guile/scm-exception.c (exscm_mark_exception_smob):
8100 * guile/scm-frame.c (frscm_mark_frame_smob):
8101 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8102 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8103 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8104 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8105 (ppscm_mark_pretty_printer_worker_smob):
8106 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8107 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8108 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8109 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8110 mark functions.
8111 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8112 function.
8113
8114 2014-05-26 Andy Wingo <wingo@igalia.com>
8115 Doug Evans <xdje42@gmail.com>
8116
8117 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8118 empty_base_class. All uses updated.
8119 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8120 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8121 Adapt all callers.
8122 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8123 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8124 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8125 (gdbscm_gsmob_has_property_p, add_property_name)
8126 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8127 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8128 (gdb-object-has-property?, gdb-object-properties): Remove.
8129 (gdb-object-kind): Renamed from gsmob-kind.
8130
8131 2014-05-26 Andy Wingo <wingo@igalia.com>
8132
8133 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8134 * configure: Regenerate.
8135
8136 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8137
8138 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8139
8140 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8141
8142 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8143 (replay_memory_access_read_only, replay_memory_access_read_write)
8144 (replay_memory_access_types, replay_memory_access)
8145 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8146 (cmd_set_record_btrace, cmd_show_record_btrace)
8147 (cmd_show_replay_memory_access): New.
8148 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8149 (record_btrace_remove_breakpoint): Replace
8150 record_btrace_allow_memory_access with replay_memory_access.
8151 (_initialize_record_btrace): Add commands.
8152 * NEWS: Announce it.
8153
8154 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8155
8156 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8157
8158 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8159
8160 * MAINTAINERS (Write After Approval): Move self back from
8161 paper trail.
8162
8163 2014-05-22 Pedro Alves <palves@redhat.com>
8164
8165 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8166 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8167 (disable_randomization, enum exec_direction_kind)
8168 (execution_direction, stop_registers, start_remote)
8169 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8170 (wait_for_inferior, normal_stop, get_last_target_status)
8171 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8172 (insert_step_resume_breakpoint_at_sal)
8173 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8174 (set_step_info, print_stop_event, signal_stop_state)
8175 (signal_print_state, signal_pass_state, signal_stop_update)
8176 (signal_print_update, signal_pass_update)
8177 (update_signals_program_target, clear_exit_convenience_vars)
8178 (displaced_step_dump_bytes, update_observer_mode)
8179 (signal_catch_update, gdb_signal_from_command): Move
8180 declarations ...
8181 * infrun.h: ... to this new file.
8182 * amd64-tdep.c: Include infrun.h.
8183 * annotate.c: Include infrun.h.
8184 * arch-utils.c: Include infrun.h.
8185 * arm-linux-tdep.c: Include infrun.h.
8186 * arm-tdep.c: Include infrun.h.
8187 * break-catch-sig.c: Include infrun.h.
8188 * breakpoint.c: Include infrun.h.
8189 * common/agent.c: Include infrun.h instead of inferior.h.
8190 * corelow.c: Include infrun.h.
8191 * event-top.c: Include infrun.h.
8192 * go32-nat.c: Include infrun.h.
8193 * i386-tdep.c: Include infrun.h.
8194 * inf-loop.c: Include infrun.h.
8195 * infcall.c: Include infrun.h.
8196 * infcmd.c: Include infrun.h.
8197 * infrun.c: Include infrun.h.
8198 * linux-fork.c: Include infrun.h.
8199 * linux-nat.c: Include infrun.h.
8200 * linux-thread-db.c: Include infrun.h.
8201 * monitor.c: Include infrun.h.
8202 * nto-tdep.c: Include infrun.h.
8203 * procfs.c: Include infrun.h.
8204 * record-btrace.c: Include infrun.h.
8205 * record-full.c: Include infrun.h.
8206 * remote-m32r-sdi.c: Include infrun.h.
8207 * remote-mips.c: Include infrun.h.
8208 * remote-notif.c: Include infrun.h.
8209 * remote-sim.c: Include infrun.h.
8210 * remote.c: Include infrun.h.
8211 * reverse.c: Include infrun.h.
8212 * rs6000-tdep.c: Include infrun.h.
8213 * s390-linux-tdep.c: Include infrun.h.
8214 * solib-irix.c: Include infrun.h.
8215 * solib-osf.c: Include infrun.h.
8216 * solib-svr4.c: Include infrun.h.
8217 * target.c: Include infrun.h.
8218 * top.c: Include infrun.h.
8219 * windows-nat.c: Include infrun.h.
8220 * mi/mi-interp.c: Include infrun.h.
8221 * mi/mi-main.c: Include infrun.h.
8222 * python/py-threadevent.c: Include infrun.h.
8223
8224 2014-05-22 Pedro Alves <palves@redhat.com>
8225
8226 * infrun.c (handle_inferior_event): Store the exit code for
8227 --return-child-result here, instead of ...
8228 (print_exited_reason): ... here.
8229
8230 2014-05-21 Pedro Alves <palves@redhat.com>
8231
8232 PR gdb/13860
8233 * gdbthread.h (struct thread_control_state): New field
8234 `command_interp'.
8235 * infrun.c (follow_fork): Copy the new thread control field to the
8236 child fork thread.
8237 (clear_proceed_status_thread): Clear the new thread control field.
8238 (proceed): Set the new thread control field.
8239 * interps.h (command_interp): Declare.
8240 * interps.c (command_interpreter): New global.
8241 (command_interp): New function.
8242 (interp_exec): Set `command_interpreter' while here.
8243 * cli-out.c (cli_uiout_dtor): New function.
8244 (cli_ui_out_impl): Install it.
8245 * mi/mi-interp.c: Include cli-out.h.
8246 (mi_cmd_interpreter_exec): Add comment.
8247 (restore_current_uiout_cleanup): New function.
8248 (ui_out_free_cleanup): New function.
8249 (mi_on_normal_stop): If finishing an execution command started by
8250 a CLI command, or any kind of breakpoint-like event triggered,
8251 print the stop event to the output (CLI) stream.
8252 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8253
8254 2014-05-21 Pedro Alves <palves@redhat.com>
8255
8256 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8257 current source line having changed.
8258 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8259 * infrun.c (normal_stop): Adjust call to
8260 set_current_sal_from_frame.
8261 * source.c (clear_lines_listed_range): New function.
8262 (set_current_source_symtab_and_line, identify_source_line): Clear
8263 the lines listed range.
8264 (line_info): Handle the first "info line" after the current source
8265 line having changed.
8266 * stack.c (print_stack_frame): Remove center handling.
8267 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8268 center sal.line.
8269
8270 2014-05-21 Pedro Alves <palves@redhat.com>
8271
8272 * inf-child.c (inf_child_mourn_inferior): New function.
8273 * inf-child.h (inf_child_mourn_inferior): New declaration.
8274 * darwin-nat.c (darwin_mourn_inferior): Use
8275 inf_child_mourn_inferior.
8276 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8277 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8278 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8279 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8280 * windows-nat.c (windows_mourn_inferior): Likewise.
8281
8282 2014-05-21 Doug Evans <xdje42@gmail.com>
8283
8284 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8285
8286 2014-05-21 Doug Evans <xdje42@gmail.com>
8287
8288 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8289 (gdbscm_out_of_range_error): Ditto.
8290 (gdbscm_memory_error): Ditto.
8291 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8292 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8293 (gdbscm_out_of_range_error): Update.
8294 (gdbscm_memory_error): Update.
8295 (gdbscm_scm_to_target_string_unsafe): Delete.
8296
8297 2014-05-21 Pedro Alves <palves@redhat.com>
8298
8299 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8300 globals.
8301 (inf_child_open_target): New function.
8302 (inf_child_open): Use inf_child_open_target to push the target
8303 instead of erroring out.
8304 (inf_child_disconnect, inf_child_close)
8305 (inf_child_maybe_unpush_target): New functions.
8306 (inf_child_target): Install inf_child_disconnect and
8307 inf_child_close. Store a pointer to the returned object.
8308 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8309 declarations.
8310 * target.c (auto_connect_native_target): New global.
8311 (show_default_run_target): New function.
8312 (find_default_run_target): Return NULL if automatically connecting
8313 to the native target is disabled.
8314 (_initialize_target): Install set/show auto-connect-native-target.
8315 * NEWS: Mention "set auto-connect-native-target", and "target
8316 native".
8317 * linux-nat.c (super_close): New global.
8318 (linux_nat_close): Call super_close.
8319 (linux_nat_add_target): Store a pointer to the base class's
8320 to_close method.
8321 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8322 inf_child_maybe_unpush.
8323 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8324 already pushed.
8325 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8326 the inferior. Use inf_child_maybe_unpush_target.
8327 (inf_ttrace_attach): Don't push the target if it is already
8328 pushed.
8329 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8330 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8331 after mourning the inferior. Use inf_child_maybe_unpush_target.
8332 (darwin_attach_pid): Don't push the target if it is already
8333 pushed.
8334 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8335 mourning the inferior. Use inf_child_maybe_unpush_target.
8336 (gnu_detach): Use inf_child_maybe_unpush_target.
8337 * go32-nat.c (go32_create_inferior): Don't push the target if it
8338 is already pushed.
8339 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8340 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8341 (procfs_open): Rename to ...
8342 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8343 comments. Can target_preopen before changing node. Call
8344 inf_child_open_target to push the target explicitly.
8345 (procfs_attach): Don't push the target if it is already pushed.
8346 (procfs_detach): Use inf_child_maybe_unpush_target.
8347 (procfs_create_inferior): Don't push the target if it is already
8348 pushed.
8349 (nto_native_ops): New global.
8350 (procfs_open): Reimplement.
8351 (procfs_native_open): New function.
8352 (init_procfs_targets): Install procfs_native_open as to_open of
8353 "target native". Store a pointer to the "native" target in
8354 nto_native_ops.
8355 * procfs.c (procfs_attach): Don't push the target if it is already
8356 pushed.
8357 (procfs_detach): Use inf_child_maybe_unpush_target.
8358 (procfs_mourn_inferior): Only unpush the target after mourning the
8359 inferior. Use inf_child_maybe_unpush_target.
8360 (procfs_init_inferior): Don't push the target if it is already
8361 pushed.
8362 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8363 if it is already pushed.
8364
8365 2014-05-21 Pedro Alves <palves@redhat.com>
8366
8367 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8368 and "procfs" targets are now called "native" instead.
8369
8370 2014-05-21 Pedro Alves <palves@redhat.com>
8371
8372 * go32-nat.c (go32_open): Delete.
8373 (go32_target): Don't override the to_open method.
8374
8375 2014-05-21 Pedro Alves <palves@redhat.com>
8376
8377 * nto-procfs.c (procfs_can_run): New function.
8378 (nto_procfs_ops): New global.
8379 (init_procfs_targets): New, based on procfs_target. Install
8380 "target native" in addition to "target procfs".
8381 (_initialize_procfs): Call init_procfs_targets instead of adding
8382 the target here.
8383
8384 2014-05-21 Pedro Alves <palves@redhat.com>
8385
8386 * windows-nat.c (windows_target): Don't override to_shortname,
8387 to_longname or to_doc.
8388
8389 2014-05-21 Pedro Alves <palves@redhat.com>
8390
8391 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8392 to_doc.
8393
8394 2014-05-21 Pedro Alves <palves@redhat.com>
8395
8396 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8397 to_shortname, to_longname or to_doc.
8398
8399 2014-05-21 Pedro Alves <palves@redhat.com>
8400
8401 * go32-nat.c (go32_target): Don't override to_shortname,
8402 to_longname or to_doc.
8403
8404 2014-05-21 Pedro Alves <palves@redhat.com>
8405
8406 * inf-child.c (inf_child_open): Remove mention of "child".
8407 (inf_child_target): Rename target to "native" instead of "child".
8408
8409 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8410
8411 * Makefile.in (SFILES): Delete "regset.c".
8412 (COMMON_OBS): Delete "regset.o".
8413 * regset.c: Remove.
8414 * regset.h (regset_alloc): Delete prototype.
8415
8416 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8417
8418 * sparc-linux-tdep.c (sparc32_linux_gregset)
8419 (sparc32_linux_fpregset): New static regset structures.
8420 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8421 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8422 'fpregset' fields.
8423 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8424 (sparc64_linux_fpregset): New static regset structures.
8425 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8426 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8427 New static regset structures.
8428 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8429 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8430 New static regset structures.
8431 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8432 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8433 New static regset structures.
8434 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8435 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8436 New static regset structures.
8437 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8438
8439 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8440
8441 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8442 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8443 register maps ("regmaps") from "*regset" to "*regmap". Do this
8444 for all regmap types and variables.
8445 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8446 (sparc32_linux_supply_core_gregset)
8447 (sparc32_linux_collect_core_gregset)
8448 (sparc32_linux_supply_core_fpregset)
8449 (sparc32_linux_collect_core_fpregset): Likewise.
8450 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8451 (sparc_gregmap, sparc_fpregmap): ... these.
8452 (sparc_supply_gregset, sparc_collect_gregset)
8453 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8454 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8455 (_initialize_sparc_nat): Rename regmaps.
8456 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8457 (sparc_gregmap, sparc_fpregmap): ... these.
8458 (sparc_supply_gregset, sparc_collect_gregset)
8459 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8460 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8461 Rename macros to...
8462 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8463 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8464 Likewise.
8465 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8466 Rename to...
8467 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8468 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8469 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8470 regmaps.
8471 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8472 (sparc32_bsd_fpregset): Rename to...
8473 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8474 (sparc32_bsd_fpregmap): ... these.
8475 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8476 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8477 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8478 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8479 (struct sparc_gregmap, struct sparc_fpregmap)
8480 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8481 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8482 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8483 (sparc32_supply_regset, sparc32_collect_gregset)
8484 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8485 prototypes.
8486 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8487 (sparc64_linux_ptrace_gregmap): ... this.
8488 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8489 (_initialize_sparc64_linux_nat): Rename regmaps.
8490 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8491 (sparc64_linux_core_gregmap): ... this.
8492 (sparc64_linux_supply_core_gregset)
8493 (sparc64_linux_collect_core_gregset)
8494 (sparc64_linux_supply_core_fpregset)
8495 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8496 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8497 (sparc64_sol2_fpregset): Rename to...
8498 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8499 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8500 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8501 regmaps.
8502 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8503 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8504 (sparc64_bsd_fpregset): Rename to...
8505 (struct sparc_gregmap, sparc64_sol2_gregmap)
8506 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8507 (sparc64_bsd_fpregmap): ... these.
8508 (sparc64_supply_gregset, sparc64_collect_gregset)
8509 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8510 prototypes.
8511 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8512 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8513 (sparc64fbsd_gregmap): ... this.
8514 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8515 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8516 Rename regmaps.
8517 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8518 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8519 (sparc64nbsd_collect_fpregset): Likewise.
8520 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8521 (sparc64nbsd_gregmap): ... this.
8522 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8523 regmaps.
8524 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8525 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8526 (sparc64obsd_gregmap): ... this.
8527 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8528 regmaps.
8529 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8530 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8531 (sparc32nbsd_gregmap): ... this.
8532 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8533 regmaps.
8534
8535 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8536
8537 * score-tdep.c (score7_linux_gregset): New static regset
8538 structure.
8539 (score7_linux_regset_from_core_section): Remove dynamic regset
8540 allocation.
8541 (score_gdbarch_init): Drop allocation of tdep structure.
8542 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8543
8544 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8545
8546 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8547 regset structures.
8548 (am33_regset_from_core_section): Remove dynamic regset
8549 allocations.
8550
8551 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8552
8553 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8554 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8555 structures.
8556 (mips_linux_regset_from_core_section): Remove dynamic regset
8557 allocations.
8558 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8559 'gregset64', 'fpregset', and 'fpregset64'.
8560 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8561 deleted tdep fields.
8562
8563 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8564
8565 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8566 regset structures.
8567 (amd64_regset_from_core_section): Remove dynamic regset
8568 allocations.
8569 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8570 structure.
8571 (amd64obsd_regset_from_core_section): Remove dynamic regset
8572 allocation.
8573 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8574 Likewise.
8575 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8576 x86-common regset supply function.
8577 * i386-tdep.c (i386_collect_gregset): Make static.
8578 (i386_gregset): New global regset structure.
8579 (i386_fpregset, i386_xstateregset): New static regset structures.
8580 (i386_regset_from_core_section): Remove dynamic regset
8581 allocations.
8582 (i386_gdbarch_init): Remove initialization of tdep fields
8583 'gregset', 'fpregset', and 'xstateregset'.
8584 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8585 'fpregset', and 'xstateregset'.
8586 (i386_collect_gregset): Remove prototype.
8587 (i386_gregset): New declaration.
8588 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8589 structure.
8590 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8591 allocation.
8592
8593 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8594
8595 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8596 (arm_linux_vfpregset): New static regset structures.
8597 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8598 regset structures.
8599 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8600 and 'vfpregset' fields.
8601
8602 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8603
8604 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8605 (aarch64_linux_fpregset): New static regset structures.
8606 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8607 of regset structures.
8608 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8609 'fpregset' fields.
8610
8611 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8612
8613 * regset.h (struct regset): Remove gdbarch field.
8614 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8615 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8616 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8617 Likewise.
8618 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8619 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8620 (ppc32_linux_vsxregset): Likewise.
8621 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8622 via the regcache instead of the regset.
8623 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8624 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8625 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8626 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8627 Likewise.
8628
8629 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8630
8631 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8632 Constify structures.
8633 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8634 (alphanbsd_aout_gregset): Likewise.
8635 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8636 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8637 Likewise.
8638 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8639 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8640 Likewise.
8641 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8642 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8643 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8644 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8645 * m88k-tdep.c (m88k_gregset): Likewise.
8646 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8647 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8648 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8649 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8650 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8651 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8652 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8653 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8654 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8655 Likewise.
8656 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8657 * sh-tdep.h (sh_corefile_gregset): Likewise.
8658 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8659 * vax-tdep.c (vax_gregset): Likewise.
8660
8661 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8662
8663 Fix TLS access for -static -pthread.
8664 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8665 (try_thread_db_load_1): Initialize it.
8666 (thread_db_get_thread_local_address): Call it if LM is zero.
8667 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8668 * target.h (struct target_ops) (to_get_thread_local_address): Add
8669 load_module_addr comment.
8670
8671 2014-05-21 Pedro Alves <palves@redhat.com>
8672
8673 * dcache.c (dcache_read_memory_partial): If reading the cache line
8674 fails, fallback to reading just the memory the caller wanted.
8675
8676 2014-05-20 Doug Evans <dje@google.com>
8677
8678 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8679 instead of get_current_arch.
8680
8681 2014-05-20 Pedro Alves <palves@redhat.com>
8682
8683 * NEWS: Mention that compare-sections now works with all targets.
8684
8685 * remote.c (PACKET_qCRC): New enum value.
8686 (remote_verify_memory): Don't send qCRC if the target has no
8687 execution. Use packet_support/packet_ok. If the target doesn't
8688 support the qCRC packet, fallback to a deep memory copy.
8689 (compare_sections_command): Say "target image" instead of "remote
8690 executable".
8691 (_initialize_remote): Add PACKET_qCRC to the list of config
8692 packets that have no associated command. Extend comment.
8693 * target.c (simple_verify_memory, default_verify_memory): New
8694 function.
8695 * target.h (struct target_ops) <to_verify_memory>: Default to
8696 default_verify_memory.
8697 (simple_verify_memory): New declaration.
8698 * target-delegates.c: Regenerate.
8699
8700 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8701
8702 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8703
8704 2014-05-20 Hui Zhu <hui@codesourcery.com>
8705 Yao Qi <yao@codesourcery.com>
8706
8707 PR backtrace/16558
8708 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8709 and change address of sp and pc.
8710
8711 2014-05-19 Tom Tromey <tromey@redhat.com>
8712
8713 * gdbtypes.c (rank_function): Use XNEWVEC.
8714 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8715
8716 2014-05-19 Doug Evans <dje@google.com>
8717
8718 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8719 build_type_unit_groups and moved closer to only caller. Remove
8720 arguments. All references updated. Remove outdated .gdb_index
8721 comment.
8722 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8723 build_type_psymtabs_1.
8724
8725 2014-05-19 Doug Evans <dje@google.com>
8726
8727 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8728 n_type_unit_groups, all_type_unit_groups. All uses removed.
8729 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8730 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8731 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8732 (add_type_unit_group_to_table): Delete.
8733
8734 2014-05-19 Doug Evans <dje@google.com>
8735
8736 * eval.c (evaluate_subexp_standard): Add some comments.
8737
8738 2014-05-17 Doug Evans <xdje42@gmail.com>
8739
8740 * progspace.c (remove_program_space): Delete, unused.
8741 * progspace.h (remove_program_space): Ditto.
8742
8743 2014-05-17 Doug Evans <xdje42@gmail.com>
8744
8745 * inferior.c (prune_inferiors): Fix comment.
8746 (remove_inferior_command): Call prune_program_spaces.
8747
8748 2014-05-16 Doug Evans <dje@google.com>
8749
8750 New command line option -D.
8751 * NEWS: Mention it.
8752 * main.c (set_gdb_data_directory): New function.
8753 (captured_main): Recognize -D. Flag error for --data-directory "".
8754 Call set_gdb_data_directory.
8755 (print_gdb_help): Print --data-directory, -D.
8756 * main.h (set_gdb_data_directory): Declare.
8757 * top.c (staged_gdb_datadir): New static global.
8758 (set_gdb_datadir): Call set_gdb_data_directory
8759 (show_gdb_datadir): New function.
8760 (init_main): Update init of data-directory parameter.
8761
8762 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8763
8764 Import the "dirfd" gnulib module.
8765 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8766 * gnulib/aclocal.m4: Update.
8767 * gnulib/config.in: Update.
8768 * gnulib/configure: Update.
8769 * gnulib/import/Makefile.am: Update.
8770 * gnulib/import/Makefile.in: Update.
8771 * gnulib/import/dirfd.c: New.
8772 * gnulib/import/m4/dirfd.m4: New.
8773 * gnulib/import/m4/gnulib-cache.m4: Update.
8774 * gnulib/import/m4/gnulib-comp.m4: Update.
8775
8776 2014-05-16 Pierre Muller <muller@sourceware.org>
8777 Yao Qi <yao@codesourcery.com>
8778
8779 * valprint.c (print_wchar): Move the code on checking whether
8780 W is a printable wide char to the default branch of switch
8781 statement below. Call wchar_printable instead of gdb_iswprint.
8782
8783 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8784
8785 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8786 ldr.w and ldrd instructions.
8787
8788 2014-05-15 Doug Evans <dje@google.com>
8789
8790 * dwarf2read.c (read_structure_type): Delete outdated comments.
8791
8792 2014-05-14 Tom Tromey <tromey@redhat.com>
8793
8794 * macrocmd.c (print_macro_definition): Reindent.
8795
8796 2014-05-13 Doug Evans <xdje42@gmail.com>
8797
8798 * python/py-cmd.c (cmdpy_completer): Add comment.
8799 (completers): Make const.
8800
8801 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8802
8803 * infrun.c (resume): Remove should_resume (unused). Move up
8804 declaration of resume_ptid.
8805
8806 2014-05-13 Tom Tromey <tromey@redhat.com>
8807
8808 * language.h (unop_type_check): Remove.
8809 (binop_type_check): Don't declare.
8810
8811 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8812
8813 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8814 call to regcache_raw_collect.
8815
8816 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8817
8818 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8819 mi_console->quote as the quoting character.
8820
8821 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8822
8823 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8824
8825 2014-04-29 Tom Tromey <tromey@redhat.com>
8826
8827 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8828 "show debug varobj".
8829
8830 2014-05-07 Kyle McMartin <kyle@redhat.com>
8831
8832 Pushed by Joel Brobecker <brobecker@adacore.com>.
8833 * aarch64-tdep.c (aarch64_software_single_step): New function.
8834 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8835 with aarch64_software_single_step.
8836
8837 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8838
8839 GDB 7.7.1 released.
8840
8841 2014-05-05 Keith Seitz <keiths@redhat.com>
8842
8843 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8844 variable or history value is successfully parsed.
8845
8846 2014-05-05 Yao Qi <yao@codesourcery.com>
8847 Pedro Alves <palves@redhat.com>
8848
8849 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8850 address of blocks that intersects the requested range. Trim
8851 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8852 sections.
8853 * ctf.c (ctf_xfer_partial): Likewise.
8854
8855 2014-05-05 Yao Qi <yao@codesourcery.com>
8856
8857 * printcmd.c (display_command): Remove the check to
8858 target_has_execution.
8859
8860 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8861
8862 * ppcobsd-nat.c: Include "obsd-nat.h".
8863 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8864 add_target.
8865 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8866
8867 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8868
8869 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8870 and 16-bit signed and unsigned arguments. Update comment.
8871 (stap_parse_probe_arguments): Extend code to handle such
8872 arguments. Use warning instead of complaint to notify about
8873 unrecognized bitness.
8874
8875 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8876
8877 PR breakpoints/16889
8878 * stap-probe.c (stap_parse_probe_arguments): Simplify
8879 check for non-prefixed probes (i.e., probes whose
8880 arguments do not start with "N@"). Always set the
8881 argument type to a sane value.
8882
8883 2014-05-01 David Taylor <dtaylor@emc.com>
8884
8885 * remote.c (compare_sections_command): Add -r option to compare
8886 all loadable read-only sections.
8887
8888 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8889
8890 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8891 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8892 Update all callers.
8893 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8894 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8895 Remove unused CORE_ADDR argument. Update all callers.
8896
8897 2014-04-29 Pedro Alves <palves@redhat.com>
8898
8899 * remote.c (struct packet_config) <detect>: Extend comment.
8900 (add_packet_config_cmd): Don't set the config's detect or support
8901 fields here.
8902 (init_all_packet_configs): Also initialize the config's 'detect'
8903 field.
8904 (reset_all_packet_configs_support): New function.
8905 (remote_open_1): Call reset_all_packet_configs_support instead of
8906 init_all_packet_configs.
8907 (_initialize_remote): Initialize all packet configs. Assert that
8908 all packets have an associated command, except a few known
8909 outliers.
8910
8911 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8912
8913 * dwarf2read.c (read_subrange_type): Handle dynamic
8914 DW_AT_lower_bound attributes.
8915
8916 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8917
8918 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8919 dynamic bounds before computing its upper bound.
8920 (ada_discrete_type_low_bound): Same as above with the lower bound.
8921
8922 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8923
8924 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8925 range types. Adjust the array handling implementation to
8926 take advantage of this change.
8927 (resolve_dynamic_range): New function, mostly extracted from
8928 resolve_dynamic_bounds.
8929 (resolve_dynamic_array): New function, mostly extracted from
8930 resolve_dynamic_bounds.
8931 (resolve_dynamic_bounds): Delete.
8932 (resolve_dynamic_type): Reimplement. Add handling of
8933 TYPE_CODE_RANGE types.
8934
8935 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8936
8937 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8938 handling of parallel ___XA types.
8939
8940 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8941
8942 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8943 unnecessary second call to static_unwrap_type.
8944
8945 2014-04-27 Hui Zhu <hui@codesourcery.com>
8946
8947 * stack.c (print_frame_info): Call do_gdb_disassembly with
8948 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8949
8950 2014-04-26 Doug Evans <xdje42@gmail.com>
8951
8952 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8953
8954 2014-04-25 Pedro Alves <palves@redhat.com>
8955
8956 PR server/16255
8957 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8958 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8959 and newline from built string.
8960 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8961 (linux_ptrace_attach_fail_reason): ... this.
8962 * linux-nat.c (linux_nat_attach): Adjust to use
8963 linux_ptrace_attach_fail_reason.
8964
8965 2014-04-25 Pedro Alves <palves@redhat.com>
8966
8967 * remote.c (struct remote_state): Remove multi_process_aware,
8968 non_stop_aware, cond_tracepoints, cond_breakpoints,
8969 breakpoint_commands, fast_tracepoints, static_tracepoints,
8970 install_in_trace, disconnected_tracing,
8971 enable_disable_tracepoints, string_tracing, and
8972 augmented_libraries_svr4_read fields.
8973 (remote_multi_process_p): Move further below in the file.
8974 (struct packet_config): Add comments.
8975 (update_packet_config): Delete function.
8976 (show_packet_config_cmd): Use packet_config_support.
8977 (add_packet_config_cmd): Use NULL as set callback.
8978 (packet_ok): "set remote foo-packet"-style commands no longer
8979 change config->supported -- adjust.
8980 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8981 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8982 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8983 (PACKET_QNonStop, PACKET_multiprocess_feature)
8984 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8985 (PACKET_DisconnectedTracing_feature)
8986 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8987 (set_remote_protocol_packet_cmd): Delete function.
8988 (packet_config_support, packet_support): New functions.
8989 (set_remote_protocol_Z_packet_cmd): Don't call
8990 update_packet_config.
8991 (remote_query_attached, remote_pass_signals)
8992 (remote_program_signals, remote_threads_info)
8993 (remote_threads_extra_info, remote_start_remote): Use
8994 packet_support.
8995 (remote_start_remote): Use packet_config_support and
8996 packet_support.
8997 (init_all_packet_configs): Set all packets to unknown support,
8998 instead of calling update_packet_config.
8999 (remote_check_symbols): Use packet_support.
9000 (remote_supported_packet): Unconditionally set the packet config's
9001 support status.
9002 (remote_multi_process_feature, remote_non_stop_feature)
9003 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9004 (remote_breakpoint_commands_feature)
9005 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9006 (remote_install_in_trace_feature)
9007 (remote_disconnected_tracing_feature)
9008 (remote_enable_disable_tracepoint_feature)
9009 (remote_string_tracing_feature)
9010 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9011 (remote_protocol_features): Adjust to use remote_supported_packet
9012 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9013 "ConditionalTracepoints", "ConditionalBreakpoints",
9014 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9015 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9016 "EnableDisableTracepoints", and "tracenz".
9017 (remote_query_supported): Use packet_support.
9018 (remote_open_1): Adjust.
9019 (extended_remote_attach_1): Use packet_support. Switch on the
9020 result of packet_ok instead of checking whether the packet ended
9021 up disabled.
9022 (remote_vcont_resume): Use packet_support.
9023 (remote_resume, remote_stop_ns, fetch_register_using_p)
9024 (remote_prepare_to_store, store_register_using_P)
9025 (check_binary_download, remote_write_bytes): Use packet_support.
9026 (remote_vkill): Use packet_support. Switch on the result of
9027 packet_ok instead of checking whether the packet ended up
9028 disabled.
9029 (extended_remote_supports_disable_randomization): Use
9030 packet_support.
9031 (extended_remote_run): Switch on the result of packet_ok instead
9032 of checking whether the packet ended up disabled.
9033 (remote_insert_breakpoint, remote_remove_breakpoint)
9034 (remote_insert_watchpoint, remote_remove_watchpoint)
9035 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9036 packet_support.
9037 (remote_search_memory): Use packet_config_support.
9038 (remote_get_thread_local_address, remote_get_tib_address)
9039 (remote_hostio_send_command, remote_can_execute_reverse): Use
9040 packet_support.
9041 (remote_supports_cond_tracepoints)
9042 (remote_supports_cond_breakpoints)
9043 (remote_supports_fast_tracepoints)
9044 (remote_supports_static_tracepoints)
9045 (remote_supports_install_in_trace)
9046 (remote_supports_enable_disable_tracepoint)
9047 (remote_supports_string_tracing)
9048 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9049 the packet config says the feature is enabled or disabled.
9050 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9051 (remote_get_trace_status): Use packet_support.
9052 (remote_set_disconnected_tracing): Adjust to check whether the
9053 feature is enabled with packet_support.
9054 (remote_set_trace_buffer_size, remote_use_agent)
9055 (remote_can_use_agent, remote_supports_btrace): Use
9056 packet_support.
9057 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9058 Use packet_config_support.
9059 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9060 the packet config says the feature is enabled or disabled.
9061 (set_range_stepping): Use packet_support.
9062
9063 2014-04-25 Tom Tromey <tromey@redhat.com>
9064
9065 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9066 argument.
9067
9068 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9069
9070 * NEWS: Mention support for C99 variable length arrays.
9071
9072 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9073
9074 * ada-lang.c (standard_exc): Expand introductory comment.
9075
9076 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9077 Walfred Tedeschi <walfred.tedeschi@intel.com>
9078
9079 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9080 AVX512 registers.
9081 (amd64_linux_read_description): Add code to handle AVX512 xstate
9082 mask and return respective tdesc.
9083 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9084 and features/i386/x32-avx512-linux.c.
9085 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9086 (amd64_linux_core_read_description): Add code to handle AVX512
9087 xstate mask and return respective tdesc.
9088 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9089 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9090 calculation.
9091 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9092 (tdesc_amd64_avx512_linux): New prototype.
9093 (tdesc_x32_avx512_linux): Likewise.
9094 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9095 features/i386/x32-avx512.c.
9096 (amd64_ymm_avx512_names): New register names for pseudo
9097 registers YMM16-31.
9098 (amd64_ymmh_avx512_names): New register names for raw registers
9099 YMMH16-31.
9100 (amd64_k_names): New register names for K registers.
9101 (amd64_zmmh_names): New register names for ZMM raw registers.
9102 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9103 (amd64_xmm_avx512_names): New register names for XMM16-31
9104 registers.
9105 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9106 registers.
9107 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9108 if feature is present.
9109 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9110 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9111 (AMD64_NUM_REGS): Adjust to new number of registers.
9112 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9113 registers supplied via XSTATE by AVX512 registers.
9114 (i386_linux_read_description): Add case for AVX512.
9115 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9116 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9117 (i386_linux_core_read_description): Add case for AVX512.
9118 (i386_linux_init_abi): Install supported register note section
9119 for AVX512.
9120 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9121 AVX512.
9122 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9123 registers to be number of zmm7h + 1.
9124 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9125 * i386-tdep.c: Include features/i386/i386-avx512.c.
9126 (i386_zmm_names): Add ZMM pseudo register names array.
9127 (i386_zmmh_names): Add ZMM raw register names array.
9128 (i386_k_names): Add K raw register names array.
9129 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9130 registers. AVX512 has 16 more ZMM registers than there are YMM
9131 registers.
9132 (i386_zmmh_regnum_p): Add function to look up register number of
9133 ZMM raw registers.
9134 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9135 (i386_k_regnum_p): Likewise for K raw registers.
9136 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9137 registers added by AVX512.
9138 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9139 registers added by AVX512.
9140 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9141 added by AVX512.
9142 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9143 (i386_pseudo_register_name): Add ZMM pseudo registers.
9144 (i386_zmm_type): Construct and return vector registers type for ZMM
9145 registers.
9146 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9147 ZMM0-31 pseudo registers and K registers.
9148 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9149 and YMM16-31 registers from register cache.
9150 (i386_pseudo_register_write): Add code to write K, ZMM and
9151 YMM16-31 registers.
9152 (i386_register_reggroup_p): Add code to include/exclude AVX512
9153 registers in/from respective register groups.
9154 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9155 registers if feature is present in xcr0.
9156 (i386_gdbarch_init): Add code to initialize AVX512 feature
9157 variables in tdep structure, wire in pseudo registers and call
9158 initialize_tdesc_i386_avx512.
9159 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9160 variables.
9161 (i386_regnum): Add AVX512 registers.
9162 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9163 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9164 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9165 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9166 512 bits wide.
9167 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9168 (i386_ymm_avx512_regnum_p): Likewise.
9169 (i386_k_regnum_p): Likewise.
9170 (i386_zmm_regnum_p): Likewise.
9171 (i386_zmmh_regnum_p): Likewise.
9172 * i387-tdep.c : Update year in copyright notice.
9173 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9174 XSAVE buffer.
9175 (XSAVE_YMM_AVX512_ADDR): New macro.
9176 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9177 XSAVE buffer.
9178 (XSAVE_XMM_AVX512_ADDR): New macro.
9179 (xsave_avx512_k_offset): New table for K register offsets in
9180 XSAVE buffer.
9181 (XSAVE_AVX512_K_ADDR): New macro.
9182 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9183 in XSAVE buffer.
9184 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9185 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9186 buffer.
9187 (i387_collect_xsave): Add code to collect AVX512 registers from
9188 XSAVE buffer.
9189 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9190 of XMM16-31 registers.
9191 (I387_NUM_K_REGS): New define for number of K registers.
9192 (I387_K0_REGNUM): New define for K0 register number.
9193 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9194 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9195 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9196 registers.
9197 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9198 (I387_XMM16_REGNUM): New define for XMM16 register number.
9199 (I387_YMM0_REGNUM): New define for YMM0 register number.
9200 (I387_KEND_REGNUM): New define for last K register number.
9201 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9202 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9203 number.
9204 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9205 number.
9206 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9207 size.
9208 * features/Makefile: Add AVX512 related files.
9209 * features/i386/32bit-avx512.xml: New file.
9210 * features/i386/64bit-avx512.xml: Likewise.
9211 * features/i386/amd64-avx512-linux.c: Likewise.
9212 * features/i386/amd64-avx512-linux.xml: Likewise.
9213 * features/i386/amd64-avx512.c: Likewise.
9214 * features/i386/amd64-avx512.xml: Likewise.
9215 * features/i386/i386-avx512-linux.c: Likewise.
9216 * features/i386/i386-avx512-linux.xml: Likewise.
9217 * features/i386/i386-avx512.c: Likewise.
9218 * features/i386/i386-avx512.xml: Likewise.
9219 * features/i386/x32-avx512-linux.c: Likewise.
9220 * features/i386/x32-avx512-linux.xml: Likewise.
9221 * features/i386/x32-avx512.c: Likewise.
9222 * features/i386/x32-avx512.xml: Likewise.
9223 * regformats/i386/amd64-avx512-linux.dat: New file.
9224 * regformats/i386/amd64-avx512.dat: Likewise.
9225 * regformats/i386/i386-avx512-linux.dat: Likewise.
9226 * regformats/i386/i386-avx512.dat: Likewise.
9227 * regformats/i386/x32-avx512-linux.dat: Likewise.
9228 * regformats/i386/x32-avx512.dat: Likewise.
9229 * NEWS: Add note about new support for AVX512.
9230
9231
9232 2014-04-23 Pedro Alves <palves@redhat.com>
9233
9234 * breakpoint.c (insert_bp_location): Tolerate errors if the
9235 breakpoint is set in a user-loaded objfile.
9236 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9237 location is marked shlib_disabled. If the breakpoint is set in a
9238 user-loaded objfile is a GDB-side memory breakpoint, validate it
9239 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9240 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9241 flag.
9242 * mem-break.c (memory_validate_breakpoint): New function.
9243 * objfiles.c (userloaded_objfile_contains_address_p): New
9244 function.
9245 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9246 * target.h (memory_validate_breakpoint): New declaration.
9247
9248 2014-04-23 Pedro Alves <palves@redhat.com>
9249
9250 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9251 the breakpoint is set in a shared library, only suppress
9252 errors for software breakpoints, not hardware breakpoints.
9253
9254 2014-04-22 Pedro Alves <palves@redhat.com>
9255
9256 * infrun.c (schedlock_applies): New function, factored out from
9257 find_thread_needs_step_over.
9258 (find_thread_needs_step_over): Use it.
9259 (switch_back_to_stepped_thread): Always clear trap_expected if the
9260 step over is finished. Return early if scheduler locking applies.
9261 Look for the stepping thread and a potential step-over thread with
9262 a single loop.
9263 (currently_stepping_or_nexting_callback): Delete.
9264
9265 2014-04-22 Nick Clifton <nickc@redhat.com>
9266
9267 * NEWS: Mention that ARM sim now supports tracing.
9268
9269 2014-04-22 Yao Qi <yao@codesourcery.com>
9270
9271 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9272 to ...
9273 * tracefile.c (tracefile_fetch_registers): ... it. New
9274 function.
9275 * tracefile.h (tracefile_fetch_registers): Declare.
9276 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9277 tracefile_fetch_registers.
9278
9279 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9280
9281 PR gdb/14018
9282 * windows-nat.c (thread_rec): Don't display a warning when
9283 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9284 fails for any reason, set th->suspended to -1, so that we don't
9285 try to resume such a thread. Also, don't return NULL in these
9286 cases, to avoid completely ruin the session due to "PC register is
9287 not available" error.
9288 (do_windows_fetch_inferior_registers): Check errors in
9289 GetThreadContext call.
9290 (windows_continue): Accept an additional argument KILLED; if not
9291 zero, ignore errors in the SetThreadContext call, since the
9292 inferior was killed and is shutting down.
9293 (windows_resume, get_windows_debug_event)
9294 (windows_create_inferior, windows_mourn_inferior)
9295 (windows_kill_inferior): All callers of windows_continue changed
9296 to adjust to its new calling sequence.
9297
9298 2014-04-19 Yao Qi <yao@codesourcery.com>
9299
9300 * ctf.c (ctf_open): Call post_create_inferior.
9301
9302 2014-04-19 Yao Qi <yao@codesourcery.com>
9303
9304 * ctf.c (handle_id): New static variable.
9305 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9306 value. Get the declaration of event "register" and get length
9307 of field "contents".
9308
9309 2014-04-19 Yao Qi <yao@codesourcery.com>
9310
9311 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9312
9313 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9314
9315 * valops.c (oload_method_static): Remove unnecessary argument
9316 METHOD. Update all callers.
9317
9318 2014-04-18 Pedro alves <palves@redhat.com>
9319 Tom Tromey <tromey@redhat.com>
9320
9321 PR backtrace/15558
9322 * frame.c (get_prev_frame_1): Rename to ...
9323 (get_prev_frame_always): ... this, and make extern. Adjust.
9324 (skip_artificial_frames): Use get_prev_frame_always.
9325 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9326 (get_frame_unwind_stop_reason): Adjust to rename.
9327 * frame.h (get_prev_frame_always): Declare.
9328 * inline-frame.c: Include frame.h.
9329 (inline_frame_this_id): Use get_prev_frame_always.
9330
9331 2014-04-18 Tristan Gingold <gingold@adacore.com>
9332
9333 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9334 code by using bfd_mach_o_get_base_address.
9335
9336 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9337
9338 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9339 (spu_ax_pseudo_register_collect): New function.
9340 (spu_ax_pseudo_register_push_stack): Likewise.
9341 (spu_dwarf_reg_to_regnum): Likewise.
9342 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9343
9344 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9345
9346 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9347 Replace FRAME argument with FRAME_ID.
9348 * gdbarch.c, gdbarch.h: Regenerate.
9349 * findvar.c (default_value_from_register): Add GDBARCH argument;
9350 replace FRAME by FRAME_ID. No longer call get_frame_id.
9351 (value_from_register): Update call to gdbarch_value_from_register.
9352 * value.h (default_value_from_register): Update prototype.
9353 * s390-linux-tdep.c (s390_value_from_register): Update interface
9354 and call to default_value_from_register.
9355 * spu-tdep.c (spu_value_from_register): Likewise.
9356
9357 * findvar.c (address_from_register): Remove TYPE argument.
9358 Do not call value_from_register; use gdbarch_value_from_register
9359 with null_frame_id instead.
9360 * value.h (address_from_register): Update prototype.
9361 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9362 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9363 address_from_register interface change.
9364
9365 2014-04-17 Yao Qi <yao@codesourcery.com>
9366
9367 * gdbtypes.h: Update comments to link to types and macros'
9368 definitions.
9369
9370 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9371
9372 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9373
9374 2014-04-16 Keith Seitz <keiths@redhat.com>
9375
9376 PR gdb/15827
9377 * dwarf2read.c (skip_one_die): Check that all relative-offset
9378 sibling DIEs fall within range of the current reader's buffer.
9379 (read_partial_die): Likewise.
9380
9381 2014-04-16 Keith Seitz <keiths@redhat.com>
9382
9383 PR c++/16597
9384 * cp-namespace.c (lookup_symbol_file): If the type name of
9385 `this' is NULL, return immediately.
9386
9387 2014-04-14 Keith Seitz <keiths@redhat.com>
9388
9389 PR c++/16253
9390 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9391 from symbol_matches_domain in symtab.c. All local callers
9392 of symbol_matches_domain updated.
9393 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9394 search STRUCT_DOMAIN.
9395 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9396 independently. standard_lookup will do that automatically.
9397 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9398 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9399 (cp_lookup_symbol_in_namespace): Likewise.
9400 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9401 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9402 may return a STRUCT_DOMAIN match.
9403 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9404 * cp-support.c: Include language.h.
9405 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9406 VAR_DOMAIN.
9407 * psymtab.c (match_partial_symbol): Compare the requested
9408 domain with the symbol's domain directly.
9409 (lookup_partial_symbol): Likewise.
9410 * symtab.c (lookup_symbol_in_language): Explain when/why
9411 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9412 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9413 appropriate languages.
9414 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9415 and moved to ada-lang.c
9416 (lookup_block_symbol): Explain that this function only returns
9417 symbol matching the requested DOMAIN.
9418 Compare the requested domain with the symbol's domain directly.
9419 (iterate_over_symbols): Compare the requested domain with the
9420 symbol's domain directly.
9421 * symtab.h (symbol_matches_domain): Remove.
9422
9423 2014-04-14 Tom Tromey <tromey@redhat.com>
9424
9425 PR c++/15246:
9426 * c-exp.y (type_aggregate_p): New function.
9427 (qualified_name, classify_inner_name): Use it.
9428 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9429 and TYPE_TARGET_TYPE of an enum type.
9430 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9431 an enum type.
9432 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9433 handle TYPE_DECLARED_CLASS.
9434 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9435 types.
9436 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9437 * valops.c (enum_constant_from_type): New function.
9438 (value_aggregate_elt): Use it.
9439 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9440 TYPE_CODE_ENUM.
9441
9442 2014-04-14 Tom Tromey <tromey@redhat.com>
9443
9444 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9445 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9446 const.
9447 * value.h (value_aggregate_elt): Update.
9448
9449 2014-04-14 Tom Tromey <tromey@redhat.com>
9450
9451 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9452
9453 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9454
9455 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9456 (evaluate_subexp_standard): Pass noside argument.
9457 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9458 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9459 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9460 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9461 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9462
9463 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9464
9465 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9466 points to a constant blob.
9467
9468 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9469
9470 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9471 property and store it as the high bound and flag the range accordingly.
9472 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9473 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9474 * gdbtypes.h (enum range_flags): New enum.
9475 (struct range_bounds): Add flags member.
9476
9477 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9478
9479 * c-typeprint.c (c_type_print_varspec_suffix): Added
9480 check for not yet resolved high bound. If unresolved, print
9481 "variable length" string to the console instead of random
9482 length.
9483
9484 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9485
9486 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9487 value.
9488 (ada_template_to_fixed_record_type_1): Likewise.
9489 (ada_to_fixed_type_1): Likewise.
9490 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9491 (cp_print_value): Likewise.
9492 * d-valprint.c (dynamic_array_type): Likewise.
9493 * findvar.c (address_of_variable): Likewise.
9494 * jv-valprint.c (java_value_print): Likewise.
9495 * valops.c (value_ind): Likewise.
9496 * value.c (coerce_ref): Likewise.
9497
9498 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9499
9500 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9501 value and retrieve the dynamic type size.
9502
9503 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9504
9505 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9506 passed to sizeof is dynamic evaluate the argument to compute the length.
9507
9508 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9509 Joel Brobecker <brobecker@adacore.com>
9510
9511 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9512 (dwarf2_evaluate_property): New function.
9513 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9514 * dwarf2read.c (attr_to_dynamic_prop): New function.
9515 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9516 attribute.
9517 * gdbtypes.c: Include dwarf2loc.h.
9518 (is_dynamic_type): New function.
9519 (resolve_dynamic_type): New function.
9520 (resolve_dynamic_bounds): New function.
9521 (get_type_length): New function.
9522 (check_typedef): Use get_type_length to compute type length.
9523 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9524 (TYPE_LOW_BOUND_KIND): New macro.
9525 (is_dynamic_type): New function prototype.
9526 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9527 to resolve dynamic properties of the type. Update comment.
9528 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9529
9530 2014-04-14 Richard Henderson <rth@redhat.com>
9531
9532 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9533
9534 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9535 Doug Evans <xdje42@gmail.com>
9536
9537 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9538 dereference TYPE_CODE_REF values.
9539
9540 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9541
9542 Revert the following changes due to regressions:
9543
9544 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9545 (dwarf2_evaluate_property): New function.
9546 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9547 * dwarf2read.c (attr_to_dynamic_prop): New function.
9548 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9549 attribute.
9550 * gdbtypes.c: Include dwarf2loc.h.
9551 (is_dynamic_type): New function.
9552 (resolve_dynamic_type): New function.
9553 (resolve_dynamic_bounds): New function.
9554 (get_type_length): New function.
9555 (check_typedef): Use get_type_length to compute type length.
9556 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9557 (TYPE_LOW_BOUND_KIND): New macro.
9558 (is_dynamic_type): New function prototype.
9559 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9560 to resolve dynamic properties of the type. Update comment.
9561 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9562
9563 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9564 passed to sizeof is dynamic evaluate the argument to compute the length.
9565
9566 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9567 value and retrieve the dynamic type size.
9568
9569 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9570 (ada_template_to_fixed_record_type_1): Likewise.
9571 (ada_to_fixed_type_1): Likewise.
9572 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9573 (cp_print_value): Likewise.
9574 * d-valprint.c (dynamic_array_type): Likewise.
9575 * eval.c (evaluate_subexp_with_coercion): Likewise.
9576 * findvar.c (address_of_variable): Likewise.
9577 * jv-valprint.c (java_value_print): Likewise.
9578 * valops.c (value_ind): Likewise.
9579 * value.c (coerce_ref): Likewise.
9580
9581 * c-typeprint.c (c_type_print_varspec_suffix): Added
9582 check for not yet resolved high bound. If unresolved, print
9583 "variable length" string to the console instead of random
9584 length.
9585
9586 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9587 property and store it as the high bound and flag the range accordingly.
9588 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9589 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9590 * gdbtypes.h (enum range_flags): New enum.
9591 (struct range_bounds): Add flags member.
9592
9593 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9594 points to a constant blob.
9595
9596 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9597 (evaluate_subexp_standard): Pass noside argument.
9598 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9599 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9600 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9601 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9602 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9603
9604 2014-04-11 Keith Seitz <keiths@redhat.com>
9605
9606 PR c++/16675
9607 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9608 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9609 reference types.
9610
9611 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9612
9613 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9614 (evaluate_subexp_standard): Pass noside argument.
9615 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9616 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9617 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9618 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9619 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9620
9621 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9622
9623 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9624 points to a constant blob.
9625
9626 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9627
9628 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9629 property and store it as the high bound and flag the range accordingly.
9630 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9631 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9632 * gdbtypes.h (enum range_flags): New enum.
9633 (struct range_bounds): Add flags member.
9634
9635 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9636
9637 * c-typeprint.c (c_type_print_varspec_suffix): Added
9638 check for not yet resolved high bound. If unresolved, print
9639 "variable length" string to the console instead of random
9640 length.
9641
9642 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9643
9644 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9645 (ada_template_to_fixed_record_type_1): Likewise.
9646 (ada_to_fixed_type_1): Likewise.
9647 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9648 (cp_print_value): Likewise.
9649 * d-valprint.c (dynamic_array_type): Likewise.
9650 * eval.c (evaluate_subexp_with_coercion): Likewise.
9651 * findvar.c (address_of_variable): Likewise.
9652 * jv-valprint.c (java_value_print): Likewise.
9653 * valops.c (value_ind): Likewise.
9654 * value.c (coerce_ref): Likewise.
9655
9656 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9657
9658 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9659 value and retrieve the dynamic type size.
9660
9661 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9662
9663 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9664 passed to sizeof is dynamic evaluate the argument to compute the length.
9665
9666 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9667
9668 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9669 (dwarf2_evaluate_property): New function.
9670 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9671 * dwarf2read.c (attr_to_dynamic_prop): New function.
9672 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9673 attribute.
9674 * gdbtypes.c: Include dwarf2loc.h.
9675 (is_dynamic_type): New function.
9676 (resolve_dynamic_type): New function.
9677 (resolve_dynamic_bounds): New function.
9678 (get_type_length): New function.
9679 (check_typedef): Use get_type_length to compute type length.
9680 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9681 (TYPE_LOW_BOUND_KIND): New macro.
9682 (is_dynamic_type): New function prototype.
9683 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9684 to resolve dynamic properties of the type. Update comment.
9685 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9686
9687 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9688
9689 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9690 declaring high/low bounds and change uses accordingly. Call
9691 create_range_type instead of create_static_range_type.
9692 * gdbtypes.c (create_range_type): New function.
9693 (create_range_type): Convert bounds into struct bound_prop and pass
9694 them to create_range_type.
9695 * gdbtypes.h (struct bound_prop): New struct.
9696 (create_range_type): New function prototype.
9697 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9698 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9699 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9700 part of the bound.
9701 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9702
9703 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9704
9705 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9706 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9707 * ada-lang.c: All uses of create_range_type updated.
9708 * coffread.c: All uses of create_range_type updated.
9709 * dwarf2read.c: All uses of create_range_type updated.
9710 * f-exp.y: All uses of create_range_type updated.
9711 * m2-valprint.c: All uses of create_range_type updated.
9712 * mdebugread.c: All uses of create_range_type updated.
9713 * stabsread.c: All uses of create_range_type updated.
9714 * valops.c: All uses of create_range_type updated.
9715 * valprint.c: All uses of create_range_type updated.
9716
9717 2014-04-10 Pedro Alves <palves@redhat.com>
9718
9719 * breakpoint.c (single_step_breakpoints)
9720 (single_step_gdbarch): Move up in the file.
9721 (one_breakpoint_xfer_memory): New function, factored out from ...
9722 (breakpoint_xfer_memory): ... here. Also process single-step
9723 breakpoints.
9724
9725 2014-04-09 Tristan Gingold <gingold@adacore.com>
9726
9727 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9728 comments.
9729 (darwin_decode_exception_message): Free port only after use.
9730
9731 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9732
9733 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9734 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9735 when setting the size of call_length.
9736
9737 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9738
9739 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9740 dereference TYPE_CODE_REF values.
9741
9742 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9743
9744 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9745 end of warning message.
9746
9747 2014-04-03 Doug Evans <dje@google.com>
9748
9749 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9750 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9751
9752 2014-04-02 Alan Modra <amodra@gmail.com>
9753
9754 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9755 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9756 (struct symbol_file_add_from_memory_args): Add size field.
9757 (find_vdso_size): New function.
9758 (add_vsyscall_page): Attempt to find vdso size.
9759
9760 2014-04-01 Doug Evans <dje@google.com>
9761
9762 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9763
9764 2014-04-01 Tristan Gingold <gingold@adacore.com>
9765
9766 * darwin-nat.c (darwin_encode_reply): Add prototype.
9767 (darwin_decode_exception_message): Reply to unknown inferiors.
9768 (darwin_decode_message): Handle message by id. Ignore message
9769 to unknown inferior.
9770 (darwin_wait): Discard unknown messages, add debug trace.
9771
9772 2014-03-31 Doug Evans <dje@google.com>
9773
9774 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9775 comp_dir_string.
9776
9777 2014-03-31 Doug Evans <dje@google.com>
9778
9779 New option "set print symbol-loading".
9780 * NEWS: Mention it.
9781 * solib.c (solib_read_symbols): Only print symbol loading messages
9782 if requested.
9783 (solib_add): If symbol loading is in "brief" mode, notify user
9784 symbols are being loaded.
9785 (reload_shared_libraries_1): Ditto.
9786 * symfile.c (print_symbol_loading_off): New static global.
9787 (print_symbol_loading_brief): New static global.
9788 (print_symbol_loading_full): New static global.
9789 (print_symbol_loading_enums): New static global.
9790 (print_symbol_loading): New static global.
9791 (print_symbol_loading_p): New function.
9792 (symbol_file_add_with_addrs): Only print symbol loading messages
9793 if requested.
9794 (_initialize_symfile): Register "print symbol-loading" set/show
9795 command.
9796 * symfile.h (print_symbol_loading_p): Declare.
9797
9798 2014-03-30 Doug Evans <xdje42@gmail.com>
9799
9800 * infrun.c (set_last_target_status): New function.
9801 (handle_inferior_event): Call it.
9802
9803 2014-03-30 Doug Evans <xdje42@gmail.com>
9804
9805 * inferior.h (enum stop_kind): Improve comment.
9806
9807 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9808
9809 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9810 a reference, strip the reference layer before calling
9811 the lang_ops value_has_mutated callback.
9812
9813 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9814
9815 Remove some globals from our parser.
9816 * language.c (unk_lang_parser): Add "struct parser_state"
9817 argument.
9818 * language.h (struct language_defn) <la_parser>: Likewise.
9819 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9820 (initialize_expout): Add "struct parser_state" argument.
9821 Rewrite function to use the parser state.
9822 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9823 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9824 write_exp_elt_longcst, write_exp_elt_dblcst,
9825 write_exp_elt_decfloatcst, write_exp_elt_type,
9826 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9827 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9828 write_dollar_variable): Likewise.
9829 (parse_exp_in_context_1): Use parser state.
9830 (insert_type_address_space): Add "struct parser_state" argument.
9831 Use parser state.
9832 (increase_expout_size): New function.
9833 * parser-defs.h: Forward declare "struct language_defn" and
9834 "struct parser_state".
9835 (expout, expout_size, expout_ptr): Remove extern declarations.
9836 (parse_gdbarch, parse_language): Rewrite macro declarations to
9837 accept the parser state.
9838 (struct parser_state): New struct.
9839 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9840 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9841 write_exp_elt_decfloatcst, write_exp_elt_type,
9842 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9843 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9844 write_exp_msymbol, write_dollar_variable,
9845 mark_struct_expression, insert_type_address_space): Add "struct
9846 parser_state" argument.
9847 (increase_expout_size): New function.
9848 * utils.c (do_clear_parser_state): New function.
9849 (make_cleanup_clear_parser_state): Likewise.
9850 * utils.h (make_cleanup_clear_parser_state): New function
9851 prototype.
9852 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9853 Update calls to write_exp* in order to pass the parser state.
9854 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9855 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9856 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9857 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9858 * stap-probe.c (stap_parse_register_operand): Likewise.
9859 (stap_parse_single_operand): Likewise.
9860 (stap_parse_argument_1): Likewise.
9861 (stap_parse_argument): Use parser state.
9862 * stap-probe.h: Include "parser-defs.h".
9863 (struct stap_parse_info) <pstate>: New field.
9864 * c-exp.y (parse_type): Rewrite to use parser state.
9865 (yyparse): Redefine to c_parse_internal.
9866 (pstate): New global variable.
9867 (parse_number): Add "struct parser_state" argument.
9868 (write_destructor_name): Likewise.
9869 (type_exp): Update calls to write_exp* and similars in order to
9870 use parser state.
9871 (exp1, exp, variable, qualified_name, space_identifier,
9872 typename, typebase): Likewise.
9873 (write_destructor_name, parse_number, lex_one_token,
9874 classify_name, classify_inner_name, c_parse): Add "struct
9875 parser_state" argument. Update function to use parser state.
9876 * c-lang.h: Forward declare "struct parser_state".
9877 (c_parse): Add "struct parser_state" argument.
9878 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9879 (yyparse): Redefine macro to ada_parse_internal.
9880 (pstate): New variable.
9881 (write_int, write_object_renaming, write_var_or_type,
9882 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9883 type_int, type_long, type_long_long, type_float, type_double,
9884 type_long_double, type_char, type_boolean, type_system_address):
9885 Add "struct parser_state" argument.
9886 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9887 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9888 var_or_type, aggregate, aggregate_component_list,
9889 positional_list, others, component_group,
9890 component_associations): Update calls to write_exp* and similar
9891 functions in order to use parser state.
9892 (ada_parse, write_var_from_sym, write_int,
9893 write_exp_op_with_string, write_object_renaming,
9894 find_primitive_type, write_selectors, write_ambiguous_var,
9895 write_var_or_type, write_name_assoc, type_int, type_long,
9896 type_long_long, type_float, type_double, type_long_double,
9897 type_char, type_boolean, type_system_address): Add "struct
9898 parser_state" argument. Adjust function to use parser state.
9899 * ada-lang.c (parse): Likewise.
9900 * ada-lang.h: Forward declare "struct parser_state".
9901 (ada_parse): Add "struct parser_state" argument.
9902 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9903 calls to both functions.
9904 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9905 parser state.
9906 (yyparse): Redefine macro to f_parse_internal.
9907 (pstate): New variable.
9908 (parse_number): Add "struct parser_state" argument.
9909 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9910 and similars in order to use parser state.
9911 (parse_number): Adjust code to use parser state.
9912 (yylex): Likewise.
9913 (f_parse): New function.
9914 * f-lang.h: Forward declare "struct parser_state".
9915 (f_parse): Add "struct parser_state" argument.
9916 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9917 parser state.
9918 (yyparse): Redefine macro for java_parse_internal.
9919 (pstate): New variable.
9920 (push_expression_name, push_expression_name, insert_exp): Add
9921 "struct parser_state" argument.
9922 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9923 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9924 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9925 PostIncrementExpression, PostDecrementExpression,
9926 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9927 UnaryExpressionNotPlusMinus, CastExpression,
9928 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9929 RelationalExpression, EqualityExpression, AndExpression,
9930 ExclusiveOrExpression, InclusiveOrExpression,
9931 ConditionalAndExpression, ConditionalOrExpression,
9932 ConditionalExpression, Assignment, LeftHandSide): Update
9933 calls to write_exp* and similars in order to use parser state.
9934 (parse_number): Ajust code to use parser state.
9935 (yylex): Likewise.
9936 (java_parse): New function.
9937 (push_variable): Add "struct parser_state" argument. Adjust
9938 code to user parser state.
9939 (push_fieldnames, push_qualified_expression_name,
9940 push_expression_name, insert_exp): Likewise.
9941 * jv-lang.h: Forward declare "struct parser_state".
9942 (java_parse): Add "struct parser_state" argument.
9943 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9944 parser state.
9945 (yyparse): Redefine macro to m2_parse_internal.
9946 (pstate): New variable.
9947 (type_exp, exp, fblock, variable, type): Update calls to
9948 write_exp* and similars to use parser state.
9949 (yylex): Likewise.
9950 (m2_parse): New function.
9951 * m2-lang.h: Forward declare "struct parser_state".
9952 (m2_parse): Add "struct parser_state" argument.
9953 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9954 * objc-lang.h: Forward declare "struct parser_state".
9955 (end_msglist): Add "struct parser_state" argument.
9956 * p-exp.y (parse_type): Rewrite macro to use parser state.
9957 (yyparse): Redefine macro to pascal_parse_internal.
9958 (pstate): New variable.
9959 (parse_number): Add "struct parser_state" argument.
9960 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9961 write_exp* and similars in order to use parser state.
9962 (parse_number, yylex): Adjust code to use parser state.
9963 (pascal_parse): New function.
9964 * p-lang.h: Forward declare "struct parser_state".
9965 (pascal_parse): Add "struct parser_state" argument.
9966 * go-exp.y (parse_type): Rewrite macro to use parser state.
9967 (yyparse): Redefine macro to go_parse_internal.
9968 (pstate): New variable.
9969 (parse_number): Add "struct parser_state" argument.
9970 (type_exp, exp1, exp, variable, type): Update calls to
9971 write_exp* and similars in order to use parser state.
9972 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9973 to use parser state.
9974 (go_parse): Likewise.
9975 * go-lang.h: Forward declare "struct parser_state".
9976 (go_parse): Add "struct parser_state" argument.
9977
9978 2014-03-27 Doug Evans <dje@google.com>
9979
9980 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9981
9982 2014-03-27 Doug Evans <dje@google.com>
9983
9984 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9985 Remove argument abbrev_section. All callers updated.
9986
9987 2014-03-27 Doug Evans <dje@google.com>
9988
9989 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9990 addr_base, ranges_base.
9991
9992 2014-03-26 Keith Seitz <keiths@redhat.com>
9993
9994 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9995 types, not VAR_DOMAIN.
9996
9997 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9998
9999 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10000 "ra" registers.
10001 * features/nios2-linux.c: Regenerated.
10002 * features/nios2.c: Regenerated.
10003
10004 2014-03-25 Pedro Alves <palves@redhat.com>
10005
10006 * cli/cli-script.c (script_from_file): Force the interpreter to
10007 sync mode.
10008
10009 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10010
10011 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10012 small stack allocation.
10013
10014 2014-03-24 Tristan Gingold <gingold@adacore.com>
10015
10016 * darwin-nat.c (exc_server): Remove unused prototype.
10017 (darwin_dump_message): Correctly display data on x86_64.
10018 (darwin_encode_reply): Fix style.
10019 Add comments and fix indentation.
10020
10021 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10022
10023 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10024
10025 2014-03-22 Doug Evans <xdje42@gmail.com>
10026
10027 * infcmd.c: Whitespace fixes.
10028 (interrupt_command): Merge two function comments into one.
10029
10030 2014-03-22 Doug Evans <xdje42@gmail.com>
10031
10032 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10033 All uses updated.
10034
10035 2014-03-22 Yao Qi <yao@codesourcery.com>
10036
10037 * remote.c (target_read_live_memory): Remove.
10038 (memory_xfer_live_readonly_partial): Rename it to
10039 remote_xfer_live_readonly_partial. Remove argument 'object'.
10040 All callers updated. Call remote_read_bytes_1
10041 instead of target_read_live_memory.
10042 * tracepoint.c (set_traceframe_number): Remove.
10043 (make_cleanup_restore_traceframe_number): Likewise .
10044 * tracepoint.h (set_traceframe_number): Remove declaration.
10045 (make_cleanup_restore_traceframe_number): Likewise.
10046
10047 2014-03-22 Yao Qi <yao@codesourcery.com>
10048
10049 * remote.c (remote_read_bytes): Move code on reading from the
10050 remote stub to ...
10051 (remote_read_bytes_1): ... here. New function.
10052
10053 2014-03-22 Yao Qi <yao@codesourcery.com>
10054
10055 * ctf.c (ctf_xfer_partial): Check the return value of
10056 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10057 return TARGET_XFER_UNAVAILABLE.
10058 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10059 * target.c (target_read_live_memory): Move it to remote.c.
10060 (memory_xfer_live_readonly_partial): Likewise.
10061 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10062 * remote.c (target_read_live_memory): Moved from target.c.
10063 (memory_xfer_live_readonly_partial): Likewise.
10064 (remote_read_bytes): Factored out from
10065 memory_xfer_partial_1.
10066
10067 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10068
10069 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10070 NULL pointer.
10071
10072 2014-03-21 Pedro Alves <palves@redhat.com>
10073
10074 * infrun.c (normal_stop): Extend comment.
10075
10076 2014-03-21 Hui Zhu <hui@codesourcery.com>
10077 Pedro Alves <palves@redhat.com>
10078
10079 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10080 static buffer.
10081 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10082 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10083 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10084
10085 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10086
10087 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10088 `z' formatted output modifier.
10089
10090 2014-03-20 Tom Tromey <tromey@redhat.com>
10091 Sergio Durigan Junior <sergiodj@redhat.com>
10092
10093 * probe.c (parse_probes): Turn assert into an ordinary error.
10094 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10095 exceptions when parsing probes. Rearrange the code for clarity.
10096
10097 2014-03-20 Tom Tromey <tromey@redhat.com>
10098
10099 PR gdb/14135
10100 * top.c (execute_command): Only dispatch events if the command
10101 started the target.
10102
10103 2014-03-20 Tom Tromey <tromey@redhat.com>
10104
10105 PR cli/15718
10106 * infcall.c: Include event-top.h.
10107 (run_inferior_call): Call async_disable_stdin if needed.
10108
10109 2014-03-20 Pedro Alves <palves@redhat.com>
10110
10111 * infrun.c (prepare_to_proceed): Delete.
10112 (thread_still_needs_step_over): New function.
10113 (find_thread_needs_step_over): New function.
10114 (proceed): If the current thread needs a step-over, set its
10115 steping_over_breakpoint flag. Adjust to use
10116 find_thread_needs_step_over instead of prepare_to_proceed.
10117 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10118 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10119 breakpoint.
10120 (switch_back_to_stepped_thread): Step over breakpoints of all
10121 threads not the stepping thread, before switching back to the
10122 stepping thread.
10123
10124 2014-03-20 Pedro Alves <palves@redhat.com>
10125
10126 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10127 extern.
10128 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10129 * infrun.c (saved_singlestep_ptid)
10130 (stepping_past_singlestep_breakpoint): Delete.
10131 (resume): Remove stepping_past_singlestep_breakpoint handling.
10132 (proceed): Store the prev_pc of the stepping thread too.
10133 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10134 singlestep_pc.
10135 (enum infwait_states): Delete infwait_thread_hop_state.
10136 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10137 field.
10138 (handle_inferior_event): Adjust.
10139 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10140 handling and the thread-hop code. Before removing single-step
10141 breakpoints, check whether the thread hit a single-step breakpoint
10142 of another thread. If it did, the trap is not a random signal.
10143 (switch_back_to_stepped_thread): If the event thread hit a
10144 single-step breakpoint, unblock it before switching to the
10145 stepping thread. Handle the case of the stepped thread having
10146 advanced already.
10147 (keep_going): Handle the case of the current thread moving past a
10148 single-step breakpoint.
10149
10150 2014-03-20 Pedro Alves <palves@redhat.com>
10151
10152 PR breakpoints/7143
10153 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10154 are being stepped over.
10155 (breakpoint_address_match): Make extern.
10156 * breakpoint.h (breakpoint_address_match): New declaration.
10157 * inferior.h (stepping_past_instruction_at): New declaration.
10158 * infrun.c (struct step_over_info): New type.
10159 (step_over_info): New global.
10160 (set_step_over_info, clear_step_over_info)
10161 (stepping_past_instruction_at): New functions.
10162 (handle_inferior_event): Clear the step-over info when
10163 trap_expected is cleared.
10164 (resume): Remove now stale comment.
10165 (clear_proceed_status): Clear step-over info.
10166 (proceed): Adjust step-over handling to set or clear the step-over
10167 info instead of removing all breakpoints.
10168 (handle_signal_stop): When setting up a thread-hop, don't remove
10169 breakpoints here.
10170 (stop_stepping): Clear step-over info.
10171 (keep_going): Adjust step-over handling to set or clear step-over
10172 info and then always inserting breakpoints, instead of removing
10173 all breakpoints when stepping over one.
10174
10175 2014-03-20 Pedro Alves <palves@redhat.com>
10176
10177 * infrun.c (previous_inferior_ptid): Adjust comment.
10178 (deferred_step_ptid): Delete.
10179 (infrun_thread_ptid_changed, prepare_to_proceed)
10180 (init_wait_for_inferior): Adjust.
10181 (handle_signal_stop): Delete deferred_step_ptid handling.
10182
10183 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10184
10185 PR gdb/15358
10186 * defs.h (sync_quit_force_run): New declaration.
10187 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10188 * event-top.c (async_sigterm_handler): New declaration.
10189 (async_sigterm_token): New variable.
10190 (async_init_signals): Create also async_sigterm_token.
10191 (async_sigterm_handler): New function.
10192 (sync_quit_force_run): New variable.
10193 (handle_sigterm): Replace quit_force call by other calls.
10194 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10195
10196 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10197
10198 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10199 offset into SPE pseudo registers.
10200
10201 2014-03-18 Pedro Alves <palves@redhat.com>
10202
10203 PR gdb/13860
10204 * inferior.h (print_stop_event): Declare.
10205 * infrun.c (print_stop_event): New, factored out from ...
10206 (normal_stop): ... this.
10207 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10208 of bpstat_print/print_stack_frame.
10209
10210 2014-03-17 Tom Tromey <tromey@redhat.com>
10211
10212 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10213
10214 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10215
10216 * ada-lang.c (decode_constrained_packed_array): Perform a
10217 minimal coercion for reference with coerce_ref instead of
10218 ada_coerce_ref.
10219
10220 2014-03-17 Tristan Gingold <gingold@adacore.com>
10221
10222 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10223 (darwin_solib_create_inferior_hook): Emit a warning if version
10224 is unhandled.
10225
10226 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10227
10228 * python/py-value.c (get_field_flag): Cast flag_name argument to
10229 PyObject_GetAttrString to support Python 2.4.
10230
10231 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10232
10233 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10234 (Global Maintainers): Remove Jan Kratochvil.
10235
10236 2014-03-14 Pedro Alves <palves@redhat.com>
10237
10238 * inferior.h (terminal_ours_for_output): Rename to ...
10239 (child_terminal_ours_for_output): ... this.
10240 (terminal_save_ours): Rename to ...
10241 (child_terminal_save_ours): ... this.
10242 (terminal_ours): Rename to ...
10243 (child_terminal_ours): ... this.
10244 (terminal_inferior): Rename to ...
10245 (child_terminal_inferior): ... this.
10246 (terminal_init_inferior): Rename to ...
10247 (child_terminal_init_inferior): ... this.
10248 (terminal_init_inferior_with_pgrp): Rename to ...
10249 (child_terminal_init_inferior_with_pgrp): ... this.
10250 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10251 (child_terminal_init_with_pgrp): ... this.
10252 (terminal_save_ours): Rename to ...
10253 (child_terminal_save_ours): ... this.
10254 (terminal_init_inferior): Rename to ...
10255 (child_terminal_init): ... this. Adjust.
10256 (terminal_inferior): Rename to ...
10257 (child_terminal_inferior): ... this.
10258 (terminal_ours_for_output): Rename to ...
10259 (child_terminal_ours_for_output): ... this. Adjust.
10260 (terminal_ours): Rename to ...
10261 (child_terminal_ours): ... this.
10262 (terminal_ours_1): Rename to ...
10263 (child_terminal_ours_1): ... this. Adjust.
10264 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10265 * windows-nat.c (do_initial_windows_stuff): Adjust.
10266 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10267 (gnu_terminal_init): ... this. Adjust.
10268 (gnu_target): Adjust.
10269 * inf-child.c (inf_child_target): Adjust.
10270
10271 2014-03-13 Doug Evans <xdje42@gmail.com>
10272
10273 PR guile/16612
10274 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10275 new eq?-hashtab.
10276
10277 2014-03-13 Doug Evans <xdje42@gmail.com>
10278
10279 * value.c (record_latest_value): Call release_value_or_incref
10280 instead of release_value.
10281
10282 2014-03-13 Pedro Alves <palves@redhat.com>
10283
10284 * procfs.c (procfs_target): Don't override to_shortname,
10285 to_longname or to_doc.
10286
10287 2014-03-13 Pedro Alves <palves@redhat.com>
10288
10289 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10290 Unix in user visible strings.
10291
10292 2014-03-12 Stan Shebs <stan@codesourcery.com>
10293
10294 * gdbtypes.h: Annotate comments for Doxygen, add a page
10295 block comment with some general info.
10296
10297 2014-03-12 Pedro Alves <palves@redhat.com>
10298
10299 * infcmd.c (prepare_execution_command): New function, factored out
10300 from several execution commands.
10301 (run_command_1, continue_command, step_1, jump_command)
10302 (signal_command, until_command, advance_command, finish_command)
10303 (attach_command): Use prepare_execution_command.
10304
10305 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10306
10307 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10308 (MAX_BPTS): Define.
10309 (MAX_WPTS): Define.
10310 (struct arm_linux_thread_points): Removed.
10311 (struct arm_linux_process_info): New.
10312 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10313 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10314 (arm_linux_find_breakpoints_by_tid): Removed.
10315 (struct arch_lwp_info): New.
10316 (arm_linux_find_process_pid): New functions.
10317 (arm_linux_add_process): New functions.
10318 (arm_linux_process_info_get): New functions.
10319 (arm_linux_forget_process): New function.
10320 (arm_linux_get_debug_reg_state): New function.
10321 (struct update_registers_data): New.
10322 (update_registers_callback): New function.
10323 (arm_linux_insert_hw_breakpoint1): Updated.
10324 (arm_linux_remove_hw_breakpoint1): Updated.
10325 (arm_linux_insert_hw_breakpoint): Updated.
10326 (arm_linux_remove_hw_breakpoint): Updated.
10327 (arm_linux_insert_watchpoint): Updated.
10328 (arm_linux_remove_watchpoint): Updated.
10329 (arm_linux_new_thread): Updated.
10330 (arm_linux_prepare_to_resume): New function.
10331 (arm_linux_new_fork): New function.
10332 (_initialize_arm_linux_nat): Updated.
10333
10334 2014-03-12 Pedro Alves <palves@redhat.com>
10335
10336 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10337
10338 2014-03-12 Tom Tromey <tromey@redhat.com>
10339
10340 * inf-child.c (return_zero): New function.
10341 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10342 * aix-thread.c (aix_thread_inferior_created): New function.
10343 (aix_thread_attach): Remove.
10344 (init_aix_thread_ops): Don't set to_attach.
10345 (_initialize_aix_thread): Register inferior_created observer.
10346 * corelow.c (init_core_ops): Don't set to_attach or
10347 to_create_inferior.
10348 * exec.c (init_exec_ops): Don't set to_attach or
10349 to_create_inferior.
10350 * infcmd.c (run_command_1): Use find_run_target. Make direct
10351 target calls.
10352 (attach_command): Use find_attach_target. Make direct target
10353 calls.
10354 * record-btrace.c (init_record_btrace_ops): Don't set
10355 to_create_inferior.
10356 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10357 Remove.
10358 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10359 set to_create_inferior.
10360 * target.c (complete_target_initialization): Add assertion.
10361 (target_create_inferior): Remove.
10362 (find_default_attach, find_default_create_inferior): Remove.
10363 (find_attach_target, find_run_target): New functions.
10364 (find_default_is_async_p, find_default_can_async_p)
10365 (target_supports_non_stop, target_attach): Remove.
10366 (init_dummy_target): Don't set to_create_inferior or
10367 to_supports_non_stop.
10368 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10369 TARGET_DEFAULT_FUNC.
10370 <to_create_inferior>: Add comment.
10371 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10372 TARGET_DEFAULT_RETURN.
10373 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10374 (find_attach_target, find_run_target): Declare.
10375 (target_create_inferior): Remove.
10376 (target_has_execution_1): Update comment.
10377 (target_supports_non_stop): Remove.
10378 * target-delegates.c: Rebuild.
10379
10380 2014-03-12 Pedro Alves <palves@redhat.com>
10381
10382 * inf-child.h: Update comment to not mention Unix.
10383
10384 2014-03-12 Pedro Alves <palves@redhat.com>
10385
10386 * inf-child.c: Update top comment to not mention Unix. Add
10387 generic comment describing how this target is meant to be used.
10388 (inf_child_post_attach, inf_child_post_startup_inferior)
10389 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10390 Unix in comment.
10391
10392 2014-03-12 Pedro Alves <palves@redhat.com>
10393
10394 * nto-procfs.c: Include inf-child.h.
10395 (procfs_ops): Delete global.
10396 (procfs_can_run): Delete method.
10397 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10398 target pointer instead of referencing procfs_ops.
10399 (procfs_prepare_to_store): Delete.
10400 (init_procfs_ops): Delete function.
10401 (procfs_target): New function, based on init_procfs_ops, but
10402 inherit inf_child_target.
10403 (_initialize_procfs): Use procfs_target.
10404
10405 2014-03-12 Pedro Alves <palves@redhat.com>
10406
10407 * windows-nat.c: Include inf-child.h.
10408 (windows_ops): Delete global.
10409 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10410 methods.
10411 (init_windows_ops): Delete function.
10412 (windows_target): New function, based on init_windows_ops, but
10413 inherit inf_child_target.
10414 (_initialize_windows_nat): Use windows_target. Install x86
10415 specific target methods here.
10416
10417 2014-03-10 Doug Evans <xdje42@gmail.com>
10418
10419 * guile/guile.c (call_initialize_gdb_module): New function.
10420 (initialize_guile): Replace call to scm_init_guile with call to
10421 scm_with_guile.
10422
10423 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10424
10425 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10426 in call to TYPE_CODE macro.
10427
10428 2014-03-10 Jerome Guitton <guitton@adacore.com>
10429
10430 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10431 Resolve tagged types to full view.
10432
10433 2014-03-10 Hui Zhu <hui@codesourcery.com>
10434
10435 * target.h (target_insert_breakpoint): Remove "hardware" from its
10436 comments.
10437
10438 2014-03-07 Doug Evans <dje@google.com>
10439
10440 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10441
10442 2014-03-07 Doug Evans <dje@google.com>
10443
10444 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10445 Remove unused local comp_dir_attr. Assert exactly one of
10446 stub_comp_unit_die, stub_comp_dir is non-NULL.
10447
10448 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10449
10450 * target.h (complete_target_initialization, add_target):
10451 Add comment.
10452
10453 2014-03-07 Pedro Alves <palves@redhat.com>
10454
10455 * go32-nat.c: Include inf-child.h.
10456 (go32_ops): Delete global.
10457 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10458 Delete methods.
10459 (go32_create_inferior): Push the passed in target pointer instead
10460 of referencing go32_ops.
10461 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10462 (go32_target): New function, based on init_go32_ops, but inherit
10463 inf_child_target.
10464 (_initialize_go32_nat): Use go32_target. Move parts of
10465 init_go32_ops here.
10466
10467 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10468
10469 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10470 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10471 SYMBOL_VALUE_ADDRESS.
10472 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10473
10474 2014-03-06 Yao Qi <yao@codesourcery.com>
10475
10476 * breakpoint.c (get_tracepoint_by_number): Remove argument
10477 optional_p. All callers updated. Adjust comments. Update
10478 output message.
10479 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10480
10481 2014-03-06 Yao Qi <yao@codesourcery.com>
10482
10483 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10484 early if get_number returns zero. Use 'p' instead of 'args'.
10485
10486 2014-03-06 Yao Qi <yao@codesourcery.com>
10487
10488 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10489 message.
10490
10491 2014-03-06 Yao Qi <yao@codesourcery.com>
10492
10493 PR breakpoints/16508
10494 * tracepoint.c (check_trace_running): New function.
10495 (trace_find_command): Move code to check_trace_running and
10496 call check_trace_running.
10497 (trace_find_pc_command): Likewise.
10498 (trace_find_tracepoint_command): Likewise.
10499 (trace_find_line_command): Likewise.
10500 (trace_find_range_command): Likewise.
10501 * tracepoint.h (check_trace_running): Likewise.
10502 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10503
10504 2014-03-06 Yao Qi <yao@codesourcery.com>
10505
10506 * target.h (struct target_ops) <to_traceframe_info>: Use
10507 TARGET_DEFAULT_NORETURN (tcomplain ()).
10508 * target-delegates.c: Regenerated.
10509
10510 2014-03-05 Pedro Alves <palves@redhat.com>
10511
10512 PR gdb/16575
10513 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10514 void. Update comment.
10515 (dcache_xfer_memory): Delete.
10516 (dcache_read_memory_partial): New, based on the read bits of
10517 dcache_xfer_memory.
10518 (dcache_update): Add status parameter. Use ULONGEST for len, and
10519 adjust. Discard cache lines if the reason for the update was
10520 error.
10521 * dcache.h (dcache_xfer_memory): Delete declaration.
10522 (dcache_read_memory_partial): New declaration.
10523 (dcache_update): Update prototype.
10524 * target.c (raw_memory_xfer_partial): Update the dcache here.
10525 (memory_xfer_partial_1): Don't handle dcache writes here.
10526
10527 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10528
10529 * remote-sim.c (gdbsim_load): Add const to prog.
10530
10531 2014-03-03 Tom Tromey <tromey@redhat.com>
10532
10533 * elfread.c (probe_key): Change to bfd_data.
10534 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10535 now per-BFD, not per-objfile.
10536 * stap-probe.c (stap_probe_destroy): Update comment.
10537 (handle_stap_probe): Allocate on the per-BFD obstack.
10538
10539 2014-03-03 Tom Tromey <tromey@redhat.com>
10540
10541 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10542 * breakpoint.c (create_longjmp_master_breakpoint): Use
10543 get_probe_address.
10544 (add_location_to_breakpoint, bkpt_probe_insert_location)
10545 (bkpt_probe_remove_location): Update.
10546 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10547 * elfread.c (elf_symfile_relocate_probe): Remove.
10548 (elf_probe_fns): Update.
10549 (insert_exception_resume_breakpoint): Change type of "probe"
10550 parameter to bound_probe.
10551 (check_exception_resume): Update.
10552 * objfiles.c (objfile_relocate1): Don't relocate probes.
10553 * probe.c (bound_probe_s): New typedef.
10554 (parse_probes): Use get_probe_address. Set sal's objfile.
10555 (find_probe_by_pc): Return a bound_probe.
10556 (collect_probes): Return a VEC(bound_probe_s).
10557 (compare_probes): Update.
10558 (gen_ui_out_table_header_info): Change type of "probes"
10559 parameter. Update.
10560 (info_probes_for_ops): Update.
10561 (get_probe_address): New function.
10562 (probe_safe_evaluate_at_pc): Update.
10563 * probe.h (struct probe_ops) <get_probe_address>: New field.
10564 <set_semaphore, clear_semaphore>: Add objfile parameter.
10565 (struct probe) <objfile>: Remove field.
10566 <arch>: New field.
10567 <address>: Update comment.
10568 (struct bound_probe): New.
10569 (find_probe_by_pc): Return a bound_probe.
10570 (get_probe_address): Declare.
10571 * solib-svr4.c (struct probe_and_action) <address>: New field.
10572 (hash_probe_and_action, equal_probe_and_action): Update.
10573 (register_solib_event_probe): Add address parameter.
10574 (solib_event_probe_at): Update.
10575 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10576 get_probe_address.
10577 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10578 (stap_get_probe_address): New function.
10579 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10580 (compile_probe_arg): Update.
10581 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10582 address.
10583 (handle_stap_probe): Don't relocate the probe.
10584 (stap_relocate): Remove.
10585 (stap_gen_info_probes_table_values): Update.
10586 (stap_probe_ops): Remove stap_relocate.
10587 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10588 (debug_sym_probe_fns): Update.
10589 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10590 * symtab.c (init_sal): Use memset.
10591 * symtab.h (struct symtab_and_line) <objfile>: New field.
10592 * tracepoint.c (start_tracing, stop_tracing): Update.
10593
10594 2014-03-03 Tom Tromey <tromey@redhat.com>
10595
10596 * probe.h (parse_probes, find_probe_by_pc)
10597 (find_probes_in_objfile): Fix comments.
10598
10599 2014-03-02 Doug Evans <xdje42@gmail.com>
10600
10601 * infrun.c (handle_signal_stop): Replace test for
10602 TARGET_WAITKIND_STOPPED with an assert.
10603
10604 2014-03-02 Doug Evans <xdje42@gmail.com>
10605
10606 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10607
10608 2014-03-02 Doug Evans <xdje42@gmail.com>
10609
10610 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10611
10612 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10613
10614 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10615
10616 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10617
10618 * i386obsd-nat.c: Include "obsd-nat.h".
10619 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10620 add_target.
10621 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10622
10623 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10624
10625 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10626
10627 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10628
10629 * mips64obsd-nat.c: Include "obsd-nath".
10630 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10631 add_target
10632 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10633
10634 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10635
10636 * amd64obsd-nat.c: Include "obsd-nat,h.
10637 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10638 add_target.
10639 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10640
10641 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10642
10643 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10644 (find_overload_match): Update call to find_oload_champ.
10645 (find_oload_champ_namespace_loop): Likewise
10646
10647 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10648
10649 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10650
10651 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10652 * config/sparc/obsd64.mh: New file.
10653 * sparc64obsd-nat.c: New file.
10654
10655 * obsd-nat.h: New file.
10656 * obsd-nat.c: New file.
10657 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10658 (ALLDEPFILES): Add obsd-nat.c.
10659
10660 2014-02-28 Tom Tromey <tromey@redhat.com>
10661
10662 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10663 * cli-out.h (cli_ui_out_impl): Now const.
10664 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10665 * ui-out.c (struct ui_out) <impl>: Now const.
10666 (default_ui_out_impl): Now const.
10667 (ui_out_new): Make 'impl' parameter const.
10668 * ui-out.h (ui_out_new): Update.
10669
10670 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10671
10672 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10673
10674 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10675
10676 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10677
10678 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10679
10680 Additional PR 8882 fix.
10681 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10682
10683 2014-02-27 Pedro Alves <palves@redhat.com>
10684
10685 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10686 isn't set.
10687
10688 2014-02-27 Pedro Alves <palves@redhat.com>
10689
10690 PR 12702
10691 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10692 * nat/linux-waitpid.c: Include string.h.
10693 (status_to_str): Moved here and made extern.
10694 * nat/linux-waitpid.h (status_to_str): New declaration.
10695
10696 2014-02-27 Hui Zhu <hui@codesourcery.com>
10697
10698 PR 12702
10699 * infrun.c (ptid_match): Move ...
10700 * common/ptid.c (ptid_match): ... here.
10701 * inferior.h (ptid_match): Move ...
10702 * common/ptid.h (ptid_match): ... here.
10703
10704 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10705
10706 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10707 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10708 gdb_target_obs.
10709
10710 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10711
10712 * obsd-tdep.c (obsd_auxv_parse): New function.
10713 (obsd_init_abi): Set auxv_parse.
10714
10715 * gdbarch.sh (auxv_parse): New.
10716 * gdbarch.h: Regenerated.
10717 * gdbarch.c: Regenerated.
10718 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10719
10720 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10721
10722 * guile/scm-value.c (gdbscm_history_append_x): New function.
10723 (value_functions): Add it.
10724
10725 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10726
10727 * dwarf2read.c (attr_value_as_address): New function.
10728 (dwarf2_find_base_address, read_call_site_scope): Use
10729 attr_value_as_address in place of DW_ADDR.
10730 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10731 the low and high addresses. Slight rework of the handling
10732 of the high pc being a constant form, and limit it to
10733 DWARF verson 4 or higher.
10734 (dwarf2_record_block_ranges): Likewise.
10735 (read_partial_die): Likewise.
10736 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10737
10738 2014-02-26 Tom Tromey <tromey@redhat.com>
10739
10740 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10741
10742 2014-02-26 Tom Tromey <tromey@redhat.com>
10743
10744 * elfread.c (elf_read_minimal_symbols): Return early if
10745 minimal symbols have already been read. Add "ei" parameter.
10746 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10747 * minsyms.c (prim_record_minimal_symbol_full): Update.
10748 * objfiles.h (struct objstats) <n_minsyms>: Move...
10749 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10750 * symmisc.c (print_objfile_statistics): Update.
10751
10752 2014-02-26 Tom Tromey <tromey@redhat.com>
10753
10754 * elfread.c (elf_read_minimal_symbols): New function, from
10755 elf_symfile_read.
10756 (elf_symfile_read): Call it.
10757
10758 2014-02-26 Tom Tromey <tromey@redhat.com>
10759
10760 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10761 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10762 (lookup_minimal_symbol_solib_trampoline)
10763 (lookup_minimal_symbol_by_pc_section_1)
10764 (lookup_minimal_symbol_and_objfile): Update.
10765 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10766 Don't allocate a minimal symbol if minsyms have already been read.
10767 (build_minimal_symbol_hash_tables): Update.
10768 (install_minimal_symbols): Do nothing if minsyms already read.
10769 Use the per-BFD obstack.
10770 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10771 * objfiles.c (allocate_objfile): Call
10772 terminate_minimal_symbol_table later.
10773 (have_minimal_symbols): Update.
10774 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10775 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10776 Move from struct objfile.
10777 <minsyms_read>: New field.
10778 (struct objfile) <msymbols, minimal_symbol_count,
10779 msymbol_hash, msymbol_demangled_hash>: Move.
10780 (ALL_OBJFILE_MSYMBOLS): Update.
10781 * symfile.c (read_symbols): Set minsyms_read.
10782 (reread_symbols): Update.
10783 * symmisc.c (dump_objfile, dump_msymbols): Update.
10784
10785 2014-02-26 Tom Tromey <tromey@redhat.com>
10786
10787 * minsyms.c (msymbols_sort): Remove.
10788 * minsyms.h (msymbols_sort): Remove.
10789 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10790 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10791 * elfread.c (elf_symtab_read): Don't add section offsets.
10792 * xcoffread.c (record_minimal_symbol): Don't add section offset
10793 to minimal symbol address.
10794 * somread.c (text_offset, data_offset): Remove.
10795 (som_symtab_read): Don't add section offsets to minimal symbol
10796 addresses.
10797 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10798 Don't add section offsets to minimal symbols.
10799 * coffread.c (coff_symtab_read): Don't add section offsets
10800 to minimal symbol addresses.
10801 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10802 to minimal symbol addresses.
10803 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10804 section offset to minimal symbol addresses.
10805 * mdebugread.c (parse_partial_symbols): Don't add section
10806 offset to minimal symbol addresses.
10807 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10808 offset to minimal symbol addresses.
10809
10810 2014-02-26 Tom Tromey <tromey@redhat.com>
10811
10812 * ada-lang.c (ada_main_name): Update.
10813 (ada_add_standard_exceptions): Update.
10814 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10815 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10816 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10817 * auxv.c (ld_so_xfer_auxv): Update.
10818 * avr-tdep.c (avr_scan_prologue): Update.
10819 * ax-gdb.c (gen_var_ref): Update.
10820 * blockframe.c (get_pc_function_start)
10821 (find_pc_partial_function_gnu_ifunc): Update.
10822 * breakpoint.c (create_overlay_event_breakpoint)
10823 (create_longjmp_master_breakpoint)
10824 (create_std_terminate_master_breakpoint)
10825 (create_exception_master_breakpoint): Update.
10826 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10827 * c-valprint.c (c_val_print): Update.
10828 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10829 * common/agent.c (agent_look_up_symbols): Update.
10830 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10831 * dwarf2loc.c (call_site_to_target_addr): Update.
10832 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10833 * elfread.c (elf_gnu_ifunc_record_cache)
10834 (elf_gnu_ifunc_resolve_by_got): Update.
10835 * findvar.c (default_read_var_value): Update.
10836 * frame.c (inside_main_func): Update.
10837 * frv-tdep.c (frv_frame_this_id): Update.
10838 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10839 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10840 Update.
10841 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10842 (hppa_hpux_find_dummy_bpaddr): Update.
10843 * hppa-tdep.c (hppa_symbol_address): Update.
10844 * infcmd.c (until_next_command): Update.
10845 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10846 Update.
10847 * linespec.c (minsym_found, add_minsym): Update.
10848 * linux-nat.c (get_signo): Update.
10849 * linux-thread-db.c (inferior_has_bug): Update.
10850 * m32c-tdep.c (m32c_return_value)
10851 (m32c_m16c_address_to_pointer): Update.
10852 * m32r-tdep.c (m32r_frame_this_id): Update.
10853 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10854 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10855 * maint.c (maintenance_translate_address): Update.
10856 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10857 (frob_address): New function.
10858 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10859 frob_address. Rename parameter to "pc_in".
10860 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10861 addresses.
10862 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10863 Update.
10864 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10865 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10866 * objc-lang.c (find_objc_msgsend): Update.
10867 * objfiles.c (objfile_relocate1): Update.
10868 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10869 * p-valprint.c (pascal_val_print): Update.
10870 * parse.c (write_exp_msymbol): Update.
10871 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10872 (ppc_elfv2_skip_entrypoint): Update.
10873 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10874 * printcmd.c (build_address_symbolic, msym_info)
10875 (address_info): Update.
10876 * proc-service.c (ps_pglobal_lookup): Update.
10877 * psymtab.c (find_pc_sect_psymtab_closer)
10878 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10879 Change msymbol parameter to bound_minimal_symbol.
10880 * ravenscar-thread.c (get_running_thread_id): Update.
10881 * remote.c (remote_check_symbols): Update.
10882 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10883 address.
10884 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10885 * solib-dsbt.c (lm_base): Update.
10886 * solib-frv.c (lm_base, main_got): Update.
10887 * solib-irix.c (locate_base): Update.
10888 * solib-som.c (som_solib_create_inferior_hook)
10889 (link_map_start): Update.
10890 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10891 * solib-svr4.c (elf_locate_base, enable_break): Update.
10892 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10893 (flush_ea_cache): Update.
10894 * stabsread.c (define_symbol, scan_file_globals): Update.
10895 * stack.c (find_frame_funname): Update.
10896 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10897 (debug_qf_find_pc_sect_symtab): Update.
10898 * symfile.c (simple_read_overlay_table)
10899 (simple_overlay_update): Update.
10900 * symfile.h (struct quick_symbol_functions)
10901 <find_pc_sect_symtab>: Change type of msymbol to
10902 bound_minimal_symbol.
10903 * symmisc.c (dump_msymbols): Update.
10904 * symtab.c (find_pc_sect_symtab_via_partial)
10905 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10906 (search_symbols, print_msymbol_info): Update.
10907 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10908 (MSYMBOL_VALUE_ADDRESS): Redefine.
10909 (BMSYMBOL_VALUE_ADDRESS): New macro.
10910 * tracepoint.c (scope_info): Update.
10911 * tui/tui-disasm.c (tui_find_disassembly_address)
10912 (tui_get_begin_asm_address): Update.
10913 * valops.c (find_function_in_inferior): Update.
10914 * value.c (value_static_field, value_fn_field): Update.
10915
10916 2014-02-26 Tom Tromey <tromey@redhat.com>
10917
10918 * ada-lang.c (ada_update_initial_language): Update.
10919 (ada_main_name, ada_has_this_exception_support): Update.
10920 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10921 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10922 * arm-tdep.c (arm_skip_stub): Update.
10923 * auxv.c (ld_so_xfer_auxv): Update.
10924 * avr-tdep.c (avr_scan_prologue): Update.
10925 * ax-gdb.c (gen_var_ref): Update.
10926 * breakpoint.c (struct breakpoint_objfile_data)
10927 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10928 type to bound_minimal_symbol.
10929 (create_overlay_event_breakpoint)
10930 (create_longjmp_master_breakpoint)
10931 (create_std_terminate_master_breakpoint)
10932 (create_exception_master_breakpoint): Update.
10933 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10934 * c-exp.y (classify_name): Update.
10935 * coffread.c (coff_symfile_read): Update.
10936 * common/agent.c (agent_look_up_symbols): Update.
10937 * d-lang.c (d_main_name): Update.
10938 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10939 * dec-thread.c (enable_dec_thread): Update.
10940 * dwarf2loc.c (call_site_to_target_addr): Update.
10941 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10942 * eval.c (evaluate_subexp_standard): Update.
10943 * findvar.c (struct minsym_lookup_data) <result>: Change type
10944 to bound_minimal_symbol.
10945 <objfile>: Remove.
10946 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10947 * frame.c (inside_main_func): Update.
10948 * frv-tdep.c (frv_frame_this_id): Update.
10949 * gcore.c (call_target_sbrk): Update.
10950 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10951 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10952 Update.
10953 * go-lang.c (go_main_name): Update.
10954 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10955 (hppa_hpux_find_import_stub_for_addr): Update.
10956 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10957 Update. Change return type.
10958 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10959 type.
10960 * jit.c (jit_breakpoint_re_set_internal): Update.
10961 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10962 Update.
10963 * linux-nat.c (get_signo): Update.
10964 * linux-thread-db.c (inferior_has_bug): Update
10965 * m32c-tdep.c (m32c_return_value)
10966 (m32c_m16c_address_to_pointer): Update.
10967 * m32r-tdep.c (m32r_frame_this_id): Update.
10968 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10969 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10970 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10971 lookup_minimal_symbol. Change return type.
10972 (lookup_minimal_symbol): Remove.
10973 (lookup_bound_minimal_symbol): Update.
10974 (lookup_minimal_symbol_text): Change return type.
10975 (lookup_minimal_symbol_solib_trampoline): Change return type.
10976 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10977 (lookup_minimal_symbol_solib_trampoline): Change return type.
10978 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10979 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10980 (value_nsstring, find_imps): Update.
10981 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10982 * p-lang.c (pascal_main_name): Update.
10983 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10984 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10985 * proc-service.c (ps_pglobal_lookup): Update.
10986 * ravenscar-thread.c (get_running_thread_msymbol): Change
10987 return type.
10988 (has_ravenscar_runtime, get_running_thread_id): Update.
10989 * remote.c (remote_check_symbols): Update.
10990 * sol-thread.c (ps_pglobal_lookup): Update.
10991 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10992 * solib-dsbt.c (lm_base): Update.
10993 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10994 Update.
10995 * solib-irix.c (locate_base): Update.
10996 * solib-som.c (som_solib_create_inferior_hook)
10997 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10998 Update.
10999 * solib-spu.c (spu_enable_break): Update.
11000 * solib-svr4.c (elf_locate_base, enable_break): Update.
11001 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11002 (flush_ea_cache): Update.
11003 * stabsread.c (define_symbol): Update.
11004 * symfile.c (simple_read_overlay_table): Update.
11005 * symtab.c (find_pc_sect_line): Update.
11006 * tracepoint.c (scope_info): Update.
11007 * tui-disasm.c (tui_get_begin_asm_address): Update.
11008 * value.c (value_static_field): Update.
11009
11010 2014-02-26 Tom Tromey <tromey@redhat.com>
11011
11012 * minsyms.c (prim_record_minimal_symbol_full): Use
11013 SET_MSYMBOL_VALUE_ADDRESS.
11014 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11015 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11016 SET_MSYMBOL_VALUE_ADDRESS.
11017 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11018 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11019
11020 2014-02-26 Tom Tromey <tromey@redhat.com>
11021
11022 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11023 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11024 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11025 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11026 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11027 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11028 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11029 * ada-lang.c (ada_main_name): Update.
11030 (ada_lookup_simple_minsym): Update.
11031 (ada_make_symbol_completion_list): Update.
11032 (ada_add_standard_exceptions): Update.
11033 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11034 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11035 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11036 * arm-tdep.c (skip_prologue_function): Update.
11037 (arm_skip_stack_protector, arm_skip_stub): Update.
11038 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11039 (arm_wince_skip_main_prologue): Update.
11040 * auxv.c (ld_so_xfer_auxv): Update.
11041 * avr-tdep.c (avr_scan_prologue): Update.
11042 * ax-gdb.c (gen_var_ref): Update.
11043 * block.c (call_site_for_pc): Update.
11044 * blockframe.c (get_pc_function_start): Update.
11045 (find_pc_partial_function_gnu_ifunc): Update.
11046 * breakpoint.c (create_overlay_event_breakpoint): Update.
11047 (create_longjmp_master_breakpoint): Update.
11048 (create_std_terminate_master_breakpoint): Update.
11049 (create_exception_master_breakpoint): Update.
11050 (resolve_sal_pc): Update.
11051 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11052 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11053 Update.
11054 * c-valprint.c (c_val_print): Update.
11055 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11056 * coffread.c (coff_symfile_read): Update.
11057 * common/agent.c (agent_look_up_symbols): Update.
11058 * dbxread.c (find_stab_function_addr): Update.
11059 (end_psymtab): Update.
11060 * dwarf2loc.c (call_site_to_target_addr): Update.
11061 (func_verify_no_selftailcall): Update.
11062 (tailcall_dump): Update.
11063 (call_site_find_chain_1): Update.
11064 (dwarf_expr_reg_to_entry_parameter): Update.
11065 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11066 (elf_gnu_ifunc_resolve_by_got): Update.
11067 * f-valprint.c (info_common_command): Update.
11068 * findvar.c (read_var_value): Update.
11069 * frame.c (get_prev_frame_1): Update.
11070 (inside_main_func): Update.
11071 * frv-tdep.c (frv_skip_main_prologue): Update.
11072 (frv_frame_this_id): Update.
11073 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11074 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11075 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11076 (gnuv3_skip_trampoline): Update.
11077 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11078 (hppa64_hpux_in_solib_call_trampoline): Update.
11079 (hppa_hpux_skip_trampoline_code): Update.
11080 (hppa64_hpux_search_dummy_call_sequence): Update.
11081 (hppa_hpux_find_import_stub_for_addr): Update.
11082 (hppa_hpux_find_dummy_bpaddr): Update.
11083 * hppa-tdep.c (hppa_symbol_address)
11084 (hppa_lookup_stub_minimal_symbol): Update.
11085 * i386-tdep.c (i386_skip_main_prologue): Update.
11086 (i386_pe_skip_trampoline_code): Update.
11087 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11088 * infcall.c (get_function_name): Update.
11089 * infcmd.c (until_next_command): Update.
11090 * jit.c (jit_breakpoint_re_set_internal): Update.
11091 (jit_inferior_init): Update.
11092 * linespec.c (minsym_found): Update.
11093 (add_minsym): Update.
11094 * linux-fork.c (info_checkpoints_command): Update.
11095 * linux-nat.c (get_signo): Update.
11096 * linux-thread-db.c (inferior_has_bug): Update.
11097 * m32c-tdep.c (m32c_return_value): Update.
11098 (m32c_m16c_address_to_pointer): Update.
11099 (m32c_m16c_pointer_to_address): Update.
11100 * m32r-tdep.c (m32r_frame_this_id): Update.
11101 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11102 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11103 * maint.c (maintenance_translate_address): Update.
11104 * minsyms.c (add_minsym_to_hash_table): Update.
11105 (add_minsym_to_demangled_hash_table): Update.
11106 (msymbol_objfile): Update.
11107 (lookup_minimal_symbol): Update.
11108 (iterate_over_minimal_symbols): Update.
11109 (lookup_minimal_symbol_text): Update.
11110 (lookup_minimal_symbol_by_pc_name): Update.
11111 (lookup_minimal_symbol_solib_trampoline): Update.
11112 (lookup_minimal_symbol_by_pc_section_1): Update.
11113 (lookup_minimal_symbol_and_objfile): Update.
11114 (prim_record_minimal_symbol_full): Update.
11115 (compare_minimal_symbols): Update.
11116 (compact_minimal_symbols): Update.
11117 (build_minimal_symbol_hash_tables): Update.
11118 (install_minimal_symbols): Update.
11119 (terminate_minimal_symbol_table): Update.
11120 (find_solib_trampoline_target): Update.
11121 (minimal_symbol_upper_bound): Update.
11122 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11123 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11124 (mips_skip_pic_trampoline_code): Update.
11125 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11126 * objc-lang.c (selectors_info): Update.
11127 (classes_info): Update.
11128 (find_methods): Update.
11129 (find_imps): Update.
11130 (find_objc_msgsend): Update.
11131 * objfiles.c (objfile_relocate1): Update.
11132 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11133 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11134 * p-valprint.c (pascal_val_print): Update.
11135 * parse.c (write_exp_msymbol): Update.
11136 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11137 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11138 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11139 * printcmd.c (build_address_symbolic): Update.
11140 (sym_info): Update.
11141 (address_info): Update.
11142 * proc-service.c (ps_pglobal_lookup): Update.
11143 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11144 (find_pc_sect_psymtab): Update.
11145 * python/py-framefilter.c (py_print_frame): Update.
11146 * ravenscar-thread.c (get_running_thread_id): Update.
11147 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11148 Update.
11149 * remote.c (remote_check_symbols): Update.
11150 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11151 (rs6000_skip_trampoline_code): Update.
11152 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11153 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11154 * solib-dsbt.c (lm_base): Update.
11155 * solib-frv.c (lm_base): Update.
11156 (main_got): Update.
11157 * solib-irix.c (locate_base): Update.
11158 * solib-som.c (som_solib_create_inferior_hook): Update.
11159 (som_solib_desire_dynamic_linker_symbols): Update.
11160 (link_map_start): Update.
11161 * solib-spu.c (spu_enable_break): Update.
11162 (ocl_enable_break): Update.
11163 * solib-svr4.c (elf_locate_base): Update.
11164 (enable_break): Update.
11165 * spu-tdep.c (spu_get_overlay_table): Update.
11166 (spu_catch_start): Update.
11167 (flush_ea_cache): Update.
11168 * stabsread.c (define_symbol): Update.
11169 (scan_file_globals): Update.
11170 * stack.c (find_frame_funname): Update.
11171 (frame_info): Update.
11172 * symfile.c (simple_read_overlay_table): Update.
11173 (simple_overlay_update): Update.
11174 * symmisc.c (dump_msymbols): Update.
11175 * symtab.c (fixup_section): Update.
11176 (find_pc_sect_line): Update.
11177 (skip_prologue_sal): Update.
11178 (search_symbols): Update.
11179 (print_msymbol_info): Update.
11180 (rbreak_command): Update.
11181 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11182 (completion_list_objc_symbol): Update.
11183 (default_make_symbol_completion_list_break_on): Update.
11184 * tracepoint.c (scope_info): Update.
11185 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11186 (tui_get_begin_asm_address): Update.
11187 * valops.c (find_function_in_inferior): Update.
11188 * value.c (value_static_field): Update.
11189 (value_fn_field): Update.
11190
11191 2014-02-26 Tom Tromey <tromey@redhat.com>
11192
11193 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11194 bound minimal symbols. Move code that knows about minsym
11195 table layout...
11196 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11197 function.
11198 * minsyms.h (minimal_symbol_upper_bound): Declare.
11199 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11200 minimal_symbol_upper_bound.
11201
11202 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11203
11204 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11205 Use the type's name if its basic type does not have a tag.
11206
11207 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11208
11209 * dwarf2read.c (read_subrange_type): Add comment.
11210
11211 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11212
11213 * dwarf2read.c (update_enumeration_type_from_children): New
11214 function, mostly extracted from process_structure_scope.
11215 (read_enumeration_type): Call update_enumeration_type_from_children.
11216 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11217 and flag_flag_enum fields.
11218
11219 2014-02-26 Pedro Alves <palves@redhat.com>
11220
11221 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11222 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11223 to_xfer_partial method.
11224
11225 2014-02-26 Pedro Alves <palves@redhat.com>
11226
11227 * target.c (complete_target_initialization): Don't install
11228 default_xfer_partial as to_xfer_partial hook.
11229 (nomemory): Delete.
11230 (update_current_target): Don't INHERIT nor de_fault
11231 deprecated_xfer_memory. Delete de_fault macro.
11232 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11233 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11234 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11235 field.
11236
11237 2014-02-26 Pedro Alves <palves@redhat.com>
11238
11239 * go32-nat.c (my_write_child): New function.
11240 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11241 (go32_xfer_partial): New function.
11242 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11243 Instead install a to_xfer_partial hook.
11244
11245 2014-02-26 Pedro Alves <palves@redhat.com>
11246
11247 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11248 to_xfer_partial helper. Rewrite.
11249 (procfs_xfer_partial): New function.
11250 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11251 Install a to_xfer_partial hook.
11252
11253 2014-02-26 Pedro Alves <palves@redhat.com>
11254
11255 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11256 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11257 (m32r_xfer_partial): New function.
11258 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11259 Install a to_xfer_partial hook.
11260
11261 2014-02-26 Pedro Alves <palves@redhat.com>
11262
11263 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11264 helper.
11265 (mips_xfer_partial): New function.
11266 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11267 hook. Install a to_xfer_partial hook.
11268
11269 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11270
11271 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11272 * gdbtypes.c (create_array_type_with_stride): New function,
11273 renaming create_array_type, but with an added parameter
11274 called "bit_stride".
11275 (create_array_type): Re-implement using
11276 create_array_type_with_stride.
11277 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11278 and DW_AT_bit_stride attributes.
11279
11280 2014-02-26 Pedro Alves <palves@redhat.com>
11281
11282 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11283 task-specific breakpoints.
11284
11285 2014-02-25 Pedro Alves <palves@redhat.com>
11286
11287 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11288 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11289
11290 2014-02-25 Stan Shebs <stan@codesourcery.com>
11291
11292 * defs.h: Annotate comments for Doxygen.
11293
11294 2014-02-25 Tom Tromey <tromey@redhat.com>
11295
11296 * target.h (target_ignore): Don't declare.
11297 * target.c (target_ignore): Remove.
11298
11299 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11300
11301 PR gdb/16626
11302 * auto-load.c (auto_load_objfile_script_1): Change filename to
11303 debugfile.
11304
11305 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11306
11307 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11308 documentation. Adjust prototype to match the target_ops
11309 to_xfer_partial method. Adjust implementation accordingly.
11310
11311 2014-02-25 Hui Zhu <hui@codesourcery.com>
11312
11313 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11314 to_traceframe_info.
11315
11316 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11317
11318 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11319 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11320 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11321 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11322 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11323 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11324 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11325 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11326 New constants.
11327 (rl78_register_type): Use a data pointer type for SP and
11328 new pseudo registers mentioned above. Use a 16 bit integer
11329 type for all other register pairs.
11330 (rl78_register_name, rl78_g10_register_name): Update for
11331 new pseudo registers.
11332 (rl78_pseudo_register_read): Likewise.
11333 (rl78_pseudo_register_write): Likewise.
11334 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11335 to the newly added pseudo registers.
11336
11337 2014-02-24 Doug Evans <dje@google.com>
11338
11339 * value.c (record_latest_value): Fix comment.
11340 * printcmd.c (print_command_1): Remove code to handle -1 return from
11341 record_latest_value.
11342
11343 2014-02-24 Pedro Alves <palves@redhat.com>
11344
11345 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11346 deprecated_xfer_memory hook.
11347 (procfs_xfer_partial): Call procfs_xfer_memory instead
11348 of the deprecated_xfer_memory target hook.
11349 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11350 helper.
11351
11352 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11353
11354 * windows-nat.c (windows_xfer_shared_libraries): Return
11355 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11356 requested object is TARGET_OBJECT_LIBRARIES.
11357
11358 2014-02-24 Yao Qi <yao@codesourcery.com>
11359
11360 * target.h (enum target_xfer_status)
11361 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11362 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11363 explicitly. New.
11364 * corefile.c (memory_error_message): User updated.
11365 * exec.c (section_table_read_available_memory): Likewise.
11366 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11367 * target.c (target_xfer_status_to_string): Likewise.
11368 (raw_memory_xfer_partial): Likewise.
11369 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11370 * valops.c (read_value_memory): Likewise.
11371 * exec.h: Update comments.
11372
11373 2014-02-24 Yao Qi <yao@codesourcery.com>
11374
11375 * target.c (target_xfer_status_to_string): Rename argument err
11376 to status.
11377 * target.h (target_xfer_status_to_string): Update declaration.
11378 Replace target_xfer_error_to_string with
11379 target_xfer_status_to_string in comment.
11380
11381 2014-02-24 Yao Qi <yao@codesourcery.com>
11382
11383 * mips-linux-nat.c (super_close): Update its type.
11384 (mips_linux_close): Pass 'self' to super_close.
11385
11386 2014-02-24 Yao Qi <yao@codesourcery.com>
11387
11388 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11389 * corefile.c (read_memory): Adjusted.
11390 * target.c (target_write_with_progress): Adjusted.
11391
11392 2014-02-23 Yao Qi <yao@codesourcery.com>
11393
11394 Revert two patches:
11395
11396 2013-10-25 Yao Qi <yao@codesourcery.com>
11397
11398 * remote.c (remote_traceframe_info): Return early if
11399 traceframe is not selected.
11400
11401 2013-07-19 Yao Qi <yao@codesourcery.com>
11402
11403 * target.c (update_current_target): Change the default action
11404 of 'to_traceframe_info' from tcomplain to return_zero.
11405 * target.h (struct target_ops) <to_traceframe_info>: Add more
11406 comments.
11407
11408 2014-02-23 Yao Qi <yao@codesourcery.com>
11409
11410 * valops.c (read_value_memory): Rewrite it. Call
11411 target_xfer_partial in a loop.
11412 * exec.h (section_table_available_memory): Remove declaration.
11413 Move comments to ...
11414 * exec.c (section_table_available_memory): ... here. Make it
11415 static.
11416
11417 2014-02-23 Yao Qi <yao@codesourcery.com>
11418
11419 * exec.c (section_table_read_available_memory): New function.
11420 * exec.h (section_table_read_available_memory): Declare.
11421 * ctf.c (ctf_xfer_partial): Call
11422 section_table_read_available_memory.
11423 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11424
11425 2014-02-23 Yao Qi <yao@codesourcery.com>
11426
11427 * ctf.c (ctf_xfer_partial): Move code to ...
11428 * exec.c (exec_read_partial_read_only): ... it. New function.
11429 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11430 * tracefile.c: Include "exec.h".
11431 * exec.h (exec_read_partial_read_only): Declare.
11432
11433 2014-02-23 Yao Qi <yao@codesourcery.com>
11434
11435 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11436 (tfile_has_memory): Remove.
11437 (init_tfile_ops): Don't set fields to_has_all_memory and
11438 to_has_memory of tfile_ops.
11439 * tracefile.c (tracefile_has_all_memory): New function.
11440 (tracefile_has_memory): New function.
11441 (init_tracefile_ops): Initialize fields to_has_all_memory and
11442 to_has_memory of 'ops'.
11443
11444 2014-02-23 Yao Qi <yao@codesourcery.com>
11445
11446 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11447 (ctf_thread_alive, ctf_get_trace_status): Remove.
11448 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11449 init_tracefile_ops.
11450 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11451 (tfile_has_stack, tfile_has_registers): Remove.
11452 (tfile_thread_alive): Remove.
11453 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11454 init_tracefile_ops.
11455 * tracefile.c (tracefile_has_stack): New function.
11456 (tracefile_has_registers): New function.
11457 (tracefile_thread_alive): New function.
11458 (tracefile_get_trace_status): New function.
11459 (init_tracefile_ops): New function.
11460 * tracefile.h (init_tracefile_ops): Declare.
11461
11462 2014-02-23 Yao Qi <yao@codesourcery.com>
11463
11464 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11465 (O_LARGEFILE): Likewise.
11466 (tfile_ops): Likewise.
11467 (TRACE_HEADER_SIZE): Likewise.
11468 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11469 (cur_data_size): Likewise.
11470 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11471 (tfile_close, tfile_files_info): Likewise.
11472 (tfile_get_trace_status): Likewise.
11473 (tfile_get_tracepoint_status): Likewise.
11474 (tfile_get_traceframe_address): Likewise.
11475 (tfile_trace_find, match_blocktype): Likewise.
11476 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11477 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11478 (tfile_get_trace_state_variable_value): Likewise.
11479 (tfile_has_all_memory, tfile_has_memory): Likewise.
11480 (tfile_has_stack, tfile_has_registers): Likewise.
11481 (tfile_thread_alive, build_traceframe_info): Likewise.
11482 (tfile_traceframe_info, init_tfile_ops): Likewise.
11483 (_initialize_tracepoint): Don't call init_tfile_ops
11484 and add_target_with_completer.
11485 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11486 exec.h, completer.h and filenames.h.
11487 (_initialize_tracefile_tfile): New function.
11488
11489 2014-02-23 Yao Qi <yao@codesourcery.com>
11490
11491 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11492 tracefile-tfile.o.
11493 (HFILES_NO_SRCDIR): Add tracefile.h.
11494 * ctf.c: Include "tracefile.h".
11495 * tracefile.h: New file.
11496 * tracefile.c: New file
11497 * tracefile-tfile.c: New file.
11498 * tracepoint.c: Include "tracefile.h".
11499 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11500 (stop_reason_names): Add const.
11501 (trace_file_writer_xfree): Move it to tracefile.c.
11502 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11503 (trace_save_ctf): Likewise.
11504 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11505 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11506 (tfile_write_header, tfile_write_regblock_type): Likewise.
11507 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11508 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11509 (tfile_write_raw_data, tfile_end): Likewise.
11510 (tfile_trace_file_writer_new): Likewise.
11511 (free_uploaded_tp): Make it extern.
11512 (free_uploaded_tsv): Make it extern.
11513 (_initialize_tracepoint): Move code to register command 'tsave'
11514 to tracefile.c.
11515 * tracepoint.h (stop_reason_names): Declare.
11516 (struct trace_frame_write_ops): Move it to tracefile.h.
11517 (struct trace_file_write_ops): Likewise.
11518 (struct trace_file_writer): Likewise.
11519 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11520
11521 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11522
11523 PR gdb/16594
11524 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11525 process name.
11526 (get_cores_used_by_process): New parameter num_cores, use it.
11527 (linux_xfer_osdata_processes): Pass num_cores to it.
11528 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11529 process name.
11530
11531 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11532
11533 * target.c (memory_xfer_partial): Fix length arg in call to
11534 breakpoint_xfer_memory.
11535
11536 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11537
11538 PR tdep/16397
11539 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11540 number comes after the + or - signs. Adjust length of register
11541 name to be extracted.
11542
11543 2014-02-20 Tom Tromey <tromey@redhat.com>
11544
11545 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11546 (ada_varobj_ops): Mark "extern".
11547
11548 2014-02-20 Tom Tromey <tromey@redhat.com>
11549
11550 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11551
11552 2014-02-20 Doug Evans <xdje42@gmail.com>
11553
11554 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11555 All callers updated.
11556 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11557 All callers updated.
11558 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11559 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11560
11561 2014-02-20 lin zuojian <manjian2006@gmail.com>
11562 Joel Brobecker <brobecker@adacore.com>
11563 Doug Evans <xdje42@gmail.com>
11564
11565 PR symtab/16581
11566 * dwarf2read.c (struct die_info): New member in_process.
11567 (reset_die_in_process): New function.
11568 (process_die): Set it at the start, reset when returning.
11569 (inherit_abstract_dies): Only call process_die if origin_child_die
11570 not already being processed.
11571
11572 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11573
11574 * windows-nat.c (handle_unload_dll): Add function documentation.
11575 (do_initial_windows_stuff): Add comment explaining why we wait
11576 until after inferior initialization has finished before
11577 processing all DLLs.
11578
11579 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11580
11581 * windows-nat.c (get_module_name): Delete.
11582 (windows_get_exec_module_filename): New function, mostly
11583 inspired from get_module_name.
11584 (windows_pid_to_exec_file): Replace call to get_module_name
11585 by call to windows_get_exec_module_filename.
11586
11587 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11588
11589 * windows-nat.c (handle_load_dll): Rewrite this function's
11590 introductory comment. Remove code using get_module_name
11591 to get the DLL's name.
11592
11593 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11594
11595 * windows-nat.c (get_windows_debug_event): Ignore
11596 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11597 if windows_initialization_done == 0.
11598 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11599 Adjust implementation to always load all DLLs.
11600 (do_initial_windows_stuff): Replace call to
11601 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11602
11603 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11604
11605 * windows-nat.c (_initialize_windows_nat): Deprecate the
11606 "dll-symbols" command. Turn the "add-shared-symbol-files"
11607 and "assf" aliases into commands, and deprecate them as well.
11608 * NEWS: Add entry explaining that "dll-symbols" and its two
11609 aliases are now deprecated.
11610
11611 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11612
11613 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11614 new-line in debug string. Remove trailing spaces.
11615
11616 2014-02-19 Stan Shebs <stan@codesourcery.com>
11617
11618 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11619
11620 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11621
11622 * NEWS: Add entry for the new feature
11623 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11624 and class values.
11625
11626 2014-02-19 Stan Shebs <stan@codesourcery.com>
11627
11628 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11629
11630 2014-02-19 Pedro Alves <palves@redhat.com>
11631
11632 * common/ptid.h (struct ptid): Mention that process_stratum
11633 targets should prefer ptid.lwp.
11634
11635 2014-02-19 Pedro Alves <palves@redhat.com>
11636
11637 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11638 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11639 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11640 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11641 store remote thread ids rather than ptid.tid.
11642 (_initialize_remote): Adjust.
11643
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11645
11646 * target.c (target_get_unwinder): Rewrite.
11647 (target_get_tailcall_unwinder): Rewrite.
11648 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11649 (record_btrace_to_get_tailcall_unwinder): New function.
11650 (init_record_btrace_ops): Update.
11651 * target.h (struct target_ops) <to_get_unwinder,
11652 to_get_tailcall_unwinder>: Now function pointers. Use
11653 TARGET_DEFAULT_RETURN.
11654
11655 2014-02-19 Tom Tromey <tromey@redhat.com>
11656
11657 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11658 argument.
11659 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11660
11661 2014-02-19 Tom Tromey <tromey@redhat.com>
11662
11663 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11664 directly.
11665 * target-delegates.c: Rebuild.
11666 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11667 TARGET_DEFAULT_FUNC.
11668 * target.c (default_target_decr_pc_after_break): Rename from
11669 forward_target_decr_pc_after_break. Simplify.
11670 (target_decr_pc_after_break): Rely on delegation.
11671
11672 2014-02-19 Tom Tromey <tromey@redhat.com>
11673
11674 * target.c (update_current_target): Do not INHERIT to_doc or
11675 to_magic. Do not de_fault to_open or to_close.
11676
11677 2014-02-19 Tom Tromey <tromey@redhat.com>
11678
11679 * gcore.h (objfile_find_memory_regions): Declare.
11680 * gcore.c (objfile_find_memory_regions): No longer static. Add
11681 "self" argument.
11682 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11683 * exec.c: Include gcore.h.
11684 (exec_set_find_memory_regions): Remove.
11685 (exec_find_memory_regions): Remove.
11686 (exec_do_find_memory_regions): Remove.
11687 (init_exec_ops): Update.
11688 * defs.h (exec_set_find_memory_regions): Remove.
11689
11690 2014-02-19 Tom Tromey <tromey@redhat.com>
11691
11692 * target-delegates.c: Rebuild.
11693 * target.h (struct target_ops) <to_extra_thread_info,
11694 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11695 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11696 not 0, in TARGET_DEFAULT_RETURN.
11697
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target.c (complete_target_initialization): Remove casts. Use
11701 return_zero_has_execution.
11702 (return_zero): Add "ignore" argument.
11703 (return_zero_has_execution): New function.
11704 (init_dummy_target): Remove casts. Use
11705 return_zero_has_execution.
11706
11707 2014-02-19 Tom Tromey <tromey@redhat.com>
11708
11709 * target.c (update_current_target): Update comments. Do not
11710 INHERIT to_stratum.
11711
11712 2014-02-19 Tom Tromey <tromey@redhat.com>
11713
11714 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11715 needed.
11716 * corelow.c (core_read_description): Delegate when needed.
11717 * remote.c (remote_read_description): Delegate when needed.
11718 * target-delegates.c: Rebuild.
11719 * target.c (target_read_description): Rewrite.
11720 * target.h (struct target_ops) <to_read_description>: Update
11721 comment. Use TARGET_DEFAULT_RETURN.
11722
11723 2014-02-19 Tom Tromey <tromey@redhat.com>
11724
11725 * target-delegates.c: Rebuild.
11726 * target.c (update_current_target): Don't inherit or default
11727 to_can_run.
11728 (find_default_run_target): Check against delegate_can_run.
11729 * target.h (struct target_ops) <to_can_run>: Use
11730 TARGET_DEFAULT_RETURN.
11731
11732 2014-02-19 Tom Tromey <tromey@redhat.com>
11733
11734 * target-delegates.c: Rebuild.
11735 * target.c (target_disconnect): Unconditionally delegate.
11736 * target.h (struct target_ops) <to_disconnect>: Use
11737 TARGET_DEFAULT_NORETURN.
11738
11739 2014-02-19 Tom Tromey <tromey@redhat.com>
11740
11741 * record.c (record_stop): Unconditionally delegate.
11742 * target-delegates.c: Rebuild.
11743 * target.c (target_stop_recording): Unconditionally delegate.
11744 * target.h (struct target_ops) <to_stop_recording>: Use
11745 TARGET_DEFAULT_IGNORE.
11746
11747 2014-02-19 Tom Tromey <tromey@redhat.com>
11748
11749 * target-delegates.c: Rebuild.
11750 * target.c (target_enable_btrace): Unconditionally delegate.
11751 * target.h (struct target_ops) <to_enable_btrace>: Use
11752 TARGET_DEFAULT_NORETURN.
11753
11754 2014-02-19 Tom Tromey <tromey@redhat.com>
11755
11756 * target-delegates.c: Rebuild.
11757 * target.c (target_read_btrace): Unconditionally delegate.
11758 * target.h (struct target_ops) <to_read_btrace>: Use
11759 TARGET_DEFAULT_NORETURN.
11760
11761 2014-02-19 Tom Tromey <tromey@redhat.com>
11762
11763 * target-delegates.c: Rebuild.
11764 * target.c (target_teardown_btrace): Unconditionally delegate.
11765 * target.h (struct target_ops) <to_teardown_btrace>: Use
11766 TARGET_DEFAULT_NORETURN.
11767
11768 2014-02-19 Tom Tromey <tromey@redhat.com>
11769
11770 * target-delegates.c: Rebuild.
11771 * target.c (target_disable_btrace): Unconditionally delegate.
11772 * target.h (struct target_ops) <to_disable_btrace>: Use
11773 TARGET_DEFAULT_NORETURN.
11774
11775 2014-02-19 Tom Tromey <tromey@redhat.com>
11776
11777 * target-delegates.c: Rebuild.
11778 * target.c (default_search_memory): New function.
11779 (simple_search_memory): Update comment.
11780 (target_search_memory): Unconditionally delegate.
11781 * target.h (struct target_ops) <to_search_memory>: Use
11782 TARGET_DEFAULT_FUNC.
11783
11784 2014-02-19 Tom Tromey <tromey@redhat.com>
11785
11786 * auxv.c (default_auxv_parse): No longer static.
11787 (target_auxv_parse): Unconditionally delegate.
11788 * auxv.h (default_auxv_parse): Declare.
11789 * target-delegates.c: Rebuild.
11790 * target.c: Include auxv.h.
11791 * target.h (struct target_ops) <to_auxv_parse>: Use
11792 TARGET_DEFAULT_FUNC.
11793
11794 2014-02-19 Tom Tromey <tromey@redhat.com>
11795
11796 * target-delegates.c: Rebuild.
11797 * target.c (target_memory_map): Unconditionally delegate.
11798 * target.h (struct target_ops) <to_memory_map>: Use
11799 TARGET_DEFAULT_RETURN.
11800
11801 2014-02-19 Tom Tromey <tromey@redhat.com>
11802
11803 * target-delegates.c: Rebuild.
11804 * target.c (target_thread_alive): Unconditionally delegate.
11805 * target.h (struct target_ops) <to_thread_alive>: Use
11806 TARGET_DEFAULT_RETURN.
11807
11808 2014-02-19 Tom Tromey <tromey@redhat.com>
11809
11810 * target-delegates.c: Rebuild.
11811 * target.c (target_save_record): Unconditionally delegate.
11812 * target.h (struct target_ops) <to_save_record>: Use
11813 TARGET_DEFAULT_NORETURN.
11814
11815 2014-02-19 Tom Tromey <tromey@redhat.com>
11816
11817 * target-delegates.c: Rebuild.
11818 * target.c (target_delete_record): Unconditionally delegate.
11819 * target.h (struct target_ops) <to_delete_record>: Use
11820 TARGET_DEFAULT_NORETURN.
11821
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11823
11824 * target-delegates.c: Rebuild.
11825 * target.c (target_record_is_replaying): Unconditionally
11826 delegate.
11827 * target.h (struct target_ops) <to_record_is_replaying>: Use
11828 TARGET_DEFAULT_RETURN.
11829
11830 2014-02-19 Tom Tromey <tromey@redhat.com>
11831
11832 * target-delegates.c: Rebuild.
11833 * target.c (target_goto_record_begin): Unconditionally delegate.
11834 * target.h (struct target_ops) <to_goto_record_begin>: Use
11835 TARGET_DEFAULT_NORETURN.
11836
11837 2014-02-19 Tom Tromey <tromey@redhat.com>
11838
11839 * target-delegates.c: Rebuild.
11840 * target.c (target_goto_record_end): Unconditionally delegate.
11841 * target.h (struct target_ops) <to_goto_record_end>: 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_goto_record): Unconditionally delegate.
11848 * target.h (struct target_ops) <to_goto_record>: 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_insn_history): Unconditionally delegate.
11855 * target.h (struct target_ops) <to_insn_history>: Use
11856 TARGET_DEFAULT_NORETURN.
11857
11858 2014-02-19 Tom Tromey <tromey@redhat.com>
11859
11860 * target-delegates.c: Rebuild.
11861 * target.c (target_insn_history_from): Unconditionally delegate.
11862 * target.h (struct target_ops) <to_insn_history_from>: Use
11863 TARGET_DEFAULT_NORETURN.
11864
11865 2014-02-19 Tom Tromey <tromey@redhat.com>
11866
11867 * target-delegates.c: Rebuild.
11868 * target.c (target_insn_history_range): Unconditionally delegate.
11869 * target.h (struct target_ops) <to_insn_history_range>: Use
11870 TARGET_DEFAULT_NORETURN.
11871
11872 2014-02-19 Tom Tromey <tromey@redhat.com>
11873
11874 * target-delegates.c: Rebuild.
11875 * target.c (target_call_history): Unconditionally delegate.
11876 * target.h (struct target_ops) <to_call_history>: Use
11877 TARGET_DEFAULT_NORETURN.
11878
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11880
11881 * target-delegates.c: Rebuild.
11882 * target.c (target_call_history_from): Unconditionally delegate.
11883 * target.h (struct target_ops) <to_call_history_from>: Use
11884 TARGET_DEFAULT_NORETURN.
11885
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11887
11888 * target-delegates.c: Rebuild.
11889 * target.c (target_call_history_range): Unconditionally delegate.
11890 * target.h (struct target_ops) <to_call_history_range>: Use
11891 TARGET_DEFAULT_NORETURN.
11892
11893 2014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * target-delegates.c: Rebuild.
11896 * target.c (target_verify_memory): Unconditionally delegate.
11897 * target.h (struct target_ops) <to_verify_memory>: Use
11898 TARGET_DEFAULT_NORETURN.
11899
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11901
11902 * target-delegates.c: Rebuild.
11903 * target.c (target_core_of_thread): Unconditionally delegate.
11904 * target.h (struct target_ops) <to_core_of_thread>: Use
11905 TARGET_DEFAULT_RETURN.
11906
11907 2014-02-19 Tom Tromey <tromey@redhat.com>
11908
11909 * target-delegates.c: Rebuild.
11910 * target.c (target_flash_done): Unconditionally delegate.
11911 * target.h (struct target_ops) <to_flash_done>: Use
11912 TARGET_DEFAULT_NORETURN.
11913
11914 2014-02-19 Tom Tromey <tromey@redhat.com>
11915
11916 * target-delegates.c: Rebuild.
11917 * target.c (target_flash_erase): Unconditionally delegate.
11918 * target.h (struct target_ops) <to_flash_erase>: Use
11919 TARGET_DEFAULT_NORETURN.
11920
11921 2014-02-19 Tom Tromey <tromey@redhat.com>
11922
11923 * target-delegates.c: Rebuild.
11924 * target.c (target_get_section_table): Unconditionally delegate.
11925 * target.h (struct target_ops) <to_get_section_table>: Use
11926 TARGET_DEFAULT_RETURN.
11927
11928 2014-02-19 Tom Tromey <tromey@redhat.com>
11929
11930 * target-delegates.c: Rebuild.
11931 * target.c (target_pid_to_str): Unconditionally delegate.
11932 (init_dummy_target): Don't initialize to_pid_to_str.
11933 (default_pid_to_str): Rename from dummy_pid_to_str.
11934 * target.h (struct target_ops) <to_pid_to_str>: Use
11935 TARGET_DEFAULT_FUNC.
11936
11937 2014-02-19 Tom Tromey <tromey@redhat.com>
11938
11939 * target-delegates.c: Rebuild.
11940 * target.c (target_find_new_threads): Unconditionally delegate.
11941 * target.h (struct target_ops) <to_find_new_threads>: Use
11942 TARGET_DEFAULT_RETURN.
11943
11944 2014-02-19 Tom Tromey <tromey@redhat.com>
11945
11946 * target-delegates.c: Rebuild.
11947 * target.c (target_program_signals): Unconditionally delegate.
11948 * target.h (struct target_ops) <to_program_signals>: Use
11949 TARGET_DEFAULT_IGNORE.
11950
11951 2014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * target-delegates.c: Rebuild.
11954 * target.c (target_pass_signals): Unconditionally delegate.
11955 * target.h (struct target_ops) <to_pass_signals>: Use
11956 TARGET_DEFAULT_IGNORE.
11957
11958 2014-02-19 Tom Tromey <tromey@redhat.com>
11959
11960 * target-delegates.c: Rebuild.
11961 * target.c (default_mourn_inferior): New function.
11962 (target_mourn_inferior): Unconditionally delegate.
11963 * target.h (struct target_ops) <to_mourn_inferior>: Use
11964 TARGET_DEFAULT_FUNC.
11965
11966 2014-02-19 Tom Tromey <tromey@redhat.com>
11967
11968 * target-delegates.c: Rebuild.
11969 * target.c (default_follow_fork): New function.
11970 (target_follow_fork): Unconditionally delegate.
11971 * target.h (struct target_ops) <to_follow_fork>: Use
11972 TARGET_DEFAULT_FUNC.
11973
11974 2014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * target-delegates.c: Rebuild.
11977 * target.c (target_kill): Unconditionally delegate.
11978 * target.h (struct target_ops) <to_kill>: Use
11979 TARGET_DEFAULT_NORETURN.
11980
11981 2014-02-19 Tom Tromey <tromey@redhat.com>
11982
11983 * target-delegates.c: Rebuild.
11984 * target.c (target_masked_watch_num_registers): Unconditionally
11985 delegate.
11986 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11987 Use TARGET_DEFAULT_RETURN.
11988
11989 2014-02-19 Tom Tromey <tromey@redhat.com>
11990
11991 * target-delegates.c: Rebuild.
11992 * target.c (target_remove_mask_watchpoint): Unconditionally
11993 delegate.
11994 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11995 TARGET_DEFAULT_RETURN.
11996
11997 2014-02-19 Tom Tromey <tromey@redhat.com>
11998
11999 * target-delegates.c: Rebuild.
12000 * target.c (target_insert_mask_watchpoint): Unconditionally
12001 delegate.
12002 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12003 TARGET_DEFAULT_RETURN.
12004
12005 2014-02-19 Tom Tromey <tromey@redhat.com>
12006
12007 * target-delegates.c: Rebuild.
12008 * target.c (target_ranged_break_num_registers): Unconditionally
12009 delegate.
12010 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12011 Use TARGET_DEFAULT_RETURN.
12012
12013 2014-02-19 Tom Tromey <tromey@redhat.com>
12014
12015 * target-delegates.c: Rebuild.
12016 * target.c (target_fetch_registers): Unconditionally delegate.
12017 * target.h (struct target_ops) <to_fetch_registers>: Use
12018 TARGET_DEFAULT_NORETURN.
12019
12020 2014-02-19 Tom Tromey <tromey@redhat.com>
12021
12022 * target-delegates.c: Rebuild.
12023 * target.c (update_current_target): Don't inherit or default
12024 to_stop.
12025 * target.h (struct target_ops) <to_stop>: Use
12026 TARGET_DEFAULT_IGNORE.
12027
12028 2014-02-19 Tom Tromey <tromey@redhat.com>
12029
12030 * target-delegates.c: Rebuild.
12031 * target.c (update_current_target): Don't inherit or default
12032 to_can_run_breakpoint_commands.
12033 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12034 Use TARGET_DEFAULT_RETURN.
12035
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12037
12038 * target-delegates.c: Rebuild.
12039 * target.c (update_current_target): Don't inherit or default
12040 to_supports_evaluation_of_breakpoint_conditions.
12041 * target.h (struct target_ops)
12042 <to_supports_evaluation_of_breakpoint_conditions>: Use
12043 TARGET_DEFAULT_RETURN.
12044
12045 2014-02-19 Tom Tromey <tromey@redhat.com>
12046
12047 * target-delegates.c: Rebuild.
12048 * target.c (update_current_target): Don't inherit or default
12049 to_augmented_libraries_svr4_read.
12050 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12051 Use TARGET_DEFAULT_RETURN.
12052
12053 2014-02-19 Tom Tromey <tromey@redhat.com>
12054
12055 * target-delegates.c: Rebuild.
12056 * target.c (update_current_target): Don't inherit or default
12057 to_can_use_agent.
12058 * target.h (struct target_ops) <to_can_use_agent>: Use
12059 TARGET_DEFAULT_RETURN.
12060
12061 2014-02-19 Tom Tromey <tromey@redhat.com>
12062
12063 * target-delegates.c: Rebuild.
12064 * target.c (update_current_target): Don't inherit or default
12065 to_use_agent.
12066 * target.h (struct target_ops) <to_use_agent>: Use
12067 TARGET_DEFAULT_NORETURN.
12068
12069 2014-02-19 Tom Tromey <tromey@redhat.com>
12070
12071 * target-delegates.c: Rebuild.
12072 * target.c (update_current_target): Don't inherit or default
12073 to_traceframe_info.
12074 (return_null): Remove.
12075 * target.h (struct target_ops) <to_traceframe_info>: Use
12076 TARGET_DEFAULT_RETURN.
12077
12078 2014-02-19 Tom Tromey <tromey@redhat.com>
12079
12080 * target-delegates.c: Rebuild.
12081 * target.c (update_current_target): Don't inherit or default
12082 to_static_tracepoint_markers_by_strid.
12083 * target.h (struct target_ops)
12084 <to_static_tracepoint_markers_by_strid>: Use
12085 TARGET_DEFAULT_NORETURN.
12086
12087 2014-02-19 Tom Tromey <tromey@redhat.com>
12088
12089 * target-delegates.c: Rebuild.
12090 * target.c (update_current_target): Don't inherit or default
12091 to_static_tracepoint_marker_at.
12092 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12093 Use TARGET_DEFAULT_RETURN.
12094
12095 2014-02-19 Tom Tromey <tromey@redhat.com>
12096
12097 * target-delegates.c: Rebuild.
12098 * target.c (update_current_target): Don't inherit or default
12099 to_set_permissions.
12100 * target.h (struct target_ops) <to_set_permissions>: Use
12101 TARGET_DEFAULT_IGNORE.
12102
12103 2014-02-19 Tom Tromey <tromey@redhat.com>
12104
12105 * target-delegates.c: Rebuild.
12106 * target.c (update_current_target): Don't inherit or default
12107 to_get_tib_address.
12108 * target.h (struct target_ops) <to_get_tib_address>: Use
12109 TARGET_DEFAULT_NORETURN.
12110
12111 2014-02-19 Tom Tromey <tromey@redhat.com>
12112
12113 * target-delegates.c: Rebuild.
12114 * target.c (update_current_target): Don't inherit or default
12115 to_set_trace_notes.
12116 * target.h (struct target_ops) <to_set_trace_notes>: Use
12117 TARGET_DEFAULT_RETURN.
12118
12119 2014-02-19 Tom Tromey <tromey@redhat.com>
12120
12121 * target-delegates.c: Rebuild.
12122 * target.c (update_current_target): Don't initialize
12123 to_set_trace_buffer_size.
12124 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12125 TARGET_DEFAULT_IGNORE.
12126
12127 2014-02-19 Tom Tromey <tromey@redhat.com>
12128
12129 * target-delegates.c: Rebuild.
12130 * target.c (update_current_target): Don't inherit or default
12131 to_set_circular_trace_buffer.
12132 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12133 TARGET_DEFAULT_IGNORE.
12134
12135 2014-02-19 Tom Tromey <tromey@redhat.com>
12136
12137 * target-delegates.c: Rebuild.
12138 * target.c (update_current_target): Don't inherit or default
12139 to_set_disconnected_tracing.
12140 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12141 TARGET_DEFAULT_IGNORE.
12142
12143 2014-02-19 Tom Tromey <tromey@redhat.com>
12144
12145 * target-delegates.c: Rebuild.
12146 * target.c (update_current_target): Don't inherit or default
12147 to_get_min_fast_tracepoint_insn_len.
12148 (return_minus_one): Remove.
12149 * target.h (struct target_ops)
12150 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12151
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12153
12154 * target-delegates.c: Rebuild.
12155 * target.c (update_current_target): Don't inherit or default
12156 to_get_raw_trace_data.
12157 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12158 TARGET_DEFAULT_NORETURN.
12159
12160 2014-02-19 Tom Tromey <tromey@redhat.com>
12161
12162 * target-delegates.c: Rebuild.
12163 * target.c (update_current_target): Don't inherit or default
12164 to_upload_trace_state_variables.
12165 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12166 Use TARGET_DEFAULT_RETURN.
12167
12168 2014-02-19 Tom Tromey <tromey@redhat.com>
12169
12170 * target-delegates.c: Rebuild.
12171 * target.c (update_current_target): Don't inherit or default
12172 to_upload_tracepoints.
12173 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12174 TARGET_DEFAULT_RETURN.
12175
12176 2014-02-19 Tom Tromey <tromey@redhat.com>
12177
12178 * target-delegates.c: Rebuild.
12179 * target.c (update_current_target): Don't inherit or default
12180 to_save_trace_data.
12181 * target.h (struct target_ops) <to_save_trace_data>: Use
12182 TARGET_DEFAULT_NORETURN.
12183
12184 2014-02-19 Tom Tromey <tromey@redhat.com>
12185
12186 * target-delegates.c: Rebuild.
12187 * target.c (update_current_target): Don't inherit or default
12188 to_get_trace_state_variable_value.
12189 * target.h (struct target_ops)
12190 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12191
12192 2014-02-19 Tom Tromey <tromey@redhat.com>
12193
12194 * target-delegates.c: Rebuild.
12195 * target.c (update_current_target): Don't inherit or default
12196 to_trace_find.
12197 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12198
12199 2014-02-19 Tom Tromey <tromey@redhat.com>
12200
12201 * target-delegates.c: Rebuild.
12202 * target.c (update_current_target): Don't inherit or default
12203 to_trace_stop.
12204 * target.h (struct target_ops) <to_trace_stop>: Use
12205 TARGET_DEFAULT_NORETURN.
12206
12207 2014-02-19 Tom Tromey <tromey@redhat.com>
12208
12209 * target-delegates.c: Rebuild.
12210 * target.c (update_current_target): Don't inherit or default
12211 to_get_tracepoint_status.
12212 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12213 TARGET_DEFAULT_NORETURN.
12214
12215 2014-02-19 Tom Tromey <tromey@redhat.com>
12216
12217 * target-delegates.c: Rebuild.
12218 * target.c (update_current_target): Don't inherit or default
12219 to_get_trace_status.
12220 * target.h (struct target_ops) <to_get_trace_status>: Use
12221 TARGET_DEFAULT_RETURN.
12222
12223 2014-02-19 Tom Tromey <tromey@redhat.com>
12224
12225 * target-delegates.c: Rebuild.
12226 * target.c (update_current_target): Don't inherit or default
12227 to_trace_start.
12228 * target.h (struct target_ops) <to_trace_start>: Use
12229 TARGET_DEFAULT_NORETURN.
12230
12231 2014-02-19 Tom Tromey <tromey@redhat.com>
12232
12233 * target-delegates.c: Rebuild.
12234 * target.c (update_current_target): Don't inherit or default
12235 to_trace_set_readonly_regions.
12236 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12237 Use TARGET_DEFAULT_NORETURN.
12238
12239 2014-02-19 Tom Tromey <tromey@redhat.com>
12240
12241 * target-delegates.c: Rebuild.
12242 * target.c (update_current_target): Don't inherit or default
12243 to_disable_tracepoint.
12244 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12245 TARGET_DEFAULT_NORETURN.
12246
12247 2014-02-19 Tom Tromey <tromey@redhat.com>
12248
12249 * target-delegates.c: Rebuild.
12250 * target.c (update_current_target): Don't inherit or default
12251 to_enable_tracepoint.
12252 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12253 TARGET_DEFAULT_NORETURN.
12254
12255 2014-02-19 Tom Tromey <tromey@redhat.com>
12256
12257 * target-delegates.c: Rebuild.
12258 * target.c (update_current_target): Don't inherit or default
12259 to_download_trace_state_variable.
12260 * target.h (struct target_ops) <to_download_trace_state_variable>:
12261 Use TARGET_DEFAULT_NORETURN.
12262
12263 2014-02-19 Tom Tromey <tromey@redhat.com>
12264
12265 * target-delegates.c: Rebuild.
12266 * target.c (update_current_target): Don't inherit or default
12267 to_can_download_tracepoint.
12268 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12269 TARGET_DEFAULT_RETURN.
12270
12271 2014-02-19 Tom Tromey <tromey@redhat.com>
12272
12273 * target-delegates.c: Rebuild.
12274 * target.c (update_current_target): Don't inherit or default
12275 to_download_tracepoint.
12276 * target.h (struct target_ops) <to_download_tracepoint>: Use
12277 TARGET_DEFAULT_NORETURN.
12278
12279 2014-02-19 Tom Tromey <tromey@redhat.com>
12280
12281 * target-delegates.c: Rebuild.
12282 * target.c (update_current_target): Don't inherit or default
12283 to_trace_init.
12284 * target.h (struct target_ops) <to_trace_init>: Use
12285 TARGET_DEFAULT_RETURN.
12286
12287 2014-02-19 Tom Tromey <tromey@redhat.com>
12288
12289 * target-delegates.c: Rebuild.
12290 * target.c (update_current_target): Don't inherit or default
12291 to_supports_string_tracing.
12292 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12293 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
12300 * target.h (struct target_ops)
12301 <to_supports_enable_disable_tracepoint>: Use
12302 TARGET_DEFAULT_RETURN.
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_supports_multi_process.
12309 * target.h (struct target_ops) <to_supports_multi_process>: Use
12310 TARGET_DEFAULT_RETURN.
12311
12312 2014-02-19 Tom Tromey <tromey@redhat.com>
12313
12314 * target-delegates.c: Rebuild.
12315 * target.c (update_current_target): Don't inherit or default
12316 to_get_ada_task_ptid.
12317 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12318 TARGET_DEFAULT_FUNC.
12319
12320 2014-02-19 Tom Tromey <tromey@redhat.com>
12321
12322 * target-delegates.c: Rebuild.
12323 * target.c (update_current_target): Don't inherit or default
12324 to_thread_architecture.
12325 * target.h (struct target_ops) <to_thread_architecture>: Use
12326 TARGET_DEFAULT_FUNC.
12327
12328 2014-02-19 Tom Tromey <tromey@redhat.com>
12329
12330 * target-delegates.c: Rebuild.
12331 * target.c (update_current_target): Don't inherit or default
12332 to_execution_direction.
12333 * target.h (struct target_ops) <to_execution_direction>: Use
12334 TARGET_DEFAULT_FUNC.
12335
12336 2014-02-19 Tom Tromey <tromey@redhat.com>
12337
12338 * target-delegates.c: Rebuild.
12339 * target.c (update_current_target): Don't inherit or default
12340 to_can_execute_reverse.
12341 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12342 TARGET_DEFAULT_RETURN.
12343 (target_can_execute_reverse): Unconditionally delegate.
12344
12345 2014-02-19 Tom Tromey <tromey@redhat.com>
12346
12347 * target-delegates.c: Rebuild.
12348 * target.c (update_current_target): Don't inherit or default
12349 to_goto_bookmark.
12350 (dummy_goto_bookmark): Remove.
12351 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12352 * target.h (struct target_ops) <to_goto_bookmark>: Use
12353 TARGET_DEFAULT_NORETURN.
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_get_bookmark.
12360 (dummy_get_bookmark): Remove.
12361 (init_dummy_target): Don't inherit or default to_get_bookmark.
12362 * target.h (struct target_ops) <to_get_bookmark>: Use
12363 TARGET_DEFAULT_NORETURN
12364
12365 2014-02-19 Tom Tromey <tromey@redhat.com>
12366
12367 * target-delegates.c: Rebuild.
12368 * target.c (update_current_target): Don't inherit or default
12369 to_make_corefile_notes.
12370 (init_dummy_target): Don't initialize to_make_corefile_notes.
12371 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12372 TARGET_DEFAULT_FUNC.
12373
12374 2014-02-19 Tom Tromey <tromey@redhat.com>
12375
12376 * target-delegates.c: Rebuild.
12377 * target.c (update_current_target): Don't inherit or default
12378 to_find_memory_regions.
12379 (init_dummy_target): Don't initialize to_find_memory_regions.
12380 * target.h (struct target_ops) <to_find_memory_regions>: Use
12381 TARGET_DEFAULT_FUNC.
12382
12383 2014-02-19 Tom Tromey <tromey@redhat.com>
12384
12385 * target-delegates.c: Rebuild.
12386 * target.c (update_current_target): Don't inherit or default
12387 to_log_command.
12388 * target.h (struct target_ops) <to_log_command>: Use
12389 TARGET_DEFAULT_IGNORE.
12390 (target_log_command): Unconditionally delegate.
12391
12392 2014-02-19 Tom Tromey <tromey@redhat.com>
12393
12394 * target-delegates.c: Rebuild.
12395 * target.c (update_current_target): Don't inherit or default
12396 to_pid_to_exec_file.
12397 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12398 TARGET_DEFAULT_RETURN.
12399
12400 2014-02-19 Tom Tromey <tromey@redhat.com>
12401
12402 * target-delegates.c: Rebuild.
12403 * target.c (update_current_target): Don't inherit or default
12404 to_thread_name.
12405 (target_thread_name): Unconditionally delegate.
12406 * target.h (struct target_ops) <to_thread_name>: Use
12407 TARGET_DEFAULT_RETURN.
12408
12409 2014-02-19 Tom Tromey <tromey@redhat.com>
12410
12411 * target-delegates.c: Rebuild.
12412 * target.c (update_current_target): Don't inherit or default
12413 to_extra_thread_info.
12414 * target.h (struct target_ops) <to_extra_thread_info>: Use
12415 TARGET_DEFAULT_RETURN.
12416
12417 2014-02-19 Tom Tromey <tromey@redhat.com>
12418
12419 * target-delegates.c: Rebuild.
12420 * target.c (update_current_target): Don't inherit or default
12421 to_has_exited.
12422 * target.h (struct target_ops) <to_has_exited>: Use
12423 TARGET_DEFAULT_RETURN..
12424
12425 2014-02-19 Tom Tromey <tromey@redhat.com>
12426
12427 * target-delegates.c: Rebuild.
12428 * target.c (update_current_target): Don't inherit or default
12429 to_set_syscall_catchpoint.
12430 (return_one): Remove.
12431 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12432 TARGET_DEFAULT_RETURN.
12433
12434 2014-02-19 Tom Tromey <tromey@redhat.com>
12435
12436 * target-delegates.c: Rebuild.
12437 * target.c (update_current_target): Don't inherit or default
12438 to_insert_exec_catchpoint.
12439 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12440 TARGET_DEFAULT_RETURN.
12441
12442 2014-01-08 Tom Tromey <tromey@redhat.com>
12443
12444 * target-delegates.c: Rebuild.
12445 * target.c (update_current_target): Don't inherit or default
12446 to_insert_exec_catchpoint.
12447 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12448 TARGET_DEFAULT_RETURN.
12449
12450 2014-02-19 Tom Tromey <tromey@redhat.com>
12451
12452 * target-delegates.c: Rebuild.
12453 * target.c (update_current_target): Don't inherit or default
12454 to_remove_vfork_catchpoint.
12455 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12456 TARGET_DEFAULT_RETURN.
12457
12458 2014-02-19 Tom Tromey <tromey@redhat.com>
12459
12460 * target-delegates.c: Rebuild.
12461 * target.c (update_current_target): Don't inherit or default
12462 to_insert_vfork_catchpoint.
12463 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12464 TARGET_DEFAULT_RETURN.
12465
12466 2014-02-19 Tom Tromey <tromey@redhat.com>
12467
12468 * target-delegates.c: Rebuild.
12469 * target.c (update_current_target): Don't inherit or default
12470 to_remove_fork_catchpoint.
12471 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12472 TARGET_DEFAULT_RETURN.
12473
12474 2014-02-19 Tom Tromey <tromey@redhat.com>
12475
12476 * target-delegates.c: Rebuild.
12477 * target.c (update_current_target): Don't inherit or default
12478 to_insert_fork_catchpoint.
12479 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12480 TARGET_DEFAULT_RETURN.
12481
12482 2014-02-19 Tom Tromey <tromey@redhat.com>
12483
12484 * target-delegates.c: Rebuild.
12485 * target.c (update_current_target): Don't inherit or default
12486 to_post_startup_inferior.
12487 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12488 TARGET_DEFAULT_IGNORE.
12489
12490 2014-02-19 Tom Tromey <tromey@redhat.com>
12491
12492 * target-delegates.c: Rebuild.
12493 * target.c (update_current_target): Don't inherit or default
12494 to_load.
12495 * target.h (struct target_ops) <to_load>: Use
12496 TARGET_DEFAULT_NORETURN.
12497
12498 2014-02-19 Tom Tromey <tromey@redhat.com>
12499
12500 * target-delegates.c: Rebuild.
12501 * target.c (update_current_target): Don't inherit or default
12502 to_terminal_info.
12503 * target.h (struct target_ops) <to_terminal_info>: Use
12504 TARGET_DEFAULT_FUNC.
12505
12506 2014-02-19 Tom Tromey <tromey@redhat.com>
12507
12508 * target-delegates.c: Rebuild.
12509 * target.c (update_current_target): Don't inherit or default
12510 to_terminal_save_ours.
12511 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12512 TARGET_DEFAULT_IGNORE.
12513
12514 2014-02-19 Tom Tromey <tromey@redhat.com>
12515
12516 * target-delegates.c: Rebuild.
12517 * target.c (update_current_target): Don't inherit or default
12518 to_terminal_ours.
12519 * target.h (struct target_ops) <to_terminal_ours>: Use
12520 TARGET_DEFAULT_IGNORE.
12521
12522 2014-02-19 Tom Tromey <tromey@redhat.com>
12523
12524 * target-delegates.c: Rebuild.
12525 * target.c (update_current_target): Don't inherit or default
12526 to_terminal_ours_for_output.
12527 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12528 TARGET_DEFAULT_IGNORE.
12529
12530 2014-02-19 Tom Tromey <tromey@redhat.com>
12531
12532 * target-delegates.c: Rebuild.
12533 * target.c (update_current_target): Don't inherit or default
12534 to_terminal_inferior.
12535 * target.h (struct target_ops) <to_terminal_inferior>: Use
12536 TARGET_DEFAULT_IGNORE.
12537
12538 2014-02-19 Tom Tromey <tromey@redhat.com>
12539
12540 * target-delegates.c: Rebuild.
12541 * target.c (update_current_target): Don't inherit or default
12542 to_terminal_init.
12543 * target.h (struct target_ops) <to_terminal_init>: Use
12544 TARGET_DEFAULT_IGNORE.
12545
12546 2014-02-19 Tom Tromey <tromey@redhat.com>
12547
12548 * target-delegates.c: Rebuild.
12549 * target.c (update_current_target): Don't inherit or default
12550 to_can_accel_watchpoint_condition.
12551 * target.h (struct target_ops)
12552 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12553
12554 2014-02-19 Tom Tromey <tromey@redhat.com>
12555
12556 * target-delegates.c: Rebuild.
12557 * target.c (update_current_target): Don't inherit or default
12558 to_region_ok_for_hw_watchpoint.
12559 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12560 Use TARGET_DEFAULT_FUNC.
12561
12562 2014-02-19 Tom Tromey <tromey@redhat.com>
12563
12564 * target-delegates.c: Rebuild.
12565 * target.c (update_current_target): Don't inherit or default
12566 to_watchpoint_addr_within_range.
12567 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12568 Use TARGET_DEFAULT_FUNC.
12569
12570 2014-02-19 Tom Tromey <tromey@redhat.com>
12571
12572 * target-delegates.c: Rebuild.
12573 * target.c (update_current_target): Don't inherit or default
12574 to_remove_watchpoint.
12575 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12576 TARGET_DEFAULT_NORETURN.
12577
12578 2014-02-19 Tom Tromey <tromey@redhat.com>
12579
12580 * target-delegates.c: Rebuild.
12581 * target.c (update_current_target): Don't inherit or default
12582 to_insert_watchpoint.
12583 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12584 TARGET_DEFAULT_RETURN.
12585
12586 2014-02-19 Tom Tromey <tromey@redhat.com>
12587
12588 * target-delegates.c: Rebuild.
12589 * target.c (update_current_target): Don't inherit or default
12590 to_remove_hw_breakpoint.
12591 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12592 TARGET_DEFAULT_RETURN.
12593
12594 2014-02-19 Tom Tromey <tromey@redhat.com>
12595
12596 * target-delegates.c: Rebuild.
12597 * target.c (update_current_target): Don't inherit or default
12598 to_insert_hw_breakpoint.
12599 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12600 TARGET_DEFAULT_RETURN.
12601
12602 2014-02-19 Tom Tromey <tromey@redhat.com>
12603
12604 * target-delegates.c: Rebuild.
12605 * target.c (update_current_target): Don't inherit or default
12606 to_can_use_hw_breakpoint.
12607 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12608 TARGET_DEFAULT_RETURN.
12609
12610 2014-02-19 Tom Tromey <tromey@redhat.com>
12611
12612 * target-delegates.c: Rebuild.
12613 * target.c (update_current_target): Don't inherit or default
12614 to_files_info.
12615 * target.h (struct target_ops) <to_files_info>: Use
12616 TARGET_DEFAULT_IGNORE.
12617
12618 2014-02-19 Tom Tromey <tromey@redhat.com>
12619
12620 * target-delegates.c: Rebuild.
12621 * target.c (update_current_target): Don't inherit or default
12622 to_store.
12623 * target.h (struct target_ops) <to_store>: Use
12624 TARGET_DEFAULT_NORETURN.
12625
12626 2014-02-19 Tom Tromey <tromey@redhat.com>
12627
12628 * target-delegates.c: Rebuild.
12629 * target.c (update_current_target): Don't inherit or default
12630 to_post_attach.
12631 * target.h (struct target_ops) <to_post_attach>: Use
12632 TARGET_DEFAULT_IGNORE.
12633
12634 2014-02-19 Tom Tromey <tromey@redhat.com>
12635
12636 * target-delegates.c: Rebuild.
12637 * target.c (update_current_target): Don't inherit or default
12638 to_rcmd.
12639 (default_rcmd): New function.
12640 (do_monitor_command): Unconditionally delegate.
12641 * target.h (struct target_ops) <to_rmcd>: Use
12642 TARGET_DEFAULT_FUNC.
12643
12644 2014-02-19 Tom Tromey <tromey@redhat.com>
12645
12646 * target-delegates.c: Rebuild.
12647 * target.c (init_dummy_target): Don't initialize to_attach.
12648 (target_attach): Unconditionally delegate.
12649 * target.h (struct target_ops) <to_attach>: Use
12650 TARGET_DEFAULT_FUNC.
12651
12652 2014-02-19 Tom Tromey <tromey@redhat.com>
12653
12654 * target-delegates.c: Rebuild.
12655 * target.c (target_detach): Unconditionally delegate.
12656 (init_dummy_target): Don't initialize to_detach.
12657 * target.h (struct target_ops) <to_detach>: Use
12658 TARGET_DEFAULT_IGNORE.
12659
12660 2014-02-19 Tom Tromey <tromey@redhat.com>
12661
12662 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12663 Add argument.
12664 (target_augmented_libraries_svr4_read): Add argument.
12665 * target.c (update_current_target): Update.
12666 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12667 argument.
12668
12669 2014-02-19 Tom Tromey <tromey@redhat.com>
12670
12671 * target.h (struct target_ops) <to_call_history_range>: Add
12672 argument.
12673 * target.c (target_call_history_range): Add argument.
12674 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12675 argument.
12676 (record_btrace_call_history_from): Update.
12677
12678 2014-02-19 Tom Tromey <tromey@redhat.com>
12679
12680 * target.h (struct target_ops) <to_call_history_from>: Add
12681 argument.
12682 * target.c (target_call_history_from): Add argument.
12683 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12684 argument.
12685
12686 2014-02-19 Tom Tromey <tromey@redhat.com>
12687
12688 * target.h (struct target_ops) <to_call_history>: Add argument.
12689 * target.c (target_call_history): Add argument.
12690 * record-btrace.c (record_btrace_call_history): Add 'self'
12691 argument.
12692
12693 2014-02-19 Tom Tromey <tromey@redhat.com>
12694
12695 * target.h (struct target_ops) <to_insn_history_range>: Add
12696 argument.
12697 * target.c (target_insn_history_range): Add argument.
12698 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12699 argument.
12700 (record_btrace_insn_history_from): Update.
12701
12702 2014-02-19 Tom Tromey <tromey@redhat.com>
12703
12704 * target.h (struct target_ops) <to_insn_history_from>: Add
12705 argument.
12706 * target.c (target_insn_history_from): Add argument.
12707 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12708 argument.
12709
12710 2014-02-19 Tom Tromey <tromey@redhat.com>
12711
12712 * target.h (struct target_ops) <to_insn_history>: Add argument.
12713 * target.c (target_insn_history): Add argument.
12714 * record-btrace.c (record_btrace_insn_history): Add 'self'
12715 argument.
12716
12717 2014-02-19 Tom Tromey <tromey@redhat.com>
12718
12719 * target.h (struct target_ops) <to_goto_record>: Add argument.
12720 * target.c (target_goto_record): Add argument.
12721 * record-full.c (record_full_goto): Add 'self' argument.
12722 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12723
12724 2014-02-19 Tom Tromey <tromey@redhat.com>
12725
12726 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12727 * target.c (target_goto_record_end): Add argument.
12728 * record-full.c (record_full_goto_end): Add 'self' argument.
12729 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12730
12731 2014-02-19 Tom Tromey <tromey@redhat.com>
12732
12733 * target.h (struct target_ops) <to_goto_record_begin>: Add
12734 argument.
12735 * target.c (target_goto_record_begin): Add argument.
12736 * record-full.c (record_full_goto_begin): Add 'self' argument.
12737 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12738 argument.
12739
12740 2014-02-19 Tom Tromey <tromey@redhat.com>
12741
12742 * target.h (struct target_ops) <to_record_is_replaying>: Add
12743 argument.
12744 * target.c (target_record_is_replaying): Add argument.
12745 * record-full.c (record_full_is_replaying): Add 'self' argument.
12746 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12747 argument.
12748 (record_btrace_xfer_partial, record_btrace_store_registers)
12749 (record_btrace_prepare_to_store, record_btrace_resume)
12750 (record_btrace_wait, record_btrace_decr_pc_after_break)
12751 (record_btrace_find_new_threads, record_btrace_thread_alive):
12752 Update.
12753
12754 2014-02-19 Tom Tromey <tromey@redhat.com>
12755
12756 * target.h (struct target_ops) <to_delete_record>: Add argument.
12757 * target.c (target_delete_record): Add argument.
12758 * record-full.c (record_full_delete): Add 'self' argument.
12759
12760 2014-02-19 Tom Tromey <tromey@redhat.com>
12761
12762 * target.h (struct target_ops) <to_save_record>: Add argument.
12763 * target.c (target_save_record): Add argument.
12764 * record-full.c (record_full_save): Add 'self' argument.
12765 (record_full_save): Add 'self' argument.
12766
12767 2014-02-19 Tom Tromey <tromey@redhat.com>
12768
12769 * target.h (struct target_ops) <to_info_record>: Add argument.
12770 * target.c (target_info_record): Add argument.
12771 * record.c (info_record_command): Add argument.
12772 * record-full.c (record_full_info): Add 'self' argument.
12773 * record-btrace.c (record_btrace_info): Add 'self' argument.
12774
12775 2014-02-19 Tom Tromey <tromey@redhat.com>
12776
12777 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12778 * target.c (target_stop_recording): Add argument.
12779 * record.c (record_stop): Add argument.
12780 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12781 argument.
12782
12783 2014-02-19 Tom Tromey <tromey@redhat.com>
12784
12785 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12786 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12787 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12788 argument.
12789 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12790 (_initialize_amd64_linux_nat): Use it.
12791 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12792 (_initialize_i386_linux_nat): Use it.
12793
12794 2014-02-19 Tom Tromey <tromey@redhat.com>
12795
12796 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12797 * target.c (target_teardown_btrace): Add argument.
12798 * remote.c (remote_teardown_btrace): Add 'self' argument.
12799 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12800 argument.
12801 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12802 argument.
12803
12804 2014-02-19 Tom Tromey <tromey@redhat.com>
12805
12806 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12807 * target.c (target_disable_btrace): Add argument.
12808 * remote.c (remote_disable_btrace): Add 'self' argument.
12809 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12810 argument.
12811 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12812 argument.
12813
12814 2014-02-19 Tom Tromey <tromey@redhat.com>
12815
12816 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12817 * target.c (target_enable_btrace): Add argument.
12818 * remote.c (remote_enable_btrace): Add 'self' argument.
12819 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12820 argument.
12821 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12822 argument.
12823
12824 2014-02-19 Tom Tromey <tromey@redhat.com>
12825
12826 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12827 (target_can_use_agent): Add argument.
12828 * target.c (update_current_target): Update.
12829 * remote.c (remote_can_use_agent): Add 'self' argument.
12830 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12831
12832 2014-02-19 Tom Tromey <tromey@redhat.com>
12833
12834 * target.h (struct target_ops) <to_use_agent>: Add argument.
12835 (target_use_agent): Add argument.
12836 * target.c (update_current_target): Update.
12837 * remote.c (remote_use_agent): Add 'self' argument.
12838 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12839
12840 2014-02-19 Tom Tromey <tromey@redhat.com>
12841
12842 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12843 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12844 (target_traceframe_info): Add argument.
12845 * target.c (update_current_target): Update.
12846 * remote.c (remote_traceframe_info): Add 'self' argument.
12847 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12848
12849 2014-02-19 Tom Tromey <tromey@redhat.com>
12850
12851 * target.h (target_static_tracepoint_markers_by_strid): Add
12852 argument.
12853 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12854 'self' argument.
12855 * target.c (update_current_target): Update.
12856 * remote.c (struct target_ops)
12857 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12858 * linux-nat.c (struct target_ops)
12859 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12860
12861 2014-02-19 Tom Tromey <tromey@redhat.com>
12862
12863 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12864 Add argument.
12865 (target_static_tracepoint_marker_at): Add argument.
12866 * target.c (update_current_target): Update.
12867 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12868 argument.
12869
12870 2014-02-19 Tom Tromey <tromey@redhat.com>
12871
12872 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12873 (target_set_permissions): Add argument.
12874 * target.c (update_current_target): Update.
12875 * remote.c (remote_set_permissions): Add 'self' argument.
12876 (remote_start_remote): Update.
12877
12878 2014-02-19 Tom Tromey <tromey@redhat.com>
12879
12880 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12881 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12882 (target_get_tib_address): Add argument.
12883 * target.c (update_current_target): Update.
12884 * remote.c (remote_get_tib_address): Add 'self' argument.
12885
12886 2014-02-19 Tom Tromey <tromey@redhat.com>
12887
12888 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12889 (target_set_trace_notes): Add argument.
12890 * target.c (update_current_target): Update.
12891 * remote.c (remote_set_trace_notes): Add 'self' argument.
12892
12893 2014-02-19 Tom Tromey <tromey@redhat.com>
12894
12895 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12896 argument.
12897 (target_set_trace_buffer_size): Add argument.
12898 * target.c (update_current_target): Update.
12899 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12900
12901 2014-02-19 Tom Tromey <tromey@redhat.com>
12902
12903 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12904 argument.
12905 (target_set_circular_trace_buffer): Add argument.
12906 * target.c (update_current_target): Update.
12907 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12908 argument.
12909
12910 2014-02-19 Tom Tromey <tromey@redhat.com>
12911
12912 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12913 argument.
12914 (target_set_disconnected_tracing): Add argument.
12915 * target.c (update_current_target): Update.
12916 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12917
12918 2014-02-19 Tom Tromey <tromey@redhat.com>
12919
12920 * target.h (struct target_ops)
12921 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12922 (target_get_min_fast_tracepoint_insn_len): Add argument.
12923 * target.c (update_current_target): Update.
12924 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12925 argument.
12926
12927 2014-02-19 Tom Tromey <tromey@redhat.com>
12928
12929 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12930 argument.
12931 (target_get_raw_trace_data): Add argument.
12932 * target.c (update_current_target): Update.
12933 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12934
12935 2014-02-19 Tom Tromey <tromey@redhat.com>
12936
12937 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12938 Add argument.
12939 (target_upload_trace_state_variables): Add argument.
12940 * target.c (update_current_target): Update.
12941 * remote.c (remote_upload_trace_state_variables): Add 'self'
12942 argument.
12943 (remote_start_remote): Update.
12944
12945 2014-02-19 Tom Tromey <tromey@redhat.com>
12946
12947 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12948 argument.
12949 (target_upload_tracepoints): Add argument.
12950 * target.c (update_current_target): Update.
12951 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12952 (remote_start_remote): Update.
12953
12954 2014-02-19 Tom Tromey <tromey@redhat.com>
12955
12956 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12957 (target_save_trace_data): Add argument.
12958 * target.c (update_current_target): Update.
12959 * remote.c (remote_save_trace_data): Add 'self' argument.
12960
12961 2014-02-19 Tom Tromey <tromey@redhat.com>
12962
12963 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12964 argument.
12965 * target.h (struct target_ops)
12966 <to_get_trace_state_variable_value>: Add argument.
12967 (target_get_trace_state_variable_value): Add argument.
12968 * target.c (update_current_target): Update.
12969 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12970 argument.
12971 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12972
12973 2014-02-19 Tom Tromey <tromey@redhat.com>
12974
12975 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12976 * target.h (struct target_ops) <to_trace_find>: Add argument.
12977 (target_trace_find): Add argument.
12978 * target.c (update_current_target): Update.
12979 * remote.c (remote_trace_find): Add 'self' argument.
12980 * ctf.c (ctf_trace_find): Add 'self' argument.
12981
12982 2014-02-19 Tom Tromey <tromey@redhat.com>
12983
12984 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12985 (target_trace_stop): Add argument.
12986 * target.c (update_current_target): Update.
12987 * remote.c (remote_trace_stop): Add 'self' argument.
12988
12989 2014-02-19 Tom Tromey <tromey@redhat.com>
12990
12991 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12992 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12993 argument.
12994 (target_get_tracepoint_status): Add argument.
12995 * target.c (update_current_target): Update.
12996 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12997
12998 2014-02-19 Tom Tromey <tromey@redhat.com>
12999
13000 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13001 * target.h (struct target_ops) <to_get_trace_status>: Add
13002 argument.
13003 (target_get_trace_status): Add argument.
13004 * target.c (update_current_target): Update.
13005 * remote.c (remote_get_trace_status): Add 'self' argument.
13006 (remote_start_remote, remote_can_download_tracepoint): Update.
13007 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13008
13009 2014-02-19 Tom Tromey <tromey@redhat.com>
13010
13011 * target.h (struct target_ops) <to_trace_start>: Add argument.
13012 (target_trace_start): Add argument.
13013 * target.c (update_current_target): Update.
13014 * remote.c (remote_trace_start): Add 'self' argument.
13015
13016 2014-02-19 Tom Tromey <tromey@redhat.com>
13017
13018 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13019 Add argument.
13020 (target_trace_set_readonly_regions): Add argument.
13021 * target.c (update_current_target): Update.
13022 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13023 argument.
13024
13025 2014-02-19 Tom Tromey <tromey@redhat.com>
13026
13027 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13028 argument.
13029 (target_disable_tracepoint): Add argument.
13030 * target.c (update_current_target): Update.
13031 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13032
13033 2014-02-19 Tom Tromey <tromey@redhat.com>
13034
13035 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13036 argument.
13037 (target_enable_tracepoint): Add argument.
13038 * target.c (update_current_target): Update.
13039 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13040
13041 2014-02-19 Tom Tromey <tromey@redhat.com>
13042
13043 * target.h (struct target_ops) <to_download_trace_state_variable>:
13044 Add argument.
13045 (target_download_trace_state_variable): Add argument.
13046 * target.c (update_current_target): Update.
13047 * remote.c (remote_download_trace_state_variable): Add 'self'
13048 argument.
13049
13050 2014-02-19 Tom Tromey <tromey@redhat.com>
13051
13052 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13053 argument.
13054 (target_can_download_tracepoint): Add argument.
13055 * target.c (update_current_target): Update.
13056 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13057
13058 2014-02-19 Tom Tromey <tromey@redhat.com>
13059
13060 * target.h (struct target_ops) <to_download_tracepoint>: Add
13061 argument.
13062 (target_download_tracepoint): Add argument.
13063 * target.c (update_current_target): Update.
13064 * remote.c (remote_download_tracepoint): Add 'self' argument.
13065
13066 2014-02-19 Tom Tromey <tromey@redhat.com>
13067
13068 * target.h (struct target_ops) <to_trace_init>: Add argument.
13069 (target_trace_init): Add argument.
13070 * target.c (update_current_target): Update.
13071 * remote.c (remote_trace_init): Add 'self' argument.
13072
13073 2014-02-19 Tom Tromey <tromey@redhat.com>
13074
13075 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13076 * target.c (target_fileio_readlink): Add argument.
13077 * remote.c (remote_hostio_readlink): Add 'self' argument.
13078 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13079
13080 2014-02-19 Tom Tromey <tromey@redhat.com>
13081
13082 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13083 * target.c (target_fileio_unlink): Add argument.
13084 * remote.c (remote_hostio_unlink): Add 'self' argument.
13085 (remote_file_delete): Update.
13086 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13087
13088 2014-02-19 Tom Tromey <tromey@redhat.com>
13089
13090 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13091 * target.c (target_fileio_close): Add argument.
13092 * remote.c (remote_hostio_close): Add 'self' argument.
13093 (remote_hostio_close_cleanup): Update.
13094 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13095 Update.
13096 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13097
13098 2014-02-19 Tom Tromey <tromey@redhat.com>
13099
13100 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13101 * target.c (target_fileio_pread): Add argument.
13102 * remote.c (remote_hostio_pread): Add 'self' argument.
13103 (remote_bfd_iovec_pread, remote_file_get): Update.
13104 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13105
13106 2014-02-19 Tom Tromey <tromey@redhat.com>
13107
13108 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13109 * target.c (target_fileio_pwrite): Add argument.
13110 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13111 (remote_file_put): Update.
13112 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13113
13114 2014-02-19 Tom Tromey <tromey@redhat.com>
13115
13116 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13117 * target.c (target_fileio_open): Add argument.
13118 * remote.c (remote_hostio_open): Add 'self' argument.
13119 (remote_bfd_iovec_open): Add 'self' argument.
13120 (remote_file_put): Add 'self' argument.
13121 (remote_file_get): Add 'self' argument.
13122 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13123
13124 2014-02-19 Tom Tromey <tromey@redhat.com>
13125
13126 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13127 Add argument.
13128 (target_can_run_breakpoint_commands): Add argument.
13129 * target.c (update_current_target): Update.
13130 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13131 argument.
13132 (remote_insert_breakpoint): Add 'self' argument.
13133 (remote_insert_hw_breakpoint): Add 'self' argument.
13134 (remote_can_run_breakpoint_commands): Add 'self' argument.
13135
13136 2014-02-19 Tom Tromey <tromey@redhat.com>
13137
13138 * target.h (struct target_ops)
13139 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13140 (target_supports_evaluation_of_breakpoint_conditions): Add
13141 argument.
13142 * target.c (update_current_target): Update.
13143 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13144 argument.
13145 (remote_insert_breakpoint): Add 'self' argument.
13146 (remote_insert_hw_breakpoint): Add 'self' argument.
13147 (remote_supports_cond_breakpoints): Add 'self' argument.
13148
13149 2014-02-19 Tom Tromey <tromey@redhat.com>
13150
13151 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13152 argument.
13153 (target_supports_string_tracing): Add argument.
13154 * target.c (update_current_target): Update.
13155 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13156
13157 2014-02-19 Tom Tromey <tromey@redhat.com>
13158
13159 * target.h (struct target_ops)
13160 <to_supports_disable_randomization>: Add argument.
13161 * target.c (find_default_supports_disable_randomization): Add
13162 argument.
13163 (target_supports_disable_randomization): Add argument.
13164 (find_default_supports_disable_randomization): Add 'self'
13165 argument.
13166 * remote.c (extended_remote_supports_disable_randomization): Add
13167 'self' argument.
13168 (remote_supports_disable_randomization): Add 'self' argument.
13169 (extended_remote_create_inferior): Update.
13170 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13171 'self' argument.
13172
13173 2014-02-19 Tom Tromey <tromey@redhat.com>
13174
13175 * target.h (struct target_ops)
13176 <to_supports_enable_disable_tracepoint>: Add argument.
13177 (target_supports_enable_disable_tracepoint): Add argument.
13178 * target.c (update_current_target): Update.
13179 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13180 argument.
13181
13182 2014-02-19 Tom Tromey <tromey@redhat.com>
13183
13184 * target.h (struct target_ops) <to_supports_multi_process>: Add
13185 argument.
13186 (target_supports_multi_process): Add argument.
13187 * target.c (update_current_target): Update.
13188 * remote.c (remote_supports_multi_process): Add 'self' argument.
13189 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13190 argument.
13191 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13192 argument.
13193
13194 2014-02-19 Tom Tromey <tromey@redhat.com>
13195
13196 * target.h (struct target_ops) <to_execution_direction>: Add
13197 argument.
13198 (target_execution_direction): Add argument.
13199 * target.c (default_execution_direction): Add 'self' argument.
13200 * record-full.c (record_full_execution_direction): Add 'self'
13201 argument.
13202
13203 2014-02-19 Tom Tromey <tromey@redhat.com>
13204
13205 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13206 argument.
13207 (target_can_execute_reverse): Add argument.
13208 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13209 * record-full.c (record_full_can_execute_reverse): Add 'self'
13210 argument.
13211 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13212 argument.
13213
13214 2014-02-19 Tom Tromey <tromey@redhat.com>
13215
13216 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13217 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13218 argument.
13219 (target_get_ada_task_ptid): Add argument.
13220 * target.c (update_current_target): Update.
13221 (default_get_ada_task_ptid): Add 'self' argument.
13222 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13223 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13224 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13225 argument.
13226 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13227 argument.
13228 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13229 argument.
13230 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13231 argument.
13232 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13233 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13234 argument.
13235
13236 2014-02-19 Tom Tromey <tromey@redhat.com>
13237
13238 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13239 (target_goto_bookmark): Add argument.
13240 * target.c (dummy_goto_bookmark): Add 'self' argument.
13241 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13242
13243 2014-02-19 Tom Tromey <tromey@redhat.com>
13244
13245 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13246 (target_get_bookmark): Add argument.
13247 * target.c (dummy_get_bookmark): Add 'self' argument.
13248 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13249
13250 2014-02-19 Tom Tromey <tromey@redhat.com>
13251
13252 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13253 argument.
13254 (target_make_corefile_notes): Add argument.
13255 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13256 * procfs.c (procfs_make_note_section): Add 'self' argument.
13257 (procfs_make_note_section): Add 'self' argument.
13258 (procfs_make_note_section): Add 'self' argument.
13259 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13260 argument.
13261 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13262 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13263 * exec.c (exec_make_note_section): Add 'self' argument.
13264 (exec_make_note_section): Add 'self' argument.
13265
13266 2014-02-19 Tom Tromey <tromey@redhat.com>
13267
13268 * target.h (struct target_ops) <to_find_memory_regions>: Add
13269 argument.
13270 (target_find_memory_regions): Add argument.
13271 * target.c (dummy_find_memory_regions): Add 'self' argument.
13272 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13273 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13274 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13275 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13276 * exec. (exec_do_find_memory_regions): New global.
13277 (exec_set_find_memory_regions): Rewrite.
13278 (exec_find_memory_regions): New function.
13279 (init_exec_ops): Use exec_find_memory_regions.
13280
13281 2014-02-19 Tom Tromey <tromey@redhat.com>
13282
13283 * target.h (struct target_ops) <to_supports_non_stop>: Add
13284 argument.
13285 * target.c (find_default_supports_non_stop): Add argument.
13286 (target_supports_non_stop): Add argument.
13287 (find_default_supports_non_stop): Add 'self' argument.
13288 * remote.c (remote_supports_non_stop): Add 'self' argument.
13289 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13290
13291 2014-02-19 Tom Tromey <tromey@redhat.com>
13292
13293 * target.h (struct target_ops) <to_log_command>: Add argument.
13294 (target_log_command): Add argument.
13295 * serial.h (serial_log_command): Add 'self' argument.
13296 * serial.c (serial_log_command): Add 'self' argument.
13297
13298 2014-02-19 Tom Tromey <tromey@redhat.com>
13299
13300 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13301 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13302 argument.
13303 (target_pid_to_exec_file): Add argument.
13304 * target.c (debug_to_pid_to_exec_file): Add argument.
13305 (update_current_target): Update.
13306 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13307 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13308 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13309 (linux_handle_extended_wait): Update.
13310 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13311 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13312 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13313 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13314
13315 2014-02-19 Tom Tromey <tromey@redhat.com>
13316
13317 * target.h (struct target_ops) <to_rcmd>: Add argument.
13318 (target_rcmd): Add argument.
13319 * target.c (debug_to_rcmd): Add argument.
13320 (update_current_target, do_monitor_command): Update.
13321 * remote.c (remote_rcmd): Add 'self' argument.
13322 * monitor.c (monitor_rcmd): Add 'self' argument.
13323
13324 2014-02-19 Tom Tromey <tromey@redhat.com>
13325
13326 * windows-nat.c (windows_stop): Add 'self' argument.
13327 * target.h (struct target_ops) <to_stop>: Add argument.
13328 * target.c (target_stop): Add argument.
13329 (debug_to_stop): Add argument.
13330 (update_current_target): Update.
13331 * remote.c (remote_stop): Add 'self' argument.
13332 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13333 (gdbsim_cntrl_c): Update.
13334 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13335 * procfs.c (procfs_stop): Add 'self' argument.
13336 * nto-procfs.c (procfs_stop): Add 'self' argument.
13337 * monitor.c (monitor_stop): Add 'self' argument.
13338 (monitor_open): Update.
13339 * linux-nat.c (linux_nat_stop): Add argument.
13340 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13341 * gnu-nat.c (gnu_stop): Add 'self' argument.
13342 * darwin-nat.c (darwin_stop): Add 'self' argument.
13343
13344 2014-02-19 Tom Tromey <tromey@redhat.com>
13345
13346 * target.h (struct target_ops) <to_thread_name>: Add argument.
13347 * target.c (target_thread_name): Add argument.
13348 (update_current_target): Update.
13349 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13350
13351 2014-02-19 Tom Tromey <tromey@redhat.com>
13352
13353 * target.h (struct target_ops) <to_extra_thread_info>: Add
13354 argument.
13355 (target_extra_thread_info): Add argument.
13356 * target.c (update_current_target): Update.
13357 * remote.c (remote_threads_extra_info): Add 'self' argument.
13358 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13359 argument.
13360 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13361 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13362 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13363 argument.
13364 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13365 argument.
13366 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13367 argument.
13368 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13369 argument.
13370
13371 2014-02-19 Tom Tromey <tromey@redhat.com>
13372
13373 * target.h (struct target_ops) <to_program_signals>: Add argument.
13374 * target.c (target_program_signals): Add argument.
13375 * remote.c (remote_program_signals): Add 'self' argument.
13376
13377 2014-02-19 Tom Tromey <tromey@redhat.com>
13378
13379 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13380 * target.c (target_pass_signals): Add argument.
13381 * remote.c (remote_pass_signals): Add 'self' argument.
13382 (remote_start_remote): Update.
13383 * procfs.c (procfs_pass_signals): Add 'self' argument.
13384 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13385 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13386 (linux_nat_create_inferior, linux_nat_attach): Update.
13387
13388 2014-02-19 Tom Tromey <tromey@redhat.com>
13389
13390 * windows-nat.c (windows_can_run): Add 'self' argument.
13391 * target.h (struct target_ops) <to_can_run>: Add argument.
13392 (target_can_run): Add argument.
13393 * target.c (debug_to_can_run): Add argument.
13394 (update_current_target): Update.
13395 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13396 * inf-child.c (inf_child_can_run): Add 'self' argument.
13397 * go32-nat.c (go32_can_run): Add 'self' argument.
13398
13399 2014-02-19 Tom Tromey <tromey@redhat.com>
13400
13401 * target.h (struct target_ops) <to_has_exited>: Add argument.
13402 (target_has_exited): Add argument.
13403 * target.c (debug_to_has_exited): Add argument.
13404 (update_current_target): Update.
13405
13406 2014-02-19 Tom Tromey <tromey@redhat.com>
13407
13408 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13409 argument.
13410 (target_set_syscall_catchpoint): Add argument.
13411 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13412 argument.
13413 * target.c (update_current_target): Update.
13414
13415 2014-02-19 Tom Tromey <tromey@redhat.com>
13416
13417 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13418 argument.
13419 (target_remove_exec_catchpoint): Add argument.
13420 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13421 (update_current_target): Update.
13422 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13423 argument.
13424
13425 2014-02-19 Tom Tromey <tromey@redhat.com>
13426
13427 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13428 argument.
13429 (target_insert_exec_catchpoint): Add argument.
13430 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13431 (update_current_target): Update.
13432 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13433 argument.
13434
13435 2014-02-19 Tom Tromey <tromey@redhat.com>
13436
13437 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13438 argument.
13439 (target_remove_vfork_catchpoint): Add argument.
13440 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13441 (update_current_target): Update.
13442 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13443 argument.
13444
13445 2014-02-19 Tom Tromey <tromey@redhat.com>
13446
13447 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13448 argument.
13449 (target_insert_vfork_catchpoint): Add argument.
13450 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13451 (update_current_target): Update.
13452 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13453 argument.
13454
13455 2014-02-19 Tom Tromey <tromey@redhat.com>
13456
13457 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13458 argument.
13459 (target_remove_fork_catchpoint): Add argument.
13460 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13461 (update_current_target): Update.
13462 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13463 argument.
13464
13465 2014-02-19 Tom Tromey <tromey@redhat.com>
13466
13467 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13468 argument.
13469 (target_insert_fork_catchpoint): Add argument.
13470 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13471 (update_current_target): Update.
13472 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13473 argument.
13474
13475 2014-02-19 Tom Tromey <tromey@redhat.com>
13476
13477 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13478 argument.
13479 (target_post_startup_inferior): Add argument.
13480 * target.c (debug_to_post_startup_inferior): Add argument.
13481 (update_current_target): Update.
13482 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13483 argument.
13484 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13485 argument.
13486 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13487 argument.
13488 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13489 argument.
13490 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13491 'self' argument.
13492 (super_post_startup_inferior): Likewise.
13493 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13494 'self' argument.
13495 (super_post_startup_inferior): Likewise.
13496 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13497 Add 'self' argument.
13498 (super_post_startup_inferior): Likewise.
13499
13500 2014-02-19 Tom Tromey <tromey@redhat.com>
13501
13502 * target.h (struct target_ops) <to_load>: Add argument.
13503 * target.c (target_load): Add argument.
13504 (debug_to_load): Add argument.
13505 (update_current_target): Update.
13506 * remote.c (remote_load): Add 'self' argument.
13507 * remote-sim.c (gdbsim_load): Add 'self' argument.
13508 * remote-mips.c (mips_load): Add 'self' argument.
13509 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13510 * monitor.c (monitor_load): Add 'self' argument.
13511 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13512
13513 2014-02-19 Tom Tromey <tromey@redhat.com>
13514
13515 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13516 (target_terminal_info): Add argument.
13517 * target.c (debug_to_terminal_info): Add argument.
13518 (default_terminal_info): Likewise.
13519 * inflow.c (child_terminal_info): Add 'self' argument.
13520 * inferior.h (child_terminal_info): Add 'self' argument.
13521 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13522
13523 2014-02-19 Tom Tromey <tromey@redhat.com>
13524
13525 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13526 argument.
13527 (target_terminal_save_ours): Add argument.
13528 * target.c (debug_to_terminal_save_ours): Add argument.
13529 (update_current_target): Update.
13530 * inflow.c (terminal_save_ours): Add 'self' argument.
13531 * inferior.h (terminal_save_ours): Add 'self' argument.
13532
13533 2014-02-19 Tom Tromey <tromey@redhat.com>
13534
13535 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13536 (target_terminal_ours): Add argument.
13537 * target.c (debug_to_terminal_ours): Add argument.
13538 (update_current_target): Update.
13539 * remote.c (remote_terminal_ours): Add 'self' argument.
13540 (remote_close): Update.
13541 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13542 * inflow.c (terminal_ours): Add 'self' argument.
13543 * inferior.h (terminal_ours): Add 'self' argument.
13544 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13545
13546 2014-02-19 Pedro Alves <palves@redhat.com>
13547 Tom Tromey <tromey@redhat.com>
13548
13549 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13550 argument.
13551 (target_terminal_ours_for_output): Add argument.
13552 * target.c (debug_to_terminal_ours_for_output): Add argument.
13553 (update_current_target): Update.
13554 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13555 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13556 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13557
13558 2014-02-19 Tom Tromey <tromey@redhat.com>
13559
13560 * target.h (struct target_ops) <to_terminal_inferior>: Add
13561 argument.
13562 * target.c (target_terminal_inferior): Add argument.
13563 (update_current_target): Update.
13564 * remote.c (remote_terminal_inferior): Add 'self' argument.
13565 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13566 * inflow.c (terminal_inferior): Add 'self' argument.
13567 * inferior.h (terminal_inferior): Add 'self' argument.
13568 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13569 (go32_terminal_inferior): Add 'self' argument.
13570
13571 2014-02-19 Tom Tromey <tromey@redhat.com>
13572
13573 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13574 (target_terminal_init): Add argument.
13575 * target.c (debug_to_terminal_init): Add argument.
13576 (update_current_target): Update.
13577 * inflow.c (terminal_init_inferior): Add 'self' argument.
13578 * inferior.h (terminal_init_inferior): Add 'self' argument.
13579 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13580 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13581
13582 2014-02-19 Tom Tromey <tromey@redhat.com>
13583
13584 * target.h (struct target_ops)
13585 <to_can_accel_watchpoint_condition>: Add argument.
13586 (target_can_accel_watchpoint_condition): Add argument.
13587 * target.c (debug_to_can_accel_watchpoint_condition): Add
13588 argument.
13589 (update_current_target): Update.
13590 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13591 'self' argument.
13592
13593 2014-02-19 Tom Tromey <tromey@redhat.com>
13594
13595 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13596 Add argument.
13597 (target_region_ok_for_hw_watchpoint): Add argument.
13598 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13599 (default_region_ok_for_hw_watchpoint): Add argument.
13600 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13601 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13602 argument.
13603 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13604 argument.
13605 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13606 argument.
13607 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13608 'self' argument.
13609 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13610 'self' argument.
13611 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13612 'self' argument.
13613 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13614 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13615 'self' argument.
13616 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13617 Add 'self' argument.
13618
13619 2014-02-19 Tom Tromey <tromey@redhat.com>
13620
13621 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13622 argument.
13623 (target_insert_watchpoint): Add argument.
13624 * target.c (debug_to_insert_watchpoint): Add argument.
13625 (update_current_target): Update.
13626 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13627 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13628 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13629 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13630 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13631 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13632 argument.
13633 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13634 (procfs_insert_hw_watchpoint): Add 'self' argument.
13635 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13636 argument.
13637 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13638 argument.
13639 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13640 argument.
13641 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13642 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13643 argument.
13644 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13645 'self' argument.
13646
13647 2014-02-19 Tom Tromey <tromey@redhat.com>
13648
13649 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13650 argument.
13651 (target_remove_watchpoint): Add argument.
13652 * target.c (debug_to_remove_watchpoint): Add argument.
13653 (update_current_target): Update.
13654 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13655 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13656 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13657 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13658 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13659 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13660 argument.
13661 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13662 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13663 argument.
13664 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13665 argument.
13666 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13667 argument.
13668 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13669 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13670 argument.
13671 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13672 'self' argument.
13673
13674 2014-02-19 Tom Tromey <tromey@redhat.com>
13675
13676 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13677 argument.
13678 (target_remove_hw_breakpoint): Add argument.
13679 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13680 (update_current_target): Update.
13681 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13682 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13683 argument.
13684 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13685 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13686 argument.
13687 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13688 'self' argument.
13689
13690 2014-02-19 Tom Tromey <tromey@redhat.com>
13691
13692 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13693 argument.
13694 (target_insert_hw_breakpoint): Add argument.
13695 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13696 (update_current_target): Update.
13697 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13698 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13699 argument.
13700 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13701 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13702 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13703 argument.
13704 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13705 'self' argument.
13706
13707 2014-02-19 Tom Tromey <tromey@redhat.com>
13708
13709 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13710 argument.
13711 (target_can_use_hardware_watchpoint): Add argument.
13712 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13713 (update_current_target): Update.
13714 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13715 argument.
13716 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13717 argument.
13718 * remote.c (remote_check_watch_resources): Add 'self' argument.
13719 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13720 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13721 argument.
13722 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13723 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13724 argument.
13725 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13726 argument.
13727 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13728 argument.
13729 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13730 argument.
13731 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13732 argument.
13733 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13734 argument.
13735 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13736 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13737 argument.
13738 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13739 'self' argument.
13740
13741 2014-02-19 Tom Tromey <tromey@redhat.com>
13742
13743 * target.h (struct target_ops) <to_post_attach>: Add argument.
13744 (target_post_attach): Add argument.
13745 * target.c (debug_to_post_attach): Add argument.
13746 (update_current_target): Update.
13747 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13748 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13749 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13750 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13751 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13752
13753 2014-02-19 Tom Tromey <tromey@redhat.com>
13754
13755 * windows-nat.c (windows_close): Add 'self' argument.
13756 * tracepoint.c (tfile_close): Add 'self' argument.
13757 * target.h (struct target_ops) <to_close>: Add argument.
13758 * target.c (target_close): Add argument.
13759 (update_current_target): Update.
13760 * remote.c (remote_close): Add 'self' argument.
13761 * remote-sim.c (gdbsim_close): Add 'self' argument.
13762 * remote-mips.c (mips_close): Add 'self' argument.
13763 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13764 * record-full.c (record_full_close): Add 'self' argument.
13765 * record-btrace.c (record_btrace_close): Add 'self' argument.
13766 * monitor.h (monitor_close): Add 'self' argument.
13767 * monitor.c (monitor_close): Add 'self' argument.
13768 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13769 * linux-nat.c (linux_nat_close): Add argument.
13770 * go32-nat.c (go32_close): Add 'self' argument.
13771 * exec.c (exec_close_1): Add 'self' argument.
13772 * ctf.c (ctf_close): Add 'self' argument.
13773 * corelow.c (core_close): Add 'self' argument.
13774 (core_close_cleanup): Update.
13775 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13776 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13777
13778 2014-02-19 Tom Tromey <tromey@redhat.com>
13779
13780 * remote.c (remote_load): New function.
13781 (init_remote_ops): Use it.
13782
13783 2014-02-19 Tom Tromey <tromey@redhat.com>
13784
13785 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13786 argument.
13787 * common/linux-btrace.h (linux_supports_btrace): Update.
13788 * remote.c (remote_supports_btrace): Add "self" argument.
13789 * target-delegates.c: Rebuild.
13790 * target.c (target_supports_btrace): Remove.
13791 * target.h (struct target_ops) <to_supports_btrace>: Add
13792 target_ops argument.
13793 (target_supports_btrace): New define.
13794
13795 2014-02-19 Tom Tromey <tromey@redhat.com>
13796
13797 * record-full.c (record_full_beneath_to_resume_ops)
13798 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13799 (record_full_beneath_to_wait)
13800 (record_full_beneath_to_store_registers_ops)
13801 (record_full_beneath_to_store_registers)
13802 (record_full_beneath_to_xfer_partial_ops)
13803 (record_full_beneath_to_xfer_partial)
13804 (record_full_beneath_to_insert_breakpoint_ops)
13805 (record_full_beneath_to_insert_breakpoint)
13806 (record_full_beneath_to_remove_breakpoint_ops)
13807 (record_full_beneath_to_remove_breakpoint)
13808 (record_full_beneath_to_stopped_by_watchpoint)
13809 (record_full_beneath_to_stopped_data_address)
13810 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13811 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13812 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13813 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13814 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13815 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13816 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13817 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13818 (record_full_resume, record_full_wait_1)
13819 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13820 (record_full_store_registers, record_full_xfer_partial)
13821 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13822 (record_full_async, record_full_core_xfer_partial): Use target
13823 delegation.
13824 * target-delegates.c: Rebuild.
13825 * target.c (current_xfer_partial): Remove.
13826 (update_current_target): Do not INHERIT or de_fault
13827 to_insert_breakpoint, to_remove_breakpoint,
13828 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13829 to_is_async_p, to_async. Do not set to_xfer_partial field.
13830 (default_xfer_partial): Simplify.
13831 (current_xfer_partial): Remove.
13832 (target_wait, target_resume): Simplify.
13833 (find_default_can_async_p, find_default_is_async_p): Update.
13834 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13835 to_xfer_partial, to_stopped_by_watchpoint,
13836 to_stopped_data_address.
13837 (target_store_registers): Simplify.
13838 (forward_target_remove_breakpoint)
13839 (forward_target_insert_breakpoint): Remove.
13840 (target_remove_breakpoint, target_insert_breakpoint)
13841 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13842 * target.h (struct target_ops) <to_resume, to_wait,
13843 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13844 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13845 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13846 markup.
13847 (forward_target_remove_breakpoint)
13848 (forward_target_insert_breakpoint): Remove.
13849 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13850 directly.
13851 (record_btrace_insert_breakpoint): Delegate directly.
13852
13853 2014-02-19 Tom Tromey <tromey@redhat.com>
13854
13855 PR build/7701:
13856 * target-delegates.c: New file.
13857 * target.c: Include target-delegates.c.
13858 (init_dummy_target): Call install_dummy_methods.
13859 (complete_target_initialization): Call install_delegators.
13860 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13861 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13862 * make-target-delegates: New file.
13863
13864 2014-02-19 Tom Tromey <tromey@redhat.com>
13865
13866 * record.c (find_record_target): Use find_target_at.
13867 * target.c (find_target_at): New function.
13868 * target.h (find_target_at): Declare.
13869
13870 2014-02-19 Tom Tromey <tromey@redhat.com>
13871
13872 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13873 Add 'ops' argument.
13874 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13875 'ops' argument.
13876 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13877 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13878 'ops' argument.
13879 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13880 argument.
13881 * linux-nat.c (save_sigtrap): Update.
13882 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13883 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13884 (linux_nat_close): Update.
13885 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13886 argument.
13887 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13888 argument.
13889 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13890 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13891 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13892 (tmp_to_async): Add 'ops' argument.
13893 (record_full_stopped_by_watchpoint, record_full_async)
13894 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13895 argument.
13896 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13897 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13898 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13899 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13900 (remote_is_async_p, remote_async): Add 'ops' argument.
13901 (remote_stopped_data_address): Update.
13902 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13903 * target.c (update_current_target)
13904 (find_default_can_async_p, find_default_is_async_p): Update.
13905 (init_dummy_target): Update.
13906 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13907 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13908 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13909 (target_can_async_p, target_is_async_p, target_async)
13910 (target_stopped_by_watchpoint): Update.
13911
13912 2014-02-19 Yao Qi <yao@codesourcery.com>
13913
13914 PR gdb/16220
13915 * gdbarch.sh: Remove startup_gdbarch.
13916 * gdbarch.c: Regenerated.
13917 * gdbarch.h: Likewise.
13918
13919 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13920
13921 * rl78-tdep.c (rl78_g10_register_name): New function.
13922 (rl78_return_value): Add g10 support.
13923 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13924 g10.
13925
13926 2014-02-17 Doug Evans <xdje42@gmail.com>
13927
13928 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13929 (SUBDIR_GUILE_SRCS): Ditto.
13930 (scm-gsmob.o): Ditto.
13931
13932 2014-02-17 Yao Qi <yao@codesourcery.com>
13933
13934 * gnu-nat.c (ILL_RPC): Declare defined function.
13935
13936 2014-02-17 Yao Qi <yao@codesourcery.com>
13937
13938 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13939 mach_msg_type_number_t.
13940 (gnu_write_inferior): Likewise.
13941
13942 2014-02-17 Yao Qi <yao@codesourcery.com>
13943
13944 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13945 in format string.
13946 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13947 (inf_validate_procs, inf_signal): Likewise.
13948 (S_exception_raise_request): Likewise.
13949 (do_mach_notify_dead_name): Likewise.
13950 (steal_exc_port): Likewise.
13951 (gnu_read_inferior): Change 'copy_count''s type to
13952 mach_msg_type_number_t.
13953 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13954 format string.
13955
13956 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13957
13958 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13959 flag. Adjust all users; in particular...
13960 (gnu_wait): ..., don't decrement its value in here...
13961 (gnu_create_inferior): ..., and instead set the flag in here,
13962 around the startup_inferior call, and call that one with
13963 START_INFERIOR_TRAPS_EXPECTED.
13964
13965 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13966 (ILL_RPC): ... new macro.
13967 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13968 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13969 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13970 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13971 functions with ILL_RPC macro.
13972 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13973 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13974 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13975 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13976 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13977 (S_proc_getlogin_reply, S_proc_getsid_reply)
13978 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13979 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13980 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13981 (S_proc_getnports_reply, S_proc_is_important_reply)
13982 (S_proc_get_code_reply): New stub functions, generated with
13983 ILL_RPC macro.
13984
13985 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13986 collected the type check structures.
13987
13988 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13989
13990 2014-02-14 Doug Evans <dje@google.com>
13991
13992 * target.c (target_write_partial): Fix result type.
13993
13994 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13995
13996 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13997 the proper offsets to access fpregset_t.
13998
13999 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14000
14001 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14002 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14003 * h8300-tdep.c (setmachinelist): Remove global.
14004 * hppa-tdep.c (hppa_sigtramp): Remove global.
14005 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14006 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14007 * ravenscar-thread.c (update_target_observer): Remove global.
14008 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14009
14010 2014-02-12 Tom Tromey <tromey@redhat.com>
14011
14012 * common/rsp-low.c: Update comments.
14013 * common/rsp-low.h: Update comments.
14014
14015 2014-02-12 Tom Tromey <tromey@redhat.com>
14016
14017 * common/rsp-low.c (convert_ascii_to_int): Remove.
14018 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14019
14020 2014-02-12 Tom Tromey <tromey@redhat.com>
14021
14022 * common/rsp-low.h (unhexify): Don't declare.
14023 * common/rsp-low.c (unhexify): Remove.
14024
14025 2014-02-12 Tom Tromey <tromey@redhat.com>
14026
14027 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14028 * common/rsp-low.c (convert_int_to_ascii): Remove.
14029
14030 2014-02-12 Tom Tromey <tromey@redhat.com>
14031
14032 * common/rsp-low.h (hexify): Don't declare.
14033 * common/rsp-low.c (hexify): Remove.
14034
14035 2014-02-12 Tom Tromey <tromey@redhat.com>
14036
14037 * common/rsp-low.c (hexify): Never take strlen of argument.
14038
14039 2014-02-12 Tom Tromey <tromey@redhat.com>
14040
14041 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14042 * remote.c (extended_remote_run, remote_rcmd)
14043 (remote_download_trace_state_variable, remote_save_trace_data)
14044 (remote_set_trace_notes): Update.
14045 * tracepoint.c (encode_source_string, tfile_write_status)
14046 (tfile_write_uploaded_tsv): Update.
14047
14048 2014-02-12 Tom Tromey <tromey@redhat.com>
14049
14050 * tracepoint.c: Include rsp-low.h.
14051 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14052 * remote.c: Include rsp-low.h.
14053 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14054 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14055 (remote_unescape_input): Move to common/rsp-low.c.
14056 * common/rsp-low.h: New file.
14057 * common/rsp-low.c: New file.
14058 * Makefile.in (SFILES): Add common/rsp-low.c.
14059 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14060 (COMMON_OBS): Add rsp-low.o.
14061 (rsp-low.o): New target.
14062
14063 2014-02-12 Tom Tromey <tromey@redhat.com>
14064
14065 * utils.h: Include print-utils.h.
14066 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14067 (int_string, core_addr_to_string, core_addr_to_string_nz)
14068 (hex_string, hex_string_custom): Don't declare.
14069 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14070 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14071 (hex_string_custom, int_string, core_addr_to_string)
14072 (core_addr_to_string_nz, host_address_to_string): Move to
14073 common/print-utils.c.
14074 * common/print-utils.h: New file.
14075 * common/print-utils.c: New file
14076 * Makefile.in (SFILES): Add common/print-utils.c.
14077 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14078 (COMMON_OBS): Add print-utils.o.
14079 (print-utils.o): New target.
14080
14081 2014-02-12 Tom Tromey <tromey@redhat.com>
14082
14083 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14084
14085 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14086
14087 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14088
14089 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14090
14091 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14092 if a PT_IO ptrace request returns sucessfully but indicates that 0
14093 bytes were transferred.
14094
14095 2014-02-12 Pedro Alves <palves@redhat.com>
14096 Kevin Buettner <kevinb@redhat.com>
14097
14098 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14099 TYPE_INSTANCE_FLAG_CODE_SPACE.
14100
14101 2014-02-12 Pedro Alves <palves@redhat.com>
14102
14103 * h8300-tdep.c (pseudo_from_raw_register)
14104 (raw_from_pseudo_register): New functions.
14105 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14106 them.
14107
14108 2014-02-12 Pedro Alves <palves@redhat.com>
14109
14110 * h8300-tdep.c (h8300_register_sim_regno): New function.
14111 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14112 gdbarch_register_sim_regno hook.
14113
14114 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14115
14116 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14117
14118 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14119
14120 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14121
14122 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14123
14124 * obsd-tdep.h (obsd_init_abi): New prototype.
14125 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14126 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14127 (obsd_init_abi): New functions.
14128 * i386obsd-tdep.c: Include "obsd-tdep.h".
14129 (i386obsd_init_abi): Call obsd_init_abi.
14130 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14131 (amd64obsd_init_abi): Call obsd_init_abi.
14132 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14133 obsd-tdep.c to gdb_target_obs.
14134
14135 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14136
14137 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14138 double float arguments to 16-byte in the argument slots.
14139
14140 2014-02-11 Doug Evans <xdje42@gmail.com>
14141
14142 * configure.ac: Don't crash if pkg-config is not found and guile
14143 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14144 in guile checks.
14145 * configure: Regenerate.
14146
14147 2014-02-11 Yao Qi <yao@codesourcery.com>
14148
14149 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14150 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14151 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14152 * gnu-nat.c (gnu_xfer_memory): Likewise.
14153 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14154 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14155 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14156 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14157
14158 2014-02-11 Yao Qi <yao@codesourcery.com>
14159
14160 * target.h (enum target_xfer_error): Rename to ...
14161 (enum target_xfer_status): ... it. New. All users updated.
14162 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14163 New.
14164 (TARGET_XFER_STATUS_ERROR_P): New macro.
14165 (target_xfer_error_to_string): Remove declaration.
14166 (target_xfer_status_to_string): Declare.
14167 (target_xfer_partial_ftype): Adjust it.
14168 (struct target_ops) <to_xfer_partial>: Return
14169 target_xfer_status. Add argument xfered_len. Update
14170 comments.
14171 * target.c (target_xfer_error_to_string): Rename to ...
14172 (target_xfer_status_to_string): ... it. New. All callers
14173 updated.
14174 (target_read_live_memory): Likewise. Call target_xfer_partial
14175 instead of target_read.
14176 (memory_xfer_live_readonly_partial): Return
14177 target_xfer_status. Add argument xfered_len.
14178 (raw_memory_xfer_partial): Likewise.
14179 (memory_xfer_partial_1): Likewise.
14180 (memory_xfer_partial): Likewise.
14181 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14182 properly. Update debug message.
14183 (default_xfer_partial, current_xfer_partial): Likewise.
14184 (target_write_partial): Likewise.
14185 (target_read_partial): Likewise. All callers updated.
14186 (read_whatever_is_readable): Likewise.
14187 (target_write_with_progress): Likewise.
14188 (target_read_alloc_1): Likewise.
14189
14190 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14191 * auxv.c (procfs_xfer_auxv): Likewise.
14192 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14193 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14194 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14195 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14196 * corefile.c (read_memory): Adjust.
14197 * corelow.c (core_xfer_partial): Likewise.
14198 * ctf.c (ctf_xfer_partial): Likewise.
14199 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14200 updated.
14201 (darwin_xfer_partial): Likewise.
14202 * exec.c (section_table_xfer_memory_partial): Likewise. All
14203 callers updated.
14204 (exec_xfer_partial): Likewise.
14205 * exec.h (section_table_xfer_memory_partial): Update
14206 declaration.
14207 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14208 negative.
14209 (gnu_xfer_partial): Likewise.
14210 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14211 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14212 (ia64_hpux_xfer_solib_got): Likewise.
14213 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14214 type of 'partial_len' to ULONGEST.
14215 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14216 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14217 (linux_nat_xfer_partial): Likewise.
14218 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14219 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14220 * monitor.c (monitor_xfer_memory): Likewise.
14221 (monitor_xfer_partial): Likewise.
14222 * procfs.c (procfs_xfer_partial): Likewise.
14223 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14224 * record-full.c (record_full_xfer_partial): Likewise.
14225 (record_full_core_xfer_partial): Likewise.
14226 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14227 (gdbsim_xfer_partial): Likewise.
14228 * remote.c (remote_write_bytes_aux): Likewise. All callers
14229 updated.
14230 (remote_write_bytes, remote_read_bytes): Likewise. All
14231 callers updated.
14232 (remote_flash_erase): Likewise. All callers updated.
14233 (remote_write_qxfer): Likewise. All callers updated.
14234 (remote_read_qxfer): Likewise. All callers updated.
14235 (remote_xfer_partial): Likewise.
14236 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14237 (rs6000_xfer_shared_libraries): Likewise.
14238 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14239 (sol_thread_xfer_partial): Likewise.
14240 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14241 (sparc_xfer_partial): Likewise.
14242 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14243 updated.
14244 (spu_xfer_partial): Likewise.
14245 * spu-multiarch.c (spu_xfer_partial): Likewise.
14246 * tracepoint.c (tfile_xfer_partial): Likewise.
14247 * windows-nat.c (windows_xfer_memory): Likewise.
14248 (windows_xfer_shared_libraries): Likewise.
14249 (windows_xfer_partial): Likewise.
14250 * valprint.c: Replace 'target_xfer_error' with
14251 'target_xfer_status' in comments.
14252
14253 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14254
14255 Checked in by Joel Brobecker <brobecker@adacore.com>.
14256 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14257
14258 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14259
14260 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14261 function parameters.
14262
14263 2014-02-10 Will Newton <will.newton@linaro.org>
14264
14265 * elfread.c (elf_rel_plt_read): Look for a .got section if
14266 looking up .got.plt fails.
14267 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14268 on address passed to elf_gnu_ifunc_record_cache.
14269 (elf_gnu_ifunc_resolve_addr): Likewise.
14270 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14271
14272 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14273
14274 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14275 (X_RETTURN): New macro.
14276 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14277
14278 * sparc64-tdep.c (sparc64_init_abi): Hook
14279 sparc_in_function_epilogue_p.
14280
14281 2014-02-10 Gary Benson <gbenson@redhat.com>
14282
14283 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14284 Rename name_matcher to symbol_matcher.
14285
14286 2014-02-10 Gary Benson <gbenson@redhat.com>
14287
14288 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14289 Use expand_symtabs_file_matcher_ftype and
14290 expand_symtabs_symbol_matcher_ftype.
14291
14292 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14293
14294 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14295 (struct ada_symbol_cache): New.
14296 (ada_free_symbol_cache): Forward declare.
14297 (struct ada_pspace_data): New.
14298 (ada_pspace_data_handle): New static global.
14299 (get_ada_pspace_data, ada_pspace_data_cleanup)
14300 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14301 (cache_space, cache): Delete, now folded inside struct
14302 ada_pspace_data.
14303 (ada_get_symbol_cache): New function.
14304 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14305 implementation.
14306 (_initialize_ada_language): Remove initialization of cache_space.
14307 Move call to observer_attach_inferior_exit up, grouping it
14308 with the other observer registrations inside this function.
14309 Rename command to be more general. Add call to
14310 register_program_space_data_with_cleanup.
14311
14312 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14313
14314 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14315 ada_new_objfile_observer.
14316 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14317 (_initialize_tasks): Update uses of ada_new_objfile_observer
14318 and ada_tasks_normal_stop_observer.
14319
14320 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14321
14322 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14323 returned by the 'Length attribute to integer.
14324
14325 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14326
14327 * ada-lang.c (_initialize_ada_language): Initialize
14328 cache_space obstack.
14329
14330 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14331
14332 * ada-lang.c (HASH_SIZE): New macro.
14333 (struct cache_entry): New type.
14334 (cache_space, cache): New static globals.
14335 (ada_clear_symbol_cache, find_entry): New functions.
14336 (lookup_cached_symbol, cache_symbol): Implement.
14337 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14338 (_initialize_ada_language): Attach ada_new_objfile_observer
14339 and ada_free_objfile_observer.
14340
14341 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14342
14343 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14344 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14345 struct block * parameter.
14346 (ada_lookup_symbol_list_worker): Constify local variable "block".
14347 Remove cast which is no longer necessary.
14348
14349 2014-02-10 Doug Evans <xdje42@gmail.com>
14350
14351 Add Guile as an extension language.
14352 * NEWS: Mention Guile scripting.
14353 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14354 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14355 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14356 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14357 (CLIBS): Add GUILE_LIBS.
14358 (install-guile): New rule.
14359 (guile.o): New rule.
14360 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14361 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14362 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14363 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14364 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14365 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14366 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14367 * configure.ac: New option --with-guile.
14368 * configure: Regenerate.
14369 * config.in: Regenerate.
14370 * auto-load.c: Remove #include "python/python.h". Add #include
14371 "gdb/section-scripts.h".
14372 (source_section_scripts): Handle Guile scripts.
14373 (_initialize_auto_load): Add name of Guile objfile script to
14374 scripts-directory help text.
14375 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14376 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14377 (struct breakpoint): New member scm_bp_object.
14378 * defs.h (enum command_control_type): New value guile_control.
14379 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14380 "extension.h".
14381 (show_user): Update comment.
14382 (_initialize_cli_cmds): Update help text for "show user". Update help
14383 text for max-user-call-depth.
14384 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14385 "extension.h".
14386 (multi_line_command_p): Add guile_control.
14387 (print_command_lines): Handle guile_control.
14388 (execute_control_command, recurse_read_control_structure): Ditto.
14389 (process_next_line): Recognize "guile" commands.
14390 * disasm.c (gdb_disassemble_info): Make non-static.
14391 * disasm.h: #include "dis-asm.h".
14392 (struct gdbarch): Add forward decl.
14393 (gdb_disassemble_info): Declare.
14394 * extension.c: #include "guile/guile.h".
14395 (extension_languages): Add guile.
14396 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14397 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14398 * gdbtypes.c (get_unsigned_type_max): New function.
14399 (get_signed_type_minmax): New function.
14400 * gdbtypes.h (get_unsigned_type_max): Declare.
14401 (get_signed_type_minmax): Declare.
14402 * guile/README: New file.
14403 * guile/guile-internal.h: New file.
14404 * guile/guile.c: New file.
14405 * guile/guile.h: New file.
14406 * guile/scm-arch.c: New file.
14407 * guile/scm-auto-load.c: New file.
14408 * guile/scm-block.c: New file.
14409 * guile/scm-breakpoint.c: New file.
14410 * guile/scm-disasm.c: New file.
14411 * guile/scm-exception.c: New file.
14412 * guile/scm-frame.c: New file.
14413 * guile/scm-gsmob.c: New file.
14414 * guile/scm-iterator.c: New file.
14415 * guile/scm-lazy-string.c: New file.
14416 * guile/scm-math.c: New file.
14417 * guile/scm-objfile.c: New file.
14418 * guile/scm-ports.c: New file.
14419 * guile/scm-pretty-print.c: New file.
14420 * guile/scm-safe-call.c: New file.
14421 * guile/scm-string.c: New file.
14422 * guile/scm-symbol.c: New file.
14423 * guile/scm-symtab.c: New file.
14424 * guile/scm-type.c: New file.
14425 * guile/scm-utils.c: New file.
14426 * guile/scm-value.c: New file.
14427 * guile/lib/gdb.scm: New file.
14428 * guile/lib/gdb/boot.scm: New file.
14429 * guile/lib/gdb/experimental.scm: New file.
14430 * guile/lib/gdb/init.scm: New file.
14431 * guile/lib/gdb/iterator.scm: New file.
14432 * guile/lib/gdb/printing.scm: New file.
14433 * guile/lib/gdb/types.scm: New file.
14434 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14435 (VPATH): Add $(GUILE_SRCDIR).
14436 (GUILE_DIR): New variable.
14437 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14438 (all): Add stamp-guile dependency.
14439 (stamp-guile): New rule.
14440 (clean-guile, install-guile, uninstall-guile): New rules.
14441 (install-only): Add install-guile dependency.
14442 (uninstall): Add uninstall-guile dependency.
14443 (clean): Add clean-guile dependency.
14444
14445 2014-02-09 Doug Evans <xdje42@gmail.com>
14446
14447 Revert this patch (which I approved, mea culpa).
14448
14449 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14450
14451 * Makefile.in (all-lib): Remove.
14452 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14453
14454 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14455
14456 Fix Python stack corruption.
14457 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14458 gdb_py_longest.
14459
14460 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14461
14462 * Makefile.in (all-lib): Remove.
14463 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14464
14465 2014-02-07 Doug Evans <dje@google.com>
14466
14467 * extension-priv.h (extension_language_script_ops): Add comment.
14468 (extension_language_ops): Add comment.
14469 (active_ext_lang_state): Fix typo in comment.
14470
14471 2014-02-07 Pedro Alves <palves@redhat.com>
14472
14473 PR breakpoints/16292
14474 * infrun.c (handle_signal_stop) <signal arrives while stepping
14475 over a breakpoint>: Switch back to the stepping thread.
14476
14477 2014-02-07 Yao Qi <yao@codesourcery.com>
14478
14479 * target.c (target_xfer_partial): Return zero if LEN is zero.
14480
14481 2014-02-07 Yao Qi <yao@codesourcery.com>
14482
14483 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14484 (ld_so_xfer_auxv): Likewise.
14485 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14486 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14487 * corelow.c (core_xfer_partial): Likewise.
14488 * ctf.c (ctf_xfer_partial): Likewise.
14489 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14490 (darwin_xfer_partial): Likewise.
14491 * exec.c (exec_xfer_partial): Likewise.
14492 * gnu-nat.c (gnu_xfer_partial): Likewise.
14493 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14494 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14495 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14496 * linux-nat.c (linux_xfer_siginfo): Likewise.
14497 (linux_proc_xfer_spu): Likewise.
14498 * procfs.c (procfs_xfer_partial): Likewise.
14499 * record-full.c (record_full_xfer_partial): Likewise.
14500 (record_full_core_xfer_partial): Likewise.
14501 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14502 * remote.c (remote_write_qxfer): Likewise.
14503 (remote_write_qxfer, remote_read_qxfer): Likewise.
14504 (remote_xfer_partial): Likewise.
14505 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14506 (rs6000_xfer_shared_libraries): Likewise.
14507 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14508 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14509 (spu_xfer_partial): Likewise.
14510 * target.c (memory_xfer_partial_1): Likewise.
14511 * tracepoint.c (tfile_xfer_partial): Likewise.
14512 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14513 (windows_xfer_partial): Likewise.
14514
14515 2014-02-07 Yao Qi <yao@codesourcery.com>
14516
14517 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14518 comments.
14519 (core_xfer_shared_libraries_aix): Likewise.
14520 * gdbarch.c, gdbarch.h: Regenerated.
14521 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14522 ULONGEST. Change 'len_avail' type to ULONGEST.
14523 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14524 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14525 declaration.
14526 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14527
14528 2014-02-07 Yao Qi <yao@codesourcery.com>
14529
14530 * corefile.c (memory_error): Get 'exception' from ERR and pass
14531 'exception' to throw_error.
14532
14533 2014-02-06 Doug Evans <xdje42@gmail.com>
14534
14535 * configure.ac (libpython checking): Remove all but python.o from
14536 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14537 * configure: Regenerate.
14538
14539 * Makefile.in (SFILES): Add extension.c.
14540 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14541 (COMMON_OBS): Add extension.o.
14542 * extension.h: New file.
14543 * extension-priv.h: New file.
14544 * extension.c: New file.
14545
14546 * python/python-internal.h: #include "extension.h".
14547 (gdbpy_auto_load_enabled): Declare.
14548 (gdbpy_apply_val_pretty_printer): Declare.
14549 (gdbpy_apply_frame_filter): Declare.
14550 (gdbpy_preserve_values): Declare.
14551 (gdbpy_breakpoint_cond_says_stop): Declare.
14552 (gdbpy_breakpoint_has_cond): Declare.
14553 (void source_python_script_for_objfile): Delete.
14554 * python/python.c: #include "extension-priv.h".
14555 Delete inclusion of "observer.h".
14556 (extension_language_python): Moved here and renamed from
14557 script_language_python in py-auto-load.c.
14558 Redefined to be of type extension_language_defn.
14559 (python_extension_script_ops): New global.
14560 (python_extension_ops): New global.
14561 (struct python_env): New member previous_active.
14562 (restore_python_env): Call restore_active_ext_lang.
14563 (ensure_python_env): Call set_active_ext_lang.
14564 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14565 New arg extlang.
14566 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14567 New arg extlang.
14568 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14569 New arg extlang.
14570 (gdbpy_eval_from_control_command): Renamed from
14571 eval_python_from_control_command, made static. New arg extlang.
14572 (gdbpy_source_script) Renamed from source_python_script, made static.
14573 New arg extlang.
14574 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14575 result to int. New arg extlang.
14576 (gdbpy_source_objfile_script): Renamed from
14577 source_python_script_for_objfile, made static. New arg extlang.
14578 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14579 static. New args extlang, extlang_printers. Change result type to
14580 "void".
14581 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14582 static. New arg extlang. Rename arg printers to extlang_printers
14583 and change type to ext_lang_type_printers *.
14584 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14585 static. Replace argument arg with extlang, extlang_printers.
14586 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14587 (!HAVE_PYTHON, source_python_script): Delete.
14588 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14589 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14590 (!HAVE_PYTHON, start_type_printers): Delete.
14591 (!HAVE_PYTHON, apply_type_printers): Delete.
14592 (!HAVE_PYTHON, free_type_printers): Delete.
14593 (_initialize_python): Delete call to observer_attach_before_prompt.
14594 (finalize_python): Set/restore active extension language.
14595 (gdbpy_finish_initialization) Renamed from
14596 finish_python_initialization, made static. New arg extlang.
14597 (gdbpy_initialized): New function.
14598 * python/python.h: #include "extension.h". Delete #include
14599 "value.h", "mi/mi-cmds.h".
14600 (extension_language_python): Declare.
14601 (GDBPY_AUTO_FILE_NAME): Delete.
14602 (enum py_bt_status): Moved to extension.h and renamed to
14603 ext_lang_bt_status.
14604 (enum frame_filter_flags): Moved to extension.h.
14605 (enum py_frame_args): Moved to extension.h and renamed to
14606 ext_lang_frame_args.
14607 (finish_python_initialization): Delete.
14608 (eval_python_from_control_command): Delete.
14609 (source_python_script): Delete.
14610 (apply_val_pretty_printer): Delete.
14611 (apply_frame_filter): Delete.
14612 (preserve_python_values): Delete.
14613 (gdbpy_script_language_defn): Delete.
14614 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14615 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14616
14617 * auto-load.c: #include "extension.h".
14618 (GDB_AUTO_FILE_NAME): Delete.
14619 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14620 (script_language_gdb): Delete, moved to extension.c and renamed to
14621 extension_language_gdb.
14622 (source_gdb_script_for_objfile): Delete.
14623 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14624 (loaded_script): Change type of language member to
14625 struct extension_language_defn *.
14626 (init_loaded_scripts_info): Initialize
14627 unsupported_script_warning_printed.
14628 (maybe_add_script): Make static. Change type of language arg to
14629 struct extension_language_defn *.
14630 (clear_section_scripts): Reset unsupported_script_warning_printed.
14631 (auto_load_objfile_script_1): Rewrite to use extension language API.
14632 (auto_load_objfile_script): Make public. Remove support-compiled-in
14633 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14634 (source_section_scripts): Rewrite to use extension language API.
14635 (load_auto_scripts_for_objfile): Rewrite to use
14636 auto_load_scripts_for_objfile.
14637 (collect_matching_scripts_data): Change type of language member to
14638 struct extension_language_defn *.
14639 (auto_load_info_scripts): Change type of language arg to
14640 struct extension_language_defn *.
14641 (unsupported_script_warning_print): New function.
14642 (script_not_found_warning_print): Make static.
14643 (_initialize_auto_load): Rewrite construction of scripts-directory
14644 help.
14645 * auto-load.h (struct objfile): Add forward decl.
14646 (struct script_language): Delete.
14647 (struct auto_load_pspace_info): Add forward decl.
14648 (struct extension_language_defn): Add forward decl.
14649 (maybe_add_script): Delete.
14650 (auto_load_objfile_script): Declare.
14651 (script_not_found_warning_print): Delete.
14652 (auto_load_info_scripts): Update prototype.
14653 (auto_load_gdb_scripts_enabled): Declare.
14654 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14655 auto_load_python_scripts_enabled and made public.
14656 (script_language_python): Delete, moved to python.c.
14657 (gdbpy_script_language_defn): Delete.
14658 (info_auto_load_python_scripts): Update to use
14659 extension_language_python.
14660
14661 * breakpoint.c (condition_command): Replace call to
14662 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14663 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14664 with call to breakpoint_ext_lang_cond_says_stop.
14665 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14666 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14667 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14668 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14669 New arg slang.
14670 (local_setattro): Print name of extension language with existing
14671 stop condition.
14672
14673 * valprint.c (val_print, value_print): Update to call
14674 apply_ext_lang_val_pretty_printer.
14675 * cp-valprint.c (cp_print_value): Update call to
14676 apply_ext_lang_val_pretty_printer.
14677 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14678 (gdbpy_apply_val_pretty_printer): Renamed from
14679 apply_val_pretty_printer. New arg extlang.
14680 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14681
14682 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14683 extension language API.
14684 * cli/cli-script.c (execute_control_command): Update to call
14685 eval_ext_lang_from_control_command.
14686
14687 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14688 enum ext_lang_bt_status values. Update call to
14689 apply_ext_lang_frame_filter.
14690 (mi_cmd_stack_list_locals): Ditto.
14691 (mi_cmd_stack_list_args): Ditto.
14692 (mi_cmd_stack_list_variables): Ditto.
14693 * mi/mi-main.c: Delete #include "python/python-internal.h".
14694 Add #include "extension.h".
14695 (mi_cmd_list_features): Replace reference to python internal variable
14696 gdb_python_initialized with call to ext_lang_initialized_p.
14697
14698 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14699 Update to use enum ext_lang_frame_args. Update to call
14700 apply_ext_lang_frame_filter.
14701 * python/py-framefilter.c (extract_sym): Update to use enum
14702 ext_lang_bt_status.
14703 (extract_value, py_print_type, py_print_value): Ditto.
14704 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14705 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14706 (py_print_frame): Ditto.
14707 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14708 New arg extlang. Update to use enum ext_lang_bt_status.
14709
14710 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14711 finish_python_initialization. Replace with call to
14712 finish_ext_lang_initialization.
14713
14714 * typeprint.c (do_free_global_table): Update to call
14715 free_ext_lang_type_printers.
14716 (create_global_typedef_table): Update to call
14717 start_ext_lang_type_printers.
14718 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14719 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14720 (type_print_options): Change type of global_printers from "void *"
14721 to "struct ext_lang_type_printers *".
14722
14723 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14724 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14725 (gdbpy_preserve_values): Renamed from preserve_python_values.
14726 New arg extlang.
14727 (!HAVE_PYTHON, preserve_python_values): Delete.
14728
14729 * utils.c (quit_flag): Delete, moved to extension.c.
14730 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14731 extension.c.
14732
14733 * eval.c: Delete #include "python/python.h".
14734 * main.c: Delete #include "python/python.h".
14735
14736 * defs.h: Update comment.
14737
14738 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14739
14740 GDB 7.7 released.
14741
14742 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14743
14744 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14745 defined.
14746
14747 2014-02-05 Yao Qi <yao@codesourcery.com>
14748
14749 * remote.c (remote_pass_signals): Remove local 'buf' and use
14750 rs->buf.
14751 (remote_program_signals): Likewise.
14752
14753 2014-02-05 Yao Qi <yao@codesourcery.com>
14754
14755 * ctf.c: Include "inferior.h" and "gdbthread.h".
14756 (CTF_PID): A new macro.
14757 (ctf_open): Call inferior_appeared and add_thread_silent.
14758 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14759 (ctf_thread_alive): New function.
14760 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14761
14762 2014-02-05 Yao Qi <yao@codesourcery.com>
14763
14764 Revert this patch:
14765
14766 2013-05-24 Yao Qi <yao@codesourcery.com>
14767
14768 * tracepoint.c (TFILE_PID): Remove.
14769 (tfile_open): Don't add thread and inferior.
14770 (tfile_close): Don't set 'inferior_ptid'. Don't call
14771 exit_inferior_silent.
14772 (tfile_thread_alive): Remove.
14773 (init_tfile_ops): Don't set field 'to_thread_alive' of
14774 tfile_ops.
14775
14776 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14777
14778 * remote.c (remote_start_remote): Call remote_check_symbols even
14779 if only symbol-file (not file) has been given.
14780
14781 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14782
14783 * gdbarch.sh (skip_entrypoint): New callback.
14784 * gdbarch.c, gdbarch.h: Regenerate.
14785 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14786 * infrun.c (fill_in_stop_func): Likewise.
14787 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14788 (ppc_elfv2_elf_make_msymbol_special): New function.
14789 (ppc_elfv2_skip_entrypoint): Likewise.
14790 (ppc_linux_init_abi): Install them for ELFv2.
14791
14792 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14793
14794 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14795 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14796 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14797 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14798 structures returned in GPRs.
14799
14800 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14801
14802 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14803 offset to the stack parameter list for the ELFv2 ABI.
14804
14805 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14806
14807 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14808 set_gdbarch_convert_from_func_ptr_addr and
14809 set_gdbarch_elf_make_msymbol_special for ELFv1.
14810 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14811 function descriptors on ELFv1.
14812 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14813 set up r12 at function entry.
14814
14815 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14816
14817 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14818 (struct gdbarch_tdep): New member elf_abi.
14819
14820 * rs6000-tdep.c: Include "elf/ppc64.h".
14821 (rs6000_gdbarch_init): Detect ELF ABI version.
14822
14823 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14824
14825 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14826 within a register pair holding a DFP 128-bit value on little-endian.
14827 (ppc64_sysv_abi_return_value_base): Likewise.
14828 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14829 (dfp_pseudo_register_write): Likewise.
14830
14831 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14832
14833 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14834 offset on little-endian when passing _Decimal32.
14835 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14836
14837 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14838
14839 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14840 of the overlapped FP register within the VSX register on little-
14841 endian platforms.
14842 (efpr_pseudo_register_write): Likewise.
14843
14844 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14845
14846 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14847 offset on little-endian when passing small structures.
14848
14849 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14850
14851 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14852 (struct ppc64_sysv_argpos): New data structure.
14853 (ppc64_sysv_abi_push_float): Remove.
14854 (ppc64_sysv_abi_push_val): New function.
14855 (ppc64_sysv_abi_push_integer): Likewise.
14856 (ppc64_sysv_abi_push_freg): Likewise.
14857 (ppc64_sysv_abi_push_vreg): Likewise.
14858 (ppc64_sysv_abi_push_param): Likewise.
14859 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14860 (ppc64_sysv_abi_return_value_base): New function.
14861 (ppc64_sysv_abi_return_value): Refactor to use it.
14862
14863 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14864
14865 * NEWS: Document new target powerpc64le-*-linux*.
14866
14867 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14868
14869 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14870 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14871 core dumps.
14872 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14873 register set used in ELF core dumps. Add floating-point register set.
14874
14875 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14876
14877 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14878 dwarf2_to_gdb[] table using symbolic constants. Adjust
14879 penultimate entry from number representing the PC register
14880 to symbolic constant representing the MDR register. Add
14881 constant for the PC register to the end of the table.
14882
14883 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14884
14885 * bsd-kvm.c: Include <sys/param.h>
14886
14887 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14888
14889 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14890
14891 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14892
14893 * ada-lang.h (clear_ada_sym_cache): Delete.
14894
14895 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14896
14897 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14898
14899 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14900
14901 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14902 the sigreturn register save area only if the syscall is
14903 sigreturn.
14904
14905 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14906
14907 * valops.c (value_slice): Minor reformatting.
14908
14909 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14910
14911 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14912
14913 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14914
14915 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14916 New static globals.
14917 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14918 (ada_ignore_descriptive_types_p): New static global.
14919 (find_parallel_type_by_descriptive_type): Return immediately
14920 if ada_ignore_descriptive_types_p is set.
14921 (_initialize_ada_language): Register new commands "maintenance
14922 set ada", "maintenance show ada", "maintenance set ada
14923 ignore-descriptive-types" and "maintenance show ada
14924 ignore-descriptive-types".
14925 * NEWS: Add entry for new "maint ada set/show
14926 ignore-descriptive-types" commands.
14927
14928 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14929
14930 * record-btrace.c (record_btrace_close): Call btrace_teardown
14931 for all threads.
14932
14933 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14934
14935 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14936 "ui-out.h".
14937
14938 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14939
14940 * ada-typeprint (type_is_full_subrange_of_target_type):
14941 New function.
14942 (print_range): Add parameter bounds_prefered_p. If not set,
14943 try printing range types using the name of their base type.
14944 (print_range_type): Add parameter bounds_prefered_p.
14945 Use it in call to print_range.
14946 (print_array_type, ada_print_type): Update calls to print_range
14947 and print_range_type.
14948
14949 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14950
14951 * ada-typeprint.c (print_array_type, print_choices, print_range)
14952 (print_range_bound, print_dynamic_range_bound, print_range_type):
14953 Remove declaration.
14954
14955 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14956
14957 * ada-typeprint.c (print_range): Add missing empty line
14958 after local declaration.
14959
14960 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14961
14962 * ada-valprint.c (print_optional_low_bound): Get index_type's
14963 target type for as long as it is a TYPE_CODE_RANGE.
14964
14965 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14966
14967 * procfs.c (procfs_make_note_section): Remove assertion and
14968 associated comment.
14969
14970 2014-01-24 Yao Qi <yao@codesourcery.com>
14971
14972 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14973 * corelow.c (get_core_siginfo): Likewise.
14974
14975 2014-01-24 Yao Qi <yao@codesourcery.com>
14976
14977 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14978 ULONGEST. Don't check 'len' is negative.
14979 (remote_write_bytes): Change type of 'len' to ULONGEST.
14980
14981 2014-01-23 Tom Tromey <tromey@redhat.com>
14982
14983 PR python/16485:
14984 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14985 Handle exception from frame.block.
14986 (FrameVars.fetch_frame_locals): Likewise.
14987
14988 2014-01-23 Tom Tromey <tromey@redhat.com>
14989
14990 PR python/16487:
14991 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14992 on a NULL pointer. Move "goto error" to correct place.
14993
14994 2014-01-23 Tom Tromey <tromey@redhat.com>
14995
14996 PR python/16491:
14997 * python/py-framefilter.c (apply_frame_filter): Call
14998 ensure_python_env after computing gdbarch.
14999
15000 2014-01-23 Yao Qi <yao@codesourcery.com>
15001
15002 * target.c (raw_memory_xfer_partial): Change argument type
15003 from void * to gdb_byte *.
15004 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15005
15006 2014-01-22 Doug Evans <dje@google.com>
15007
15008 New gdbserver option --debug-format=timestamp.
15009 * NEWS: Mention it.
15010
15011 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15012
15013 * syscalls/s390x-linux.xml: New file.
15014 * syscalls/s390-linux.xml: New file.
15015 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15016 (XML_SYSCALL_FILENAME_S390X): Likewise.
15017 (op_svc): New enum value for SVC opcode.
15018 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15019 (s390_linux_get_syscall_number): New function.
15020 (s390_gdbarch_init): Register '*get_syscall_number' and the
15021 syscall xml file name.
15022 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15023 "s390-linux.xml" and "s390x-linux.xml".
15024 * NEWS: Announce new feature.
15025
15026 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15027
15028 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15029
15030 2014-01-22 Pedro Alves <palves@redhat.com>
15031
15032 * xtensa-config.c: Include defs.h.
15033
15034 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15035
15036 * common/common-utils.h: Add "ARI:" comment beside __func__
15037 reference.
15038
15039 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15040
15041 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15042 documentation a bit.
15043
15044 2014-01-21 Roland McGrath <mcgrathr@google.com>
15045
15046 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15047 * configure: Regenerate.
15048 * aclocal.m4: Regenerate.
15049 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15050 New substituted variables.
15051 (install-strip): New target.
15052 (INSTALL_SCRIPT): New substituted variable.
15053 (FLAGS_TO_PASS): Add it.
15054 (install-only): Use $(INSTALL_SCRIPT) rather than
15055 $(INSTALL_PROGRAM) for gcore.
15056
15057 2014-01-20 Tom Tromey <tromey@redhat.com>
15058
15059 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15060 together.
15061
15062 2014-01-20 Tom Tromey <tromey@redhat.com>
15063
15064 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15065 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15066 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15067 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15068 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15069 (struct cmd_list_element) <flags>: Remove.
15070 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15071 doc_allocated>: New fields.
15072 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15073 bitfields.
15074 * maint.c (maintenance_do_deprecate): Update.
15075 * top.c (execute_command): Update.
15076
15077 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15078
15079 * xtensa-linux-nat.c: Include asm/ptrace.h.
15080
15081 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15082
15083 * Makefile.in (SFILES): Add d-support.c.
15084 (COMMON_OBS): Add d-support.o.
15085 * d-lang.h (d_parse_symbol): Add comment, now defined in
15086 d-support.c.
15087 * d-lang.c (parse_call_convention)
15088 (parse_attributes, parse_function_types)
15089 (parse_function_args, parse_type, parse_identifier)
15090 (call_convention_p, d_parse_symbol): Move functions to ...
15091 * d-support.c: ... New file.
15092
15093 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15094
15095 * d-lang.h (d_parse_symbol): Add declaration.
15096 * d-lang.c (extract_identifiers)
15097 (extract_type_info): Remove functions.
15098 (parse_call_convention, parse_attributes)
15099 (parse_function_types, parse_function_args)
15100 (parse_type, parse_identifier, call_convention_p)
15101 (d_parse_symbol): New functions.
15102 (d_demangle): Use d_parse_symbol to demangle D symbols.
15103
15104 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15105
15106 * d-lang.h (struct builtin_d_type): New data type.
15107 (builtin_d_type): Add declaration.
15108 * d-lang.c (d_language_arch_info, build_d_types)
15109 (builtin_d_type): New functions.
15110 (enum d_primitive_types): New data type.
15111 (d_language_defn): Change c_language_arch_info to
15112 d_language_arch_info.
15113 (d_type_data): New static variable.
15114 (_initialize_d_language): Initialize d_type_data.
15115
15116 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15117
15118 * d-lang.h (d_main_name): Add declaration.
15119 * d-lang.c (d_main_name): New function.
15120 * symtab.c (find_main_name): Add call to d_main_name.
15121
15122 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15123
15124 * d-lang.c (d_language_defn): Change macro_expansion_c to
15125 macro_expansion_no.
15126
15127 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15128
15129 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15130
15131 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15132
15133 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15134 gdb_exception" declaration.
15135 * remote.c (getpkt_or_notif_sane): Likewise.
15136
15137 2014-01-17 Doug Evans <dje@google.com>
15138
15139 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15140 function, contents of dirnames_to_char_ptr_vec_append moved here.
15141 (delim_string_to_char_ptr_vec): New function.
15142 (dirnames_to_char_ptr_vec_append): Rewrite.
15143 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15144
15145 2014-01-17 Doug Evans <dje@google.com>
15146
15147 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15148 and moved here ...
15149 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15150 #include "common-utils.h".
15151 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15152 * common/vec.h (VEC_ASSERT_PASS): Update.
15153 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15154 (MACH_CHECK_ERROR): Update.
15155
15156 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15157
15158 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15159 comments.
15160 * gdbarch.h: Regenerate.
15161
15162 2014-01-16 Tom Tromey <tromey@redhat.com>
15163
15164 * value.c (struct value) <regnum>: Move earlier.
15165
15166 2014-01-16 Tom Tromey <tromey@redhat.com>
15167
15168 * remote.c (extended_remote_create_inferior): Rename from
15169 extended_remote_create_inferior_1. Add "ops" argument. Remove
15170 old implementation.
15171
15172 2014-01-16 Pedro Alves <palves@redhat.com>
15173
15174 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15175 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15176 the backchain.
15177
15178 2014-01-16 Doug Evans <dje@google.com>
15179
15180 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15181
15182 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15183
15184 * btrace.h (btrace_thread_flag): New.
15185 (struct btrace_thread_info) <flags>: New.
15186 * record-btrace.c (record_btrace_resume_thread)
15187 (record_btrace_find_thread_to_move, btrace_step_no_history)
15188 (btrace_step_stopped, record_btrace_start_replaying)
15189 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15190 (record_btrace_find_resume_thread): New.
15191 (record_btrace_resume, record_btrace_wait): Extend.
15192 (record_btrace_can_execute_reverse): New.
15193 (record_btrace_open): Fail in non-stop mode.
15194 (record_btrace_set_replay): Split into this, ...
15195 (record_btrace_stop_replaying): ... this, ...
15196 (record_btrace_clear_histories): ... and this.
15197 (init_record_btrace_ops): Init to_can_execute_reverse.
15198 * NEWS: Announce it.
15199
15200 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15201
15202 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15203 (forward_target_decr_pc_after_break)
15204 (target_decr_pc_after_break): New.
15205 * target.c (forward_target_decr_pc_after_break)
15206 (target_decr_pc_after_break): New.
15207 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15208 instead of gdbarch_decr_pc_after_break.
15209 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15210 instead of gdbarch_decr_pc_after_break.
15211 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15212 instead of gdbarch_decr_pc_after_break.
15213 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15214 instead of gdbarch_decr_pc_after_break.
15215 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15216 instead of gdbarch_decr_pc_after_break.
15217 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15218 instead of gdbarch_decr_pc_after_break.
15219
15220 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15221
15222 * btrace.c: Include regcache.h.
15223 (btrace_add_pc): New.
15224 (btrace_enable): Call btrace_add_pc.
15225 (btrace_is_empty): New.
15226 * btrace.h (btrace_is_empty): New.
15227 * record-btrace.c (require_btrace, record_btrace_info): Call
15228 btrace_is_empty.
15229
15230 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15231
15232 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15233 Support delta reads.
15234 (linux_disable_btrace): Change return type.
15235 * common/linux-btrace.h (linux_read_btrace): Change parameters
15236 and return type to allow error reporting. Update users.
15237 (linux_disable_btrace): Change return type. Update users.
15238 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15239 New.
15240 (btrace_error): New.
15241 (btrace_block) <begin>: Comment on BEGIN == 0.
15242 * btrace.c (btrace_compute_ftrace): Start from the end of
15243 the current trace.
15244 (btrace_stitch_trace, btrace_clear_history): New.
15245 (btrace_fetch): Read delta trace, return if replaying.
15246 (btrace_clear): Move clear history code to btrace_clear_history.
15247 (parse_xml_btrace): Throw an error if parsing failed.
15248 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15249 and return type to allow error reporting.
15250 (target_read_btrace): Change parameters and return type to allow
15251 error reporting.
15252 * target.c (target_read_btrace): Update.
15253 * remote.c (remote_read_btrace): Support delta reads. Pass
15254 errors on.
15255 * NEWS: Announce it.
15256
15257 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15258
15259 * record.h (record_btrace_frame_unwind)
15260 (record_btrace_tailcall_frame_unwind): New declarations.
15261 * dwarf2-frame: Include record.h
15262 (dwarf2_frame_cfa): Throw an error for btrace frames.
15263 * record-btrace.c: Include hashtab.h.
15264 (btrace_get_bfun_name): New.
15265 (btrace_call_history): Call btrace_get_bfun_name.
15266 (struct btrace_frame_cache): New.
15267 (bfcache): New.
15268 (bfcache_hash, bfcache_eq, bfcache_new): New.
15269 (btrace_get_frame_function): New.
15270 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15271 (record_btrace_frame_this_id): Compute own id.
15272 (record_btrace_frame_prev_register): Provide PC, throw_error
15273 for all other registers.
15274 (record_btrace_frame_sniffer): Detect btrace frames.
15275 (record_btrace_tailcall_frame_sniffer): New.
15276 (record_btrace_frame_dealloc_cache): New.
15277 (record_btrace_frame_unwind): Add new functions.
15278 (record_btrace_tailcall_frame_unwind): New.
15279 (_initialize_record_btrace): Allocate cache.
15280 * btrace.c (btrace_clear): Call reinit_frame_cache.
15281 * NEWS: Announce it.
15282
15283 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15284
15285 * record-btrace.c (record_btrace_set_replay)
15286 (record_btrace_goto_begin, record_btrace_goto_end)
15287 (record_btrace_goto): New.
15288 (init_record_btrace_ops): Initialize them.
15289 * NEWS: Announce it.
15290
15291 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15292
15293 * record-btrace.c (record_btrace_find_new_threads)
15294 (record_btrace_thread_alive): New.
15295 (init_record_btrace_ops): Initialize to_find_new_threads and
15296 to_thread_alive.
15297
15298 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15299
15300 * record-btrace.c (record_btrace_resume): New.
15301 (record_btrace_wait): New.
15302 (init_record_btrace_ops): Initialize to_wait and to_resume.
15303
15304 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15305
15306 * record-btrace.c (record_btrace_xfer_partial)
15307 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15308 (record_btrace_allow_memory_access): New.
15309 (init_record_btrace_ops): Initialize new methods.
15310 * target.c (raw_memory_xfer_partial): Bail out if target reports
15311 that this memory is not available.
15312
15313 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15314
15315 * target.h (target_ops) <to_insert_breakpoint>
15316 <to_remove_breakpoint>: Add target_ops parameter.
15317 (forward_target_insert_breakpoint): New.
15318 (forward_target_remove_breakpoint): New.
15319 (memory_remove_breakpoint, memory_insert_breakpoint):
15320 Add target_ops parameter.
15321 * target.c (target_insert_breakpoint): Split into this and ...
15322 (forward_target_insert_breakpoint): ... this.
15323 (target_remove_breakpoint): Split into this and ...
15324 (forward_target_remove_breakpoint): ... this.
15325 (debug_to_insert_breakpoint): Add target_ops parameter.
15326 Call forward_target_insert_breakpoint.
15327 (debug_to_remove_breakpoint): Add target_ops parameter.
15328 Call forward_target_remove_breakpoint.
15329 (update_current_target): Do not inherit or default to_insert_breakpoint
15330 and to_remove_breakpoint.
15331 * corelow.c (ignore): Add target_ops parameter.
15332 * exec.c (ignore): Add target_ops parameter.
15333 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15334 Add target_ops parameter.
15335 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15336 Add target_ops parameter.
15337 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15338 Add target_ops parameter.
15339 * record-full.c (record_full_beneath_to_insert_breakpoint)
15340 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15341 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15342 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15343 (record_full_core_remove_breakpoint): Add target_ops parameter.
15344 Update users.
15345 (record_full_beneath_to_insert_breakpoint_ops)
15346 (record_full_beneath_to_remove_breakpoint_ops)
15347 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15348 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15349 tmp_to_remove_breakpoint_ops,
15350 record_full_beneath_to_insert_breakpoint_ops, and
15351 record_full_beneath_to_remove_breakpoint_ops.
15352 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15353 (m32r_remove_breakpoint): Add target_ops parameter.
15354 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15355 Add target_ops parameter.
15356 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15357 Add target_ops parameter.
15358
15359 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15360 Markus Metzger <markus.t.metzger@intel.com>
15361
15362 * record-btrace.c: Include frame-unwind.h.
15363 (record_btrace_frame_unwind_stop_reason)
15364 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15365 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15366 New.
15367 (init_record_btrace_ops): Install it.
15368
15369 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15370
15371 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15372 get_prev_frame_1.
15373
15374 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15375
15376 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15377 earlier.
15378
15379 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15380
15381 * frame-unwind.c: Include target.h.
15382 (frame_unwind_try_unwinder): New function with code from ...
15383 (frame_unwind_find_by_frame): ... here. New variable
15384 unwinder_from_target, call also target_get_unwinder)
15385 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15386 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15387 * target.h (struct target_ops): New fields to_get_unwinder and
15388 to_get_tailcall_unwinder.
15389 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15390
15391 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15392
15393 * record-btrace.c (record_btrace_fetch_registers)
15394 (record_btrace_store_registers)
15395 (record_btrace_to_prepare_to_store): New.
15396 (init_record_btrace_ops): Add the above.
15397
15398 2014-01-16 Tom Tromey <tromey@redhat.com>
15399
15400 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15401 * target.h (struct target_ops) <to_prepare_to_store>: Add
15402 argument.
15403 (target_prepare_to_store): Add argument.
15404 * target.c (debug_to_prepare_to_store): Add argument.
15405 (update_current_target): Update.
15406 * remote.c (remote_prepare_to_store): Add 'self' argument.
15407 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15408 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15409 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15410 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15411 argument.
15412 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15413 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15414 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15415 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15416 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15417
15418 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15419
15420 * btrace.h (replay) <replay>: New.
15421 (btrace_is_replaying): New.
15422 * btrace.c (btrace_clear): Free replay iterator.
15423 (btrace_is_replaying): New.
15424 * record-btrace.c (record_btrace_is_replaying): New.
15425 (record_btrace_info): Print insn number if replaying.
15426 (record_btrace_insn_history): Start at replay position.
15427 (record_btrace_call_history): Start at replay position.
15428 (init_record_btrace_ops): Init to_record_is_replaying.
15429
15430 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15431
15432 * record-btrace.c (record_btrace_insn_history_range): Include
15433 end.
15434 (record_btrace_insn_history_from): Adjust range.
15435 (record_btrace_call_history_range): Include
15436 end.
15437 (record_btrace_call_history_from): Adjust range.
15438 * NEWS: Announce changes.
15439
15440 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15441
15442 * record.h (enum record_print_flag)
15443 <record_print_indent_calls>: New.
15444 * record.c (get_call_history_modifiers): Recognize /c modifier.
15445 (_initialize_record): Document /c modifier.
15446 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15447 Reorder fields. Optionally indent the function name. Update
15448 all users.
15449 * NEWS: Announce changes.
15450
15451 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15452
15453 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15454
15455 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15456
15457 * btrace.c (ftrace_new_function): Start counting at one.
15458 * record-btrace.c (record_btrace_info): Adjust number of calls
15459 and insns.
15460 * NEWS: Announce it.
15461
15462 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15463
15464 * record-btrace.c (btrace_call_history_insn_range): Print
15465 insn range as [begin, end].
15466
15467 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15468
15469 * btrace.h (struct btrace_func_link): New.
15470 (enum btrace_function_flag): New.
15471 (struct btrace_inst): Rename to ...
15472 (struct btrace_insn): ...this. Update all users.
15473 (struct btrace_func) <ibegin, iend>: Remove.
15474 (struct btrace_func_link): New.
15475 (struct btrace_func): Rename to ...
15476 (struct btrace_function): ...this. Update all users.
15477 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15478 (number, level, flags>: New.
15479 (struct btrace_insn_iterator): Rename to ...
15480 (struct btrace_insn_history): ...this.
15481 Update all users.
15482 (struct btrace_insn_iterator, btrace_call_iterator): New.
15483 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15484 (struct btrace_target_info) <begin, end, level>
15485 <insn_history, call_history>: New.
15486 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15487 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15488 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15489 (btrace_call_number, btrace_call_begin, btrace_call_end)
15490 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15491 (btrace_find_function_by_number, btrace_set_insn_history)
15492 (btrace_set_call_history): New.
15493 * btrace.c (btrace_init_insn_iterator)
15494 (btrace_init_func_iterator, compute_itrace): Remove.
15495 (ftrace_print_function_name, ftrace_print_filename)
15496 (ftrace_skip_file): Change
15497 parameter to const.
15498 (ftrace_init_func): Remove.
15499 (ftrace_debug): Use new btrace_function fields.
15500 (ftrace_function_switched): Also consider gaining and
15501 losing symbol information).
15502 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15503 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15504 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15505 New.
15506 (ftrace_new_function): Move. Remove debug print.
15507 (ftrace_update_lines, ftrace_update_insns): New.
15508 (ftrace_update_function): Check for call, ret, and jump.
15509 (compute_ftrace): Renamed to ...
15510 (btrace_compute_ftrace): ...this. Rewritten to compute call
15511 stack.
15512 (btrace_fetch, btrace_clear): Updated.
15513 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15514 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15515 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15516 (btrace_call_number, btrace_call_begin, btrace_call_end)
15517 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15518 (btrace_find_function_by_number, btrace_set_insn_history)
15519 (btrace_set_call_history): New.
15520 * record-btrace.c (require_btrace): Use new btrace thread
15521 info fields.
15522 (record_btrace_info, btrace_insn_history)
15523 (record_btrace_insn_history, record_btrace_insn_history_range):
15524 Use new btrace thread info fields and new iterator.
15525 (btrace_func_history_src_line): Rename to ...
15526 (btrace_call_history_src_line): ...this. Use new btrace
15527 thread info fields.
15528 (btrace_func_history): Rename to ...
15529 (btrace_call_history): ...this. Use new btrace thread info
15530 fields and new iterator.
15531 (record_btrace_call_history, record_btrace_call_history_range):
15532 Use new btrace thread info fields and new iterator.
15533
15534 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15535
15536 * frame.h (frame_id_build_unavailable_stack_special): New.
15537 * frame.c (frame_id_build_unavailable_stack_special): New.
15538
15539 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15540
15541 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15542 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15543 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15544 to gdbarch.
15545 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15546 (i386_insn_is_jump, i386_jmp_p): New.
15547 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15548 insn_is_jump to gdbarch.
15549 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15550 * gdbarch.h: Regenerated.
15551 * gdbarch.c: Regenerated.
15552 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15553 (default_insn_is_jump): New.
15554 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15555 (default_insn_is_jump): New.
15556
15557 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15558
15559 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15560 Change to ...
15561 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15562 (btrace_read_type) <btrace_read_new>: Change to ...
15563 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15564
15565 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15566
15567 * common/linux-btrace.c (linux_read_btrace): Free trace from
15568 previous iteration.
15569
15570 2014-01-15 Doug Evans <dje@google.com>
15571
15572 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15573 uint32_t.
15574
15575 2014-01-15 Tom Tromey <tromey@redhat.com>
15576
15577 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15578 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15579 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15580 (set_objfile_main_name): New function.
15581 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15582 language_of_main>: New fields.
15583 (set_objfile_main_name): Declare.
15584 * symtab.c (find_main_name): Loop over objfiles to find the main
15585 name and language.
15586 (set_main_name): Now static.
15587 (get_main_info): Add comment.
15588 * symtab.h (set_main_name): Don't declare.
15589
15590 2014-01-15 Tom Tromey <tromey@redhat.com>
15591
15592 * symtab.c (main_progspace_key): New global.
15593 (struct main_info): New.
15594 (name_of_main, language_of_main): Remove.
15595 (get_main_info, main_info_cleanup): New function.
15596 (set_main_name, main_name, main_language): Use get_main_info.
15597 (_initialize_symtab): Initialize main_progspace_key.
15598
15599 2014-01-15 Tom Tromey <tromey@redhat.com>
15600
15601 * dbxread.c (process_one_symbol): Update.
15602 * dwarf2read.c (read_partial_die): Update.
15603 * symfile.c (set_initial_language): Call main_language.
15604 * symtab.c (language_of_main): Now static.
15605 (set_main_name): Add 'lang' parameter.
15606 (find_main_name): Update.
15607 (main_language): New function.
15608 (symtab_observer_executable_changed): Update.
15609 * symtab.h (set_main_name): Update.
15610 (language_of_main): Remove.
15611 (main_language): Declare.
15612
15613 2014-01-15 Tom Tromey <tromey@redhat.com>
15614
15615 * symfile.c (init_entry_point_info): Use new "initialized" field.
15616 Update.
15617 * objfiles.h (struct entry_point) <initialized>: New field.
15618 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15619 (struct objfile) <ei>: ...here. Remove.
15620 * objfiles.c (entry_point_address_query): Update.
15621
15622 2014-01-15 Tom Tromey <tromey@redhat.com>
15623
15624 * objfiles.c (entry_point_address_query): Relocate entry point
15625 address.
15626 (objfile_relocate1): Do not relocate entry point address.
15627 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15628 <the_bfd_section_index>: New field.
15629 * symfile.c (init_entry_point_info): Find the entry point's
15630 section.
15631
15632 2014-01-15 Tom Tromey <tromey@redhat.com>
15633
15634 * solib-frv.c (enable_break): Use entry_point_address_query.
15635
15636 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15637
15638 * NEWS: Add note on improved process record-replay on
15639 arm*-linux* targets.
15640
15641 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15642
15643 * arm-tdep.c (enum arm_record_result): New enum.
15644 (arm_record_unsupported_insn): New function.
15645 (arm_record_coproc_data_proc): Removed.
15646 (thumb2_record_ld_st_multiple): New function.
15647 (thumb2_record_ld_st_dual_ex_tbb): New function.
15648 (thumb2_record_data_proc_sreg_mimm): New function.
15649 (thumb2_record_ps_dest_generic): New function.
15650 (thumb2_record_branch_misc_cntrl): New function.
15651 (thumb2_record_str_single_data): New function.
15652 (thumb2_record_ld_mem_hints): New function.
15653 (thumb2_record_ld_word): New function.
15654 (thumb2_record_lmul_lmla_div): New function.
15655 (thumb2_record_decode_insn_handler): New function.
15656 (decode_insn): Add thumb32 instruction handlers.
15657
15658 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15659
15660 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15661 (struct arm_linux_record_tdep): Declare.
15662 (arm_canonicalize_syscall): New function.
15663 (arm_all_but_pc_registers_record): New function.
15664 (arm_linux_syscall_record): New function.
15665 (arm_linux_init_abi): Add syscall recording constructs.
15666 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15667 decoding. (arm_record_coproc_data_proc): Update arm syscall
15668 decoding.
15669 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15670 <arm_syscall_record>: New field.
15671 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15672 gdb_target_obs.
15673
15674 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15675
15676 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15677 register for push instruction recording.
15678
15679 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15680
15681 * arm-tdep.c (thumb_record_misc): Update to correct logical
15682 error while recording ldm, ldmia and pop instructions.
15683
15684 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15685
15686 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15687
15688 2014-01-15 Pedro Alves <palves@redhat.com>
15689
15690 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15691 (go32_resume, go32_fetch_registers, store_register)
15692 (go32_store_registers, go32_prepare_to_store)
15693 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15694 (go32_create_inferior, go32_can_run, go32_terminal_init)
15695 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15696 declarations.
15697
15698 2014-01-15 Tom Tromey <tromey@redhat.com>
15699
15700 * target.h (async_callback_ftype): New typedef.
15701 (struct target_ops) <to_async>: Use it.
15702
15703 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15704
15705 * python/py-value.c (get_field_type): Remove unnecessary curly
15706 braces for single-statement if block.
15707
15708 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15709
15710 * python/py-type.c (convert_field): Add missing empty line
15711 after declarations.
15712
15713 2014-01-14 Doug Evans <dje@google.com>
15714
15715 * symfile.h (expand_symtabs_matching): Renamed from
15716 expand_partial_symbol_names. Update prototype.
15717 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15718 * symfile.c (expand_symtabs_matching): Renamed from
15719 expand_partial_symbol_names. New args file_matcher, kind.
15720 Rename arg fun to symbol_matcher.
15721 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15722 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15723 ada_expand_partial_symbol_name.
15724 (ada_make_symbol_completion_list): Update to call
15725 expand_symtabs_matching.
15726 (ada_add_global_exceptions): Call expand_symtabs_matching.
15727 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15728 call map_symbol_filenames.
15729 * symtab.c (sources_info): Update to call map_symbol_filenames.
15730 (search_symbols): Call expand_symtabs_matching.
15731 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15732 (default_make_symbol_completion_list_break_on): Update to call
15733 expand_symtabs_matching.
15734 (make_source_files_completion_list): Update to call
15735 map_symbol_filenames.
15736
15737 2014-01-14 Doug Evans <dje@google.com>
15738
15739 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15740 (expand_symtabs_symbol_matcher_ftype): New typedef.
15741 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15742 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15743 * symfile.c (expand_partial_symbol_names): Update to use
15744 expand_symtabs_symbol_matcher_ftype.
15745 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15746 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15747 Arg name_matcher renamed to symbol_matcher.
15748 * psymtab.c (recursively_search_psymtabs): Update to use
15749 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15750 sym_matcher.
15751 (expand_symtabs_matching_via_partial): Update to use
15752 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15753 Arg name_matcher renamed to symbol_matcher.
15754
15755 2014-01-14 Doug Evans <dje@google.com>
15756
15757 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15758 (map_partial_symbol_filenames): Ditto.
15759 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15760 (map_partial_symbol_filenames): Ditto.
15761 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15762 (map_partial_symbol_filenames): Ditto.
15763 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15764 (map_partial_symbol_filenames): Ditto.
15765 * symtab.c: Delete #include "psymtab.h".
15766
15767 2014-01-14 Pedro Alves <palves@redhat.com>
15768 Tom Tromey <tromey@redhat.com>
15769
15770 * infrun.c (use_displaced_stepping): Use find_record_target
15771 instead of RECORD_IS_USED.
15772 (adjust_pc_after_break): Use record_full_is_used instead of
15773 RECORD_IS_USED.
15774 * record-btrace.c (record_btrace_open): Call record_preopen
15775 instead of checking RECORD_IS_USED.
15776 * record-full.c (record_full_shortname)
15777 (record_full_core_shortname): New globals.
15778 (record_full_is_used): New function.
15779 (find_full_open): Call record_preopen instead of checking
15780 RECORD_IS_USED.
15781 (init_record_full_ops): Set the target's shortname to
15782 record_full_shortname.
15783 (init_record_full_core_ops): Set the target's shortname to
15784 record_full_core_shortname.
15785 * record-full.h (record_full_is_used): Declare.
15786 * record.c (find_record_target): Make extern.
15787 (record_preopen): New function.
15788 * record.h (RECORD_IS_USED): Delete macro.
15789 (find_record_target, record_preopen): Declare functions.
15790
15791 2014-01-14 Yao Qi <yao@codesourcery.com>
15792
15793 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15794 'len''s type to ULONGEST.
15795 (core_xfer_shared_libraries_aix): Likewise.
15796 * gdbarch.c, gdbarch.h: Regenerated.
15797 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15798 Change type of 'len' to ULONGEST.
15799 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15800 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15801
15802 2014-01-14 Yao Qi <yao@codesourcery.com>
15803
15804 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15805 type of 'len' to ULONGEST.
15806 (linux_xfer_osdata_processgroups): Likewise.
15807 (linux_xfer_osdata_threads): Likewise.
15808 (linux_xfer_osdata_fds): Likewise.
15809 (linux_xfer_osdata_isockets): Likewise.
15810 (linux_xfer_osdata_shm): Likewise.
15811 (linux_xfer_osdata_sem): Likewise.
15812 (linux_xfer_osdata_msg): Likewise.
15813 (linux_common_xfer_osdata): Likewise.
15814 (struct osdata_type) <getter>: Likewise.
15815 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15816 the declaration.
15817
15818 2014-01-14 Yao Qi <yao@codesourcery.com>
15819
15820 * target.h (target_xfer_partial_ftype): Update.
15821 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15822 ULONGEST.
15823 * aix-thread.c (aix_thread_xfer_partial): Change type of
15824 argument 'len' to ULONGEST.
15825 * auxv.c (procfs_xfer_auxv): Likewise.
15826 (ld_so_xfer_auxv): Likewise.
15827 (memory_xfer_auxv): Likewise.
15828 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15829 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15830 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15831 * corelow.c (core_xfer_partial): Likewise.
15832 * ctf.c (ctf_xfer_partial): Likewise.
15833 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15834 '%u'.
15835 (darwin_read_dyld_info): Likewise.
15836 (darwin_xfer_partial): Likewise.
15837 * exec.c (section_table_xfer_memory_partial): Likewise.
15838 (exec_xfer_partial): Likewise.
15839 * exec.h (section_table_xfer_memory_partial): Update
15840 declaration.
15841 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15842 instead of plongest.
15843 (gnu_xfer_partial): Likewise.
15844 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15845 (ia64_hpux_xfer_solib_got): Likewise.
15846 (ia64_hpux_xfer_partial): Likewise.
15847 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15848 * inf-ptrace.c (inf_ptrace_xfer_partial):
15849 * inf-ttrace.c (inf_ttrace_xfer_partial):
15850 * linux-nat.c (linux_xfer_siginfo): Likewise.
15851 (linux_nat_xfer_partial): Likewise.
15852 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15853 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15854 * monitor.c (monitor_xfer_memory): Likewise.
15855 (monitor_xfer_partial): Likewise.
15856 * procfs.c (procfs_xfer_partial): Likewise.
15857 * record-full.c (record_full_xfer_partial): Likewise.
15858 (record_full_core_xfer_partial): Likewise.
15859 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15860 instead of plongest.
15861 (gdbsim_xfer_partial): Likewise.
15862 * remote.c (remote_xfer_partial): Likewise.
15863 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15864 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15865 declaration.
15866 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15867 (rs6000_xfer_shared_libraries): Likewise.
15868 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15869 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15870 (sparc_xfer_partial): Likewise.
15871 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15872 (spu_xfer_partial): Likewise.
15873 * spu-multiarch.c (spu_xfer_partial): Likewise.
15874 * target.c (target_read_live_memory): Likewise.
15875 (memory_xfer_live_readonly_partial): Likewise.
15876 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15877 (target_xfer_partial, default_xfer_partial): Likewise.
15878 (current_xfer_partial): Likewise.
15879 * tracepoint.c (tfile_xfer_partial): Likewise.
15880 * windows-nat.c (windows_xfer_memory): Likewise. Call
15881 pulongest instead of plongest.
15882 (windows_xfer_partial): Likewise.
15883 (windows_xfer_shared_libraries): Likewise.
15884
15885 2014-01-14 Yao Qi <yao@codesourcery.com>
15886
15887 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15888 target_xfer_partial_ftype.
15889
15890 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15891
15892 PR python/15464
15893 PR python/16113
15894 * valops.c (value_struct_elt_bitpos): New function
15895 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15896 object to 'None' if the field name is an empty string ("").
15897 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15898 attribute to look for a field when 'name' is 'None'.
15899 (get_field_type): New function
15900
15901 2014-01-13 Doug Evans <dje@google.com>
15902
15903 PR symtab/16426
15904 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15905 (try_open_dwop_file): Ditto.
15906 * gdb_bfd.c: #include "vec.h".
15907 (bfdp): New typedef.
15908 (struct gdb_bfd_data): New member included_bfds.
15909 (gdb_bfd_unref): Unref all included bfds.
15910 (gdb_bfd_record_inclusion): New function.
15911 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15912
15913 2014-01-13 Tom Tromey <tromey@redhat.com>
15914
15915 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15916
15917 2014-01-13 Tom Tromey <tromey@redhat.com>
15918
15919 * defs.h (use_windows): Remove.
15920 * gdb.c (main): Update.
15921 * main.c (captured_main, gdb_main): Update.
15922 * main.h (struct captured_main_args) <use_windows>: Remove.
15923 * top.c (use_windows): Remove.
15924
15925 2014-01-13 Tom Tromey <tromey@redhat.com>
15926
15927 * defs.h (deprecated_flush_hook): Remove.
15928
15929 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15930
15931 PR threads/16216
15932 * linux-thread-db.c (try_thread_db_load): Add parameter
15933 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15934 (try_thread_db_load_from_pdir_1): Move it there from here.
15935 (try_thread_db_load_from_sdir): Update caller.
15936 (try_thread_db_load_from_dir): Move it there from here.
15937
15938 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15939
15940 * regformats/regdat.sh: Always rewrite the register file.
15941
15942 2014-01-13 Pedro Alves <palves@redhat.com>
15943
15944 * Makefile.in (CHECK_HEADERS): New variable.
15945 (check-headers:): New rule.
15946
15947 2014-01-13 Tom Tromey <tromey@redhat.com>
15948
15949 * cli/cli-setshow.c (do_set_command): Update.
15950 * defs.h (deprecated_set_hook): Remove.
15951 * top.c (deprecated_set_hook): Remove.
15952
15953 2014-01-13 Pedro Alves <palves@redhat.com>
15954
15955 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15956 the tracepoint if the PC is a pseudo-register.
15957
15958 2014-01-13 Tom Tromey <tromey@redhat.com>
15959
15960 * defs.h (XCALLOC): Remove.
15961 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15962 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15963 * dwarf2loc.c (allocate_piece_closure): Likewise.
15964 * elfread.c (elf_symfile_segments): Likewise.
15965 (elf_symfile_segments): Likewise.
15966 * gdbtypes.c (copy_type_recursive): Likewise.
15967 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15968 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15969 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15970 XCALLOC.
15971 * mt-tdep.c (mt_gdbarch_init): Likewise.
15972 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15973 XCALLOC.
15974 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15975 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15976 * registry.c (registry_alloc_data): Likewise.
15977 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15978 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15979 * serial.c (serial_fdopen_ops): Likewise.
15980 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15981 XCALLOC.
15982 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15983 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15984 not XCALLOC.
15985
15986 2014-01-13 Tom Tromey <tromey@redhat.com>
15987
15988 * defs.h (XMALLOC): Remove.
15989 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15990 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15991 * cli-out.c (struct ui_out *): Likewise.
15992 * cli/cli-dump.c (add_dump_command): Likewise.
15993 (add_dump_command): Likewise.
15994 * complaints.c (get_complaints): Likewise.
15995 (find_complaint): Likewise.
15996 * dwarf2-frame.c (execute_cfa_program): Likewise.
15997 * dwarf2read.c (abbrev_table_read_table): Likewise.
15998 * gdbarch.sh: Likewise.
15999 * gdbarch.c: Rebuild.
16000 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16001 * interps.c (interp_new): Likewise.
16002 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16003 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16004 * mi/mi-console.c (mi_console_file_new): Likewise.
16005 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16006 * mi/mi-out.c (mi_out_new): Likewise.
16007 * mi/mi-parse.c (mi_parse): Likewise.
16008 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16009 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16010 * observer.c (xalloc_observer_list_node): Likewise.
16011 * regcache.c (regcache_xmalloc_1): Likewise.
16012 * reggroups.c (reggroup_new): Likewise.
16013 (_initialize_reggroup): Likewise.
16014 * registry.c (register_data_with_cleanup): Likewise.
16015 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16016 * ser-base.c (serial_ttystate): Likewise.
16017 * ser-mingw.c (make_pipe_state): Likewise.
16018 * ser-pipe.c (pipe_open): Likewise.
16019 * serial.c (serial_open): Likewise.
16020 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16021 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16022 (tui_alloc_win_info): Likewise.
16023 (tui_add_content_elements): Likewise.
16024 * tui/tui-file.c (tui_file_new): Likewise.
16025 * tui/tui-out.c (tui_out_new): Likewise.
16026 * ui-file.c (mem_file_new): Likewise.
16027 * ui-out.c (push_level): Likewise.
16028 (make_cleanup_ui_out_end): Likewise.
16029 (append_header_to_list): Likewise.
16030 (ui_out_new): Likewise.
16031 * user-regs.c (user_reg_add_builtin): Likewise.
16032
16033 2014-01-13 Tom Tromey <tromey@redhat.com>
16034
16035 * defs.h (XZALLOC): Remove.
16036 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16037 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16038 (get_ada_tasks_inferior_data): Likewise.
16039 * auto-load.c (get_auto_load_pspace_data): Likewise.
16040 * auxv.c (get_auxv_inferior_data): Likewise.
16041 * bfd-target.c (target_bfd_reopen): Likewise.
16042 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16043 (deprecated_insert_raw_breakpoint): Likewise.
16044 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16045 * corelow.c (core_open): Likewise.
16046 * darwin-nat.c (darwin_check_new_threads): Likewise.
16047 (darwin_attach_pid): Likewise.
16048 * dummy-frame.c (dummy_frame_push): Likewise.
16049 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16050 * dwarf2loc.c (allocate_piece_closure): Likewise.
16051 * elfread.c (elf_symfile_segments): Likewise.
16052 * eval.c (ptrmath_type_p): Likewise.
16053 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16054 * gdbtypes.c (alloc_type_arch): Likewise.
16055 (alloc_type_instance): Likewise.
16056 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16057 * inf-child.c (inf_child_can_use_agent): Likewise.
16058 * inflow.c (get_inflow_inferior_data): Likewise.
16059 * infrun.c (save_infcall_suspend_state): Likewise.
16060 * jit.c (jit_reader_load): Likewise.
16061 (get_jit_objfile_data): Likewise.
16062 (get_jit_program_space_data): Likewise.
16063 (jit_object_open_impl): Likewise.
16064 (jit_symtab_open_impl): Likewise.
16065 (jit_block_open_impl): Likewise.
16066 (jit_frame_sniffer): Likewise.
16067 * linux-fork.c (add_fork): Likewise.
16068 * maint.c (make_command_stats_cleanup): Likewise.
16069 * objfiles.c (get_objfile_pspace_data): Likewise.
16070 * opencl-lang.c (struct lval_closure): Likewise.
16071 * osdata.c (osdata_start_osdata): Likewise.
16072 * progspace.c (new_address_space): Likewise.
16073 (add_program_space): Likewise.
16074 * remote-sim.c (get_sim_inferior_data): Likewise.
16075 * sh-tdep.c (sh_gdbarch_init): Likewise.
16076 * skip.c (Ignore): Likewise.
16077 (skip_delete_command): Likewise.
16078 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16079 (library_list_start_library): Likewise.
16080 (solib_aix_current_sos): Likewise.
16081 * solib-darwin.c (get_darwin_info): Likewise.
16082 (darwin_current_sos): Likewise.
16083 * solib-dsbt.c (get_dsbt_info): Likewise.
16084 * solib-ia64-hpux.c (new_so_list): Likewise.
16085 (ia64_hpux_get_solib_linkage_addr): Likewise.
16086 * solib-spu.c (append_ocl_sos): Likewise.
16087 (spu_current_sos): Likewise.
16088 * solib-svr4.c (get_svr4_info): Likewise.
16089 (svr4_keep_data_in_core): Likewise.
16090 (library_list_start_library): Likewise.
16091 (svr4_default_sos): Likewise.
16092 (svr4_read_so_list): Likewise.
16093 * solib-target.c (library_list_start_library): Likewise.
16094 (solib_target_current_sos): Likewise.
16095 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16096 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16097 * symfile.c (default_symfile_segments): Likewise.
16098 * target-descriptions.c (tdesc_data_init): Likewise.
16099 (tdesc_create_reg): Likewise.
16100 (struct tdesc_type *): Likewise.
16101 (tdesc_create_vector): Likewise.
16102 (tdesc_set_struct_size): Likewise.
16103 (struct tdesc_type *): Likewise.
16104 (tdesc_free_feature): Likewise.
16105 (tdesc_create_feature): Likewise.
16106 * windows-nat.c (windows_add_thread): Likewise.
16107 (windows_make_so): Likewise.
16108 * xml-support.c (gdb_xml_body_text): Likewise.
16109 (gdb_xml_create_parser_and_cleanup): Likewise.
16110 (xml_process_xincludes): Likewise.
16111 * xml-syscall.c (allocate_syscalls_info): Likewise.
16112 (syscall_create_syscall_desc): Likewise.
16113
16114 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16115
16116 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16117 function, with code from i386_stap_parse_special_token.
16118 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16119 (i386_stap_parse_special_token): Move code to the two functions
16120 above; simplify it.
16121
16122 2014-01-09 Pedro Alves <palves@redhat.com>
16123 Hui Zhu <hui@codesourcery.com>
16124
16125 PR gdb/16101
16126 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16127 bp_err_string. Don't mark the location shlib_disabled if the
16128 error thrown wasn't a generic or memory error. Catch errors
16129 thrown while inserting breakpoints in overlayed code. Output
16130 error message of software breakpoints.
16131 * remote.c (remote_insert_breakpoint): If this breakpoint has
16132 target-side commands but this stub doesn't support Z0 packets,
16133 throw NOT_SUPPORTED_ERROR error.
16134 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16135 * target.h (target_insert_breakpoint): Extend comment.
16136 (target_insert_hw_breakpoint): Add comment.
16137
16138 2014-01-08 Pedro Alves <palves@redhat.com>
16139
16140 * remote.c (remote_add_thread): Add threads silently if starting
16141 up.
16142 (remote_notice_new_inferior): If in all-stop, and starting up,
16143 don't call notice_new_inferior.
16144 (get_current_thread): New function, factored out from ...
16145 (add_current_inferior_and_thread): ... this. Adjust.
16146 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16147 found any thread, then select the remote's current thread as GDB's
16148 current thread too.
16149
16150 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16151
16152 * NEWS: Create a new section for the next release branch.
16153 Rename the section of the current branch, now that it has
16154 been cut.
16155
16156 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16157
16158 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16159 * version.in: Bump version to 7.7.50.DATE-cvs.
16160
16161 2014-01-08 Yao Qi <yao@codesourcery.com>
16162
16163 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16164 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16165 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16166
16167 2014-01-08 Yao Qi <yao@codesourcery.com>
16168
16169 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16170 return value of bfd_get_filename to symbol_file_add_from_bfd.
16171
16172 2014-01-08 Pierre Muller <muller@sourceware.org>
16173
16174 Fix PR16201.
16175 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16176 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16177 to prim_record_mininal_symbol_and_info.
16178 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16179 in call to prim_record_minimal_symbol_and_info.
16180 (read_pe_exported_syms): Set index field of section_data.
16181
16182 2014-01-07 Andrew Pinski <apinski@cavium.com>
16183
16184 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16185 * features/aarch64.c: Regenerate.
16186
16187 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16188
16189 * target.c (return_null): Define.
16190 (update_current_target): Use it instead of return_zero for
16191 functions that return a pointer.
16192
16193 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16194
16195 * source.c (add_path): Fix check for duplicated paths in the previously
16196 included paths.
16197
16198 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16199
16200 * ada-lang.c: Remove duplicated include statements.
16201 * alphabsd-nat.c: Ditto.
16202 * amd64-darwin-tdep.c: Ditto.
16203 * amd64fbsd-nat.c: Ditto.
16204 * auto-load.c: Ditto.
16205 * ax-gdb.c: Ditto.
16206 * breakpoint.c: Ditto.
16207 * dbxread.c: Ditto.
16208 * fork-child.c: Ditto.
16209 * gdb_usleep.c: Ditto.
16210 * i386-darwin-tdep.c: Ditto.
16211 * i386fbsd-nat.c: Ditto.
16212 * infcmd.c: Ditto.
16213 * inferior.c: Ditto.
16214 * jv-lang.c: Ditto.
16215 * linux-nat.c: Ditto.
16216 * linux-tdep.c: Ditto.
16217 * m68kbsd-nat.c: Ditto.
16218 * m68klinux-nat.c: Ditto.
16219 * microblaze-tdep.c: Ditto.
16220 * mips-linux-tdep.c: Ditto.
16221 * mn10300-tdep.c: Ditto.
16222 * nto-tdep.c: Ditto.
16223 * opencl-lang.c: Ditto.
16224 * osdata.c: Ditto.
16225 * printcmd.c: Ditto.
16226 * regcache.c: Ditto.
16227 * remote-m32r-sdi.c: Ditto.
16228 * remote.c: Ditto.
16229 * symfile.c: Ditto.
16230 * symtab.c: Ditto.
16231 * tilegx-linux-nat.c: Ditto.
16232 * tilegx-tdep.c: Ditto.
16233 * tracepoint.c: Ditto.
16234 * valops.c: Ditto.
16235 * vaxbsd-nat.c: Ditto.
16236 * windows-nat.c: Ditto.
16237 * xtensa-tdep.c: Ditto.
16238
16239 2014-01-07 Yao Qi <yao@codesourcery.com>
16240
16241 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16242
16243 2014-01-07 Yao Qi <yao@codesourcery.com>
16244 Joel Brobecker <brobecker@adacore.com>
16245
16246 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16247 (pdc_write_regs): Likewise.
16248 (fetch_regs_kernel_thread): Likewise.
16249 (store_regs_kernel_thread): Likewise.
16250
16251 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16252
16253 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16254 tagged type objects to their actual type.
16255
16256 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16257
16258 * ada-valprint.c (print_field_values): Add "language" parameter.
16259 Update calls to print_field_values and print_variant_part.
16260 Pass new parameter "language" in call to val_print instead
16261 of "current_language". Replace call to ada_val_print by call
16262 to val_print.
16263 (print_variant_part): Add "language" parameter.
16264 (ada_val_print_struct_union): Update call to print_field_values.
16265
16266 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16267
16268 * ada-valprint.c (ui_memcpy): Delete.
16269 (ada_print_floating): Update documentation. Add empty line
16270 between between function documentation and implementation.
16271 Delete variable "buffer". Use ui_file_xstrdup in place of
16272 ui_file_put. Minor adjustments following this change.
16273
16274 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16275
16276 * ada-valprint.c (ada_val_print_string): New function,
16277 extracted from ada_val_print_array.
16278 (ada_val_print_array): Replace extracted code by call
16279 to ada_val_print_string followed by a return. Move
16280 "else" branch to the function's top block.
16281
16282 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16283
16284 * ada-valprint.c (ada_val_print_array): Move implementation
16285 down. Rename parameter "offset" and "val" into "offset_aligned"
16286 and "original_value" respectively. Add parameter "offset".
16287
16288 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16289
16290 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16291 re-organizing the code. Change the "???" message printed
16292 when target type is a TYPE_CODE_UNDEF into
16293 "<ref to undefined type>".
16294
16295 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16296
16297 * ada-valprint.c (print_record): Delete, implementation inlined...
16298 (ada_val_print_struct_union): ... here. Remove call to
16299 ada_check_typedef in inlined implementation.
16300
16301 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16302
16303 * ada-valprint.c (ada_val_print_gnat_array): New function,
16304 extracted from ada_val_print_1;
16305 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16306 (ada_val_print_flt, ada_val_print_struct_union)
16307 (ada_val_print_ref): Likewise.
16308 (ada_val_print_1): Delete variables i and elttype.
16309 Replace extracted-out code by call to corresponding
16310 new functions.
16311
16312 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16313
16314 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16315
16316 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16317
16318 * ada-valprint.c (ada_val_print_1): Replace calls to
16319 ada_val_print_1 by calls to val_print.
16320
16321 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16322
16323 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16324 Update calls to self accordingly. Replace calls to c_val_print
16325 by calls to val_print.
16326
16327 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16328
16329 * ada-valprint.c (print_record): Delete declaration.
16330 (adjust_type_signedness, ada_val_print_1): Likewise.
16331 (ada_val_print): Move function implementation down.
16332 (print_variant_part, print_field_values, print_record):
16333 Move function implementation up.
16334
16335 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16336
16337 * python/py-type.c (typy_get_name): New function.
16338 (type_object_getset): Add entry for attribute "name".
16339 * NEWS: Add entry mentioning this new attribute.
16340
16341 2014-01-07 Yao Qi <yao@codesourcery.com>
16342
16343 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16344 statement.
16345
16346 2014-01-07 Yao Qi <yao@codesourcery.com>
16347
16348 * gnu-nat.c (info_port_rights): Add qualifier const to
16349 argument args.
16350
16351 2014-01-07 Yao Qi <yao@codesourcery.com>
16352
16353 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16354
16355 2014-01-07 Yao Qi <yao@codesourcery.com>
16356
16357 * gnu-nat.c (make_inf) Update declaration.
16358 (make_inf): Make it static.
16359 (inf_set_traced): Likewise.
16360 (inf_port_to_thread, inf_task_died_status): Likewise.
16361
16362 2014-01-07 Yao Qi <yao@codesourcery.com>
16363
16364 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16365
16366 2014-01-07 Yao Qi <yao@codesourcery.com>
16367
16368 * gnu-nat.c (_initialize_gnu_nat): Declare.
16369
16370 2014-01-07 Yao Qi <yao@codesourcery.com>
16371
16372 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16373 'enum bfd_endian'.
16374 (struct gdbarch_info) <byte_order>: Change type to
16375 'enum bfd_endian'.
16376 <byte_order_for_code>: Likewise.
16377 * gdbarch.c, gdbarch.h: Regenerated.
16378
16379 2014-01-06 Sasha Smundak <asmundak@google.com>
16380
16381 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16382
16383 2014-01-06 Tom Tromey <tromey@redhat.com>
16384
16385 * doublest.c (convert_doublest_to_floatformat): Use const, not
16386 CONST.
16387 * somread.c (som_symtab_read): Likewise.
16388
16389 2014-01-07 Hui Zhu <hui@codesourcery.com>
16390
16391 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16392 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16393 (gdb_bfd_fopen): Ditto.
16394 (gdb_bfd_openr): Ditto.
16395 (gdb_bfd_openw): Ditto.
16396 (gdb_bfd_openr_iovec): Ditto.
16397 (gdb_bfd_fdopenr): Ditto.
16398 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16399 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16400 with xstrdup.
16401 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16402 with xstrdup.
16403 * symfile-mem.c (symbol_file_add_from_memory): Removed
16404 gdb_bfd_stash_filename.
16405
16406 2014-01-03 Doug Evans <dje@google.com>
16407
16408 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16409 output.
16410
16411 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16412
16413 Update year range in copyright notice of all files.
16414
16415 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16416
16417 * top.c (print_gdb_version): Set copyright year to 2014.
16418
16419 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16420
16421 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16422
16423 For older changes see ChangeLog-2013.
16424 \f
16425 Local Variables:
16426 mode: change-log
16427 left-margin: 8
16428 fill-column: 74
16429 version-control: never
16430 coding: utf-8
16431 End:
This page took 0.372727 seconds and 4 git commands to generate.