New parameter "debug symbol-lookup".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-17 Doug Evans <xdje42@gmail.com>
2
3 New parameter "debug symbol-lookup".
4 * NEWS: Mention it.
5 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
6 output.
7 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
8 (cp_lookup_nested_symbol): Ditto.
9 * language.c (language_lookup_primitive_type_by_name): Add debug
10 output.
11 * minsyms.c (lookup_minimal_symbol): Add debug output.
12 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
13 * symfile-debug.c (debug_objfile_name): ... from here. All callers
14 updated.
15 * objfiles.h (objfile_debug_name): Declare.
16 * symtab.h (symbol_lookup_debug): Declare.
17 * symtab.c (symbol_lookup_debug): New global.
18 (lookup_language_this): Add debug output.
19 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
20 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
21 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
22 (_initialize_symtab): Add new parameter "debug symbol-lookup".
23
24 2014-12-16 Doug Evans <xdje42@gmail.com>
25
26 * buildsym.c: Add comments describing how the buildsym machinery
27 is used by the various file formats.
28 (really_free_pendings): Enhance function comment.
29 See pending_macros to NULL. Simplify resetting pending_addrmap.
30 Call free_buildsym_compunit.
31 (free_buildsym_compunit): Set current_subfile to NULL.
32 (prepare_for_building): New function.
33 (start_symtab): Call it. Remove call to set_last_source_file.
34 (restart_symtab): New arg "cust". All callers updated.
35 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
36 (reset_symtab_globals): Enhance function comment.
37 Set local_symbols, file_symbols, global_symbols to NULL.
38 Set pending_macros to NULL. Simplify resetting pending_addrmap.
39 Call free_buildysym_compunit.
40 (end_symtab_without_blockvector): Delete. All callers updated.
41 (end_symtab_with_blockvector): Remove redundant call to
42 free_buildsym_compunit.
43 (augment_type_symtab): Remove arg "cust". All callers updated.
44 (buildsym_init): Remove resetting of free_pendings, file_symbols,
45 global_symbols, pending_blocks, pending_macros. Instead make
46 handling consistent with pending_addrmap: Assert value was reset
47 at end of previous symtab building. Initialize context_stack here.
48
49 2014-12-16 Doug Evans <xdje42@gmail.com>
50
51 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
52 cp_lookup_symbol_imports. All callers updated.
53
54 2014-12-16 Doug Evans <xdje42@gmail.com>
55
56 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
57 find_type_baseclass_by_name. All callers updated.
58
59 2014-12-16 Doug Evans <xdje42@gmail.com>
60
61 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
62 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
63 (print_symbol_info): Delete arg symtab. All callers updated.
64 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
65
66 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
67
68 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
69 "Name" columns. Assure that the output is always indented.
70
71 2014-12-16 Joel Brobecker <brobecker@adacore.com>
72
73 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
74 already defined.
75 (linux_enable_event_reporting): Add parameter "attached".
76 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
77 declaration. New function.
78 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
79 (linux_enable_event_reporting): Add new parameter "attached".
80 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
81 nonzero.
82 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
83 Use it. Update function description.
84 (linux_child_post_attach, linux_child_post_startup_inferior):
85 Update call to linux_enable_event_reporting.
86
87 2014-12-16 Yao Qi <yao@codesourcery.com>
88
89 * NEWS: Move some entries to "Changes since GDB 7.8" section.
90
91 2014-12-16 Yao Qi <yao@codesourcery.com>
92
93 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
94 ARG_LAST.
95
96 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
97
98 * inferior.c (find_inferior_ptid): New function.
99 * inferior.h (find_inferior_ptid): New declaration.
100 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
101 * corelow.c (core_pid_to_str): Same.
102 * darwin-nat.c (darwin_resume): Same.
103 * infrun.c (fetch_inferior_event): Same.
104 (get_inferior_stop_soon): Same.
105 (handle_inferior_event): Same.
106 (handle_signal_stop): Same.
107 * linux-nat.c (resume_lwp): Same.
108 (stop_wait_callback): Same.
109 * mi/mi-interp.c (mi_new_thread): Same.
110 (mi_thread_exit): Same.
111 * proc-service.c (ps_pglobal_lookup): Same.
112 * record-btrace.c (record_btrace_step_thread): Same.
113 * remote-sim.c (gdbsim_close_inferior): Same.
114 (gdbsim_resume): Same.
115 (gdbsim_stop): Same.
116 * sol2-tdep.c (sol2_core_pid_to_str): Same.
117 * target.c (memory_xfer_partial_1): Same.
118 (default_thread_address_space): Same.
119 * thread.c (thread_change_ptid): Same.
120 (switch_to_thread): Same.
121 (do_restore_current_thread_cleanup): Same.
122
123 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
124
125 * defs.h (gdb_readline): Constify argument.
126 (gdb_readline_wrapper): Same.
127 (command_line_input): Same.
128 (deprecated_readline_hook): Same.
129 * top.c (deprecated_readline_hook): Same.
130 (gdb_readline): Same.
131 (gdb_readline_wrapper): Same.
132 (command_line_input): Constify argument. Pass prompt_arg to called
133 functions instead of local_prompt, overwriting prompt_arg if necessary.
134 * event-top.h (display_gdb_prompt): Constify argument.
135 * event-top.c (display_gdb_prompt): Same.
136 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
137 if building with Python 3.4 and up.
138
139 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
140
141 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
142 os.getcwdu().
143
144 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
145
146 PR gdb/15684
147 * memattr.c (mem_info_command): Remove "unsigned long" casts.
148
149 2014-12-13 Doug Evans <xdje42@gmail.com>
150
151 * utils.c (make_hex_string): Fix off-by-one error.
152
153 2014-12-13 Joel Brobecker <brobecker@adacore.com>
154
155 * ada-lang.h (ada_ensure_varsize_limit): Declare.
156 * ada-lang.c (check_size): Remove advance declaration.
157 (ada_ensure_varsize_limit): Renames check_size.
158 Replace calls to check_size by calls to ada_ensure_varsize_limit
159 throughout.
160 * ada-valprint.c (ada_val_print_ref): Add call to
161 ada_ensure_varsize_limit. Add comment explaining why.
162
163 2014-12-13 Joel Brobecker <brobecker@adacore.com>
164
165 * utils.c (make_hex_string): Replace use of sprintf by use of
166 xsnprintf.
167
168 2014-12-13 Joel Brobecker <brobecker@adacore.com>
169
170 * compile/compile-object-load.c (link_callbacks_multiple_definition)
171 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
172 newline at end of warning message.
173
174 2014-12-13 Joel Brobecker <brobecker@adacore.com>
175
176 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
177 new "EXTRA-ARGS" parameter.
178 * configure.ac: If large-file support is disabled in GDB,
179 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
180 * configure: Regenerate.
181
182 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
183
184 PR symtab/17642
185 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
186 TYPE if not TYPE_CODE_TYPEDEF.
187
188 2014-12-13 Joel Brobecker <brobecker@adacore.com>
189
190 PR backtrace/16215:
191 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
192 the frame unwinder must either be the dwarf2_frame_unwind
193 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
194 stack_addr is valid before calling get_frame_base. Throw
195 an error if not valid.
196
197 2014-12-12 Doug Evans <xdje42@gmail.com>
198
199 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
200 result != NULL.
201
202 2014-12-12 Doug Evans <xdje42@gmail.com>
203
204 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
205 All callers updated. Rename arg "namespace" to "symbol_name".
206
207 2014-12-12 Doug Evans <xdje42@gmail.com>
208
209 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
210 partial_map_symtabs_matching_filename. All uses updated.
211 (psym_find_pc_sect_compunit_symtab): Renamed from
212 find_pc_sect_compunit_symtab_from_partial. All uses updated.
213 Add function comment.
214 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
215 All uses updated. Add function comment.
216 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
217 Add function comment.
218 (psym_find_last_source_symtab): Renamed from
219 find_last_source_symtab_from_partial. All uses updated.
220 Add function comment.
221 (psym_forget_cached_source_info): Renamed from
222 forget_cached_source_info_partial. All uses updated.
223 Add function comment.
224 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
225 All uses updated. Add function comment.
226 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
227 updated. Add function comment.
228 (psym_expand_symtabs_for_function): Renamed from
229 read_symtabs_for_function. All uses updated. Update function comment.
230 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
231 All uses updated. Add function comment.
232 (psym_expand_symtabs_with_fullname): Renamed from
233 read_psymtabs_with_fullname. All uses updated. Add function comment.
234 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
235 All uses updated. Add function comment.
236 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
237 All uses updated.
238 (psym_expand_symtabs_matching): Renamed from
239 expand_symtabs_matching_via_partial. All uses updated.
240 Add function comment.
241 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
242 Add function comment.
243
244 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
245 Jan Kratochvil <jan.kratochvil@redhat.com>
246 Tom Tromey <tromey@redhat.com>
247
248 * NEWS: Update.
249 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
250 field.
251 * p-lang.c (pascal_language_defn): Update.
252 * opencl-lang.c (opencl_language_defn): Update.
253 * objc-lang.c (objc_language_defn): Update.
254 * m2-lang.c (m2_language_defn): Update.
255 * language.h (struct language_defn) <la_get_compile_instance,
256 la_compute_program>: New fields.
257 * language.c (unknown_language_defn, auto_language_defn)
258 (local_language_defn): Update.
259 * jv-lang.c (java_language_defn): Update.
260 * go-lang.c (go_language_defn): Update.
261 * f-lang.c (f_language_defn): Update.
262 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
263 * dwarf2loc.c (dwarf2_compile_property_to_c)
264 (locexpr_generate_c_location, loclist_generate_c_location): New
265 functions.
266 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
267 * defs.h (enum compile_i_scope_types): New.
268 (enum command_control_type) <compile_control>: New constant.
269 (struct command_line) <control_u>: New field.
270 * d-lang.c (d_language_defn): Update.
271 * compile/compile.c: New file.
272 * compile/compile-c-support.c: New file.
273 * compile/compile-c-symbols.c: New file.
274 * compile/compile-c-types.c: New file.
275 * compile/compile.h: New file.
276 * compile/compile-internal.h: New file.
277 * compile/compile-loc2c.c: New file.
278 * compile/compile-object-load.c: New file.
279 * compile/compile-object-load.h: New file.
280 * compile/compile-object-run.c: New file.
281 * compile/compile-object-run.h: New file.
282 * cli/cli-script.c (multi_line_command_p, print_command_lines)
283 (execute_control_command, process_next_line)
284 (recurse_read_control_structure): Handle compile_control.
285 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
286 * c-lang.c (c_language_defn, cplus_language_defn)
287 (asm_language_defn, minimal_language_defn): Update.
288 * ada-lang.c (ada_language_defn): Update.
289 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
290 New variables.
291 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
292 (HFILES_NO_SRCDIR): Add compile.h.
293 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
294 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
295 (compile.o, compile-c-types.o, compile-c-symbols.o)
296 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
297 (compile-c-support.o): New targets.
298
299 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
300
301 * s390-linux-tdep.c (s390_gcc_target_options): New function.
302 (s390_gdbarch_init): Add it to gdbarch.
303
304 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
305
306 * linux-tdep.c: Include objfiles.h and infcall.h.
307 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
308 function.
309 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
310
311 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
312
313 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
314 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
315 translate_register. Now public.
316 (dwarf2_compile_expr_to_ax): Update.
317
318 2014-12-12 Tom Tromey <tromey@redhat.com>
319 Jan Kratochvil <jan.kratochvil@redhat.com>
320
321 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
322 (dwarf_expr_frame_base): Update caller.
323 (dwarf_expr_frame_base_1): Rename to ...
324 (func_get_frame_base_dwarf_block): ... this and make it public.
325 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
326 callers.
327 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
328
329 2014-12-12 Tom Tromey <tromey@redhat.com>
330
331 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
332 Update.
333 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
334 dwarf2_compile_cfa_to_ax.
335 (dwarf2_compile_cfa_to_ax): Remove.
336 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
337 (dwarf2_compile_cfa_to_ax): Remove.
338
339 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
340
341 * infcall.h (call_function_by_hand_dummy): Declare.
342 * infcall.c (call_function_by_hand): Use
343 call_function_by_hand_dummy.
344 (call_function_by_hand_dummy): Rename from call_function_by_hand.
345 Add arguments. Register a destructor.
346
347 2014-12-12 Tom Tromey <tromey@redhat.com>
348 Jan Kratochvil <jan.kratochvil@redhat.com>
349
350 * osabi.h (osabi_triplet_regexp): Declare.
351 * osabi.c (struct osabi_names): New.
352 (gdb_osabi_names): Change type to struct osabi_names. Update
353 values.
354 (gdbarch_osabi_name): Update.
355 (osabi_triplet_regexp): New function.
356 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
357 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
358 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
359 set_gdbarch_gnu_triplet_regexp.
360 * gdbarch.sh (gnu_triplet_regexp): New method.
361 * gdbarch.c, gdbarch.h: Rebuild.
362 * arch-utils.h (default_gnu_triplet_regexp): Declare.
363 * arch-utils.c (default_gnu_triplet_regexp): New function.
364
365 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
366
367 * arch-utils.c (default_infcall_mmap)
368 (default_gcc_target_options): New functions.
369 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
370 (GDB_MMAP_PROT_EXEC): Define.
371 (default_infcall_mmap, default_gcc_target_options): Declare.
372 * gdbarch.h: Rebuild.
373 * gdbarch.c: Rebuild.
374 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
375
376 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
377
378 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
379 fields.
380 (pop_dummy_frame): Call the destructor if it exists.
381 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
382 functions.
383 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
384 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
385
386 2014-12-12 Tom Tromey <tromey@redhat.com>
387
388 * gdbtypes.h (make_unqualified_type): Declare.
389 * gdbtypes.c (make_unqualified_type): New function.
390
391 2014-12-12 Tom Tromey <tromey@redhat.com>
392
393 * ui-file.h (ui_file_write_for_put): Declare.
394 * ui-file.c (ui_file_write_for_put): New function.
395 * mi/mi-out.c (do_write): Remove.
396 (mi_out_put): Use ui_file_write_for_put.
397
398 2014-12-12 Doug Evans <dje@google.com>
399
400 * NEWS: Mention gdb.lookup_objfile.
401 * python/python.c (GdbMethods): Add lookup_objfile.
402 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
403 * python/py-objfile.c: #include "symtab.h".
404 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
405 (objfpy_lookup_objfile_by_name): New function.
406 (objfpy_lookup_objfile_by_build_id): New function.
407 (gdbpy_lookup_objfile): New function.
408
409 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
410
411 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
412 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
413 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
414 macros.
415 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
416 Likewise.
417
418 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
419
420 * completer.c: Include "target.h", "reggroups.h", and
421 "user-regs.h".
422 (reg_or_group_completer): New.
423 * completer.h (reg_or_group_completer): Declare.
424 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
425 the "info registers" and "info all-registers" commands and the
426 dbx-mode "lr" command.
427
428 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
429
430 * user-regs.c: Include "arch-utils.h", "command.h", and
431 "cli/cli-cmds.h".
432 (maintenance_print_user_registers): New.
433 (_initialize_user_regs): Register new "maint print user-registers"
434 subcommand.
435 * NEWS: Mention new GDB command "maint print user-registers".
436
437 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
438 Maciej W. Rozycki <macro@mips.com>
439 Pedro Alves <pedro@codesourcery.com>
440
441 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
442 remove `predefault' and `invalid_p' initializers.
443 (make_symbol_special): New architecture method.
444 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
445 (objfile, symbol): New declarations.
446 * arch-utils.h (default_elf_make_msymbol_special): Remove
447 prototype.
448 (default_make_symbol_special): New prototype.
449 (default_adjust_dwarf2_addr): Likewise.
450 (default_adjust_dwarf2_line): Likewise.
451 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
452 * arch-utils.c (default_elf_make_msymbol_special): Remove
453 function.
454 (default_make_symbol_special): New function.
455 (default_adjust_dwarf2_addr): Likewise.
456 (default_adjust_dwarf2_line): Likewise.
457 * dwarf2-frame.c (decode_frame_entry_1): Call
458 `gdbarch_adjust_dwarf2_addr'.
459 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
460 * dwarf2read.c (create_addrmap_from_index): Likewise.
461 (process_psymtab_comp_unit_reader): Likewise.
462 (add_partial_symbol): Likewise.
463 (add_partial_subprogram): Likewise.
464 (process_full_comp_unit): Likewise.
465 (read_file_scope): Likewise.
466 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
467 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
468 (read_call_site_scope): Likewise.
469 (dwarf2_ranges_read): Likewise.
470 (dwarf2_record_block_ranges): Likewise.
471 (read_attribute_value): Likewise.
472 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
473 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
474 * elfread.c (elf_symtab_read): Don't call
475 `gdbarch_elf_make_msymbol_special' if unset.
476 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
477 the ISA bit from the PC.
478 * mips-tdep.c (mips_unmake_compact_addr): New function.
479 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
480 address appropriately.
481 (mips_make_symbol_special): New function.
482 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
483 (mips_pc_is_mips16): Likewise.
484 (mips_pc_is_micromips): Likewise.
485 (mips_pc_isa): Likewise.
486 (mips_adjust_dwarf2_addr): New function.
487 (mips_adjust_dwarf2_line): Likewise.
488 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
489 (mips_addr_bits_remove): Likewise.
490 (mips_skip_trampoline_code): Likewise.
491 (mips_write_pc): Don't set the ISA bit.
492 (mips_eabi_push_dummy_call): Likewise.
493 (mips_o64_push_dummy_call): Likewise.
494 (mips_gdbarch_init): Install `mips_make_symbol_special',
495 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
496 handlers.
497 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
498 target-specific symbol address adjustments.
499 * gdbarch.h: Regenerate.
500 * gdbarch.c: Regenerate.
501
502 2014-12-12 Yao Qi <yao@codesourcery.com>
503
504 PR tdep/14261
505 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
506 'skip_pc'. Remove code skipping prologue instructions, use
507 arm_analyze_prologue instead.
508 (arm_analyze_prologue): Stop the scanning for unrecognized
509 instruction when skipping prologue.
510
511 2014-12-12 Yao Qi <yao@codesourcery.com>
512
513 * arm-tdep.c (arm_instruction_restores_sp): New function.
514 (arm_analyze_prologue): Call arm_instruction_restores_sp.
515 (arm_in_function_epilogue_p): Move code to
516 arm_instruction_restores_sp.
517
518 2014-12-11 Doug Evans <xdje42@gmail.com>
519
520 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
521
522 2014-12-11 Doug Evans <xdje42@gmail.com>
523
524 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
525 (symbol *lookup_symbol_via_quick_fns): Ditto.
526 (lookup_symbol_in_objfile): Add forward decl.
527 (lookup_global_symbol_from_objfile): Simplify, call
528 lookup_symbol_in_objfile.
529
530 2014-12-11 Doug Evans <xdje42@gmail.com>
531
532 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
533
534 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
535
536 PR breakpoints/17012
537 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
538 it is marked as persistent.
539
540 2014-12-10 Doug Evans <xdje42@gmail.com>
541
542 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
543 closer to its subroutines.
544
545 2014-12-10 Doug Evans <xdje42@gmail.com>
546
547 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
548
549 2014-12-10 Doug Evans <xdje42@gmail.com>
550
551 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
552 * cp-support.c (cp_lookup_symbol_imports): Delete.
553
554 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
555
556 PR gdb/17627
557 * target.c (cleanup_restore_target_terminal): New function.
558 (make_cleanup_restore_target_terminal): New function.
559 * target.h (make_cleanup_restore_target_terminal): New declaration.
560 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
561
562 2014-12-08 Doug Evans <dje@google.com>
563
564 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
565
566 2014-12-08 Doug Evans <dje@google.com>
567
568 * NEWS: Mention gdb.Objfile.owner.
569 * python/py-objfile.c (objfpy_get_owner): New function.
570 (objfile_getset): Add "owner".
571
572 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
573
574 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
575 (lookup_global_symbol_from_objfile): Call it.
576
577 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
578
579 Remove const from struct objfile *.
580 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
581 symtab.c, symtab.h: In these files.
582
583 2014-12-05 Andreas From <andreas.from@ericsson.com>
584
585 * MAINTAINERS (Write After Approval): Add "Andreas From"
586
587 2014-12-05 Doug Evans <xdje42@gmail.com>
588
589 Revert:
590 PR symtab/17602
591 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
592
593 2014-12-04 Doug Evans <dje@google.com>
594
595 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
596 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
597 (objfile_getset): Add "add_separate_debug_file".
598
599 2014-12-04 Doug Evans <dje@google.com>
600
601 * NEWS: Mention gdb.Objfile.build_id.
602 * build-id.c (build_id_bfd_get): Make non-static.
603 * build-id.h (build_id_bfd_get): Add declaration.
604 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
605 (OBJFPY_REQUIRE_VALID): New macro.
606 (objfpy_get_build_id): New function.
607 (objfile_getset): Add "build_id".
608 * utils.c (make_hex_string): New function.
609 * utils.h (make_hex_string): Add declaration.
610
611 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
612
613 * block.c (block_lookup_symbol_primary): New function.
614 * block.h (block_lookup_symbol_primary): New declaration.
615 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
616 Call block_lookup_symbol_primary.
617
618 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
619
620 * tramp-frame.h (tramp_frame): Add `validate' member.
621 * tramp-frame.c (tramp_frame_start): Validate trampoline before
622 scanning.
623 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
624 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
625 (mips_linux_o32_sigframe): Initialize `validate' member.
626 (mips_linux_o32_rt_sigframe): Likewise.
627 (mips_linux_n32_rt_sigframe): Likewise.
628 (mips_linux_n64_rt_sigframe): Likewise.
629 (micromips_linux_o32_sigframe): New variable.
630 (micromips_linux_o32_rt_sigframe): Likewise.
631 (micromips_linux_n32_rt_sigframe): Likewise.
632 (micromips_linux_n64_rt_sigframe): Likewise.
633 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
634 (mips_linux_n32n64_sigframe_init): Likewise.
635 (mips_linux_sigframe_validate): New function.
636 (micromips_linux_sigframe_validate): Likewise.
637 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
638
639 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
640
641 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
642 * sparc-sol2-tdep.c: Include "regset.h".
643 (sparc32_sol2_supply_core_gregset): New function.
644 (sparc32_sol2_collect_core_gregset): Likewise.
645 (sparc32_sol2_supply_core_fpregset): Likewise.
646 (sparc32_sol2_collect_core_fpregset): Likewise.
647 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
648 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
649 tdep->fpregset/sizeof_fpregset.
650 * sparc64-sol2-tdep.c: Include "regset.h".
651 (sparc64_sol2_supply_core_gregset): New function.
652 (sparc64_sol2_collect_core_gregset): Likewise.
653 (sparc64_sol2_supply_core_fpregset): Likewise.
654 (sparc64_sol2_collect_core_fpregset): Likewise.
655 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
656 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
657 tdep->fpregset/sizeof_fpregset.
658
659 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
660
661 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
662 type.
663
664 2014-12-02 Doug Evans <dje@google.com>
665
666 * symtab.c (symbol_init_cplus_specific): Delete.
667 (symbol_set_demangled_name): Remove special c++ support.
668 (symbol_get_demangled_name, symbol_set_language): Ditto.
669 * symtab.h (struct cplus_specific): Delete.
670 (struct general_symbol_info) <language_specific>: Remove
671 cplus_specific.
672
673 2014-12-02 Doug Evans <dje@google.com>
674
675 PR symtab/17602
676 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
677
678 2014-12-02 Doug Evans <dje@google.com>
679
680 PR symtab/17591
681 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
682 to strip parameters.
683
684 2014-12-02 Doug Evans <dje@google.com>
685
686 * dwarf2read.c (peek_die_abbrev): Improve error message text.
687
688 2014-12-02 Doug Evans <dje@google.com>
689
690 * valops.c (do_search_struct_field): Remove remnant of Chill support.
691 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
692
693 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
694
695 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
696
697 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
698
699 * NEWS: Mention new Python events.
700 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
701 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
702 (py-infevents.o): New rule.
703 * doc/observer.texi (inferior_call_pre, inferior_call_post)
704 (memory_changed, register_changed): New observers.
705 * infcall.c (call_function_by_hand): Notify observer before and
706 after inferior call.
707 * python/py-event.h (inferior_call_kind): New enum.
708 (emit_inferior_call_event): New prototype.
709 (emit_register_changed_event): New prototype.
710 (emit_memory_changed_event): New prototype.
711 * python/py-events.h (events_object): New registries
712 inferior_call, memory_changed and register_changed.
713 * python/py-evts.c (gdbpy_initialize_py_events): Add the
714 inferior_call, memory_changed and register_changed registries.
715 * python/py-infevents.c: New.
716 * python/py-inferior.c (python_on_inferior_call_pre)
717 (python_on_inferior_call_post, python_on_register_change)
718 (python_on_memory_change): New functions.
719 (gdbpy_initialize_inferior): Attach python handler to new
720 observers.
721 * python/py-infthread.c(gdbpy_create_ptid_object): New.
722 (thpy_get_ptid) Use gdbpy_create_ptid_object.
723 * python/python-internal.h:
724 (gdbpy_create_ptid_object)
725 (gdbpy_initialize_inferior_call_pre_event)
726 (gdbpy_initialize_inferior_call_post_event)
727 (gdbpy_initialize_register_changed_event)
728 (gdbpy_initialize_memory_changed_event): New prototypes.
729 * python/python.c (_initialize_python): Initialize new events.
730 * valops.c (value_assign): Notify register_changed observer.
731
732 2014-12-02 Doug Evans <dje@google.com>
733
734 * python/py-infthread.c: Whitespace fixes.
735
736 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
737
738 * features/Makefile (s390-te-linux64-expedite): Replace
739 non-existant r14 and r15 by r14l and r15l, respectively.
740 * regformats/s390-te-linux64.dat: Regenerate.
741
742 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
743
744 * objfiles.c (allocate_objfile): Remove duplicate comment.
745
746 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
747
748 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
749 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
750 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
751 (supply_gregset, supply_fpregset): Remove.
752 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
753 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
754 and sizeof_gregset.
755
756 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
757
758 Add add-auto-load-scripts-directory.
759 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
760 * auto-load.c (add_auto_load_dir): New function.
761 (_initialize_auto_load): Install it.
762
763 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
764
765 Pushed by Joel Brobecker <brobecker@adacore.com>.
766 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
767
768 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
769
770 * eval.c (evaluate_subexp): Check that the thread stack temporaries
771 are not already enabled before enabling them.
772
773 2014-11-29 Yao Qi <yao@codesourcery.com>
774
775 * arm-tdep.c (arm_analyze_prologue): Move local variables
776 'framereg' and 'framesize' to inner block. Move code to
777 inner block too.
778
779 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
780
781 * eval.c: Include gdbthread.h.
782 (evaluate_subexp): Enable thread stack temporaries before
783 evaluating a complete expression and clean them up after the
784 evaluation is complete.
785 * gdbthread.h: Include common/vec.h.
786 (value_ptr): New typedef.
787 (VEC (value_ptr)): New vector type.
788 (value_vec): New typedef.
789 (struct thread_info): Add new fields stack_temporaries_enabled
790 and stack_temporaries.
791 (enable_thread_stack_temporaries)
792 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
793 (get_last_thread_stack_temporary)
794 (value_in_thread_stack_temporaries): Declare.
795 * gdbtypes.c (class_or_union_p): New function.
796 * gdbtypes.h (class_or_union_p): Declare.
797 * infcall.c (call_function_by_hand): Store return values of class
798 type as temporaries on stack.
799 * thread.c (enable_thread_stack_temporaries): New function.
800 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
801 (get_last_thread_stack_temporary): Likewise.
802 (value_in_thread_stack_temporaries): Likewise.
803 * value.c (value_force_lval): New function.
804 * value.h (value_force_lval): Declare.
805
806 2014-11-28 Pierre Muller <muller@sourceware.org>
807
808 Pushed by Joel Brobecker <brobecker@adacore.com>.
809 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
810 registers.
811
812 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
813
814 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
815 * config/sparc/linux.mh (NATDEPFILES): Likewise.
816 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
817 * m68klinux-nat.c (fetch_core_registers): Remove.
818 (linux_elf_core_fns): Remove.
819 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
820
821 2014-11-28 Joel Brobecker <brobecker@adacore.com>
822
823 * utils.c (gdb_realpath): Rework comment about handling on
824 Windows.
825
826 2014-11-28 Yao Qi <yao@codesourcery.com>
827
828 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
829 rename.
830 * gnulib/aclocal.m4: Re-generated.
831 * gnulib/config.in: Re-generated.
832 * gnulib/configure: Re-generated.
833 * gnulib/import/Makefile.am: Re-generated.
834 * gnulib/import/Makefile.in: Re-generated.
835 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
836 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
837 * import/basename-lgpl.c: New file.
838 * import/dirname-lgpl.c: New file.
839 * import/dirname.h: New file.
840 * import/m4/dirname.m4: New file.
841 * import/m4/malloc.m4: New file.
842 * import/m4/rename.m4: New file.
843 * import/m4/rmdir.m4: New file.
844 * import/m4/stdio_h.m4: New file.
845 * import/malloc.c: New file.
846 * import/rename.c: New file.
847 * import/rmdir.c: New file.
848 * import/same-inode.h: New file.
849 * import/stdio.c: New file.
850 * import/stdio.in.h: New file.
851 * import/stripslash.c: New file.
852
853 2014-11-28 Yao Qi <yao@codesourcery.com>
854
855 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
856 and realpath.
857 * config.in: Re-generated.
858 * configure: Re-generated.
859 * utils.c (gdb_realpath): Remove code calling realpath,
860 canonicalize_file_name and pathconf.
861 [!_WIN32]: Call canonicalize_file_name.
862
863 2014-11-28 Yao Qi <yao@codesourcery.com>
864
865 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
866 canonicalize-lgpl.
867 * aclocal.m4: Re-generated.
868 * config.in: Re-generated.
869 * configure: Re-generated.
870 * import/Makefile.am: Re-generated.
871 * import/Makefile.in: Re-generated.
872 * import/m4/gnulib-cache.m4: Re-generated.
873 * import/m4/gnulib-comp.m4: Re-generated.
874 * import/canonicalize-lgpl.c: New file.
875 * import/extra/snippet/_Noreturn.h: New file.
876 * import/m4/canonicalize.m4: New file.
877 * import/m4/double-slash-root.m4: New file.
878 * import/m4/eealloc.m4: New file.
879 * import/m4/malloca.m4: New file.
880 * import/m4/nocrash.m4: New file.
881 * import/m4/stdlib_h.m4: New file.
882 * import/malloca.c: New file.
883 * import/malloca.h: New file.
884 * import/malloca.valgrind: New file.
885
886 2014-11-28 Yao Qi <yao@codesourcery.com>
887
888 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
889 * config.in, configure: Regenerate.
890 * symfile.c (find_separate_debug_file_by_debuglink): Remove
891 code checking HAVE_LSTAT is defined.
892
893 2014-11-28 Yao Qi <yao@codesourcery.com>
894
895 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
896 lstat.
897 * gnulib/aclocal.m4: Re-generated.
898 * gnulib/config.in: Re-generated.
899 * gnulib/configure: Re-generated.
900 * gnulib/import/Makefile.am: Re-generated.
901 * gnulib/import/Makefile.in: Re-generated.
902 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
903 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
904 * gnulib/import/lstat.c: New file.
905 * gnulib/import/m4/lstat.m4: New file.
906
907 2014-11-28 Yao Qi <yao@codesourcery.com>
908
909 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
910 * config.in, configure: Re-generate.
911 * inf-child.c (inf_child_fileio_readlink): Don't check
912 HAVE_READLINK is defined.
913
914 2014-11-28 Yao Qi <yao@codesourcery.com>
915
916 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
917 * gnulib/aclocal.m4: Re-generated.
918 * gnulib/config.in: Likewise.
919 * gnulib/configure: Likewise.
920 * gnulib/import/Makefile.am: Likewise.
921 * gnulib/import/Makefile.in: Likewise.
922 * gnulib/import/m4/gnulib-cache.m4: Likewise.
923 * gnulib/import/m4/gnulib-comp.m4: Likewise.
924 * gnulib/import/dosname.h: New file
925 * gnulib/import/m4/largefile.m4: New file.
926 * gnulib/import/m4/readlink.m4: New file.
927 * gnulib/import/m4/stat.m4: New file.
928 * gnulib/import/readlink.c: New file.
929 * gnulib/import/stat.c: New file.
930
931 2014-11-26 Mark Wielaard <mjw@redhat.com>
932
933 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
934 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
935
936 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
937
938 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
939 that there can be only one stack adjustment in the prologue
940 with tests to detect specific disallowed stack adjustments.
941
942 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
943
944 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
945 adjustments.
946
947 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
948
949 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
950 the instruction as well as reading it from memory.
951 (nios2_match_add): New.
952 (nios2_match_sub): New.
953 (nios2_match_addi): New.
954 (nios2_match_orhi): New.
955 (nios2_match_stw): New.
956 (nios2_match_ldw): New.
957 (nios2_match_rdctl): New.
958 (enum branch_condition): New.
959 (nios2_match_branch): New.
960 (nios2_match_jmpi): New.
961 (nios2_match_calli): New.
962 (nios2_match_jmpr): New.
963 (nios2_match_callr): New.
964 (nios2_match_break): New.
965 (nios2_match_trap): New.
966 (nios2_in_epilogue_p): Rewrite to use new functions.
967 (nios2_analyze_prologue): Likewise.
968 (nios2_skip_prologue): Delete unused local limit_pc.
969 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
970 (nios2_get_next_pc): Rewrite to use new functions.
971
972 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
973
974 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
975
976 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
977
978 Pushed by Joel Brobecker <brobecker@adacore.com>
979 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
980 elements pi_len by the size of the elements before calling
981 vm_deallocate.
982 (inf_validate_task_sc): Likewise, and properly deallocate the
983 noise array.
984
985 2014-11-23 Doug Evans <xdje42@gmail.com>
986
987 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
988 number and name if present. All callers updated.
989 (dump_fn_fieldlists): Fix indentation of args.
990
991 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
992
993 * MAINTAINERS (Write After Approval): Add myself.
994
995 2014-11-23 Joel Brobecker <brobecker@adacore.com>
996
997 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
998 to a bp_call_dummy breakpoint type.
999
1000 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1001
1002 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1003 registering the signal handler.
1004
1005 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1006
1007 * event-top.h (call_stdin_event_handler_again_p): Declare.
1008 * event-top.c (call_stdin_event_handler_again_p): Define.
1009 (stdin_event_handler): Use it.
1010 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1011 handler again if there is pending input following a
1012 start sequence.
1013
1014 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1015
1016 Pushed by Joel Brobecker <brobecker@adacore.com>
1017 * linux-fork.c (checkpoint_command): Print index of new
1018 checkpoint in response message.
1019
1020 2014-11-23 Yao Qi <yao@codesourcery.com>
1021
1022 * valprint.c (read_string): Move local variables 'found_nul',
1023 'chunksize' and 'limit' to inner scope. Update comments.
1024
1025 2014-11-22 Doug Evans <xdje42@gmail.com>
1026
1027 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1028 function comment.
1029 (search_symbols): Fix comments and whitespace.
1030
1031 2014-11-22 Doug Evans <xdje42@gmail.com>
1032
1033 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1034
1035 2014-11-21 Doug Evans <dje@google.com>
1036
1037 * psymtab.c (psymtab_search_name): Fix whitespace.
1038
1039 2014-11-21 Yao Qi <yao@codesourcery.com>
1040
1041 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1042 errno.
1043 * gnulib/import/Makefile.am: Re-generated.
1044 * gnulib/import/Makefile.in: Likewise.
1045 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1046
1047 2014-11-21 Yao Qi <yao@codesourcery.com>
1048
1049 * gdb_wchar.h: Include wchar.h and wctype.h.
1050 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1051 include wchar.h and wctype.h.
1052 Don't check HAVE_WCHAR_H.
1053
1054 2014-11-21 Yao Qi <yao@codesourcery.com>
1055
1056 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1057 and wctype-h.
1058 * gnulib/import/Makefile.am: Re-generated.
1059 * gnulib/import/Makefile.in: Likewise.
1060 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1061
1062 2014-11-21 Yao Qi <yao@codesourcery.com>
1063
1064 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1065 memchr.
1066 * gnulib/import/Makefile.am: Re-generated.
1067 * gnulib/import/Makefile.in: Likewise.
1068 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1069
1070 2014-11-21 Yao Qi <yao@codesourcery.com>
1071
1072 * common/common-defs.h: Include alloca.h
1073 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1074 * configure: Re-generated.
1075 * defs.h: Remove code handling alloca.
1076 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1077 or not.
1078
1079 2014-11-21 Yao Qi <yao@codesourcery.com>
1080
1081 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1082 alloca.
1083 * gnulib/import/Makefile.am: Re-generated.
1084 * gnulib/import/Makefile.in: Likewise..
1085 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1086
1087 2014-11-21 Yao Qi <yao@codesourcery.com>
1088
1089 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1090 alphabetical order.
1091
1092 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1093
1094 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1095 flag_unsigned if HIGH_BOUND is constant and negative.
1096
1097 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1098
1099 PR breakpoints/10737
1100 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1101 modifier from "struct gdbarch" when compiling without Expat (XML)
1102 support.
1103 (get_syscall_by_number): Likewise.
1104 (get_syscall_by_name): Likewise.
1105 (get_syscall_names): Likewise.
1106
1107 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1108
1109 PR breakpoints/10737
1110 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1111 set_xml_syscall_file_name to provide gdbarch.
1112 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1113 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1114 * breakpoint.c (print_it_catch_syscall): Adjust call to
1115 get_syscall_by_number to provide gdbarch.
1116 (print_one_catch_syscall): Likewise.
1117 (print_mention_catch_syscall): Likewise.
1118 (print_recreate_catch_syscall): Likewise.
1119 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1120 and get_syscall_by_name to provide gdbarch.
1121 (catch_syscall_completer): Adjust call to get_syscall_names to
1122 provide gdbarch.
1123 * gdbarch.c: Regenerate.
1124 * gdbarch.h: Likewise.
1125 * gdbarch.sh: Forward declare "struct syscalls_info".
1126 (xml_syscall_file): New variable.
1127 (syscalls_info): Likewise.
1128 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1129 set_xml_syscall_file_name to provide gdbarch.
1130 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1131 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1132 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1133 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1134 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1135 * xml-syscall.c: Include gdbarch.h.
1136 (set_xml_syscall_file_name): Accept gdbarch parameter.
1137 (get_syscall_by_number): Likewise.
1138 (get_syscall_by_name): Likewise.
1139 (get_syscall_names): Likewise.
1140 (my_gdb_datadir): Delete global variable.
1141 (struct syscalls_info) <my_gdb_datadir>: New variable.
1142 (struct syscalls_info) <sysinfo>: Rename variable to
1143 "syscalls_info".
1144 (sysinfo): Delete global variable.
1145 (have_initialized_sysinfo): Likewise.
1146 (xml_syscall_file): Likewise.
1147 (sysinfo_free_syscalls_desc): Rename to...
1148 (syscalls_info_free_syscalls_desc): ... this.
1149 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1150 code to the new layout of "struct syscalls_info".
1151 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1152 "syscalls_info".
1153 (syscall_create_syscall_desc): Likewise.
1154 (syscall_start_syscall): Likewise.
1155 (syscall_parse_xml): Likewise.
1156 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1157 (init_sysinfo): Rename to...
1158 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1159 Adjust function to deal with gdbarch.
1160 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1161 gdbarch as a parameter. Adjust code.
1162 (xml_get_syscall_name): Likewise.
1163 (xml_list_of_syscalls): Likewise.
1164 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1165 (get_syscall_by_number): Likewise.
1166 (get_syscall_by_name): Likewise.
1167 (get_syscall_names): Likewise.
1168 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1169 (get_syscall_by_number): Likewise.
1170 (get_syscall_by_name): Likewise.
1171 (get_syscall_names): Likewise.
1172
1173 2014-11-20 Doug Evans <xdje42@gmail.com>
1174
1175 Split struct symtab into two: struct symtab and compunit_symtab.
1176 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1177 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1178 to "struct compunit_symtab *". All callers updated.
1179 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1180 "struct symtab *" argument to "struct compunit_symtab *".
1181 All callers updated.
1182 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1183 result to "struct compunit_symtab *". All callers updated.
1184 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1185 Change result to "struct compunit_symtab *". All callers updated.
1186 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1187 hange type to "struct compunit_symtab *". All uses updated.
1188 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1189 Change type to "struct compunit_symtab *". All uses updated.
1190 * buildsym.c (struct buildsym_compunit): New struct.
1191 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1192 (buildsym_compunit): New static global.
1193 (finish_block_internal): Update to fetch objfile from
1194 buildsym_compunit.
1195 (make_blockvector): Delete objfile argument.
1196 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1197 debugformat, producer.
1198 (start_buildsym_compunit): New function.
1199 (free_buildsym_compunit): Renamed from free_subfiles_list.
1200 All callers updated.
1201 (patch_subfile_names): Rewrite to use buildsym_compunit.
1202 (get_compunit_symtab): New function.
1203 (get_macro_table): Delete argument comp_dir. All callers updated.
1204 (start_symtab): Change result to "struct compunit_symtab *".
1205 All callers updated. Create the subfile of the main source file.
1206 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1207 (reset_symtab_globals): Update.
1208 (end_symtab_get_static_block): Update to use buildsym_compunit.
1209 (end_symtab_without_blockvector): Rewrite.
1210 (end_symtab_with_blockvector): Change result to
1211 "struct compunit_symtab *". All callers updated.
1212 Update to use buildsym_compunit. Don't set symtab->dirname,
1213 instead set it in the compunit.
1214 Explicitly make sure main symtab is first in its list.
1215 Set debugformat, producer, blockvector, block_line_section, and
1216 macrotable in the compunit.
1217 (end_symtab_from_static_block): Change result to
1218 "struct compunit_symtab *". All callers updated.
1219 (end_symtab, end_expandable_symtab): Ditto.
1220 (set_missing_symtab): Change symtab argument to
1221 "struct compunit_symtab *". All callers updated.
1222 (augment_type_symtab): Ditto.
1223 (record_debugformat): Update to use buildsym_compunit.
1224 (record_producer): Update to use buildsym_compunit.
1225 * buildsym.h (struct subfile) <dirname>: Delete.
1226 <producer, debugformat>: Delete.
1227 <buildsym_compunit>: New member.
1228 (get_compunit_symtab): Declare.
1229 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1230 from primary_symtab. Change type to "struct compunit_symtab *".
1231 All uses updated.
1232 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1233 All callers updated.
1234 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1235 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1236 symtab. Change type to "struct compunit_symtab *". All uses updated.
1237 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1238 All callers updated.
1239 (dw2_find_last_source_symtab): Ditto.
1240 (dw2_lookup_symbol): Ditto.
1241 (recursively_find_pc_sect_compunit_symtab): Renamed from
1242 recursively_find_pc_sect_symtab. Change result to
1243 "struct compunit_symtab *". All callers updated.
1244 (dw2_find_pc_sect_compunit_symtab): Renamed from
1245 dw2_find_pc_sect_symtab. Change result to
1246 "struct compunit_symtab *". All callers updated.
1247 (get_compunit_symtab): Renamed from get_symtab. Change result to
1248 "struct compunit_symtab *". All callers updated.
1249 (recursively_compute_inclusions): Change type of immediate_parent
1250 argument to "struct compunit_symtab *". All callers updated.
1251 (compute_compunit_symtab_includes): Renamed from
1252 compute_symtab_includes. All callers updated. Rewrite to compute
1253 includes of compunit_symtabs and not symtabs.
1254 (process_full_comp_unit): Update to work with struct compunit_symtab.
1255 (process_full_type_unit): Ditto.
1256 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1257 (dwarf_decode_lines): Remove special case handling of main subfile.
1258 (macro_start_file): Delete argument comp_dir. All callers updated.
1259 (dwarf_decode_macro_bytes): Ditto.
1260 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1261 use struct compunit_symtab.
1262 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1263 * jit.c (finalize_symtab): Build compunit_symtab.
1264 * jv-lang.c (get_java_class_symtab): Change result to
1265 "struct compunit_symtab *". All callers updated.
1266 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1267 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1268 comp_dir. Change type to "struct compunit_symtab *".
1269 All uses updated.
1270 (new_macro_table): Change comp_dir argument to cust,
1271 "struct compunit_symtab *". All callers updated.
1272 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1273 nr_primary_symtabs. All uses updated.
1274 (count_symtabs_and_blocks): Update to handle compunits.
1275 (report_command_stats): Update output, "primary symtabs" renamed to
1276 "compunits".
1277 * mdebugread.c (new_symtab): Change result to
1278 "struct compunit_symtab *". All callers updated.
1279 (parse_procedure): Change type of search_symtab argument to
1280 "struct compunit_symtab *". All callers updated.
1281 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1282 separate loop.
1283 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1284 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1285 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1286 All uses updated.
1287 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1288 All uses updated.
1289 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1290 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1291 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1292 symtab. Change type to "struct compunit_symtab *". All uses updated.
1293 * psymtab.c (psymtab_to_symtab): Change result type to
1294 "struct compunit_symtab *". All callers updated.
1295 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1296 find_pc_sect_symtab_from_partial. Change result type to
1297 "struct compunit_symtab *". All callers updated.
1298 (lookup_symbol_aux_psymtabs): Change result type to
1299 "struct compunit_symtab *". All callers updated.
1300 (find_last_source_symtab_from_partial): Ditto.
1301 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1302 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1303 and macro_table from compunit.
1304 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1305 type to "struct compunit_symtab *". All callers updated.
1306 (debug_qf_lookup_symbol): Ditto.
1307 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1308 debug_qf_find_pc_sect_symtab, change result type to
1309 "struct compunit_symtab *". All callers updated.
1310 * symfile.c (allocate_symtab): Delete objfile argument.
1311 New argument cust.
1312 (allocate_compunit_symtab): New function.
1313 (add_compunit_symtab_to_objfile): New function.
1314 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1315 Change result type to "struct compunit_symtab *". All uses updated.
1316 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1317 Change result type to "struct compunit_symtab *". All uses updated.
1318 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1319 separate loop.
1320 (dump_symtab_1): Update test for primary source symtab.
1321 (maintenance_info_symtabs): Update to handle compunit symtabs.
1322 (maintenance_check_symtabs): Ditto.
1323 * symtab.c (set_primary_symtab): Delete.
1324 (compunit_primary_filetab): New function.
1325 (compunit_language): New function.
1326 (iterate_over_some_symtabs): Change type of arguments "first",
1327 "after_last" to "struct compunit_symtab *". All callers updated.
1328 Update to loop over symtabs in each compunit.
1329 (error_in_psymtab_expansion): Rename symtab argument to cust,
1330 and change type to "struct compunit_symtab *". All callers updated.
1331 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1332 Change result type to "struct compunit_symtab *". All callers updated.
1333 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1334 Change result type to "struct compunit_symtab *". All callers updated.
1335 (find_pc_sect_line): Only loop over symtabs within selected compunit
1336 instead of all symtabs in the objfile.
1337 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1338 <compunit_symtab> New member.
1339 <block_line_section>: Moved to compunit_symtab.
1340 <locations_valid>: Ditto.
1341 <epilogue_unwind_valid>: Ditto.
1342 <macro_table>: Ditto.
1343 <dirname>: Ditto.
1344 <debugformat>: Ditto.
1345 <producer>: Ditto.
1346 <objfile>: Ditto.
1347 <call_site_htab>: Ditto.
1348 <includes>: Ditto.
1349 <user>: Ditto.
1350 <primary>: Delete
1351 (SYMTAB_COMPUNIT): New macro.
1352 (SYMTAB_BLOCKVECTOR): Update definition.
1353 (SYMTAB_OBJFILE): Update definition.
1354 (SYMTAB_DIRNAME): Update definition.
1355 (struct compunit_symtab): New type. Common members among all source
1356 symtabs within a compilation unit moved here. All uses updated.
1357 (COMPUNIT_OBJFILE): New macro.
1358 (COMPUNIT_FILETABS): New macro.
1359 (COMPUNIT_DEBUGFORMAT): New macro.
1360 (COMPUNIT_PRODUCER): New macro.
1361 (COMPUNIT_DIRNAME): New macro.
1362 (COMPUNIT_BLOCKVECTOR): New macro.
1363 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1364 (COMPUNIT_LOCATIONS_VALID): New macro.
1365 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1366 (COMPUNIT_CALL_SITE_HTAB): New macro.
1367 (COMPUNIT_MACRO_TABLE): New macro.
1368 (ALL_COMPUNIT_FILETABS): New macro.
1369 (compunit_symtab_ptr): New typedef.
1370 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1371
1372 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1373
1374 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1375 if the TYPE_CODE of range_type's base type does not match
1376 the TYPE_CODE of encoding_type's base type.
1377
1378 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1379
1380 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1381 it starts with '<'.
1382
1383 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1384
1385 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1386 (ada_is_redundant_index_type_desc): New function.
1387 (to_fixed_array_type): Ignore parallel XA type if redundant.
1388
1389 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1390
1391 * ada-lang.c (constrained_packed_array_type): Set the length
1392 of the return array as if both bounds where zero if that
1393 returned array's index type is dynamic.
1394
1395 2014-11-19 Yao Qi <yao@codesourcery.com>
1396
1397 * config/i386/go32.mh (CC): Remove.
1398
1399 2014-11-18 Doug Evans <xdje42@gmail.com>
1400
1401 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1402 updated.
1403
1404 2014-11-18 Doug Evans <xdje42@gmail.com>
1405
1406 * buildsym.c (buildsym_objfile): New static global.
1407 (buildsym_comp_dir): New static global.
1408 (finish_block_internal): Delete arg objfile. All callers updated.
1409 (finish_block): Delete arg objfile. All callers updated.
1410 (start_subfile): Delete arg dirname. All callers updated.
1411 (patch_subfile_names): Update buildsym_comp_dir.
1412 (get_macro_table): Delete arg objfile. All callers updated.
1413 (start_symtab): New arg objfile. All callers updated.
1414 Rename arg dirname to comp_dir.
1415 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1416 (end_symtab_get_static_block): Delete arg objfile. All callers
1417 updated.
1418 (end_symtab_without_blockvector): Ditto.
1419 (end_symtab_with_blockvector): Ditto.
1420 (end_symtab_from_static_block): Ditto.
1421 (end_symtab): Ditto.
1422 (end_expandable_symtab): Ditto.
1423 (augment_type_symtab): Ditto.
1424 * coffread.c (coff_start_symtab): New arg objfile. All callers
1425 updated.
1426
1427 2014-11-18 Doug Evans <xdje42@gmail.com>
1428
1429 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1430 updated.
1431
1432 2014-11-18 Doug Evans <xdje42@gmail.com>
1433
1434 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1435 symtab.dirname updated to use it.
1436
1437 2014-11-18 Doug Evans <xdje42@gmail.com>
1438
1439 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1440 symtab.objfile updated to use it.
1441
1442 2014-11-18 Doug Evans <xdje42@gmail.com>
1443
1444 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1445
1446 2014-11-18 Doug Evans <xdje42@gmail.com>
1447
1448 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1449 SYMBOL_OBJFILE.
1450 * findvar.c (default_read_var_value): Ditto.
1451 * jv-lang.c (add_class_symtab_symbol): Ditto.
1452 * parse.c (operator_check_standard): Ditto.
1453 * printcmd.c (address_info): Ditto.
1454 * symtab.c (fixup_symbol_section): Ditto.
1455 (skip_prologue_sal): Ditto.
1456 * tracepoint.c (scope_info): Ditto.
1457 * valops.c (find_function_in_inferior): Ditto.
1458 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1459 * python/py-symbol.c (set_symbol): Ditto.
1460
1461 2014-11-18 Doug Evans <xdje42@gmail.com>
1462
1463 * buildsym.c (main_subfile): New static global.
1464 (free_subfiles_list): New function.
1465 (start_symtab): Set main_subfile.
1466 (restart_symtab): Replace init of subfiles, current_subfile with
1467 call to free_subfiles_list.
1468 (watch_main_source_file_lossage): Use main_subfile.
1469 (reset_symtab_globals): Replace init of current_subfile with call
1470 to free_subfiles_list.
1471 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1472 functions, split out from ...
1473 (end_symtab_from_static_block): ... here. Rewrite to call them.
1474
1475 2014-11-18 Doug Evans <xdje42@gmail.com>
1476
1477 The result of symtab expansion is always a primary symtab.
1478 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1479 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1480 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1481 (psymtab_to_symtab): Add comment and assert.
1482 (map_matching_symbols_psymtab): Remove unnecessary test for
1483 non-primary symtab.
1484
1485 2014-11-15 Doug Evans <xdje42@gmail.com>
1486
1487 PR symtab/17559
1488 * symtab.c (find_pc_line_symtab): New function.
1489 * symtab.h (find_pc_line_symtab): Declare.
1490 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1491 find_pc_symtab.
1492 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1493 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1494 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1495 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1496 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1497 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1498
1499 2014-11-15 Doug Evans <xdje42@gmail.com>
1500
1501 * symtab.c (expand_symtab_containing_pc): Renamed from
1502 find_pc_sect_symtab_via_partial. All callers updated.
1503
1504 2014-11-15 Yao Qi <yao@codesourcery.com>
1505
1506 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1507
1508 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1509
1510 * common/common-defs.h: Move <stdarg.h> #include ahead of
1511 <stdio.h> #include.
1512
1513 2014-11-14 Pedro Alves <palves@redhat.com>
1514
1515 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1516 [!PHONY_ICONV] (gdb_iconv): New function.
1517 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1518
1519 2014-11-13 Doug Evans <dje@google.com>
1520
1521 PR symtab/17591
1522 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1523 "(anonymous namespace)".
1524
1525 2014-11-13 Doug Evans <dje@google.com>
1526
1527 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1528 infinite loop.
1529
1530 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1531
1532 * NEWS (maint set target-async): Fix typo.
1533
1534 2014-11-12 Pedro Alves <palves@redhat.com>
1535
1536 * infrun.c (enum infwait_states, infwait_state): Delete.
1537
1538 2014-11-12 Pedro Alves <palves@redhat.com>
1539
1540 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1541 Rewrite stepping over a permanent breakpoint.
1542 (thread_still_needs_step_over, proceed): Don't set
1543 stepping_over_breakpoint for permanent breakpoints.
1544 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1545 single-step breakpoints out of the target on hardware step
1546 targets.
1547 (process_event_stop_test): If stepping a permanent breakpoint
1548 doesn't hit the step-resume breakpoint, delete the step-resume
1549 breakpoint.
1550 (switch_back_to_stepped_thread): Also check if the stepped thread
1551 has advanced already on hardware step targets.
1552 (currently_stepping): Return true if the thread stepped a
1553 breakpoint.
1554
1555 2014-11-12 Pedro Alves <palves@redhat.com>
1556
1557 Mark locations as permanent, not the whole breakpoint.
1558 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1559 (mark_breakpoints_out): Don't mark permanent breakpoints as
1560 uninserted.
1561 (breakpoint_init_inferior): Use mark_breakpoints_out.
1562 (breakpoint_here_p): Adjust.
1563 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1564 of permanent breakpoints.
1565 (make_breakpoint_permanent): Mark each location as permanent,
1566 instead of marking the breakpoint.
1567 (add_location_to_breakpoint): If the location is permanent, mark
1568 it as such, and as inserted.
1569 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1570 (bp_location_compare, update_global_location_list): Adjust.
1571 (update_breakpoint_locations): Don't make the breakpoint permanent
1572 here.
1573 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1574 breakpoints.
1575 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1576 (struct bp_location) <permanent>: New field.
1577 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1578 reference to bp_permanent.
1579
1580 2014-11-12 Pedro Alves <palves@redhat.com>
1581
1582 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1583 * arch-utils.h (default_skip_permanent_breakpoint): New
1584 declaration.
1585 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1586 Install default_skip_permanent_breakpoint as default method.
1587 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1588 (i386_gdbarch_init): Don't install it.
1589 * infrun.c (resume): Assume there's always a
1590 gdbarch_skip_permanent_breakpoint implementation.
1591 * gdbarch.h, gdbarch.c: Regenerate.
1592
1593 2014-11-11 Daniel Colascione <dancol@dancol.org>
1594
1595 Warn about cross-PID-namespace debugging.
1596 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1597 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1598 * linux-thread-db.c (check_pid_namespace_match): New function.
1599 (thread_db_inferior_created): Call it.
1600
1601 2014-11-10 Doug Evans <xdje42@gmail.com>
1602
1603 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1604 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1605
1606 2014-11-10 Doug Evans <xdje42@gmail.com>
1607
1608 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1609
1610 2014-11-10 Doug Evans <xdje42@gmail.com>
1611
1612 PR symtab/17564
1613 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1614 (lookup_static_symbol): Move definition to new location and rewrite.
1615 (lookup_symbol_in_objfile): New function.
1616 (lookup_symbol_global_iterator_cb): Call it.
1617
1618 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1619
1620 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1621
1622 2014-11-07 Pedro Alves <palves@redhat.com>
1623
1624 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1625 check if we did a "nexti" inside a prologue.
1626 * symtab.c (in_prologue): Delete function.
1627 * symtab.h (in_prologue): Delete declaration.
1628
1629 2014-11-06 Doug Evans <xdje42@gmail.com>
1630
1631 * symtab.h (lookup_global_symbol): Improve function comment.
1632
1633 2014-11-06 Doug Evans <xdje42@gmail.com>
1634
1635 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1636 All callers updated.
1637 * symtab.h (lookup_global_symbol): Update decl.
1638 (lookup_static_symbol): Move decl to better location.
1639
1640 2014-11-06 Doug Evans <xdje42@gmail.com>
1641
1642 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1643
1644 2014-11-06 Doug Evans <xdje42@gmail.com>
1645
1646 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1647 All callers updated.
1648 (lookup_symbol_in_all_objfiles): Renamed from
1649 lookup_symbol_aux_symtabs. All callers updated.
1650 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1651 All callers updated.
1652 (lookup_symbol_in_objfile_symtabs): Renamed from
1653 lookup_symbol_aux_objfile. All callers updated.
1654
1655 2014-11-06 Doug Evans <xdje42@gmail.com>
1656
1657 * symtab.c (lookup_symbol_in_block): Renamed from
1658 lookup_symbol_aux_block. All callers updated.
1659
1660 2014-11-06 Doug Evans <xdje42@gmail.com>
1661
1662 * symtab.c (lookup_static_symbol): Renamed from
1663 lookup_static_symbol_aux. All callers updated.
1664 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1665 All callers updated.
1666
1667 2014-11-06 Doug Evans <xdje42@gmail.com>
1668
1669 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1670 * block.c (block_lookup_symbol): Use it.
1671 * cp-support.c (make_symbol_overload_list_block): Use it.
1672 * symtab.c (iterate_over_symbols): Use it.
1673
1674 2014-11-06 Doug Evans <xdje42@gmail.com>
1675
1676 * symtab.c (lookup_block_symbol): Moved to ...
1677 * block.c (block_lookup_symbol): ... here and renamed.
1678 All callers updated.
1679 * block.h (block_lookup_symbol): Declare.
1680 * symtab.h (lookup_block_symbol): Delete.
1681
1682 2014-11-06 Doug Evans <xdje42@gmail.com>
1683
1684 * ada-lang.c (ada_make_symbol_completion_list): Use
1685 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1686 * symtab.c (lookup_objfile_from_block): Ditto.
1687
1688 2014-11-06 Doug Evans <xdje42@gmail.com>
1689
1690 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1691 TYPE_CODE_STRUCT.
1692
1693 2014-11-06 Doug Evans <xdje42@gmail.com>
1694
1695 * objfiles.c (get_objfile_arch): Constify.
1696 * objfiles.h (get_objfile_arch): Update prototype.
1697 * solib.c (solib_global_lookup): Fetch arch from objfile,
1698 not target_gdbarch.
1699
1700 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1701
1702 * nios2-tdep.c (wild_insn): Delete.
1703 (profiler_insn, irqentry_insn): Delete.
1704 (nios2_match_sequence): Delete.
1705 (nios2_analyze_prologue): Update comments. Remove matching
1706 of obsolete profiler_insn and irqentry_insn sequences.
1707
1708 2014-11-05 Alan Modra <amodra@gmail.com>
1709
1710 * charset.c (convert_between_encodings): Shrink obstack using
1711 obstack_blank_fast.
1712 * minsyms.c (install_minimal_symbols): Likewise.
1713 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1714 to char* before doing pointer arithmetic.
1715
1716 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1717
1718 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1719
1720 2014-11-04 Pedro Alves <palves@redhat.com>
1721
1722 * breakpoint.c (breakpoint_thread_match): Delete function.
1723 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1724
1725 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1726
1727 PR c++/17494
1728 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1729 the method args also under EVAL_SKIP when evaluating method
1730 calls under EVAL_SKIP.
1731
1732 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1733
1734 * dwarf2loc.c (read_pieced_value): Do big endian
1735 processing only if gdb_regnum is not -1.
1736 (write_pieced_value): Ditto.
1737
1738 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1739
1740 * arm-linux-tdep.c (arm_linux_init_abi): Use
1741 info.byte_order_for_code to choose endianity of breakpoint
1742 instructions snippets.
1743
1744 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1745
1746 * arm-tdep.c (extract_arm_insn): Use
1747 gdbarch_byte_order_for_code to read arm instruction.
1748
1749 2014-11-02 Doug Evans <xdje42@gmail.com>
1750
1751 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1752
1753 2014-11-02 Doug Evans <xdje42@gmail.com>
1754
1755 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1756 main_subfile before returning.
1757
1758 2014-10-31 Doug Evans <xdje42@gmail.com>
1759
1760 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1761 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1762
1763 2014-10-31 Doug Evans <xdje42@gmail.com>
1764
1765 * valops.c (value_cast_pointers): Fix whitespace.
1766 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1767 Ditto.
1768
1769 2014-10-30 Doug Evans <dje@google.com>
1770
1771 * NEWS: Mention ability add attributes to gdb.Objfile and
1772 gdb.Progspace objects.
1773 * python/py-objfile.c (objfile_object): New member dict.
1774 (objfpy_dealloc): Py_XDECREF dict.
1775 (objfpy_initialize): Initialize dict.
1776 (objfile_getset): Add __dict__.
1777 (objfile_object_type): Set tp_dictoffset member.
1778 * python/py-progspace.c (progspace_object): New member dict.
1779 (pspy_dealloc): Py_XDECREF dict.
1780 (pspy_initialize): Initialize dict.
1781 (pspace_getset): Add __dict__.
1782 (pspace_object_type): Set tp_dictoffset member.
1783
1784 2014-10-30 Yao Qi <yao@codesourcery.com>
1785
1786 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1787 replace '\\' with '\\\\'.
1788
1789 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1790
1791 GDB 7.8.1 released.
1792
1793 2014-10-29 Pedro Alves <palves@redhat.com>
1794
1795 PR gdb/17408
1796 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1797 instead of assuming a thread with a stepping range is always
1798 stepping.
1799
1800 2014-10-29 Pedro Alves <palves@redhat.com>
1801
1802 PR python/17372
1803 * event-top.c (change_line_handler): Call
1804 gdb_rl_callback_handler_remove instead of
1805 rl_callback_handler_remove.
1806 (callback_handler_installed): New global.
1807 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1808 (gdb_rl_callback_handler_reinstall): New functions.
1809 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1810 gdb_rl_callback_handler_install instead of
1811 rl_callback_handler_remove and rl_callback_handler_install.
1812 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1813 instead of rl_callback_handler_remove.
1814 * event-top.h (gdb_rl_callback_handler_remove)
1815 (gdb_rl_callback_handler_install)
1816 (gdb_rl_callback_handler_reinstall): New declarations.
1817 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1818 cleanup function.
1819 (fetch_inferior_event): Install it.
1820 * top.c (gdb_readline_wrapper_line) Call
1821 gdb_rl_callback_handler_remove instead of
1822 rl_callback_handler_remove.
1823 (gdb_readline_wrapper_cleanup): Don't call
1824 rl_callback_handler_install.
1825
1826 2014-10-29 Pedro Alves <palves@redhat.com>
1827
1828 * event-top.c (command_line_handler): Clear the first byte of
1829 linebuffer, when it is first allocated.
1830
1831 2014-10-29 Pedro Alves <palves@redhat.com>
1832
1833 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1834 TRY_CATCH.
1835
1836 2014-10-29 Pedro Alves <palves@redhat.com>
1837
1838 PR tui/16138
1839 PR tui/17519
1840 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1841 (tui_allowed_p): Delete function.
1842 * tui/tui.c: Include "interps.h".
1843 (tui_enable): Don't use tui_allowed_p. Error out here with
1844 detailed error messages if the TUI is the top level interpreter,
1845 or if output is not a terminal. Use newterm instead of initscr,
1846 and error out if initializing the terminal fails. Also error out if
1847 the terminal doesn't support cursor addressing.
1848 * tui/tui.h (tui_allowed_p): Delete declaration.
1849
1850 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1851
1852 * arm-tdep.c (arm_skip_stack_protector): Return early if
1853 address loaded by first "ldr" instruction does not have
1854 a corresponding minimal symbol. Update comment.
1855
1856 2014-10-29 Yao Qi <yao@codesourcery.com>
1857
1858 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1859 loaded address correctly of ldr instruction.
1860
1861 2014-10-28 Pedro Alves <palves@redhat.com>
1862
1863 PR gdb/12623
1864 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1865 field.
1866 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1867 thread's stepped_breakpoint field. Skip if reverse debugging.
1868 Add comment.
1869 (init_thread_stepping_state, handle_signal_stop): Clear the
1870 thread's stepped_breakpoint field.
1871
1872 2014-10-27 Pedro Alves <palves@redhat.com>
1873
1874 * remote.c (remote_thread_alive): New, factored out from ...
1875 (remote_thread_alive): ... this.
1876 (remote_update_thread_list): Bail out before deleting threads if
1877 the target returned an empty list, and, the current thread has a
1878 magic/fake ptid.
1879
1880 2014-10-27 Pedro Alves <palves@redhat.com>
1881
1882 * infrun.c (handle_signal_stop): Also skip handlers when a random
1883 signal arrives while handling a "stepi" or a "nexti". Set the
1884 thread's 'step_after_step_resume_breakpoint' flag.
1885
1886 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1887
1888 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1889 (arm_record_ld_st_imm_offset): Reimplement to cover all
1890 load/store cases for ARM opcode 010.
1891 (arm_record_ld_st_multiple): Reimplement to cover all
1892 load/store cases for ARM opcode 100.
1893
1894 2014-10-26 Doug Evans <xdje42@gmail.com>
1895
1896 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1897
1898 2014-10-26 Doug Evans <xdje42@gmail.com>
1899
1900 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1901 parameter "kind" to "block_index".
1902 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1903 "block_index".
1904 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1905
1906 2014-10-26 Doug Evans <xdje42@gmail.com>
1907
1908 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1909
1910 2014-10-26 Doug Evans <xdje42@gmail.com>
1911
1912 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1913 obstack_alloc.
1914
1915 2014-10-26 Doug Evans <xdje42@gmail.com>
1916
1917 * parser-defs.h (block_found): Move decl from here ...
1918 * symtab.h (block_found): ... to here.
1919
1920 2014-10-26 Doug Evans <xdje42@gmail.com>
1921
1922 * symtab.h (struct field_of_this_result): Fix typo in comment.
1923 (lookup_symbol_in_language): Move function comment here.
1924 (lookup_symbol): Improve function comment.
1925 (basic_lookup_symbol_nonlocal): Ditto.
1926 (lookup_symbol_static, lookup_symbol_global): Ditto.
1927 (lookup_symbol_aux_block): Ditto.
1928 (lookup_language_this): Add function comment.
1929 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1930 function comment.
1931 (lookup_block_symbol): Improve function comment.
1932 (lookup_struct): Fix capitalization in function comment.
1933 (lookup_transparent_type): Add function comment.
1934 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1935 Improve function comment.
1936 (lookup_objfile_from_block): Add function comment.
1937 * symtab.c (lookup_symbol_in_language): Update function comment.
1938 (lookup_symbol, lookup_language_this): Ditto.
1939 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1940 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1941 (basic_lookup_symbol_nonlocal): Ditto.
1942 (lookup_symbol_static, lookup_symbol_global): Ditto.
1943 (lookup_transparent_type, lookup_block_symbol): Ditto.
1944
1945 2014-10-25 Doug Evans <xdje42@gmail.com>
1946
1947 * symtab.c (types_info): Delete forward decl.
1948 (functions_info, variables_info, sources_info): Ditto.
1949 (_initialize_symtab): Rewrite forward decl to use
1950 initialize_file_ftype.
1951
1952 2014-10-25 Doug Evans <xdje42@gmail.com>
1953
1954 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1955
1956 2014-10-25 Doug Evans <xdje42@gmail.com>
1957
1958 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1959 of local var child_die.
1960
1961 2014-10-24 Don Breazeal <donb@codesourcery.com>
1962
1963 * infrun.c (follow_fork_inferior): Update fork message printing
1964 to use target_terminal_ours_for_output instead of
1965 target_terminal_ours, to use _() for all format strings, to print
1966 "vfork" instead of "fork" for vforks, and to add a detach message.
1967 (handle_vfork_child_exec_or_exit): Update message printing to use
1968 target_terminal_ours_for_output instead of target_terminal_ours, to
1969 use _() for all format strings, and to fix some formatting.
1970
1971 2014-10-24 Pedro Alves <palves@redhat.com>
1972
1973 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1974 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1975 * config/vax/vax.mh: Delete.
1976 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1977 obsolete configurations section.
1978 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1979 * vax-nat.c: Delete file.
1980
1981 2014-10-24 Pedro Alves <palves@redhat.com>
1982
1983 * NEWS (Removed targets): Add OS/arch column.
1984
1985 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1986
1987 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1988 on the arg type of a constructor only if it is of reference type.
1989
1990 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1991
1992 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1993 accessors and constants from nios2 opcodes update.
1994 (nios2_get_next_pc): Likewise.
1995
1996 2014-10-19 Doug Evans <xdje42@gmail.com>
1997
1998 * gdbthread.h (set_running): Fix comment.
1999 (set_executing, finish_thread_state): Fix comment.
2000
2001 2014-10-18 Doug Evans <xdje42@gmail.com>
2002
2003 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2004
2005 2014-10-17 Doug Evans <dje@google.com>
2006
2007 * NEWS: Mention new event gdb.clear_objfiles.
2008 * python/py-event.h (emit_clear_objfiles_event): Clear
2009 * python/py-events.h (events_object): New member clear_objfiles.
2010 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2011 event.
2012 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2013 emit clear_objfiles event.
2014 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2015 function.
2016 (emit_clear_objfiles_event): New function.
2017 (clear_objfiles): New event.
2018 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2019 Declare.
2020 * python/python.c (_initialize_python): Call
2021 gdbpy_initialize_clear_objfiles_event.
2022
2023 2014-10-17 Doug Evans <dje@google.com>
2024
2025 * NEWS: Mention new gdb.Objfile.progspace attribute.
2026 * python/py-objfile.c (objfpy_get_progspace): New function.
2027 (objfile_getset): New entry for "progspace".
2028
2029 2014-10-17 Pedro Alves <palves@redhat.com>
2030
2031 PR gdb/17471
2032 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2033 returns a copy of the input.
2034 (run_command_1, continue_command, step_1, jump_command)
2035 (signal_command, until_command, advance_command, finish_command)
2036 (attach_command): Adjust and install a cleanup to free the
2037 stripped args.
2038
2039 2014-10-17 Pedro Alves <palves@redhat.com>
2040
2041 PR gdb/17300
2042 * infcmd.c (continue_1): If continuing all threads in the
2043 foreground, make sure the inferior's terminal settings are put in
2044 effect.
2045
2046 2014-10-17 Pedro Alves <palves@redhat.com>
2047
2048 PR gdb/17472
2049 * annotate.c (annotate_breakpoints_invalid): Use
2050 target_terminal_our_for_output instead of target_terminal_ours.
2051 Give back the terminal to the target.
2052 (annotate_frames_invalid): Likewise.
2053
2054 2014-10-17 Pedro Alves <palves@redhat.com>
2055
2056 * target.c (enum terminal_state): New enum.
2057 (terminal_state): New global.
2058 (target_terminal_init): New function.
2059 (target_terminal_inferior): Skip if inferior already owns the
2060 terminal.
2061 (target_terminal_ours, target_terminal_ours_for_output): New
2062 functions.
2063 * target.h (target_terminal_init): Convert to function prototype.
2064 (target_terminal_ours_for_output): Convert to function prototype
2065 and tweak comment.
2066 (target_terminal_ours): Convert to function prototype and tweak
2067 comment.
2068 * windows-nat.c (do_initial_windows_stuff): Call
2069 target_terminal_init instead of child_terminal_init_with_pgrp.
2070
2071 2014-10-17 Pedro Alves <palves@redhat.com>
2072
2073 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2074 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2075 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2076 solib-osf.c.
2077 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2078 * ada-lang.h [__alpha__ && __osf__]
2079 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2080 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2081 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2082 GDB_OSABI_OSF1.
2083 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2084 files.
2085 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2086 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2087 * configure: Regenerate.
2088 * configure.ac: Remove references to osf.
2089 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2090 section. Remove all other references to osf.
2091 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2092 Remove all other references to osf.
2093 * dec-thread.c: Delete file.
2094 * defs.h (GDB_OSABI_OSF1): Delete.
2095 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2096 defined.
2097 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2098 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2099 Delete code.
2100 (unconditionally_kill_inferior)
2101 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2102 * solib-osf.c: Delete file.
2103
2104 2014-10-17 Pedro Alves <palves@redhat.com>
2105
2106 * remote.c (clear_threads_listing_context): Move higher up, out of
2107 the HAVE_LIBEXPAT guard.
2108
2109 2014-10-16 Tristan Gingold <gingold@adacore.com>
2110
2111 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2112 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2113 on amd64.
2114
2115 2014-10-15 Pedro Alves <palves@redhat.com>
2116
2117 * dec-thread.c (dec_thread_count_gdb_threads)
2118 (dec_thread_add_gdb_thread): Delete.
2119 (dec_thread_update_thread_list): Delete.
2120 (dec_thread_find_new_threads): Rename to ...
2121 (dec_thread_update_thread_list): ... this. Delete GDB-size
2122 threads that are no longer found in dec_thread_list.
2123 (resync_thread_list): Delete.
2124 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2125 resync_thread_list.
2126
2127 2014-10-15 Pedro Alves <palves@redhat.com>
2128
2129 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2130 * remote.c (remote_update_thread_list): Skip calling prune_threads
2131 if any thread listing method is supported, and instead walk over
2132 the set of remote threads listed, deleting those that are not
2133 found in GDB's thread list.
2134
2135 2014-10-15 Pedro Alves <palves@redhat.com>
2136
2137 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2138 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2139 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2140 (bsd_uthread_target): Adjust.
2141 * corelow.c (core_open): Adjust.
2142 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2143 (dec_thread_update_thread_list): New function.
2144 (init_dec_thread_ops): Adjust.
2145 * gdbthread.h (prune_threads): New declaration.
2146 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2147 (thread_db_update_thread_list): ... this. Call prune_threads.
2148 (init_thread_db_ops): Adjust.
2149 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2150 (procfs_update_thread_list): ... this. Call prune_threads.
2151 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2152 Adjust.
2153 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2154 (obsd_update_thread_list): ... this. Call prune_threads.
2155 (obsd_add_target): Adjust.
2156 * procfs.c (procfs_target): Adjust.
2157 (procfs_notice_thread): Update comment.
2158 (procfs_find_new_threads): Rename to ...
2159 (procfs_update_thread_list): ... this. Call prune_threads.
2160 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2161 comment.
2162 (ravenscar_wait): Adjust.
2163 (ravenscar_find_new_threads): Rename to ...
2164 (ravenscar_update_thread_list): ... this. Call prune_threads.
2165 (init_ravenscar_thread_ops): Adjust.
2166 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2167 (record_btrace_update_thread_list): ... this. Adjust comment.
2168 (init_record_btrace_ops): Adjust.
2169 * remote.c (remote_threads_info): Rename to ...
2170 (remote_update_thread_list): ... this. Call prune_threads.
2171 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2172 Adjust.
2173 * sol-thread.c (check_for_thread_db): Adjust.
2174 (sol_find_new_threads_callback): Rename to ...
2175 (sol_update_thread_list_callback): ... this.
2176 (sol_find_new_threads): Rename to ...
2177 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2178 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2179 * target-delegates.c: Regenerate.
2180 * target.c (target_find_new_threads): Rename to ...
2181 (target_update_thread_list): ... this.
2182 * target.h (struct target_ops): Rename to_find_new_threads field
2183 to to_update_thread_list.
2184 (target_find_new_threads): Rename to ...
2185 (target_update_thread_list): ... this.
2186 * thread.c (prune_threads): Make extern.
2187 (update_thread_list): Adjust.
2188
2189 2014-10-15 Pedro Alves <palves@redhat.com>
2190
2191 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2192 Add describing comment. Return -1 if the qL packet is not
2193 supported.
2194 (struct thread_item, thread_item_t): Move higher up in
2195 the file. Add comments.
2196 (struct threads_parsing_context): Move higher up in
2197 the file, add comments, and remote to ...
2198 (struct threads_listing_context): ... this.
2199 (remote_newthread_step): Don't add the thread to GDB's thread
2200 database here. Instead push it to the thread_listing_context
2201 list.
2202 (remote_find_new_threads): Rename to ...
2203 (remote_get_threads_with_ql): ... this. Add target_ops and
2204 targets_listing_context parameters. Pass down context.
2205 (start_thread): Adjust.
2206 (clear_threads_parsing_context): Rename to ...
2207 (clear_threads_listing_context): ... this.
2208 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2209 remote_threads_info.
2210 (remote_get_threads_with_qthreadinfo): Ditto.
2211 (remote_threads_info): Reimplement.
2212
2213 2014-10-15 Pedro Alves <palves@redhat.com>
2214
2215 * infrun.c (resume): Don't force displaced-stepping for all
2216 single-steps on software single-stepping archs.
2217
2218 2014-10-15 Pedro Alves <palves@redhat.com>
2219
2220 * breakpoint.c (single_step_breakpoints): Delete global.
2221 (insert_single_step_breakpoint): Adjust to store the breakpoint
2222 pointer in the current thread.
2223 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2224 (cancel_single_step_breakpoints): Delete functions.
2225 (breakpoint_has_location_inserted_here): Make extern.
2226 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2227 breakpoint list.
2228 * breakpoint.h (breakpoint_has_location_inserted_here): New
2229 declaration.
2230 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2231 (cancel_single_step_breakpoints): Remove declarations.
2232 * gdbthread.h (struct thread_control_state)
2233 <single_step_breakpoints>: New field.
2234 (delete_single_step_breakpoints)
2235 (thread_has_single_step_breakpoints_set)
2236 (thread_has_single_step_breakpoint_here): New declarations.
2237 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2238 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2239 (singlestep_pc): Delete globals.
2240 (infrun_thread_ptid_changed): Remove references to removed
2241 globals.
2242 (resume_cleanups): Delete the current thread's single-step
2243 breakpoints.
2244 (maybe_software_singlestep): Remove references to removed globals.
2245 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2246 delete_single_step_breakpoints.
2247 (init_wait_for_inferior): Remove references to removed globals.
2248 (delete_thread_infrun_breakpoints): Delete the thread's
2249 single-step breakpoints too.
2250 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2251 single-step breakpoints here.
2252 (delete_stopped_threads_single_step_breakpoints): New function.
2253 (adjust_pc_after_break): Adjust to use
2254 thread_has_single_step_breakpoints_set.
2255 (handle_inferior_event): Remove references to removed globals.
2256 Use delete_stopped_threads_single_step_breakpoints.
2257 (handle_signal_stop): Adjust to per-thread single-step
2258 breakpoints. Swap test order to do cheaper tests first.
2259 (switch_back_to_stepped_thread): Extend debug output. Remove
2260 references to removed globals.
2261 * record-full.c (record_full_wait_1): Adjust to per-thread
2262 single-step breakpoints.
2263 * thread.c (delete_single_step_breakpoints)
2264 (thread_has_single_step_breakpoints_set)
2265 (thread_has_single_step_breakpoint_here): New functions.
2266 (clear_thread_inferior_resources): Also delete the thread's
2267 single-step breakpoints.
2268
2269 2014-10-15 Pedro Alves <palves@redhat.com>
2270
2271 * thread.c (delete_thread_breakpoint): New function.
2272 (delete_step_resume_breakpoint)
2273 (delete_exception_resume_breakpoint): Use it.
2274 (delete_at_next_stop): New function.
2275 (clear_thread_inferior_resources): Use delete_at_next_stop.
2276
2277 2014-10-15 Pedro Alves <palves@redhat.com>
2278
2279 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2280 (breakpoint_inserted_here_p): ... here. Remove special case for
2281 software single-step breakpoints.
2282 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2283 (software_breakpoint_inserted_here_p): ... here. Remove special
2284 case for software single-step breakpoints.
2285 (bp_target_info_copy_insertion_state)
2286 (deprecated_insert_raw_breakpoint)
2287 (deprecated_remove_raw_breakpoint): Delete functions.
2288 * breakpoint.h (deprecated_insert_raw_breakpoint)
2289 (deprecated_remove_raw_breakpoint): Remove declarations.
2290
2291 2014-10-15 Pedro Alves <palves@redhat.com>
2292
2293 PR breakpoints/9649
2294 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2295 Delete array globals.
2296 (single_step_breakpoints): New global.
2297 (breakpoint_xfer_memory): Remove special handling for single-step
2298 breakpoints.
2299 (update_breakpoints_after_exec): Delete bp_single_step
2300 breakpoints.
2301 (detach_breakpoints): Remove special handling for single-step
2302 breakpoints.
2303 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2304 (bpstat_stop_status): Add comment.
2305 (bpstat_what, bptype_string, print_one_breakpoint_location)
2306 (adjust_breakpoint_address, init_bp_location): Handle
2307 bp_single_step.
2308 (new_single_step_breakpoint): New function.
2309 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2310 handling for single-step breakpoints.
2311 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2312 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2313 Rewrite.
2314 (detach_single_step_breakpoints, find_single_step_breakpoint):
2315 Delete functions.
2316 (breakpoint_has_location_inserted_here): New function.
2317 (single_step_breakpoint_inserted_here_p): Rewrite.
2318 * breakpoint.h: Remove FIXME.
2319 (enum bptype) <bp_single_step>: New enum value.
2320 (insert_single_step_breakpoint): Update comment.
2321 * infrun.c (resume_cleanups)
2322 (delete_step_thread_step_resume_breakpoint): Remove single-step
2323 breakpoints.
2324 (fetch_inferior_event): Install a cleanup that removes infrun
2325 breakpoints.
2326 (switch_back_to_stepped_thread) <expect thread advanced also>:
2327 Clear step-over info.
2328
2329 2014-10-15 Pedro Alves <palves@redhat.com>
2330
2331 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2332 (delete_thread_infrun_breakpoints): New function, with parts
2333 salvaged from delete_step_resume_breakpoint_callback.
2334 (delete_step_thread_step_resume_breakpoint): Delete.
2335 (for_each_just_stopped_thread_callback_func): New typedef.
2336 (for_each_just_stopped_thread): New function.
2337 (delete_just_stopped_threads_infrun_breakpoints): New function.
2338 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2339 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2340 ... this. Adjust.
2341 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2342
2343 2014-10-15 Pedro Alves <palves@redhat.com>
2344
2345 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2346 trying to step past a non-steppable watchpoint.
2347 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2348 field.
2349 * infrun.c (struct step_over_info): Add new field
2350 'nonsteppable_watchpoint_p' and adjust comments.
2351 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2352 Adjust.
2353 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2354 (stepping_past_nonsteppable_watchpoint): New function.
2355 (step_over_info_valid_p): Also return true if stepping past a
2356 nonsteppable watchpoint.
2357 (proceed): Adjust call to set_step_over_info. Remove reference to
2358 init_infwait_state.
2359 (init_wait_for_inferior): Remove reference to init_infwait_state.
2360 (waiton_ptid): Delete global.
2361 (struct execution_control_state)
2362 <stepped_after_stopped_by_watchpoint>: Delete field.
2363 (wait_for_inferior, fetch_inferior_event): Always pass
2364 minus_one_ptid to target_wait.
2365 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2366 field.
2367 (init_infwait_state): Delete function.
2368 (handle_inferior_event): Remove infwait_state handling.
2369 (handle_signal_stop) <watchpoints handling>: Adjust after
2370 stepped_after_stopped_by_watchpoint removal. Don't remove
2371 breakpoints here nor set infwait_state. Set the thread's
2372 stepping_over_watchpoint flag, and call keep_going instead.
2373 (keep_going): Handle stepping_over_watchpoint. Adjust
2374 set_step_over_info calls.
2375 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2376 function.
2377
2378 2014-10-15 Pedro Alves <palves@redhat.com>
2379
2380 * infrun.c (step_over_info_valid_p): New function.
2381 (resume): Use step_over_info_valid_p instead of checking the
2382 threads's trap_expected flag.
2383
2384 2014-10-15 Doug Evans <dje@google.com>
2385 Walfred Tedeschi <walfred.tedeschi@intel.com>
2386
2387 PR python/17364
2388 * python/lib/gdb/__init__.py (packages): Add "printer".
2389 * python/lib/gdb/command/bound_registers.py: Moved to ...
2390 * python/lib/gdb/printer/bound_registers.py: ... here.
2391 Add printer to global set of builtin printers. Rename printer from
2392 "bound" to "mpx_bound128".
2393 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2394 registered as global "builtin" printer.
2395 (add_builtin_pretty_printer): New function.
2396 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2397 gdb/printer/__init__.py.
2398
2399 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2400
2401 * Makefile.in (SFILES): Remove d-support.c.
2402 (COMMON_OBS): Remove d-support.o.
2403 * d-lang.h (d_parse_symbol): Remove declaration.
2404 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2405 * d-support.c: Remove file.
2406
2407 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2408
2409 * gdb/infrun.c (process_event_stop_test): Apply
2410 gdbarch_addr_bits_remove to longjmp resume address.
2411
2412 2014-10-15 Pedro Alves <palves@redhat.com>
2413
2414 * regformats/microblaze.dat: Delete file.
2415
2416 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2417
2418 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2419 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2420
2421 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2422
2423 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2424 as non-trivial.
2425
2426 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2427
2428 PR c++/13403
2429 PR c++/15154
2430 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2431 with qualified args.
2432
2433 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2434
2435 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2436 of the case where the second operand is a pointer.
2437 <BINOP_SUB>: Likewise.
2438
2439 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2440
2441 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2442 only if it is not NULL.
2443 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2444 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2445 (struct probe_ops) <clear_semaphore>: Likewise.
2446 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2447 not NULL.
2448 (stop_tracing): Likewise, for clear_semaphore.
2449
2450 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2451
2452 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2453 using language_c, instead of current_language.
2454
2455 2014-10-13 Doug Evans <dje@google.com>
2456
2457 * python/py-objfile.c (objfpy_initialize): New function.
2458 (objfpy_new, objfile_to_objfile_object): Call it.
2459 * python/py-progspace.c (pspy_initialize): New function.
2460 (pspy_new, pspace_to_pspace_object): Call it.
2461
2462 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2463 Jan Kratochvil <jan.kratochvil@redhat.com>
2464
2465 Fix "save breakpoints" for "catch" command.
2466 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2467 newline.
2468
2469 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2470
2471 Fix "save breakpoints" for "disable $bpnum" command.
2472 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2473
2474 2014-10-10 Pedro Alves <palves@redhat.com>
2475
2476 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2477 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2478 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2479 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2480 and been removed.
2481 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2482 * configure.ac: Remove references to IRIX.
2483 * configure.host: Add *-*-irix* to the obsolete hosts section.
2484 Remove all other references to irix.
2485 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2486 Delete files.
2487
2488 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2489
2490 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2491 isn't valid, release the tdesc arch data and return NULL.
2492
2493 2014-10-10 Pedro Alves <palves@redhat.com>
2494
2495 * linux-tdep.c: Include observer.h.
2496 (linux_inferior_data): New global.
2497 (struct linux_info): New structure.
2498 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2499 (get_linux_inferior_data): New functions.
2500 (linux_vsyscall_range): Rename to ...
2501 (linux_vsyscall_range_raw): ... this.
2502 (linux_vsyscall_range): New function; handles caching.
2503 (_initialize_linux_tdep): Register linux_inferior_data. Install
2504 inferior_exit and inferior_appeared observers.
2505
2506 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2507 Pedro Alves <palves@redhat.com>
2508
2509 PR symtab/14466
2510 * solib-svr4.c (svr4_read_so_list): Rename to ...
2511 (svr4_current_sos_1): ... this and change the function comment.
2512 (svr4_current_sos): New function.
2513
2514 2014-10-10 Pedro Alves <palves@redhat.com>
2515
2516 * arch-utils.c (default_vsyscall_range): New function.
2517 * arch-utils.h (default_vsyscall_range): New declaration.
2518 * gdbarch.sh (vsyscall_range): New hook.
2519 * gdbarch.h, gdbarch.c: Regenerate.
2520 * linux-tdep.c (linux_vsyscall_range): New function.
2521 (linux_init_abi): Install linux_vsyscall_range as
2522 vsyscall_range gdbarch hook.
2523 * memrange.c (address_in_mem_range): New function.
2524 * memrange.h (address_in_mem_range): New declaration.
2525 * symfile-mem.c (find_vdso_size): Delete function.
2526 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2527
2528 2014-10-10 Pedro Alves <palves@redhat.com>
2529
2530 * infrun.c (normal_stop): Fix typo in comment.
2531
2532 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2533
2534 PR tdep/9390
2535 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2536 typo when using logical AND to determine instruction type.
2537
2538 2014-10-09 Yao Qi <yao@codesourcery.com>
2539
2540 * infrun.c (handle_signal_stop): Remove local variable
2541 'printed'.
2542
2543 2014-10-08 Stan Shebs <stan@codesourcery.com>
2544
2545 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2546
2547 2014-10-08 Gary Benson <gbenson@redhat.com>
2548
2549 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2550
2551 2014-10-08 Gary Benson <gbenson@redhat.com>
2552
2553 * common/common-defs.h: Include common-exceptions.h.
2554 * exceptions.h: Do not include common-exceptions.h.
2555
2556 2014-10-08 Gary Benson <gbenson@redhat.com>
2557
2558 * common/common-defs.h: Include cleanups.h.
2559 * common/common-exceptions.c: Do not include cleanups.h.
2560 * utils.h: Likewise.
2561
2562 2014-10-08 Gary Benson <gbenson@redhat.com>
2563
2564 * ada-lang.c: Do not include exceptions.h.
2565 * ada-valprint.c: Likewise.
2566 * amd64-tdep.c: Likewise.
2567 * auto-load.c: Likewise.
2568 * block.c: Likewise.
2569 * break-catch-throw.c: Likewise.
2570 * breakpoint.c: Likewise.
2571 * btrace.c: Likewise.
2572 * c-lang.c: Likewise.
2573 * cli/cli-cmds.c: Likewise.
2574 * cli/cli-interp.c: Likewise.
2575 * cli/cli-script.c: Likewise.
2576 * completer.c: Likewise.
2577 * corefile.c: Likewise.
2578 * corelow.c: Likewise.
2579 * cp-abi.c: Likewise.
2580 * cp-support.c: Likewise.
2581 * cp-valprint.c: Likewise.
2582 * darwin-nat.c: Likewise.
2583 * dwarf2-frame-tailcall.c: Likewise.
2584 * dwarf2-frame.c: Likewise.
2585 * dwarf2loc.c: Likewise.
2586 * dwarf2read.c: Likewise.
2587 * eval.c: Likewise.
2588 * event-loop.c: Likewise.
2589 * event-top.c: Likewise.
2590 * f-valprint.c: Likewise.
2591 * frame-unwind.c: Likewise.
2592 * frame.c: Likewise.
2593 * gdbtypes.c: Likewise.
2594 * gnu-v2-abi.c: Likewise.
2595 * gnu-v3-abi.c: Likewise.
2596 * guile/scm-auto-load.c: Likewise.
2597 * guile/scm-breakpoint.c: Likewise.
2598 * guile/scm-cmd.c: Likewise.
2599 * guile/scm-frame.c: Likewise.
2600 * guile/scm-lazy-string.c: Likewise.
2601 * guile/scm-param.c: Likewise.
2602 * guile/scm-symbol.c: Likewise.
2603 * guile/scm-type.c: Likewise.
2604 * hppa-hpux-tdep.c: Likewise.
2605 * i386-tdep.c: Likewise.
2606 * inf-loop.c: Likewise.
2607 * infcall.c: Likewise.
2608 * infcmd.c: Likewise.
2609 * infrun.c: Likewise.
2610 * interps.c: Likewise.
2611 * interps.h: Likewise.
2612 * jit.c: Likewise.
2613 * linespec.c: Likewise.
2614 * linux-nat.c: Likewise.
2615 * linux-thread-db.c: Likewise.
2616 * m32r-rom.c: Likewise.
2617 * main.c: Likewise.
2618 * memory-map.c: Likewise.
2619 * mi/mi-cmd-break.c: Likewise.
2620 * mi/mi-cmd-stack.c: Likewise.
2621 * mi/mi-interp.c: Likewise.
2622 * mi/mi-main.c: Likewise.
2623 * monitor.c: Likewise.
2624 * nto-procfs.c: Likewise.
2625 * objc-lang.c: Likewise.
2626 * p-valprint.c: Likewise.
2627 * parse.c: Likewise.
2628 * ppc-linux-tdep.c: Likewise.
2629 * printcmd.c: Likewise.
2630 * probe.c: Likewise.
2631 * python/py-auto-load.c: Likewise.
2632 * python/py-breakpoint.c: Likewise.
2633 * python/py-cmd.c: Likewise.
2634 * python/py-finishbreakpoint.c: Likewise.
2635 * python/py-frame.c: Likewise.
2636 * python/py-framefilter.c: Likewise.
2637 * python/py-function.c: Likewise.
2638 * python/py-gdb-readline.c: Likewise.
2639 * python/py-inferior.c: Likewise.
2640 * python/py-infthread.c: Likewise.
2641 * python/py-lazy-string.c: Likewise.
2642 * python/py-linetable.c: Likewise.
2643 * python/py-param.c: Likewise.
2644 * python/py-prettyprint.c: Likewise.
2645 * python/py-symbol.c: Likewise.
2646 * python/py-type.c: Likewise.
2647 * python/py-value.c: Likewise.
2648 * python/python-internal.h: Likewise.
2649 * python/python.c: Likewise.
2650 * record-btrace.c: Likewise.
2651 * record-full.c: Likewise.
2652 * regcache.c: Likewise.
2653 * remote-fileio.c: Likewise.
2654 * remote-mips.c: Likewise.
2655 * remote.c: Likewise.
2656 * rs6000-aix-tdep.c: Likewise.
2657 * rs6000-nat.c: Likewise.
2658 * skip.c: Likewise.
2659 * solib-darwin.c: Likewise.
2660 * solib-dsbt.c: Likewise.
2661 * solib-frv.c: Likewise.
2662 * solib-ia64-hpux.c: Likewise.
2663 * solib-spu.c: Likewise.
2664 * solib-svr4.c: Likewise.
2665 * solib.c: Likewise.
2666 * spu-tdep.c: Likewise.
2667 * stack.c: Likewise.
2668 * stap-probe.c: Likewise.
2669 * symfile-mem.c: Likewise.
2670 * symmisc.c: Likewise.
2671 * target.c: Likewise.
2672 * thread.c: Likewise.
2673 * top.c: Likewise.
2674 * tracepoint.c: Likewise.
2675 * tui/tui-interp.c: Likewise.
2676 * typeprint.c: Likewise.
2677 * utils.c: Likewise.
2678 * valarith.c: Likewise.
2679 * valops.c: Likewise.
2680 * valprint.c: Likewise.
2681 * value.c: Likewise.
2682 * varobj.c: Likewise.
2683 * windows-nat.c: Likewise.
2684 * xml-support.c: Likewise.
2685
2686 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2687
2688 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2689 name implies.
2690 (extended_mips16_next_pc): Update accordingly.
2691
2692 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2693
2694 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2695 function.
2696 (micromips_instruction_is_compact_branch): Likewise.
2697 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2698 or a compact jump, reaching a jump delay slot, or seeing a
2699 second non-prologue instruction.
2700 (micromips_scan_prologue): Also terminate scanning upon seeing a
2701 compact branch or jump, or reaching a branch or jump delay slot.
2702 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2703 or jump delay slot, or seeing a second non-prologue instruction.
2704 (mips32_instruction_has_delay_slot): Retain instruction
2705 examination code only, update arguments accordingly and move
2706 instruction fetch pieces to...
2707 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2708 (micromips_instruction_has_delay_slot): Likewise and to...
2709 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2710 (mips16_instruction_has_delay_slot): Likewise and to...
2711 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2712 (mips_single_step_through_delay): Update accordingly.
2713 (mips_adjust_breakpoint_address): Likewise.
2714
2715 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2716
2717 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2718 !mustbe32 also return 1 for 32-bit instructions.
2719 (mips16_instruction_has_delay_slot): Likewise. Add an
2720 explanatory comment.
2721
2722 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2723
2724 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2725 symbols special.
2726
2727 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2728
2729 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2730 update comments.
2731 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2732 for the breakpoint's address. Don't preinitialize `placed_size'.
2733 (insert_bp_location): Set `reqstd_address' rather than
2734 `placed_address'.
2735 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2736 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2737 address.
2738 (bkpt_remove_location): Likewise.
2739 (deprecated_insert_raw_breakpoint): Likewise.
2740 (deprecated_remove_raw_breakpoint): Likewise.
2741 (find_single_step_breakpoint): Likewise.
2742 * mem-break.c (default_memory_insert_breakpoint): Use
2743 `reqstd_address' for the breakpoint's address. Don't set
2744 `placed_address' or `placed_size' if breakpoint contents couldn't
2745 have been determined.
2746 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2747 the breakpoint's address.
2748 (remote_insert_hw_breakpoint): Likewise. Don't set
2749 `placed_address' or `placed_size' if breakpoint couldn't have been
2750 set.
2751 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2752 `reqstd_address' for the breakpoint's address.
2753 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2754 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2755 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2756 * microblaze-linux-tdep.c
2757 (microblaze_linux_memory_remove_breakpoint): Likewise.
2758 * monitor.c (monitor_insert_breakpoint): Likewise.
2759 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2760 (procfs_insert_hw_breakpoint): Likewise.
2761 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2762 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2763 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2764 * remote-mips.c (mips_insert_breakpoint): Likewise.
2765 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2766
2767 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2768
2769 * valops.c (value_assign): Check for bit field assignments
2770 before calling architecture-specific register value
2771 conversion functions.
2772
2773 2014-10-03 Pierre Muller <muller@sourceware.org>
2774
2775 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2776
2777 2014-10-02 Pedro Alves <palves@redhat.com>
2778
2779 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2780 threads_are_executing.
2781 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2782 describing comment.
2783 * gdbthread.h (threads_are_executing): Declare.
2784 (handle_signal_stop) <random signals>: Don't print about the
2785 signal here if stopping.
2786 (end_stepping_range): Don't notify observers here.
2787 (normal_stop): Update the thread list. If stopped by a random
2788 signal or a stepping range ended, notify observers.
2789 * thread.c (threads_executing): New global.
2790 (init_thread_list): Clear 'threads_executing'.
2791 (set_executing): Set or clear 'threads_executing'.
2792 (threads_are_executing): New function.
2793 (update_threads_executing): New function.
2794 (update_thread_list): Use it.
2795
2796 2014-10-02 Pedro Alves <palves@redhat.com>
2797
2798 PR breakpoints/17431
2799 * breakpoint.c (update_breakpoints_after_exec): Don't create
2800 overlay, longjmp, std terminate nor exception breakpoints here.
2801
2802 2014-10-02 Pedro Alves <palves@redhat.com>
2803
2804 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2805 Adjust comments.
2806 * inferior.c (find_inferior_for_program_space): Give preference to
2807 the current inferior.
2808 * inferior.h (find_inferior_for_program_space): Update comment.
2809 * progspace.c (switch_to_program_space_and_thread): Prefer the
2810 current inferior if it's bound to the program space requested. If
2811 the inferior found doesn't have a PID yet, don't bother looking up
2812 a thread.
2813 * progspace.h (switch_to_program_space_and_thread): Adjust
2814 comment.
2815 * thread.c (any_thread_of_process, any_live_thread_of_process):
2816 Give preference to the current thread.
2817
2818 2014-10-01 Pedro Alves <palves@redhat.com>
2819
2820 * breakpoint.c (insert_bp_location): Error out if inserting a
2821 software breakpoint at a read-only address.
2822 * target.c (memory_xfer_check_region): New function, factored out
2823 from ...
2824 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2825 ULONGEST.
2826 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2827 against the memory region attributes.
2828
2829 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2830
2831 * NEWS: Announce new exit-code field in -list-thread-groups
2832 output.
2833 * inferior.c (exit_inferior_1): Don't clear exit code.
2834 (inferior_appeared): Clear exit code.
2835 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2836 code.
2837
2838 2014-10-01 Pedro Alves <palves@redhat.com>
2839
2840 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2841 GENERATED" along with emacs/vi read-only markers.
2842 * regformats/aarch64.dat: Regenerate.
2843 * regformats/arm-with-iwmmxt.dat: Regenerate.
2844 * regformats/arm-with-neon.dat: Regenerate.
2845 * regformats/arm-with-vfpv2.dat: Regenerate.
2846 * regformats/arm-with-vfpv3.dat: Regenerate.
2847 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2848 * regformats/i386/amd64-avx.dat: Regenerate.
2849 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2850 * regformats/i386/amd64-avx512.dat: Regenerate.
2851 * regformats/i386/amd64-linux.dat: Regenerate.
2852 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2853 * regformats/i386/amd64-mpx.dat: Regenerate.
2854 * regformats/i386/amd64.dat: Regenerate.
2855 * regformats/i386/i386-avx-linux.dat: Regenerate.
2856 * regformats/i386/i386-avx.dat: Regenerate.
2857 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2858 * regformats/i386/i386-avx512.dat: Regenerate.
2859 * regformats/i386/i386-linux.dat: Regenerate.
2860 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2861 * regformats/i386/i386-mmx.dat: Regenerate.
2862 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2863 * regformats/i386/i386-mpx.dat: Regenerate.
2864 * regformats/i386/i386.dat: Regenerate.
2865 * regformats/i386/x32-avx-linux.dat: Regenerate.
2866 * regformats/i386/x32-avx.dat: Regenerate.
2867 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2868 * regformats/i386/x32-avx512.dat: Regenerate.
2869 * regformats/i386/x32-linux.dat: Regenerate.
2870 * regformats/i386/x32.dat: Regenerate.
2871 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2872 * regformats/mips-dsp-linux.dat: Regenerate.
2873 * regformats/mips-linux.dat: Regenerate.
2874 * regformats/mips64-dsp-linux.dat: Regenerate.
2875 * regformats/mips64-linux.dat: Regenerate.
2876 * regformats/nios2-linux.dat: Regenerate.
2877 * regformats/rs6000/powerpc-32.dat: Regenerate.
2878 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2879 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2880 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2881 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2882 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2883 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2884 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2885 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2886 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2887 * regformats/s390-linux32.dat: Regenerate.
2888 * regformats/s390-linux32v1.dat: Regenerate.
2889 * regformats/s390-linux32v2.dat: Regenerate.
2890 * regformats/s390-linux64.dat: Regenerate.
2891 * regformats/s390-linux64v1.dat: Regenerate.
2892 * regformats/s390-linux64v2.dat: Regenerate.
2893 * regformats/s390-te-linux64.dat: Regenerate.
2894 * regformats/s390x-linux64.dat: Regenerate.
2895 * regformats/s390x-linux64v1.dat: Regenerate.
2896 * regformats/s390x-linux64v2.dat: Regenerate.
2897 * regformats/s390x-te-linux64.dat: Regenerate.
2898 * regformats/tic6x-c62x-linux.dat: Regenerate.
2899 * regformats/tic6x-c62x.dat: Regenerate.
2900 * regformats/tic6x-c64x-linux.dat: Regenerate.
2901 * regformats/tic6x-c64x.dat: Regenerate.
2902 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2903 * regformats/tic6x-c64xp.dat: Regenerate.
2904
2905 2014-10-01 Pedro Alves <palves@redhat.com>
2906
2907 * features/Makefile: Update comments.
2908 (XMLTOC): List all xml files we build C files from.
2909 (clean-cfiles): New rule.
2910
2911 2014-10-01 Pedro Alves <palves@redhat.com>
2912
2913 * features/i386/amd64-avx512-linux.c: Regenerate.
2914 * features/i386/amd64-avx512.c: Regenerate.
2915 * features/i386/x32-avx512-linux.c: Regenerate.
2916 * features/i386/x32-avx512.c: Regenerate.
2917
2918 2014-10-01 Pedro Alves <palves@redhat.com>
2919
2920 * features/Makefile (WHICH): Remove arm-with-m,
2921 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2922
2923 2014-10-01 Pedro Alves <palves@redhat.com>
2924
2925 * features/Makefile (clean): New rule.
2926
2927 2014-10-01 Pedro Alves <palves@redhat.com>
2928
2929 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2930 (zmm14h): Add missing end quotes.
2931
2932 2014-10-01 Pedro Alves <palves@redhat.com>
2933
2934 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2935 * features/aarch64.c: Regenerate.
2936
2937 2014-09-30 Don Breazeal <donb@codesourcery.com>
2938
2939 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2940 code so as to work with follow_fork_inferior.
2941 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2942 (inf_ttrace_create_inferior): Remove reference to
2943 inf_ttrace_vfork_ppid.
2944 (inf_ttrace_attach): Ditto.
2945 (inf_ttrace_detach): Ditto.
2946 (inf_ttrace_kill): Use current_inferior instead of
2947 inf_ttrace_vfork_ppid.
2948 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2949 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2950 inferior away from the parent.
2951 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2952 target_follow_fork.
2953 (follow_fork_inferior): New function.
2954 (follow_inferior_reset_breakpoints): Make function static.
2955 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2956 * linux-nat.c (linux_child_follow_fork): Move target-independent
2957 code to infrun.c:follow_fork_inferior.
2958
2959 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2960
2961 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2962 * gdbarch.c: Regenerate.
2963 * gdbarch.h: Likewise.
2964 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2965 gdbarch method 'regset_from_core_section'.
2966 (get_core_register_section): Remove handling for the case that
2967 regset == NULL and regset_from_core_section is defined.
2968 (get_core_registers): Drop check for deleted method.
2969 * procfs.c (procfs_do_thread_registers): Adjust comment.
2970
2971 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2972
2973 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2974 (linux_nat_make_corefile_notes): Remove.
2975 (linux_target_install_ops): Do not set target method
2976 'make_corefile_notes'.
2977 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2978 Remove field.
2979 (linux_corefile_thread_callback): Instead of args->collect, call
2980 linux_collect_thread_registers.
2981 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2982 NULL unless there is a regset iterator.
2983 (linux_make_corefile_notes_1): Remove.
2984 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2985 by linux_make_corefile_notes.
2986 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2987
2988 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2989
2990 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2991 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2992 Remove.
2993 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2994
2995 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2996
2997 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2998 (xtensa_iterate_over_regset_sections): New.
2999 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3000
3001 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3002
3003 * vax-tdep.c (vax_regset_from_core_section): Remove.
3004 (vax_iterate_over_regset_sections): New.
3005 (vax_gdbarch_init): Adjust gdbarch initialization.
3006
3007 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3008
3009 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3010 (tilegx_regset_from_core_section): Remove.
3011 (tilegx_iterate_over_regset_sections): New.
3012 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3013
3014 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3015
3016 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3017 (sparc_iterate_over_regset_sections): New.
3018 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3019 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3020 targets.
3021 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3022 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3023 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3024 target method 'make_corefile_notes'.
3025
3026 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3027
3028 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3029 'sizeof_gregset' and 'sizeof_fpregset'.
3030 * sh-tdep.c (sh_regset_from_core_section): Remove.
3031 (sh_iterate_over_regset_sections): New.
3032 (sh_gdbarch_init): Adjust gdbarch initialization.
3033 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3034 sizeof_fpregset.
3035 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3036 'sizeof_gregset'.
3037
3038 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3039
3040 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3041 (score7_linux_iterate_over_regset_sections): New.
3042 (score_gdbarch_init): Adjust gdbarch initialization.
3043
3044 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3045
3046 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3047 FreeBSD targets.
3048 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3049 method 'make_corefile_notes'.
3050 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3051 (ppcfbsd_regset_from_core_section): Remove.
3052 (ppcfbsd_iterate_over_regset_sections): New.
3053 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3054 initialization.
3055 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3056 (ppcnbsd_iterate_over_regset_sections): New.
3057 (ppcnbsd_init_abi): Adjust.
3058 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3059 (ppcobsd_iterate_over_regset_sections): New.
3060 (ppcobsd_init_abi): Adjust.
3061 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3062 (rs6000_aix_iterate_over_regset_sections): New.
3063 (rs6000_aix_init_osabi): Adjust.
3064
3065 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3066
3067 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3068 (nios2_regset_from_core_section): Remove.
3069 (nios2_iterate_over_regset_sections): New.
3070 (nios2_linux_init_abi): Adjust gdbarch initialization.
3071
3072 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3073
3074 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3075 (am33_iterate_over_regset_sections): New.
3076 (am33_linux_init_osabi): Adjust gdbarch initialization.
3077
3078 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3079
3080 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3081 (mips_linux_iterate_over_regset_sections): New.
3082 (mips_linux_init_abi): Adjust gdbarch initialization.
3083 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3084 (mips64obsd_iterate_over_regset_sections): New.
3085 (mips64obsd_init_abi): Adjust.
3086 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3087 (mipsnbsd_iterate_over_regset_sections): New.
3088 (mipsnbsd_init_abi): Adjust.
3089
3090 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3091
3092 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3093 (m88k_iterate_over_regset_sections): New.
3094 (m88k_gdbarch_init): Adjust gdbarch initialization.
3095
3096 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3097
3098 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3099 (ia64_linux_iterate_over_regset_sections): New.
3100 (ia64_linux_init_abi): Adjust gdbarch initialization.
3101
3102 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3103
3104 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3105 (m68kbsd_iterate_over_regset_sections): New.
3106 (m68kbsd_init_abi): Adjust gdbarch initialization.
3107 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3108 (m68k_linux_iterate_over_regset_sections): New.
3109 (m68k_linux_init_abi): Adjust gdbarch initialization.
3110
3111 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3112
3113 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3114 (m32r_linux_regset_from_core_section): Remove.
3115 (m32r_linux_iterate_over_regset_sections): New.
3116 (m32r_linux_init_abi): Adjust gdbarch initialization.
3117
3118 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3119
3120 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3121 (amd64obsd_iterate_over_regset_sections): New.
3122 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3123 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3124 Remove.
3125 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3126 regset_from_core_section initialization.
3127 * i386-tdep.c (i386_regset_from_core_section): Remove.
3128 (i386_iterate_over_regset_sections): New.
3129 (i386_gdbarch_init): Adjust gdbarch initialization.
3130 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3131 (i386_iterate_over_regset_sections): New prototype.
3132 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3133 Remove.
3134 (i386obsd_aout_iterate_over_regset_sections): New.
3135 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3136 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3137 targets.
3138 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3139 (amd64fbsd_init_abi): Call fbsd_init_abi.
3140 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3141 (i386fbsd4_init_abi): Call fbsd_init_abi.
3142 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3143 target method 'make_corefile_notes'.
3144 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3145
3146 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3147
3148 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3149 (hppa_hpux_iterate_over_regset_sections): New.
3150 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3151 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3152 (hppa_linux_iterate_over_regset_sections): New.
3153 (hppa_linux_init_abi): Adjust.
3154 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3155 (hppanbsd_iterate_over_regset_sections): New.
3156 (hppanbsd_init_abi): Adjust.
3157 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3158 (hppaobsd_iterate_over_regset_sections): New.
3159 (hppaobsd_init_abi): Adjust.
3160
3161 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3162
3163 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3164 (frv_linux_iterate_over_regset_sections): New.
3165 (frv_linux_init_abi): Adjust gdbarch initialization.
3166
3167 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3168
3169 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3170 (armbsd_iterate_over_regset_sections): New prototype.
3171 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3172 (armbsd_iterate_over_regset_sections): New.
3173 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3174 initialization.
3175
3176 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3177
3178 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3179 (alpha_linux_iterate_over_regset_sections): New.
3180 (alpha_linux_init_abi): Adjust gdbarch initialization.
3181 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3182 prototype.
3183 (alphanbsd_iterate_over_regset_sections): New prototype.
3184
3185 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3186
3187 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3188 Remove.
3189 (aarch64_linux_iterate_over_regset_sections): New.
3190 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3191
3192 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3193
3194 * fbsd-tdep.c: New file.
3195 * fbsd-tdep.h: New file.
3196 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3197 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3198 (ALLDEPFILES): Add fbsd-tdep.c.
3199
3200 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3201
3202 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3203 parameter.
3204 * gdbarch.h: Regenerate.
3205 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3206 iterator.
3207 (get_core_register_section): Add parameter 'regset' and use it, if
3208 set. Add parameter 'min_size' and verify the bfd section size
3209 against it.
3210 (get_core_registers_cb): Add parameter 'regset' and pass it to
3211 get_core_register section. For the "standard" register sections
3212 ".reg" and ".reg2", set an appropriate default for human_name.
3213 (get_core_registers): Don't abort when the gdbarch has an iterator
3214 but no regset_from_core_section. Add NULL/0 for parameters
3215 'regset'/'min_size' in calls to get_core_register_section.
3216 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3217 'regset' and use it instead of calling the
3218 regset_from_core_section gdbarch method.
3219 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3220 * i386-tdep.c (i386_supply_xstateregset)
3221 (i386_collect_xstateregset, i386_xstateregset): Moved to
3222 i386-linux-tdep.c.
3223 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3224 .reg-xstate.
3225 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3226 core file support only if the regset iterator hasn't been set.
3227 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3228 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3229 Moved from i386-tdep.c and renamed to *_linux*.
3230 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3231 each callback invocation. Allow any .reg-xstate size when reading
3232 from a core file.
3233 * amd64-tdep.c (amd64_supply_xstateregset)
3234 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3235 amd64-linux-tdep.c.
3236 (amd64_regset_from_core_section): Remove.
3237 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3238 install an amd64-specific regset_from_core_section gdbarch method.
3239 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3240 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3241 Moved from amd64-tdep.c and renamed to *_linux*.
3242 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3243 to each callback invocation. Allow any .reg-xstate size when
3244 reading from a core file.
3245 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3246 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3247 each callback invocation.
3248 (arm_linux_init_abi): No longer set the regset_from_core_section
3249 gdbarch method.
3250 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3251 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3252 each callback invocation.
3253 (ppc_linux_init_abi): No longer set the regset_from_core_section
3254 gdbarch method.
3255 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3256 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3257 (s390_regset_from_core_section): Remove.
3258 (s390_iterate_over_regset_sections): Add regset parameter to each
3259 callback invocation.
3260 (s390_gdbarch_init): No longer set the regset_from_core_section
3261 gdbarch method. Drop initialization of deleted tdep fields.
3262
3263 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3264
3265 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3266 (amd64_linux_iterate_over_regset_sections): New.
3267 (amd64_linux_init_abi_common): Don't install the regset section
3268 list, but the new iterator in gdbarch.
3269 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3270 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3271 (arm_linux_iterate_over_regset_sections): ...here. New function.
3272 (arm_linux_init_abi): Set iterator instead of section list.
3273 * corelow.c (get_core_registers_cb): New function, logic moved
3274 from...
3275 (get_core_registers): ...loop body here. Use new iterator method
3276 instead of walking through the regset section list.
3277 * gdbarch.sh: Remove 'core_regset_sections'. New method
3278 'iterate_over_regset_sections'. New typedef
3279 'iterate_over_regset_sections_cb'.
3280 * gdbarch.c: Regenerate.
3281 * gdbarch.h: Likewise.
3282 * i386-linux-tdep.c (i386_linux_regset_sections)
3283 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3284 Remove.
3285 (i386_linux_iterate_over_regset_sections): New.
3286 (i386_linux_init_abi): Don't choose a regset section list, but
3287 install new iterator in gdbarch.
3288 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3289 (linux_collect_regset_section_cb): New function, logic moved
3290 from...
3291 (linux_collect_thread_registers): ...loop body here. Use iterator
3292 method instead of walking through list.
3293 (linux_make_corefile_notes_1): Check for presence of iterator
3294 method instead of regset section list.
3295 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3296 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3297 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3298 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3299 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3300 (ppc_linux_init_abi): Don't choose from above regset section
3301 lists, but install new iterator in gdbarch.
3302 * regset.h (struct core_regset_section): Remove.
3303 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3304 have_linux_v1, have_linux_v2, and have_tdb.
3305 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3306 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3307 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3308 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3309 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3310 (s390_iterate_over_regset_sections): ...here. New function. Use
3311 new tdep fields.
3312 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3313 regset section lists, but install new iterator.
3314
3315 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3316
3317 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3318
3319 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3320
3321 * progspace.c (print_program_space): Don't prune program spaces
3322 before printing them.
3323
3324 2014-09-25 Pedro Alves <palves@redhat.com>
3325
3326 * infrun.c (user_visible_resume_ptid): Don't check
3327 singlestep_breakpoints_inserted_p.
3328
3329 2014-09-25 Pedro Alves <palves@redhat.com>
3330
3331 * breakpoint.c (should_be_inserted): Add debug output.
3332
3333 2014-09-25 Pedro Alves <palves@redhat.com>
3334
3335 * infrun.c (stepping_past_instruction_at)
3336 (clear_exit_convenience_vars): Point at infrun.h instead of
3337 inferior.h.
3338 (handle_signal_stop): Fix typo.
3339
3340 2014-09-24 Yao Qi <yao@codesourcery.com>
3341
3342 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3343 bitmask.
3344
3345 2014-09-22 Gary Benson <gbenson@redhat.com>
3346
3347 * target.c (target_stop): Updated comment.
3348
3349 2014-09-22 Gary Benson <gbenson@redhat.com>
3350
3351 * target/target.h (target_stop_ptid): Renamed as...
3352 (target_stop_and_wait): New function. Updated comment.
3353 All uses updated.
3354 (target_continue_ptid): Renamed as...
3355 (target_continue_no_signal): New function. Updated comment.
3356 All uses updated.
3357
3358 2014-09-22 Pedro Alves <palves@redhat.com>
3359
3360 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3361 and "auto" merged.
3362 * breakpoint.c (enum ugll_insert_mode): New enum.
3363 (always_inserted_mode): Now a plain boolean.
3364 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3365 (breakpoints_always_inserted_mode): Delete.
3366 (breakpoints_should_be_inserted_now): New function.
3367 (insert_breakpoints): Pass UGLL_INSERT to
3368 update_global_location_list instead of calling
3369 insert_breakpoint_locations manually.
3370 (create_solib_event_breakpoint_1): New, factored out from ...
3371 (create_solib_event_breakpoint): ... this.
3372 (create_and_insert_solib_event_breakpoint): Use
3373 create_solib_event_breakpoint_1 instead of calling
3374 insert_breakpoint_locations manually.
3375 (update_global_location_list): Change parameter type from boolean
3376 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3377 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3378 (update_global_location_list_nothrow): Change parameter type from
3379 boolean to enum ugll_insert_mode.
3380 (_initialize_breakpoint): "breakpoint always-inserted" option is
3381 now a boolean command. Update help text.
3382 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3383 (breakpoints_should_be_inserted_now): New declaration.
3384 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3385 Remove breakpoints_always_inserted_mode check.
3386 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3387 * remote.c (remote_start_remote): Likewise.
3388
3389 2014-09-22 Pedro Alves <palves@redhat.com>
3390
3391 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3392 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3393 Instead, pass UGLL_INSERT to update_global_location_list.
3394 (update_global_location_list): Change parameter type from boolean
3395 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3396 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3397 (create_solib_event_breakpoint_1): New, factored out from ...
3398 (create_solib_event_breakpoint): ... this.
3399 (create_and_insert_solib_event_breakpoint): Use
3400 create_solib_event_breakpoint_1 instead of calling
3401 insert_breakpoint_locations manually.
3402 (update_global_location_list): Handle UGLL_INSERT.
3403
3404 2014-09-22 Pedro Alves <palves@redhat.com>
3405
3406 * breakpoint.c (enum ugll_insert_mode): New enum.
3407 (update_global_location_list)
3408 (update_global_location_list_nothrow): Change parameter type from
3409 boolean to enum ugll_insert_mode. All callers adjusted.
3410
3411 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3412
3413 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3414 SystemTap support in GDB.
3415
3416 2014-09-19 Don Breazeal <donb@codesourcery.com>
3417
3418 * linux-nat.c (linux_handle_extended_wait): Call
3419 linux_ptrace_get_extended_event.
3420 (wait_lwp): Call linux_is_extended_waitstatus.
3421 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3422 and linux_is_extended_waitstatus.
3423 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3424 linux_ptrace_get_extended_event.
3425 (linux_ptrace_get_extended_event): New function.
3426 (linux_is_extended_waitstatus): New function.
3427 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3428 (linux_is_extended_waitstatus): New declarations.
3429
3430 2014-09-19 Yao Qi <yao@codesourcery.com>
3431
3432 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3433 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3434 comments. Callers update.
3435 (dwarf_decode_lines): Likewise.
3436 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3437 comments. Skip the line table if 'lowpc' is greater than
3438 'address'. Don't check
3439 dwarf2_per_objfile->has_section_at_zero.
3440
3441 2014-09-18 Doug Evans <dje@google.com>
3442
3443 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3444 * python/py-symtab.c (stpy_get_producer): New function.
3445 (symtab_object_getset): Add "producer" attribute.
3446
3447 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3448
3449 PR gdb/17384
3450 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3451 (do_captured_read_memory_integer): Remove.
3452 (safe_read_memory_integer): Use target_read_memory directly instead
3453 of catching errors in do_captured_read_memory_integer.
3454
3455 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3456
3457 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3458 not gdb/doc.
3459
3460 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3461
3462 * objc-lang.c (find_implementation_from_class): Remove dead code.
3463
3464 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3465
3466 PR cli/7233
3467 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3468 "fprintf_unfiltered (gdb_stdlog...)".
3469
3470 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3471
3472 PR breakpoints/12526
3473 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3474 val_bitsize.
3475 * breakpoint.c (watch_command_1): Use these fields to retain
3476 bitfield information.
3477 (extract_bitfield_from_watchpoint_value): New function.
3478 (watchpoint_check): Use it.
3479 (update_watchpoint): Use it. Optimize the address and length of a
3480 HW watchpoint pointing to a bitfield.
3481 * value.h (unpack_value_bitfield): New prototype.
3482 * value.c (unpack_value_bitfield): Make extern.
3483
3484 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3485
3486 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3487 x86-dregs.o.
3488 * gnu-nat.c (inf_threads): New function.
3489 * gnu-nat.h (inf_threads_ftype): New typedef.
3490 (inf_threads): New declaration.
3491 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3492 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3493 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3494 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3495 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3496 (i386_gnu_dr_get_control): New functions.
3497 (reg_addr): New structure.
3498 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3499 i386 debugging register hooks.
3500 * NEWS: Mention this.
3501
3502 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3503
3504 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3505 vector data transfer instructions.
3506 (arm_record_coproc_data_proc): Updated.
3507
3508 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3509
3510 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3511 arm_record_exreg_ld_st_insn.
3512 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3513 load/store insns.
3514
3515 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3516
3517 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3518 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3519 processing instructions.
3520
3521 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3522
3523 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3524 for advance SIMD struct ld/st insn.
3525 (thumb2_record_decode_insn_handler): Replace stub handler with
3526 thumb2_record_asimd_struct_ld_st.
3527
3528 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3529
3530 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3531 for asimd, vfp and coprocessor insns.
3532 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3533 and coprocessor insns.
3534 (thumb2_record_coproc_insn): New function.
3535 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3536 handlers.
3537 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3538 opcode 110 insns.
3539
3540 2014-09-13 Doug Evans <xdje42@gmail.com>
3541
3542 * NEWS: Mention new "queue-signal" command.
3543 * infcmd.c (queue_signal_command): New function.
3544 (_initialize_infcmd): Add new queue-signal command.
3545
3546 2014-09-13 Doug Evans <xdje42@gmail.com>
3547
3548 * linux-nat.c (wait_lwp): Add debugging printf.
3549 (linux_nat_wait_1): Ditto.
3550
3551 2014-09-12 Pedro Alves <palves@redhat.com>
3552
3553 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3554 (create_and_insert_solib_event_breakpoint): New functions.
3555 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3556 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3557 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3558 (remove_dbx_link_breakpoint): Delete function.
3559 (insert_dbx_link_bpt_in_file): Use
3560 create_and_insert_solib_event_breakpoint instead of
3561 deprecated_insert_raw_breakpoint.
3562 (procfs_wait): Don't check whether we hit __dbx_link here.
3563 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3564 here.
3565 * solib-irix.c (base_breakpoint): Delete global.
3566 (disable_break): Delete function.
3567 (enable_break): Use create_solib_event_breakpoint
3568 instead of deprecated_insert_raw_breakpoint.
3569 (irix_solib_handle_event): New function.
3570 (irix_solib_create_inferior_hook): Don't run the target or disable
3571 the mapping-complete breakpoint here.
3572 (_initialize_irix_solib): Install irix_solib_handle_event as
3573 so_ops->handle_event hook.
3574
3575 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3576 Ulrich Weigand  <uweigand@de.ibm.com>
3577
3578 PR tdep/17379
3579 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3580 instead of read_memory_unsigned_integer.
3581
3582 2014-09-12 Gary Benson <gbenson@redhat.com>
3583
3584 * nat/linux-waitpid.c: Include common-defs.h.
3585 [GDBSERVER]: Add FIXME comment.
3586 [!GDBSERVER]: Don't include defs.h or signal.h.
3587 (linux_debug) [!GDBSERVER]: Remove empty block.
3588
3589 2014-09-12 Gary Benson <gbenson@redhat.com>
3590
3591 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3592 Don't include defs.h or server.h.
3593
3594 2014-09-12 Gary Benson <gbenson@redhat.com>
3595
3596 * nat/linux-btrace.c: Include common-defs.h.
3597 Don't include defs.h, server.h or gdbthread.h.
3598 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3599
3600 2014-09-12 Gary Benson <gbenson@redhat.com>
3601
3602 * common/agent.c: Include common-defs.h.
3603 Don't include defs.h or server.h.
3604 * common/buffer.c: Likewise.
3605 * common/common-debug.c: Likewise.
3606 * common/common-utils.c: Likewise.
3607 * common/errors.c: Likewise.
3608 * common/filestuff.c: Likewise.
3609 * common/format.c: Likewise.
3610 * common/gdb_vecs.c: Likewise.
3611 * common/print-utils.c: Likewise.
3612 * common/ptid.c: Likewise.
3613 * common/rsp-low.c: Likewise.
3614 * common/signals.c: Likewise.
3615 * common/vec.c: Likewise.
3616 * common/xml-utils.c: Likewise.
3617 * nat/linux-osdata.c: Likewise.
3618 * nat/linux-procfs.c: Likewise.
3619 * nat/linux-ptrace.c: Likewise.
3620 * nat/mips-linux-watch.c: Likewise.
3621 * target/waitstatus.c: Likewise.
3622
3623 2014-09-12 Tom Tromey <tromey@redhat.com>
3624 Gary Benson <gbenson@redhat.com>
3625
3626 * common/common-regcache.h: New file.
3627 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3628 * regcache.h: Include common-regcache.h.
3629 (regcache_read_pc): Don't declare.
3630 * regcache.c (get_thread_regcache_for_ptid): New function.
3631 * nat/linux-btrace.c: Don't include regcache.h.
3632 Include common-regcache.h.
3633 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3634
3635 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3636
3637 * regcache.h (struct regset): Declare.
3638
3639 2014-09-11 Pedro Alves <palves@redhat.com>
3640
3641 PR gdb/17347
3642 * main.c: Include "infrun.h".
3643 (catch_command_errors, catch_command_errors_const): Wait for the
3644 foreground command to complete.
3645 * top.c (maybe_wait_sync_command_done): New function, factored out
3646 from ...
3647 (maybe_wait_sync_command_done): ... here.
3648 * top.h (maybe_wait_sync_command_done): New declaration.
3649
3650 2014-09-11 Tom Tromey <tromey@redhat.com>
3651 Gary Benson <gbenson@redhat.com>
3652
3653 * common/symbol.h: New file.
3654 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3655 * minsyms.c (find_minimal_symbol_address): New function.
3656 * common/agent.c: Include common/symbol.h.
3657 [!GDBSERVER]: Don't include objfiles.h.
3658 (agent_look_up_symbols): Use find_minimal_symbol_address.
3659
3660 2014-09-11 Gary Benson <gbenson@redhat.com>
3661
3662 * target/target.h (target_stop_ptid, target_continue_ptid):
3663 Declare.
3664 * target.c (target_stop_ptid, target_continue_ptid): New
3665 functions.
3666 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3667 (agent_run_command): Always use target_stop_ptid and
3668 target_continue_ptid.
3669
3670 2014-09-11 Tom Tromey <tromey@redhat.com>
3671 Gary Benson <gbenson@redhat.com>
3672
3673 * target/target.h: New file.
3674 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3675 * target.h: Include target/target.h.
3676 (target_read_memory, target_write_memory): Don't declare.
3677 * target.c (target_read_uint32): New function.
3678 * common/agent.c: Include target/target.h.
3679 [!GDBSERVER]: Don't include target.h.
3680 (helper_thread_id): Type changed to uint32_t.
3681 (agent_get_helper_thread_id): Use target_read_uint32.
3682 (agent_run_command): Always use target_read_memory and
3683 target_write_memory.
3684 (agent_capability): Type changed to uint32_t.
3685 (agent_capability_check): Use target_read_uint32.
3686
3687 2014-09-11 Gary Benson <gbenson@redhat.com>
3688
3689 * common/common-debug.h (show_debug_regs): Declare.
3690 * common/common-debug.c (show_debug_regs): Define.
3691 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3692 all uses with show_debug_regs. Replace all uses that considered
3693 debug_hw_points as a multi-value integer with straight boolean
3694 uses.
3695 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3696 with show_debug_regs.
3697 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3698 all uses with show_debug_regs.
3699 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3700 uses with show_debug_regs.
3701
3702 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3703
3704 * findvar.c (address_from_register): Handle targets requiring
3705 a special conversion routine even for plain pointer types.
3706
3707 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3708
3709 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3710 (store_register): Do not call exec_one_dummy_insn.
3711
3712 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3713
3714 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3715 dereference it first. Use value_enclosing_type instead of
3716 value_type.
3717 (ada_array_length): Likewise.
3718
3719 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3720
3721 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3722 Adjust function implementation and documentation accordingly.
3723 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3724 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3725 Update call to ada_value_ptr_subscript.
3726
3727 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3728
3729 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3730 instead of VAL's type.
3731
3732 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3733
3734 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3735
3736 2014-09-09 Doug Evans <xdje42@gmail.com>
3737
3738 PR guile/17367
3739 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3740 last parameter to pkg-config, not first.
3741 * configure.ac: Pass --with-guile provided pkg-config path to
3742 GDB_GUILE_PROGRAM_NAMES.
3743 * configure: Regenerate.
3744
3745 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3746
3747 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3748 Bertazi".
3749
3750 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3751
3752 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3753 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3754 the list of sections determining GDB_OSABI_IRIX.
3755
3756 2014-09-09 James Hogan <james.hogan@imgtec.com>
3757
3758 * MAINTAINERS (Write After Approval): Add "James Hogan".
3759
3760 2014-09-09 James Hogan <james.hogan@imgtec.com>
3761
3762 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3763
3764 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3765
3766 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3767
3768 2014-09-08 Doug Evans <xdje42@gmail.com>
3769
3770 PR 17247
3771 * guile.c: #include <signal.h>.
3772 (_initialize_guile): Block SIGCHLD while initializing Guile.
3773
3774 Replaces the following, which is reverted.
3775
3776 2014-07-26 Doug Evans <xdje42@gmail.com>
3777
3778 PR 17185
3779 * configure.ac: Add check for header gc/gc.h.
3780 Add check for function setenv.
3781 * configure: Regenerate.
3782 * config.in: Regenerate.
3783 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3784
3785 2014-09-08 Doug Evans <xdje42@gmail.com>
3786
3787 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3788 with named constant. Fix style of pointer comparison.
3789 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3790
3791 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3792
3793 PR gdb/17035
3794 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3795 decide whether we display the command on "show user".
3796 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3797 printing command name.
3798 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3799 * cli/cli-decode.c (cli_user_command_p): Create helper function
3800 to verify whether cmd_list_element is a user-defined command.
3801
3802 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3803
3804 PR python/17355
3805 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3806 Fix goto out of TRY_CATCH.
3807
3808 2014-09-06 Doug Evans <xdje42@gmail.com>
3809 Tom Tromey <tromey@redhat.com>
3810
3811 PR 15276
3812 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3813 $_any_caller_matches.
3814 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3815 * python/lib/gdb/function/caller_is.py: New file.
3816
3817 2014-09-06 Doug Evans <xdje42@gmail.com>
3818
3819 * infcmd.c (program_info): Fix typo.
3820
3821 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3822
3823 PR gdb/17235
3824 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3825 'number'. New variable 'has_digit'. Rewrite code to deal with
3826 subexpressions on SDT probes.
3827
3828 2014-09-04 Pedro Alves <palves@redhat.com>
3829
3830 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3831 the input is only one character long.
3832
3833 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3834
3835 PR fortran/17237
3836 * f-valprint.c (f_val_print): Specify the correct print option to
3837 use when printing integer values.
3838
3839 2014-09-04 Gary Benson <gbenson@redhat.com>
3840
3841 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3842 Remove code to cope with LWPs wrapped as PIDs.
3843 Add assertions to ensure no wrapped LWPs are passed.
3844
3845 2014-09-04 Pedro Alves <palves@redhat.com>
3846
3847 * value.c (value_ranges_copy_adjusted): New function, factored out
3848 from ...
3849 (value_contents_copy_raw): ... here.
3850 (unpack_value_bits_as_long_1): Rename back to ...
3851 (unpack_bits_as_long): ... this. Remove 'original_value' and
3852 'result' parameters. Change return type to LONGEST.
3853 (unpack_value_bits_as_long): Delete.
3854 (unpack_value_field_as_long_1): Delete.
3855 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3856 (unpack_value_bitfield): New function.
3857 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3858 (value_fetch_lazy): Use unpack_value_bitfield.
3859 * value.h (unpack_value_bits_as_long): Delete declaration.
3860
3861 2014-09-03 Sasha Smundak <asmundak@google.com>
3862
3863 * python/py-frame.c (frapy_read_register): New function.
3864
3865 2014-09-03 James Hogan <james.hogan@imgtec.com>
3866
3867 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3868 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3869
3870 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3871
3872 PR python/16699
3873 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3874 function.
3875 (add_cmd): Set "completer_handle_brkchars" to NULL.
3876 * cli/cli-decode.h (struct cmd_list_element)
3877 <completer_handle_brkchars>: New field.
3878 * command.h (completer_ftype_void): New typedef.
3879 (set_cmd_completer_handle_brkchars): New prototype.
3880 * completer.c (set_gdb_completion_word_break_characters): New
3881 function.
3882 (complete_line_internal): Call "completer_handle_brkchars"
3883 callback from command.
3884 * completer.h: Include "command.h".
3885 (set_gdb_completion_word_break_characters): New prototype.
3886 * python/py-cmd.c (cmdpy_completer_helper): New function.
3887 (cmdpy_completer_handle_brkchars): New function.
3888 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3889 (cmdpy_init): Set completer_handle_brkchars to
3890 cmdpy_completer_handle_brkchars.
3891
3892 2014-09-03 Gary Benson <gbenson@redhat.com>
3893
3894 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3895 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3896 Loop conditions changed to equivalent form.
3897 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3898 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3899 ALL_DEBUG_ADDRESS_REGISTERS.
3900
3901 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3902
3903 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3904 description fix.
3905
3906 2014-09-02 Doug Evans <dje@google.com>
3907
3908 * typeprint.c (find_global_typedef): Fix comment.
3909
3910 2014-09-02 Gary Benson <gbenson@redhat.com>
3911
3912 * i386-nat.h: Renamed as...
3913 * x86-nat.h: New file. All type, function and variable name
3914 prefixes changed from "i386_" to "x86_". All references updated.
3915 * i386-nat.c: Renamed as...
3916 * x86-nat.c: New file. All type, function and variable name
3917 prefixes changed from "i386_" to "x86_". All references updated.
3918 * common/i386-xstate.h: Renamed as...
3919 * common/x86-xstate.h: New file. All type, function and variable
3920 name prefixes changed from "i386_" to "x86_". All references
3921 updated.
3922 * nat/i386-cpuid.h: Renamed as...
3923 * nat/x86-cpuid.h: New file. All type, function and variable name
3924 prefixes changed from "i386_" to "x86_". All references updated.
3925 * nat/i386-gcc-cpuid.h: Renamed as...
3926 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3927 name prefixes changed from "i386_" to "x86_". All references
3928 updated.
3929 * nat/i386-dregs.h: Renamed as...
3930 * nat/x86-dregs.h: New file. All type, function and variable name
3931 prefixes changed from "i386_" to "x86_". All references updated.
3932 * nat/i386-dregs.c: Renamed as...
3933 * nat/x86-dregs.c: New file. All type, function and variable name
3934 prefixes changed from "i386_" to "x86_". All references updated.
3935
3936 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3937
3938 * varobj.c (_initialize_varobj): Move to the end of file.
3939
3940 2014-08-29 Gary Benson <gbenson@redhat.com>
3941
3942 * common/common-exceptions.h: New file.
3943 * common/common-exceptions.c: Likewise.
3944 * Makefile.in (SFILES): Add common/common-exceptions.c.
3945 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3946 (COMMON_OBS): Add common-exceptions.o.
3947 (common-exceptions.o): New rule.
3948 * exceptions.h (common-exceptions.h): Include.
3949 (gdb_setjmp.h): Do not include.
3950 (return_reason): Moved to common-exceptions.h.
3951 (enum return_reason): Likewise.
3952 (RETURN_MASK): Likewise.
3953 (typedef return_mask): Likewise.
3954 (enum errors): Likewise.
3955 (struct gdb_exception): Likewise.
3956 (exceptions_state_mc_init): Likewise.
3957 (exceptions_state_mc_action_iter): Likewise.
3958 (exceptions_state_mc_action_iter_1): Likewise.
3959 (TRY_CATCH): Likewise.
3960 (throw_exception): Likewise.
3961 (throw_verror): Likewise.
3962 (throw_vquit): Likewise.
3963 (throw_error): Likewise.
3964 (throw_quit): Likewise.
3965 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3966 (enum catcher_action): Likewise.
3967 (struct catcher): Likewise.
3968 (current_catcher): Likewise.
3969 (catcher_list_size): Likewise.
3970 (exceptions_state_mc_init): Likewise.
3971 (catcher_pop): Likewise.
3972 (exceptions_state_mc): Likewise.
3973 (exceptions_state_mc_action_iter): Likewise.
3974 (exceptions_state_mc_action_iter_1): Likewise.
3975 (throw_exception): Likewise.
3976 (exception_messages): Likewise.
3977 (exception_messages_size): Likewise.
3978 (throw_it): Likewise.
3979 (throw_verror): Likewise.
3980 (throw_vquit): Likewise.
3981 (throw_error): Likewise.
3982 (throw_quit): Likewise.
3983 (prepare_to_throw_exception): New function.
3984
3985 2014-08-29 Gary Benson <gbenson@redhat.com>
3986
3987 * common/gdb_setjmp.h: New file.
3988 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3989 * configure.ac: Move sigsetjmp check...
3990 * common/common.m4: ...here.
3991 * configure: Regenerate.
3992 * cp-support.c (SIGJMP_BUF): Delete.
3993 (SIGSETJMP): Likewise.
3994 (SIGLONGJMP): Likewise.
3995 * exceptions.h (gdb_setjmp.h): Include.
3996 (setjmp.h): Do not include.
3997 (EXCEPTIONS_SIGJMP_BUF): Delete.
3998 (EXCEPTIONS_SIGSETJMP): Likewise.
3999 (EXCEPTIONS_SIGLONGJMP): Likewise.
4000 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4001 from gdb_setjmp.h.
4002 * exceptions.c: Likewise.
4003
4004 2014-08-29 Gary Benson <gbenson@redhat.com>
4005
4006 * cleanups.h: Moved to...
4007 * common/cleanups.h: New file.
4008 * cleanups.c: Moved to...
4009 * common/cleanups.c: New file. Include common-defs.h and
4010 cleanups.h. Do not include defs.h.
4011 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4012 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4013 (cleanups.o): New rule.
4014
4015 2014-08-29 Gary Benson <gbenson@redhat.com>
4016
4017 * common/errors.h (internal_warning): New declaration.
4018 (internal_vwarning): Likewise.
4019 * common/errors.c (internal_warning): New function.
4020 * utils.h (internal_warning): Don't declare.
4021 (internal_vwarning): Likewise.
4022 * utils.c (internal_warning): Removed.
4023
4024 2014-08-29 Gary Benson <gbenson@redhat.com>
4025
4026 * main.c (captured_main): Use warning during startup.
4027 Prefix startup warning messages with command name.
4028
4029 2014-08-29 Gary Benson <gbenson@redhat.com>
4030
4031 * main.c (captured_main): Handle usage errors with error.
4032
4033 2014-08-29 Gary Benson <gbenson@redhat.com>
4034
4035 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4036 exit pair with a call to error. Wrap the message with _().
4037
4038 2014-08-29 Gary Benson <gbenson@redhat.com>
4039
4040 * main.c (captured_main): Replace a fprintf/exit
4041 pair with a call to error. Wrap the message with _().
4042
4043 2014-08-29 Gary Benson <gbenson@redhat.com>
4044
4045 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4046 pairs with calls to error. Wrap the message with _().
4047
4048 2014-08-29 Gary Benson <gbenson@redhat.com>
4049
4050 * utils.c (vwarning): Protect calls to target_terminal_ours
4051 and wrap_here.
4052
4053 2014-08-29 Gary Benson <gbenson@redhat.com>
4054
4055 * exceptions.c (print_flush): Protect calls to
4056 target_terminal_ours and wrap_here.
4057
4058 2014-08-29 Gary Benson <gbenson@redhat.com>
4059
4060 * utils.h (filtered_printing_initialized): New declaration.
4061 * utils.c (abort_with_message): New function.
4062 (internal_vproblem): Use abort_with_message for first level
4063 recursive internal problems, and if gdb_stderr is not set up.
4064 Protect calls to target_terminal_ours, begin_line and query.
4065
4066 2014-08-28 Doug Evans <dje@google.com>
4067
4068 * symtab.c (in_prologue): Move definition to better spot.
4069 (skip_prologue_using_sal): Ditto.
4070
4071 2014-08-28 Doug Evans <dje@google.com>
4072
4073 * symtab.c (find_function_start_sal): Move definition to better spot.
4074
4075 2014-08-28 Yao Qi <yao@codesourcery.com>
4076
4077 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4078 found_stack_adjust in forward scan. Remove condition check
4079 on found_stack_adjust which is always true. Indent the code.
4080
4081 2014-08-28 Yao Qi <yao@codesourcery.com>
4082
4083 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4084 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4085 (dwarf_decode_lines): Remove argument
4086 want_line_info. Remove condition check on want_line_info.
4087 Callers update.
4088
4089 2014-08-27 Doug Evans <dje@google.com>
4090
4091 * dwarf2read.c (dwarf_record_line): Fix typo.
4092
4093 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4094
4095 * target.h (struct target_ops::to_terminal_save_ours): Remove
4096 declaration.
4097 (target_terminal_save_ours): Remove macro.
4098 * target-delegates.c: Regenerate.
4099 * inf-child.c (inf_child_target): Don't set the nonexistent
4100 field to_terminal_save_ours.
4101 * inferior.h (child_terminal_save_ours): Remove declaration.
4102 * terminal.h (gdb_save_tty_state): New declaration.
4103 * inflow.c (child_terminal_save_ours): Rename to ...
4104 (gdb_save_tty_state): ... this.
4105 * tui/tui.c: Include terminal.h.
4106 (tui_enable): Use gdb_save_tty_state instead of
4107 target_terminal_save_ours.
4108 (tui_disable): Likewise.
4109
4110 2014-08-25 Doug Evans <dje@google.com>
4111
4112 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4113 Pass NULL instead of 0 for context pointer.
4114
4115 2014-08-25 Yao Qi <yao@codesourcery.com>
4116
4117 * dwarf2read.c: Fix grammatical error.
4118
4119 2014-08-24 Yao Qi <yao@codesourcery.com>
4120
4121 * dwarf2read.c (scan_partial_symbols): Update comments.
4122 Rename argument 'need_pc' with 'set_addrmap'.
4123 (add_partial_namespace): Rename argument 'need_pc' with
4124 'set_addrmap'.
4125 (add_partial_module): Likewise.
4126 (add_partial_subprogram): Likewise. Update comments.
4127 (dwarf2_name): Fix typo.
4128
4129 2014-08-22 Doug Evans <dje@google.com>
4130
4131 PR 17276
4132 * dwarf2read.c (dwarf_record_line_p): New function.
4133 (dwarf_decode_lines_1): Ignore subsequent line number entries
4134 for the same line if any entry had a non-zero discriminator.
4135
4136 2014-08-22 Doug Evans <dje@google.com>
4137
4138 * buildsym.h (record_line_ftype): New typedef.
4139 (record_line): Use it.
4140 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4141 (dwarf_decode_lines_1): Call them.
4142
4143 2014-08-22 Yao Qi <yao@codesourcery.com>
4144
4145 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4146 (ctf_end): Remove code.
4147
4148 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4149
4150 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4151 (linux_make_corefile_notes): call update_thread_list, protected against
4152 exceptions.
4153
4154 2014-08-21 Pedro Alves <palves@redhat.com>
4155
4156 * infcmd.c (attach_command): Remove comment.
4157
4158 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4159
4160 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4161 unsigned LONGEST to ULONGEST.
4162
4163 2014-08-20 Pedro Alves <palves@redhat.com>
4164
4165 * Makefile.in (check-read1): New rule.
4166
4167 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4168
4169 * value.c (value_from_contents_and_address): Strip resolved_type's
4170 typedef layers before checking its TYPE_DATA_LOCATION.
4171
4172 2014-08-20 Pedro Alves <palves@redhat.com>
4173
4174 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4175
4176 2014-08-20 Yao Qi <yao@codesourcery.com>
4177
4178 * amd64-tdep.c (amd64_classify): Add a blank line after the
4179 example. Move "*/" to a new line.
4180 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4181 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4182 * dwarf2read.c (psymtab_include_file_name): Likewise.
4183
4184 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4185 Pedro Alves <palves@redhat.com>
4186
4187 PR symtab/14604
4188 PR symtab/14605
4189 * ada-lang.c (coerce_unspec_val_to_type): Use
4190 value_contents_copy_raw.
4191 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4192 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4193 * cp-valprint.c (cp_print_value_fields): Let the common printing
4194 code handle optimized out values.
4195 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4196 * d-valprint.c (dynamic_array_type): Use
4197 value_bits_any_optimized_out.
4198 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4199 check_any_valid fields.
4200 (check_pieced_value_bits): Delete and inline ...
4201 (check_pieced_synthetic_pointer): ... here.
4202 (check_pieced_value_validity): Delete.
4203 (check_pieced_value_invalid): Delete.
4204 (pieced_value_funcs): Remove check_validity and check_any_valid
4205 fields.
4206 (read_pieced_value): Use mark_value_bits_optimized_out.
4207 (write_pieced_value): Switch to use
4208 mark_value_bytes_optimized_out.
4209 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4210 of assuming the whole value is optimized out.
4211 * findvar.c (read_frame_register_value): Remove special handling
4212 of optimized out registers.
4213 (value_from_register): Use mark_value_bytes_optimized_out.
4214 * frame-unwind.c (frame_unwind_got_optimized): Use
4215 mark_value_bytes_optimized_out.
4216 * jv-valprint.c (java_value_print): Adjust.
4217 (java_print_value_fields): Let the common printing code handle
4218 optimized out values.
4219 * mips-tdep.c (mips_print_register): Remove special handling of
4220 optimized out registers.
4221 * opencl-lang.c (lval_func_check_validity): Delete.
4222 (lval_func_check_any_valid): Delete.
4223 (opencl_value_funcs): Remove check_validity and check_any_valid
4224 fields.
4225 * p-valprint.c (pascal_object_print_value_fields): Let the common
4226 printing code handle optimized out values.
4227 * stack.c (read_frame_arg): Remove special handling of optimized
4228 out values. Fetch both VAL and ENTRYVAL before comparing
4229 contents. Adjust to value_available_contents_eq rename.
4230 * valprint.c (valprint_check_validity)
4231 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4232 (val_print_array_elements): Adjust.
4233 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4234 (value_bits_any_optimized_out): New function.
4235 (value_entirely_covered_by_range_vector): New function, factored
4236 out from value_entirely_unavailable.
4237 (value_entirely_unavailable): Reimplement.
4238 (value_entirely_optimized_out): New function.
4239 (insert_into_bit_range_vector): New function, factored out from
4240 mark_value_bits_unavailable.
4241 (mark_value_bits_unavailable): Reimplement.
4242 (struct ranges_and_idx): New struct.
4243 (find_first_range_overlap_and_match): New function, factored out
4244 from value_available_contents_bits_eq.
4245 (value_available_contents_bits_eq): Rename to ...
4246 (value_contents_bits_eq): ... this. Check both unavailable
4247 contents and optimized out contents.
4248 (value_available_contents_eq): Rename to ...
4249 (value_contents_eq): ... this.
4250 (allocate_value_lazy): Remove reference to the old optimized_out
4251 boolean.
4252 (allocate_optimized_out_value): Use
4253 mark_value_bytes_optimized_out.
4254 (require_not_optimized_out): Adjust to check whether the
4255 optimized_out vec is empty.
4256 (ranges_copy_adjusted): New function, factored out from
4257 value_contents_copy_raw.
4258 (value_contents_copy_raw): Also copy the optimized out ranges.
4259 Assert the destination ranges aren't optimized out.
4260 (value_contents_copy): Update comment, remove call to
4261 require_not_optimized_out.
4262 (value_contents_equal): Adjust to check whether the optimized_out
4263 vec is empty.
4264 (set_value_optimized_out, value_optimized_out_const): Delete.
4265 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4266 New functions.
4267 (value_entirely_optimized_out, value_bits_valid): Delete.
4268 (value_copy): Take a VEC copy of the 'optimized_out' field.
4269 (value_primitive_field): Remove special handling of optimized out.
4270 (value_fetch_lazy): Assert that lazy values have no unavailable
4271 regions. Use value_bits_any_optimized_out. Remove some special
4272 handling for optimized out values.
4273 * value.h: Add intro comment about <optimized out> and
4274 <unavailable>.
4275 (struct lval_funcs): Remove check_validity and check_any_valid
4276 fields.
4277 (set_value_optimized_out, value_optimized_out_const): Remove.
4278 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4279 New declarations.
4280 (value_bits_any_optimized_out): New declaration.
4281 (value_bits_valid): Delete declaration.
4282 (value_available_contents_eq): Rename to ...
4283 (value_contents_eq): ... this, and extend comments.
4284
4285 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4286
4287 Fix -fsanitize=address on unreadable inferior strings.
4288 * valprint.c (val_print_string): Fix access before BUFFER.
4289
4290 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4291
4292 * target.c (target_struct_size): Remove.
4293 (target_struct_allocsize): Remove.
4294 (DEFAULT_ALLOCSIZE): Remove.
4295 (target_ops_p): New typedef.
4296 (DEF_VEC_P (target_ops_p)): New vector type.
4297 (target_structs): Change type to VEC (target_ops_p).
4298 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4299 (find_default_run_target): Rewrite for loop following changes to
4300 target_structs.
4301
4302 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4303
4304 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4305 Adjust code accordingly. Adjust function description comment.
4306
4307 2014-08-19 Yao Qi <yao@codesourcery.com>
4308
4309 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4310 types.
4311
4312 2014-08-19 Alan Modra <amodra@gmail.com>
4313
4314 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4315 * config.in: Regenerate.
4316 * configure: Regenerate.
4317
4318 2014-08-19 Tom Tromey <tromey@redhat.com>
4319 Gary Benson <gbenson@redhat.com>
4320
4321 * common/common-debug.h: New file.
4322 * common/common-debug.c: Likewise.
4323 * debug.c: Likewise.
4324 * Makefile.in (SFILES): Add common/common-debug.c.
4325 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4326 (COMMON_OBS): Add common-debug.o and debug.o.
4327 (common-debug.o): New rule.
4328 * common/common-defs.h: Include common-debug.h.
4329 * common/agent.c (debug_agent_printf): New function.
4330 (DEBUG_AGENT): Redefine.
4331 * nat/i386-dregs.c (debug_printf): Undefine.
4332
4333 2014-08-19 Gary Benson <gbenson@redhat.com>
4334
4335 * common/common-defs.h: Include print-utils.h.
4336 * utils.h: Do not include print-utils.h.
4337
4338 2014-08-19 Tom Tromey <tromey@redhat.com>
4339 Gary Benson <gbenson@redhat.com>
4340
4341 * common/common-types.h: New file.
4342 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4343 * common/common-defs.h: Include common-types.h.
4344 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4345 (ULONGEST): Remove.
4346
4347 2014-08-19 Tom Tromey <tromey@redhat.com>
4348 Gary Benson <gbenson@redhat.com>
4349
4350 * common/errors.h: New file.
4351 * common/errors.c: Likewise.
4352 * Makefile.in (SFILES): Add common/errors.c.
4353 (HFILES_NO_SRCDIR): Add common/errors.h.
4354 (COMMON_OBS): Add errors.o.
4355 (errors.o): New rule.
4356 * common/common-defs.h: Include errors.h.
4357 * utils.h (perror_with_name, error, verror, warning, vwarning):
4358 Don't declare.
4359 * common/common-utils.h: (malloc_failure, internal_error):
4360 Likewise.
4361
4362 2014-08-19 Gary Benson <gbenson@redhat.com>
4363
4364 * utils.c (internal_vproblem): Always print the message.
4365
4366 2014-08-18 Doug Evans <dje@google.com>
4367
4368 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4369
4370 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4371
4372 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4373 Return 0 if TYPE is dynamic.
4374 (print_range): Add handling of dynamic ranges.
4375
4376 2014-08-18 Keven Boell <keven.boell@intel.com>
4377 Joel Brobecker <brobecker@adacore.com>
4378
4379 * gdbtypes.h (struct main_type): Add field "data_location".
4380 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4381 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4382 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4383 a dynamic data location.
4384 (resolve_dynamic_type): Add DW_AT_data_location handling.
4385 (copy_recursive, copy_type): Copy the data_location information
4386 when present.
4387 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4388 * value.c (value_from_contents_and_address): Add
4389 DW_AT_data_location handling.
4390
4391 2014-08-18 Keven Boell <keven.boell@intel.com>
4392 Joel Brobecker <brobecker@adacore.com>
4393
4394 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4395 field "get_object_address".
4396 * dwarf2expr.c (execute_stack_op): Add handling for
4397 DW_OP_push_object_address.
4398 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4399 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4400 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4401 (dwarf_expr_get_obj_addr): New function.
4402 (dwarf_expr_ctx_funcs): Add get_object_address field.
4403 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4404 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4405 (dwarf2_evaluate_property): Add parameter "address". Use it.
4406 (needs_get_obj_addr): New function.
4407 (needs_frame_ctx_funcs): Add get_object_address field.
4408 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4409 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4410 (resolve_dynamic_array): Likewise.
4411
4412 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4413
4414 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4415 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4416 fixed value for records and unions for which some GNAT encodings
4417 are present.
4418
4419 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4420
4421 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4422 rewrite to avoid "else if" and "else" constructs. Should be
4423 a no-op in practice.
4424
4425 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4426
4427 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4428 of lexical block.
4429
4430 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4431
4432 PR c++/17132
4433 * eval.c: Update all calls to find_overload_match.
4434 * valarith.c: Likewise.
4435 (value_user_defined_cpp_op, value_user_defined_op): New
4436 argument NOSIDE. Update all callers.
4437 * valops.c (find_overload_match): New argument NOSIDE.
4438 * value.h (find_overload_match): Update signature.
4439
4440 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4441
4442 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4443 'items' methods instead of 'iteritems' method on dictionaries.
4444
4445 2014-08-15 Doug Evans <dje@google.com>
4446
4447 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4448 closer to use.
4449
4450 2014-08-15 Doug Evans <dje@google.com>
4451
4452 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4453
4454 2014-08-15 Doug Evans <dje@google.com>
4455
4456 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4457
4458 2014-08-15 Doug Evans <dje@google.com>
4459
4460 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4461 unused.
4462
4463 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4464
4465 * dcache.h: Include target.h, to avoid compile time warnings.
4466
4467 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4468
4469 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4470 frame_info" partial declaration.
4471 * gdbarch.h: Regenerate.
4472
4473 2014-08-15 Yao Qi <yao@codesourcery.com>
4474
4475 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4476 Add parameter 'decode_for_pst_p'. Callers update.
4477
4478 2014-08-13 Yao Qi <yao@codesourcery.com>
4479
4480 PR build/17104
4481 * configure.ac: Use local variable 'pos'.
4482 * configure: Regenerated.
4483
4484 2014-08-11 Doug Evans <dje@google.com>
4485
4486 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4487 message, it is redundant with "Reading symbols from ..." message.
4488
4489 2014-08-10 Doug Evans <xdje42@gmail.com>
4490
4491 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4492
4493 2014-08-09 Yao Qi <yao@codesourcery.com>
4494
4495 PR remote/9053
4496 * remote.c (remote_xfer_partial): Remove dead code.
4497
4498 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4499
4500 * ia64-linux-tdep.c: Include "regset.h".
4501 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4502 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4503 (ia64_linux_supply_fpregset): New function.
4504 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4505 (ia64_linux_regset_from_core_section): New function.
4506 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4507 method.
4508
4509 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4510
4511 * m68klinux-tdep.c: Include "regset.h".
4512 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4513 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4514 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4515 (m68k_linux_regset_from_core_section): New function.
4516 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4517 method.
4518
4519 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4520
4521 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4522 function. Move logic to...
4523 (tilegx_linux_regmap): ... this new register map.
4524 (tilegx_linux_regset): Refer to register map, replace supply
4525 method by regcache_supply_regset, and add collect method.
4526 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4527 TILEGX_FIRST_EASY_REGNUM.
4528
4529 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4530
4531 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4532 that calls regcache_supply_regset and handles the EPC register
4533 separately. Move main logic to...
4534 (score7_linux_gregmap): ... this new register map.
4535 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4536 (score7_linux_gregset): Refer to register map. Add collect method.
4537 (score7_linux_regset_from_core_section): Replace
4538 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4539 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4540 (struct regset): Delete unused forward declaraction.
4541 (struct pt_regs): Delete structure definition.
4542 (elf_gregset_t): Delete typedef.
4543
4544 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4545
4546 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4547 (nios2_core_regset): Add collect method.
4548
4549 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4550
4551 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4552 platform-independent and don't write to read-only input buffer.
4553 (m32r_linux_collect_gregset): New function.
4554 (m32r_linux_gregset): Add collect method.
4555
4556 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4557
4558 * hppa-linux-tdep.c (greg_map): Rename to...
4559 (hppa_linux_gregmap): ... this. Also convert to
4560 regcache_map_entry format.
4561 (hppa_linux_supply_regset): Delete function.
4562 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4563 (hppa_linux_fpregmap): ... this new register map.
4564 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4565 register map, replace supply method by regcache_supply_regset, and
4566 add collect method regcache_collect_regset.
4567
4568 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4569
4570 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4571 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4572 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4573 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4574 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4575 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4576 (frv_linux_supply_gregset): Replace main logic by call to
4577 regcache_supply_regset, but keep clearing gr32-gr63.
4578 (frv_linux_supply_fpregset): Delete function.
4579 (frv_linux_gregset): Refer to appropriate register map and add
4580 regcache_collect_regset as the collect method.
4581 (frv_linux_fpregset): Likewise. Also exchange the supply method
4582 by regcache_supply_regset.
4583
4584 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4585
4586 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4587 by call to alpha_supply_int_regs.
4588 (alpha_linux_collect_gregset): New function.
4589 (alpha_linux_supply_fpregset): Replace logic by call to
4590 alpha_supply_fp_regs.
4591 (alpha_linux_collect_fpregset): New function.
4592 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4593
4594 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4595
4596 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4597 by call to regcache_collect_regset.
4598 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4599 instead of aarch64_linux_supply_gregset/_fpregset.
4600 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4601 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4602 header file instead.
4603 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4604 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4605 functions. Move logic to ...
4606 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4607 register maps.
4608 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4609 refer to new register maps, replace *_regset_from_core by
4610 regcache_supply_regset, and also use regcache_collect_regset.
4611 * aarch64-linux-tdep.h: Include "regset.h".
4612 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4613 Delete prototypes.
4614 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4615 macros, moved from C source file.
4616 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4617 variable declarations.
4618
4619 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4620
4621 * s390-linux-nat.c: Include "regset.h".
4622 (regmap_gregset): Delete macro.
4623 (s390_64_regmap_gregset): New register map for
4624 regcache_supply/_collect_regset.
4625 (s390_64_gregset): New regset.
4626 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4627 (regmap_fpregset): Delete macro.
4628 (s390_native_supply, s390_native_collect): Delete functions.
4629 (supply_gregset, fill_gregset): Replace s390-specific regmap
4630 handling by a call to regcache_supply/_collect_regset.
4631 (supply_fpregset, fill_fpregset): Call regcache_supply/
4632 _collect_regset instead of s390_native_supply/_collect.
4633 (fetch_regset, store_regset): Likewise. Also change the last
4634 parameter to a regset instead of a regmap.
4635 (s390_linux_fetch_inferior_registers)
4636 (390_linux_store_inferior_registers): Adjust last parameter in
4637 calls to fetch_regset and store_regset.
4638 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4639 (s390_gregmap): ... this. Also make static const and convert to
4640 regcache_map_entry format.
4641 (s390x_regmap_gregset): Delete.
4642 (s390_regmap_fpregset): Rename to...
4643 (s390_fpregmap): ... this. Make static const and convert to
4644 regcache_map_entry format.
4645 (s390_regmap_upper, s390_regmap_last_break)
4646 (s390x_regmap_last_break, s390_regmap_system_call)
4647 (s390_regmap_tdb): Likewise.
4648 (s390_supply_regset, s390_collect_regset): Remove functions.
4649 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4650 s390_supply_regset.
4651 (s390_gregset, s390_fpregset, s390_upper_regset)
4652 (s390_last_break_regset, s390x_last_break_regset)
4653 (s390_system_call_regset, s390_tdb_regset): Make global and
4654 replace s390_supply/_collect_regset by regcache_supply/
4655 _collect_regset.
4656 (s390x_gregset): Delete.
4657 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4658 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4659 (s390_regmap_fpregset, s390_regmap_last_break)
4660 (s390x_regmap_last_break, s390_regmap_system_call)
4661 (s390_regmap_tdb): Delete global variable declarations.
4662 (s390_gregset, s390_fpregset, s390_last_break_regset)
4663 (s390x_last_break_regset, s390_system_call_regset)
4664 (s390_tdb_regset): New global variable declarations.
4665
4666 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4667
4668 * regcache.c: Include "regset.h".
4669 (regcache_transfer_regset): New local function.
4670 (regcache_supply_regset, regcache_collect_regset): New functions.
4671 * regcache.h (struct regcache_map_entry): New structure.
4672 (REGCACHE_MAP_SKIP): New enum value.
4673 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4674
4675 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4676
4677 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4678 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4679 (ppc_linux_collect_gregset ): Likewise.
4680 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4681 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4682 (ppc_collect_vrregset): Likewise.
4683 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4684 Likewise.
4685
4686 2014-08-07 Yao Qi <yao@codesourcery.com>
4687
4688 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4689 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4690 * remote.c (remote_read_bytes): Likewise.
4691
4692 2014-08-07 Yao Qi <yao@codesourcery.com>
4693
4694 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4695
4696 2014-08-07 Yao Qi <yao@codesourcery.com>
4697
4698 PR remote/17230
4699 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4700 TARGET_XFER_OK instead of 0.
4701
4702 2014-08-07 Gary Benson <gbenson@redhat.com>
4703
4704 * common/common-defs.h: Include errno.h.
4705 * defs.h: Do not include errno.h.
4706 * ada-typeprint.c: Likewise.
4707 * c-typeprint.c: Likewise.
4708 * core-regset.c: Likewise.
4709 * corefile.c: Likewise.
4710 * corelow.c: Likewise.
4711 * event-loop.c: Likewise.
4712 * f-typeprint.c: Likewise.
4713 * gnu-nat.c: Likewise.
4714 * go32-nat.c: Likewise.
4715 * i386gnu-nat.c: Likewise.
4716 * m2-typeprint.c: Likewise.
4717 * nat/linux-btrace.c: Likewise.
4718 * p-typeprint.c: Likewise.
4719 * procfs.c: Likewise.
4720 * remote-sim.c: Likewise.
4721 * rs6000-nat.c: Likewise.
4722 * target.c: Likewise.
4723 * typeprint.c: Likewise.
4724 * ui-file.c: Likewise.
4725 * valops.c: Likewise.
4726 * valprint.c: Likewise.
4727
4728 2014-08-07 Gary Benson <gbenson@redhat.com>
4729
4730 * common/common-defs.h: Include string.h.
4731 * aarch64-tdep.c: Do not include string.h.
4732 * ada-exp.y: Likewise.
4733 * ada-lang.c: Likewise.
4734 * ada-lex.l: Likewise.
4735 * ada-typeprint.c: Likewise.
4736 * ada-valprint.c: Likewise.
4737 * aix-thread.c: Likewise.
4738 * alpha-linux-tdep.c: Likewise.
4739 * alpha-mdebug-tdep.c: Likewise.
4740 * alpha-nat.c: Likewise.
4741 * alpha-osf1-tdep.c: Likewise.
4742 * alpha-tdep.c: Likewise.
4743 * alphanbsd-tdep.c: Likewise.
4744 * amd64-dicos-tdep.c: Likewise.
4745 * amd64-linux-tdep.c: Likewise.
4746 * amd64-nat.c: Likewise.
4747 * amd64-sol2-tdep.c: Likewise.
4748 * amd64fbsd-tdep.c: Likewise.
4749 * amd64obsd-tdep.c: Likewise.
4750 * arch-utils.c: Likewise.
4751 * arm-linux-nat.c: Likewise.
4752 * arm-linux-tdep.c: Likewise.
4753 * arm-tdep.c: Likewise.
4754 * arm-wince-tdep.c: Likewise.
4755 * armbsd-tdep.c: Likewise.
4756 * armnbsd-nat.c: Likewise.
4757 * armnbsd-tdep.c: Likewise.
4758 * armobsd-tdep.c: Likewise.
4759 * avr-tdep.c: Likewise.
4760 * ax-gdb.c: Likewise.
4761 * ax-general.c: Likewise.
4762 * bcache.c: Likewise.
4763 * bfin-tdep.c: Likewise.
4764 * breakpoint.c: Likewise.
4765 * build-id.c: Likewise.
4766 * buildsym.c: Likewise.
4767 * c-exp.y: Likewise.
4768 * c-lang.c: Likewise.
4769 * c-typeprint.c: Likewise.
4770 * c-valprint.c: Likewise.
4771 * charset.c: Likewise.
4772 * cli-out.c: Likewise.
4773 * cli/cli-cmds.c: Likewise.
4774 * cli/cli-decode.c: Likewise.
4775 * cli/cli-dump.c: Likewise.
4776 * cli/cli-interp.c: Likewise.
4777 * cli/cli-logging.c: Likewise.
4778 * cli/cli-script.c: Likewise.
4779 * cli/cli-setshow.c: Likewise.
4780 * cli/cli-utils.c: Likewise.
4781 * coffread.c: Likewise.
4782 * common/agent.c: Likewise.
4783 * common/buffer.c: Likewise.
4784 * common/buffer.h: Likewise.
4785 * common/common-utils.c: Likewise.
4786 * common/filestuff.c: Likewise.
4787 * common/filestuff.c: Likewise.
4788 * common/format.c: Likewise.
4789 * common/print-utils.c: Likewise.
4790 * common/rsp-low.c: Likewise.
4791 * common/signals.c: Likewise.
4792 * common/vec.h: Likewise.
4793 * common/xml-utils.c: Likewise.
4794 * core-regset.c: Likewise.
4795 * corefile.c: Likewise.
4796 * corelow.c: Likewise.
4797 * cp-abi.c: Likewise.
4798 * cp-name-parser.y: Likewise.
4799 * cp-support.c: Likewise.
4800 * cp-valprint.c: Likewise.
4801 * cris-tdep.c: Likewise.
4802 * d-exp.y: Likewise.
4803 * darwin-nat.c: Likewise.
4804 * dbxread.c: Likewise.
4805 * dcache.c: Likewise.
4806 * demangle.c: Likewise.
4807 * dicos-tdep.c: Likewise.
4808 * disasm.c: Likewise.
4809 * doublest.c: Likewise.
4810 * dsrec.c: Likewise.
4811 * dummy-frame.c: Likewise.
4812 * dwarf2-frame.c: Likewise.
4813 * dwarf2loc.c: Likewise.
4814 * dwarf2read.c: Likewise.
4815 * elfread.c: Likewise.
4816 * environ.c: Likewise.
4817 * eval.c: Likewise.
4818 * event-loop.c: Likewise.
4819 * exceptions.c: Likewise.
4820 * exec.c: Likewise.
4821 * expprint.c: Likewise.
4822 * f-exp.y: Likewise.
4823 * f-lang.c: Likewise.
4824 * f-typeprint.c: Likewise.
4825 * f-valprint.c: Likewise.
4826 * fbsd-nat.c: Likewise.
4827 * findcmd.c: Likewise.
4828 * findvar.c: Likewise.
4829 * fork-child.c: Likewise.
4830 * frame.c: Likewise.
4831 * frv-linux-tdep.c: Likewise.
4832 * frv-tdep.c: Likewise.
4833 * gdb.c: Likewise.
4834 * gdb_bfd.c: Likewise.
4835 * gdbarch.c: Likewise.
4836 * gdbarch.sh: Likewise.
4837 * gdbtypes.c: Likewise.
4838 * gnu-nat.c: Likewise.
4839 * gnu-v2-abi.c: Likewise.
4840 * gnu-v3-abi.c: Likewise.
4841 * go-exp.y: Likewise.
4842 * go-lang.c: Likewise.
4843 * go32-nat.c: Likewise.
4844 * guile/guile.c: Likewise.
4845 * guile/scm-auto-load.c: Likewise.
4846 * hppa-hpux-tdep.c: Likewise.
4847 * hppa-linux-nat.c: Likewise.
4848 * hppanbsd-tdep.c: Likewise.
4849 * hppaobsd-tdep.c: Likewise.
4850 * i386-cygwin-tdep.c: Likewise.
4851 * i386-dicos-tdep.c: Likewise.
4852 * i386-linux-tdep.c: Likewise.
4853 * i386-nto-tdep.c: Likewise.
4854 * i386-sol2-tdep.c: Likewise.
4855 * i386-tdep.c: Likewise.
4856 * i386bsd-tdep.c: Likewise.
4857 * i386gnu-nat.c: Likewise.
4858 * i386nbsd-tdep.c: Likewise.
4859 * i386obsd-tdep.c: Likewise.
4860 * i387-tdep.c: Likewise.
4861 * ia64-libunwind-tdep.c: Likewise.
4862 * ia64-linux-nat.c: Likewise.
4863 * inf-child.c: Likewise.
4864 * inf-ptrace.c: Likewise.
4865 * inf-ttrace.c: Likewise.
4866 * infcall.c: Likewise.
4867 * infcmd.c: Likewise.
4868 * inflow.c: Likewise.
4869 * infrun.c: Likewise.
4870 * interps.c: Likewise.
4871 * iq2000-tdep.c: Likewise.
4872 * irix5-nat.c: Likewise.
4873 * jv-exp.y: Likewise.
4874 * jv-lang.c: Likewise.
4875 * jv-typeprint.c: Likewise.
4876 * jv-valprint.c: Likewise.
4877 * language.c: Likewise.
4878 * linux-fork.c: Likewise.
4879 * linux-nat.c: Likewise.
4880 * lm32-tdep.c: Likewise.
4881 * m2-exp.y: Likewise.
4882 * m2-typeprint.c: Likewise.
4883 * m32c-tdep.c: Likewise.
4884 * m32r-linux-nat.c: Likewise.
4885 * m32r-linux-tdep.c: Likewise.
4886 * m32r-rom.c: Likewise.
4887 * m32r-tdep.c: Likewise.
4888 * m68hc11-tdep.c: Likewise.
4889 * m68k-tdep.c: Likewise.
4890 * m68kbsd-tdep.c: Likewise.
4891 * m68klinux-nat.c: Likewise.
4892 * m68klinux-tdep.c: Likewise.
4893 * m88k-tdep.c: Likewise.
4894 * machoread.c: Likewise.
4895 * macrocmd.c: Likewise.
4896 * main.c: Likewise.
4897 * mdebugread.c: Likewise.
4898 * mem-break.c: Likewise.
4899 * memattr.c: Likewise.
4900 * memory-map.c: Likewise.
4901 * mep-tdep.c: Likewise.
4902 * mi/mi-cmd-break.c: Likewise.
4903 * mi/mi-cmd-disas.c: Likewise.
4904 * mi/mi-cmd-env.c: Likewise.
4905 * mi/mi-cmd-stack.c: Likewise.
4906 * mi/mi-cmd-var.c: Likewise.
4907 * mi/mi-cmds.c: Likewise.
4908 * mi/mi-console.c: Likewise.
4909 * mi/mi-getopt.c: Likewise.
4910 * mi/mi-interp.c: Likewise.
4911 * mi/mi-main.c: Likewise.
4912 * mi/mi-parse.c: Likewise.
4913 * microblaze-rom.c: Likewise.
4914 * microblaze-tdep.c: Likewise.
4915 * mingw-hdep.c: Likewise.
4916 * minidebug.c: Likewise.
4917 * minsyms.c: Likewise.
4918 * mips-irix-tdep.c: Likewise.
4919 * mips-linux-tdep.c: Likewise.
4920 * mips-tdep.c: Likewise.
4921 * mips64obsd-tdep.c: Likewise.
4922 * mipsnbsd-tdep.c: Likewise.
4923 * mipsread.c: Likewise.
4924 * mn10300-linux-tdep.c: Likewise.
4925 * mn10300-tdep.c: Likewise.
4926 * monitor.c: Likewise.
4927 * moxie-tdep.c: Likewise.
4928 * mt-tdep.c: Likewise.
4929 * nat/linux-btrace.c: Likewise.
4930 * nat/linux-osdata.c: Likewise.
4931 * nat/linux-procfs.c: Likewise.
4932 * nat/linux-ptrace.c: Likewise.
4933 * nat/linux-waitpid.c: Likewise.
4934 * nbsd-tdep.c: Likewise.
4935 * nios2-linux-tdep.c: Likewise.
4936 * nto-procfs.c: Likewise.
4937 * nto-tdep.c: Likewise.
4938 * objc-lang.c: Likewise.
4939 * objfiles.c: Likewise.
4940 * opencl-lang.c: Likewise.
4941 * osabi.c: Likewise.
4942 * osdata.c: Likewise.
4943 * p-exp.y: Likewise.
4944 * p-lang.c: Likewise.
4945 * p-typeprint.c: Likewise.
4946 * parse.c: Likewise.
4947 * posix-hdep.c: Likewise.
4948 * ppc-linux-nat.c: Likewise.
4949 * ppc-sysv-tdep.c: Likewise.
4950 * ppcfbsd-tdep.c: Likewise.
4951 * ppcnbsd-tdep.c: Likewise.
4952 * ppcobsd-tdep.c: Likewise.
4953 * printcmd.c: Likewise.
4954 * procfs.c: Likewise.
4955 * prologue-value.c: Likewise.
4956 * python/py-auto-load.c: Likewise.
4957 * python/py-gdb-readline.c: Likewise.
4958 * ravenscar-thread.c: Likewise.
4959 * regcache.c: Likewise.
4960 * registry.c: Likewise.
4961 * remote-fileio.c: Likewise.
4962 * remote-m32r-sdi.c: Likewise.
4963 * remote-mips.c: Likewise.
4964 * remote-notif.c: Likewise.
4965 * remote-sim.c: Likewise.
4966 * remote.c: Likewise.
4967 * reverse.c: Likewise.
4968 * rs6000-aix-tdep.c: Likewise.
4969 * ser-base.c: Likewise.
4970 * ser-go32.c: Likewise.
4971 * ser-mingw.c: Likewise.
4972 * ser-pipe.c: Likewise.
4973 * ser-tcp.c: Likewise.
4974 * ser-unix.c: Likewise.
4975 * serial.c: Likewise.
4976 * sh-tdep.c: Likewise.
4977 * sh64-tdep.c: Likewise.
4978 * shnbsd-tdep.c: Likewise.
4979 * skip.c: Likewise.
4980 * sol-thread.c: Likewise.
4981 * solib-dsbt.c: Likewise.
4982 * solib-frv.c: Likewise.
4983 * solib-osf.c: Likewise.
4984 * solib-som.c: Likewise.
4985 * solib-spu.c: Likewise.
4986 * solib-target.c: Likewise.
4987 * solib.c: Likewise.
4988 * somread.c: Likewise.
4989 * source.c: Likewise.
4990 * sparc-nat.c: Likewise.
4991 * sparc-sol2-tdep.c: Likewise.
4992 * sparc-tdep.c: Likewise.
4993 * sparc64-tdep.c: Likewise.
4994 * sparc64fbsd-tdep.c: Likewise.
4995 * sparc64nbsd-tdep.c: Likewise.
4996 * sparcnbsd-tdep.c: Likewise.
4997 * spu-linux-nat.c: Likewise.
4998 * spu-multiarch.c: Likewise.
4999 * spu-tdep.c: Likewise.
5000 * stabsread.c: Likewise.
5001 * stack.c: Likewise.
5002 * std-regs.c: Likewise.
5003 * symfile.c: Likewise.
5004 * symmisc.c: Likewise.
5005 * symtab.c: Likewise.
5006 * target.c: Likewise.
5007 * thread.c: Likewise.
5008 * tilegx-linux-nat.c: Likewise.
5009 * tilegx-tdep.c: Likewise.
5010 * top.c: Likewise.
5011 * tracepoint.c: Likewise.
5012 * tui/tui-command.c: Likewise.
5013 * tui/tui-data.c: Likewise.
5014 * tui/tui-disasm.c: Likewise.
5015 * tui/tui-file.c: Likewise.
5016 * tui/tui-layout.c: Likewise.
5017 * tui/tui-out.c: Likewise.
5018 * tui/tui-regs.c: Likewise.
5019 * tui/tui-source.c: Likewise.
5020 * tui/tui-stack.c: Likewise.
5021 * tui/tui-win.c: Likewise.
5022 * tui/tui-windata.c: Likewise.
5023 * tui/tui-winsource.c: Likewise.
5024 * typeprint.c: Likewise.
5025 * ui-file.c: Likewise.
5026 * ui-out.c: Likewise.
5027 * user-regs.c: Likewise.
5028 * utils.c: Likewise.
5029 * v850-tdep.c: Likewise.
5030 * valarith.c: Likewise.
5031 * valops.c: Likewise.
5032 * valprint.c: Likewise.
5033 * value.c: Likewise.
5034 * varobj.c: Likewise.
5035 * vax-tdep.c: Likewise.
5036 * vaxnbsd-tdep.c: Likewise.
5037 * vaxobsd-tdep.c: Likewise.
5038 * windows-nat.c: Likewise.
5039 * xcoffread.c: Likewise.
5040 * xml-support.c: Likewise.
5041 * xstormy16-tdep.c: Likewise.
5042 * xtensa-linux-nat.c: Likewise.
5043
5044 2014-08-07 Gary Benson <gbenson@redhat.com>
5045
5046 * common/common-defs.h: Include gdb_assert.h.
5047 * aarch64-tdep.c: Do not include gdb_assert.h.
5048 * addrmap.c: Likewise.
5049 * aix-thread.c: Likewise.
5050 * alpha-linux-tdep.c: Likewise.
5051 * alpha-mdebug-tdep.c: Likewise.
5052 * alphanbsd-tdep.c: Likewise.
5053 * amd64-nat.c: Likewise.
5054 * amd64-tdep.c: Likewise.
5055 * amd64bsd-nat.c: Likewise.
5056 * amd64fbsd-nat.c: Likewise.
5057 * amd64fbsd-tdep.c: Likewise.
5058 * amd64nbsd-nat.c: Likewise.
5059 * amd64nbsd-tdep.c: Likewise.
5060 * amd64obsd-nat.c: Likewise.
5061 * amd64obsd-tdep.c: Likewise.
5062 * arch-utils.c: Likewise.
5063 * arm-tdep.c: Likewise.
5064 * armbsd-tdep.c: Likewise.
5065 * auxv.c: Likewise.
5066 * bcache.c: Likewise.
5067 * bfin-tdep.c: Likewise.
5068 * blockframe.c: Likewise.
5069 * breakpoint.c: Likewise.
5070 * bsd-kvm.c: Likewise.
5071 * bsd-uthread.c: Likewise.
5072 * buildsym.c: Likewise.
5073 * c-exp.y: Likewise.
5074 * c-lang.c: Likewise.
5075 * charset.c: Likewise.
5076 * cleanups.c: Likewise.
5077 * cli-out.c: Likewise.
5078 * cli/cli-decode.c: Likewise.
5079 * cli/cli-dump.c: Likewise.
5080 * cli/cli-logging.c: Likewise.
5081 * cli/cli-script.c: Likewise.
5082 * cli/cli-utils.c: Likewise.
5083 * coffread.c: Likewise.
5084 * common/common-utils.c: Likewise.
5085 * common/queue.h: Likewise.
5086 * common/signals.c: Likewise.
5087 * common/vec.h: Likewise.
5088 * complaints.c: Likewise.
5089 * completer.c: Likewise.
5090 * corelow.c: Likewise.
5091 * cp-abi.c: Likewise.
5092 * cp-name-parser.y: Likewise.
5093 * cp-namespace.c: Likewise.
5094 * cp-support.c: Likewise.
5095 * cris-tdep.c: Likewise.
5096 * dbxread.c: Likewise.
5097 * dictionary.c: Likewise.
5098 * doublest.c: Likewise.
5099 * dsrec.c: Likewise.
5100 * dummy-frame.c: Likewise.
5101 * dwarf2-frame-tailcall.c: Likewise.
5102 * dwarf2-frame.c: Likewise.
5103 * dwarf2expr.c: Likewise.
5104 * dwarf2loc.c: Likewise.
5105 * dwarf2read.c: Likewise.
5106 * eval.c: Likewise.
5107 * event-loop.c: Likewise.
5108 * exceptions.c: Likewise.
5109 * expprint.c: Likewise.
5110 * f-valprint.c: Likewise.
5111 * fbsd-nat.c: Likewise.
5112 * findvar.c: Likewise.
5113 * frame-unwind.c: Likewise.
5114 * frame.c: Likewise.
5115 * frv-tdep.c: Likewise.
5116 * gcore.c: Likewise.
5117 * gdb-dlfcn.c: Likewise.
5118 * gdb_bfd.c: Likewise.
5119 * gdbarch.c: Likewise.
5120 * gdbarch.sh: Likewise.
5121 * gdbtypes.c: Likewise.
5122 * gnu-nat.c: Likewise.
5123 * gnu-v3-abi.c: Likewise.
5124 * go-lang.c: Likewise.
5125 * guile/scm-exception.c: Likewise.
5126 * guile/scm-gsmob.c: Likewise.
5127 * guile/scm-lazy-string.c: Likewise.
5128 * guile/scm-math.c: Likewise.
5129 * guile/scm-pretty-print.c: Likewise.
5130 * guile/scm-safe-call.c: Likewise.
5131 * guile/scm-utils.c: Likewise.
5132 * guile/scm-value.c: Likewise.
5133 * h8300-tdep.c: Likewise.
5134 * hppa-hpux-nat.c: Likewise.
5135 * hppa-tdep.c: Likewise.
5136 * hppanbsd-tdep.c: Likewise.
5137 * hppaobsd-tdep.c: Likewise.
5138 * i386-darwin-nat.c: Likewise.
5139 * i386-darwin-tdep.c: Likewise.
5140 * i386-nto-tdep.c: Likewise.
5141 * i386-tdep.c: Likewise.
5142 * i386bsd-nat.c: Likewise.
5143 * i386fbsd-tdep.c: Likewise.
5144 * i386gnu-nat.c: Likewise.
5145 * i386nbsd-tdep.c: Likewise.
5146 * i386obsd-tdep.c: Likewise.
5147 * i387-tdep.c: Likewise.
5148 * ia64-libunwind-tdep.c: Likewise.
5149 * ia64-tdep.c: Likewise.
5150 * inf-ptrace.c: Likewise.
5151 * inf-ttrace.c: Likewise.
5152 * infcall.c: Likewise.
5153 * infcmd.c: Likewise.
5154 * infrun.c: Likewise.
5155 * inline-frame.c: Likewise.
5156 * interps.c: Likewise.
5157 * jv-lang.c: Likewise.
5158 * jv-typeprint.c: Likewise.
5159 * linux-fork.c: Likewise.
5160 * linux-nat.c: Likewise.
5161 * linux-thread-db.c: Likewise.
5162 * m32c-tdep.c: Likewise.
5163 * m32r-linux-nat.c: Likewise.
5164 * m32r-tdep.c: Likewise.
5165 * m68k-tdep.c: Likewise.
5166 * m68kbsd-nat.c: Likewise.
5167 * m68kbsd-tdep.c: Likewise.
5168 * m88k-tdep.c: Likewise.
5169 * machoread.c: Likewise.
5170 * macroexp.c: Likewise.
5171 * macrotab.c: Likewise.
5172 * maint.c: Likewise.
5173 * mdebugread.c: Likewise.
5174 * memory-map.c: Likewise.
5175 * mep-tdep.c: Likewise.
5176 * mi/mi-common.c: Likewise.
5177 * microblaze-tdep.c: Likewise.
5178 * mingw-hdep.c: Likewise.
5179 * mips-linux-nat.c: Likewise.
5180 * mips-linux-tdep.c: Likewise.
5181 * mips-tdep.c: Likewise.
5182 * mips64obsd-tdep.c: Likewise.
5183 * mipsnbsd-tdep.c: Likewise.
5184 * mn10300-linux-tdep.c: Likewise.
5185 * mn10300-tdep.c: Likewise.
5186 * moxie-tdep.c: Likewise.
5187 * mt-tdep.c: Likewise.
5188 * nat/linux-btrace.c: Likewise.
5189 * nat/linux-osdata.c: Likewise.
5190 * nat/linux-ptrace.c: Likewise.
5191 * nat/mips-linux-watch.c: Likewise.
5192 * nios2-linux-tdep.c: Likewise.
5193 * nios2-tdep.c: Likewise.
5194 * objc-lang.c: Likewise.
5195 * objfiles.c: Likewise.
5196 * obsd-nat.c: Likewise.
5197 * opencl-lang.c: Likewise.
5198 * osabi.c: Likewise.
5199 * parse.c: Likewise.
5200 * ppc-linux-nat.c: Likewise.
5201 * ppc-sysv-tdep.c: Likewise.
5202 * ppcfbsd-nat.c: Likewise.
5203 * ppcfbsd-tdep.c: Likewise.
5204 * ppcnbsd-nat.c: Likewise.
5205 * ppcnbsd-tdep.c: Likewise.
5206 * ppcobsd-nat.c: Likewise.
5207 * ppcobsd-tdep.c: Likewise.
5208 * printcmd.c: Likewise.
5209 * procfs.c: Likewise.
5210 * prologue-value.c: Likewise.
5211 * psymtab.c: Likewise.
5212 * python/py-lazy-string.c: Likewise.
5213 * python/py-value.c: Likewise.
5214 * regcache.c: Likewise.
5215 * reggroups.c: Likewise.
5216 * registry.c: Likewise.
5217 * remote-sim.c: Likewise.
5218 * remote.c: Likewise.
5219 * rs6000-aix-tdep.c: Likewise.
5220 * rs6000-tdep.c: Likewise.
5221 * s390-linux-tdep.c: Likewise.
5222 * score-tdep.c: Likewise.
5223 * ser-base.c: Likewise.
5224 * ser-mingw.c: Likewise.
5225 * sh-tdep.c: Likewise.
5226 * sh64-tdep.c: Likewise.
5227 * solib-darwin.c: Likewise.
5228 * solib-spu.c: Likewise.
5229 * solib-svr4.c: Likewise.
5230 * source.c: Likewise.
5231 * sparc-nat.c: Likewise.
5232 * sparc-sol2-tdep.c: Likewise.
5233 * sparc-tdep.c: Likewise.
5234 * sparc64-sol2-tdep.c: Likewise.
5235 * sparc64-tdep.c: Likewise.
5236 * sparc64fbsd-tdep.c: Likewise.
5237 * sparc64nbsd-tdep.c: Likewise.
5238 * sparc64obsd-tdep.c: Likewise.
5239 * sparcnbsd-tdep.c: Likewise.
5240 * sparcobsd-tdep.c: Likewise.
5241 * spu-multiarch.c: Likewise.
5242 * spu-tdep.c: Likewise.
5243 * stabsread.c: Likewise.
5244 * stack.c: Likewise.
5245 * symfile.c: Likewise.
5246 * symtab.c: Likewise.
5247 * target-descriptions.c: Likewise.
5248 * target-memory.c: Likewise.
5249 * target.c: Likewise.
5250 * tic6x-linux-tdep.c: Likewise.
5251 * tic6x-tdep.c: Likewise.
5252 * tilegx-linux-nat.c: Likewise.
5253 * tilegx-tdep.c: Likewise.
5254 * top.c: Likewise.
5255 * tramp-frame.c: Likewise.
5256 * tui/tui-out.c: Likewise.
5257 * tui/tui-winsource.c: Likewise.
5258 * ui-out.c: Likewise.
5259 * user-regs.c: Likewise.
5260 * utils.c: Likewise.
5261 * v850-tdep.c: Likewise.
5262 * valops.c: Likewise.
5263 * value.c: Likewise.
5264 * varobj.c: Likewise.
5265 * vax-nat.c: Likewise.
5266 * xml-syscall.c: Likewise.
5267 * xml-tdesc.c: Likewise.
5268 * xstormy16-tdep.c: Likewise.
5269 * xtensa-linux-nat.c: Likewise.
5270 * xtensa-tdep.c: Likewise.
5271
5272 2014-08-07 Gary Benson <gbenson@redhat.com>
5273
5274 * common/common-defs.h: Include common-utils.h.
5275 * defs.h: Do not include common-utils.h.
5276 * common/gdb_assert.h: Likewise.
5277 * darwin-nat.h: Likewise.
5278 * nat/linux-btrace.c: Likewise.
5279 * target/waitstatus.h: Likewise.
5280
5281 2014-08-07 Gary Benson <gbenson@redhat.com>
5282
5283 * common/common-defs.h: Include ptid.h.
5284 * defs.h: Do not include ptid.h.
5285 * inferior.h: Likewise.
5286 * infrun.h: Likewise.
5287 * nat/linux-btrace.h: Likewise.
5288 * nat/linux-osdata.h: Likewise.
5289 * target/waitstatus.h: Likewise.
5290
5291 2014-08-07 Gary Benson <gbenson@redhat.com>
5292
5293 * common/common-defs.h: Include gdb_locale.h.
5294 * defs.h: Do not include gdb_locale.h.
5295
5296 2014-08-07 Gary Benson <gbenson@redhat.com>
5297
5298 * common/common-defs.h: Include gdb/signals.h.
5299 * defs.h: Do not include gdb/signals.h.
5300
5301 2014-08-07 Gary Benson <gbenson@redhat.com>
5302
5303 * common/common-defs.h: Include pathmax.h.
5304 * defs.h: Do not include pathmax.h.
5305
5306 2014-08-07 Gary Benson <gbenson@redhat.com>
5307
5308 * common/common-defs.h: Include libiberty.h.
5309 * defs.h: Do not include libiberty.h.
5310 * common/queue.h: Likewise.
5311 * cp-name-parser.y: Likewise.
5312 * mi/mi-cmd-catch.c: Likewise.
5313 * python/python.c: Likewise.
5314
5315 2014-08-07 Gary Benson <gbenson@redhat.com>
5316
5317 * common/common-defs.h: Include ansidecl.h.
5318 * defs.h: Do not include ansidecl.h.
5319 * common/buffer.h: Likewise.
5320 * common/common-utils.h: Likewise.
5321
5322 2014-08-07 Gary Benson <gbenson@redhat.com>
5323
5324 * common/common-defs.h: Include stddef.h.
5325 * defs.h: Do not include stddef.h.
5326 * common/common-utils.h: Likewise.
5327 * amd64fbsd-nat.c: Likewise.
5328 * bcache.c: Likewise.
5329 * charset.c: Likewise.
5330 * common/buffer.h: Likewise.
5331 * common/vec.h: Likewise.
5332 * i386bsd-nat.c: Likewise.
5333 * nat/linux-btrace.h: Likewise.
5334 * ppcfbsd-nat.c: Likewise.
5335 * ppcnbsd-tdep.h: Likewise.
5336 * ppcobsd-nat.c: Likewise.
5337 * ppcobsd-tdep.h: Likewise.
5338 * python/py-gdb-readline.c: Likewise.
5339
5340 2014-08-07 Gary Benson <gbenson@redhat.com>
5341
5342 * common/common-defs.h: Include stdarg.h.
5343 * defs.h: Do not include stdarg.h.
5344 * ada-lang.c: Likewise.
5345 * common/common-utils.h: Likewise.
5346 * guile/scm-string.c: Likewise.
5347 * guile/scm-utils.c: Likewise.
5348 * m32c-tdep.c: Likewise.
5349
5350 2014-08-07 Gary Benson <gbenson@redhat.com>
5351
5352 * common/common-defs.h: Include stdlib.h.
5353 * defs.h: Do not include stdlib.h.
5354 * addrmap.c: Likewise.
5355 * bcache.c: Likewise.
5356 * common/buffer.c: Likewise.
5357 * common/common-utils.c: Likewise.
5358 * cp-name-parser.y: Likewise.
5359 * go32-nat.c: Likewise.
5360 * mn10300-linux-tdep.c: Likewise.
5361 * nat/linux-osdata.c: Likewise.
5362 * tui/tui.c: Likewise.
5363 * windows-nat.c: Likewise.
5364
5365 2014-08-07 Gary Benson <gbenson@redhat.com>
5366
5367 * common/common-defs.h: Include stdio.h.
5368 * defs.h: Do not include stdio.h.
5369 * ada-lang.c: Likewise.
5370 * common/buffer.c: Likewise.
5371 * common/common-utils.c: Likewise.
5372 * cp-name-parser.y: Likewise.
5373 * gnu-nat.c: Likewise.
5374 * go32-nat.c: Likewise.
5375 * i386gnu-nat.c: Likewise.
5376 * proc-api.c: Likewise.
5377 * proc-events.c: Likewise.
5378 * proc-flags.c: Likewise.
5379 * proc-why.c: Likewise.
5380 * python/python-internal.h: Likewise.
5381 * target-memory.c: Likewise.
5382 * tui/tui-io.c: Likewise.
5383 * tui/tui.c: Likewise.
5384
5385 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5386
5387 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5388 (scan_dyntag_auxv): Same.
5389
5390 2014-08-06 Yao Qi <yao@codesourcery.com>
5391
5392 * amd64-linux-nat.c: Remove duplicated include
5393 "x86-linux-nat.h".
5394 * i386-linux-nat.c: Likewise.
5395
5396 2014-08-06 Yao Qi <yao@codesourcery.com>
5397
5398 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5399 operand" with "Special opcode" in comments.
5400
5401 2014-08-05 Gary Benson <gbenson@redhat.com>
5402
5403 * interps.c (initialize_interps): Remove prototype.
5404 (interpreter_initialized): Remove static global.
5405 (interp_add): Do not call initialize_interps.
5406 (initialize_interps): Remove function.
5407
5408 2014-08-05 Gary Benson <gbenson@redhat.com>
5409
5410 * utils.c (vwarning): Remove spurious va_end.
5411
5412 2014-08-05 Alan Modra <amodra@gmail.com>
5413
5414 * charset.c (convert_between_encodings): Cast result of obstack_base.
5415 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5416 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5417 (read_unwind_info): Use size_t for some locals.
5418 * jit.c (finalize_symtab): Likewise.
5419 * utils.c (hashtab_obstack_allocate): Likewise.
5420 * symmisc.c (print_objfile_statistics): Update format strings.
5421
5422 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5423
5424 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5425 (Changes in GDB 7.8): ... here.
5426
5427 2014-08-04 Tom Tromey <tromey@redhat.com>
5428
5429 * target.c (set_targetdebug): New function.
5430 (initialize_targets): Pass set_targetdebug when creating "set
5431 debug target".
5432
5433 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5434
5435 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5436 if detecting a variable-sized field that is not the last field.
5437 Fix struct type length computation.
5438
5439 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5440
5441 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5442 Add debug trace.
5443
5444 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5445
5446 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5447 Remove "+ 8" offset in computation of CHAIN_VMA.
5448
5449 2014-07-31 Doug Evans <dje@google.com>
5450
5451 * inflow.c (child_terminal_inferior): Add comment.
5452 (child_terminal_ours_for_output): Add comment.
5453 (child_terminal_ours): Add comment.
5454 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5455 (linux_nat_terminal_ours): Add comment.
5456
5457 2014-07-31 Gary Benson <gbenson@redhat.com>
5458
5459 * common/btrace-common.h: Do not include defs.h or server.h.
5460 * nat/mips-linux-watch.h: Likewise.
5461 * gdb-dlfcn.h: Do not include defs.h.
5462 * tracefile.h: Likewise.
5463
5464 2014-07-30 Roland McGrath <mcgrathr@google.com>
5465
5466 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5467
5468 2014-07-30 Tom Tromey <tromey@redhat.com>
5469
5470 * bsd-kvm.c (bsd_kvm_open): Constify.
5471 * corelow.c (core_open): Constify.
5472 * ctf.c (ctf_open): Constify.
5473 * dbug-rom.c (dbug_open): Constify.
5474 * exec.c (exec_open): Constify.
5475 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5476 * microblaze-rom.c (picobug_open): Constify.
5477 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5478 Constify.
5479 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5480 * record-btrace.c (record_btrace_open): Constify.
5481 * record-full.c (record_full_core_open_1, record_full_open_1)
5482 (record_full_open): Constify.
5483 * remote-m32r-sdi.c (m32r_open): Constify.
5484 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5485 (rockhopper_open, lsi_open): Constify.
5486 * remote-sim.c (gdbsim_open): Constify.
5487 * remote.c (remote_open, extended_remote_open, remote_open_1):
5488 Constify.
5489 * target.h (struct target_ops) <to_open>: Make "arg" const.
5490 * tracefile-tfile.c (tfile_open): Constify.
5491
5492 2014-07-30 Tom Tromey <tromey@redhat.com>
5493
5494 * breakpoint.c (map_breakpoint_numbers): Update.
5495 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5496 (get_number_const): New function.
5497 (get_number): Rewrite using get_number_const.
5498 (init_number_or_range): Make "string" const.
5499 (number_is_in_list): Make "list" const.
5500 * cli/cli-utils.h (get_number_const): Declare.
5501 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5502 (init_number_or_range, number_is_in_list): Update.
5503 * printcmd.c (map_display_numbers): Update.
5504 * value.c (value_from_history_ref): Constify.
5505 * value.h (value_from_history_ref): Update.
5506
5507 2014-07-30 Tom Tromey <tromey@redhat.com>
5508
5509 * corefile.c (hook_type, call_extra_exec_file_hooks)
5510 (specify_exec_file_hook): Constify.
5511 * exec.c (exec_file_attach): Make "filename" const.
5512 * gdbcore.h (deprecated_exec_file_display_hook)
5513 (specify_exec_file_hook, exec_file_attach): Constify.
5514 * main.c (captured_main): Use catch_command_errors_const.
5515
5516 2014-07-30 Tom Tromey <tromey@redhat.com>
5517
5518 * target.c (open_target): New function.
5519 (add_target_with_completer, add_deprecated_target_alias): Use
5520 set_cmd_sfunc, set_cmd_context.
5521 (debug_to_open): Remove.
5522 (setup_target_debug): Update.
5523
5524 2014-07-30 Yao Qi <yao@codesourcery.com>
5525
5526 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5527 comments.
5528 * parse.c (exp_iterate): Update comments.
5529
5530 2014-07-30 Gary Benson <gbenson@redhat.com>
5531
5532 * common/common-defs.h: New file.
5533 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5534 * defs.h: Include common-defs.h.
5535 Do not include config.h or build-gnulib/config.h.
5536
5537 2014-07-30 Gary Benson <gbenson@redhat.com>
5538
5539 * common/common-utils.h: Do not include config.h.
5540 * nat/linux-btrace.h: Likewise.
5541
5542 2014-07-30 Gary Benson <gbenson@redhat.com>
5543
5544 * btrace.c: Include defs.h.
5545 * common/ptid.c: Include defs.h or server.h as appropriate.
5546 * nat/mips-linux-watch.c: Likewise.
5547
5548 2014-07-29 Tom Tromey <tromey@redhat.com>
5549
5550 * target.c (target_is_pushed): Simplify.
5551
5552 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5553
5554 GDB 7.8 released.
5555
5556 2014-07-29 Yao Qi <yao@codesourcery.com>
5557
5558 PR gdb/17206
5559 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5560
5561 2014-07-28 Doug Evans <xdje42@gmail.com>
5562
5563 PR guile/17203
5564 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5565 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5566 parameters.
5567
5568 2014-07-28 Will Newton <will.newton@linaro.org>
5569
5570 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5571 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5572 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5573 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5574 (THUMB2_EABI_SYSCALL): Likewise.
5575 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5576 struct tramp_frame.
5577 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5578 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5579
5580 2014-07-27 Doug Evans <xdje42@gmail.com>
5581
5582 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5583
5584 2014-07-27 Doug Evans <xdje42@gmail.com>
5585
5586 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5587
5588 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5589 Doug Evans <xdje42@gmail.com>
5590
5591 PR guile/17146
5592 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5593 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5594 * configure.ac: Try to use guild to compile an scm file, if it fails
5595 then disable guile support.
5596 * configure: Regenerate.
5597 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5598 GUILE_FILE_LIST.
5599 (GUILE_COMPILED_FILES): New variable.
5600 (GUILE_FILES) Update.
5601 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5602 (stamp-guile): Compile scm files.
5603 * guile/guile.c (boot_guile_support): New function.
5604 (standard_throw_args_p): New function.
5605 (print_standard_throw_error, print_throw_error): New functions.
5606 (handle_boot_error): New function.
5607 (initialize_scheme_side): Rewrite to call boot_guile_support.
5608 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5609 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5610
5611 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5612 Doug Evans <xdje42@gmail.com>
5613
5614 PR guile/17146
5615 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5616 * guile/lib/gdb/support.scm: New file.
5617 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5618 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5619 All uses updated.
5620 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5621 All uses updated.
5622 (%assert-type): Ditto, and renamed to assert-type.
5623 (%exception-print-style): Delete.
5624
5625 2014-07-26 Doug Evans <xdje42@gmail.com>
5626
5627 PR build/17105
5628 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5629 * configure: Regenerate.
5630 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5631 PYTHON_FILES.
5632 (PYTHON_FILES): New variable.
5633 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5634 (GUILE_FILES): New variable.
5635 (stamp-python, install-python, uninstall-python): Handle empty
5636 file list.
5637 (stamp-guile, install-guile, uninstall-guile): Ditto.
5638
5639 2014-07-26 Doug Evans <xdje42@gmail.com>
5640
5641 PR guile/17177
5642 * guile/lib/gdb.scm (pretty-printers): Export.
5643 (set-pretty-printers!): Export.
5644 * guile/lib/gdb/printing.scm (gdb module): Update.
5645 (prepend-pretty-printer!, append-pretty-printer!): Update.
5646 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5647 (pretty_printer_list_var): Delete.
5648 (pretty_printer_list): New static global.
5649 (gdbscm_pretty_printers): New function.
5650 (gdbscm_set_pretty_printers_x): New function.
5651 (ppscm_find_pretty_printer_from_gdb): Update.
5652 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5653 (gdbscm_initialize_pretty_printers): Update.
5654
5655 2014-07-26 Doug Evans <xdje42@gmail.com>
5656
5657 PR 17185
5658 * configure.ac: Add check for header gc/gc.h.
5659 Add check for function setenv.
5660 * configure: Regenerate.
5661 * config.in: Regenerate.
5662 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5663
5664 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5665
5666 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5667 variation in gdbarch matching.
5668
5669 2014-07-25 Tom Tromey <tromey@redhat.com>
5670
5671 * exec.c (using_exec_ops): Remove.
5672 (exec_close_1): Update. Remove extraneous block, reindent.
5673 (add_target_sections): Use target_is_pushed.
5674
5675 2014-07-25 Pedro Alves <palves@redhat.com>
5676
5677 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5678 * monitor.c (monitor_create_inferior): Likewise.
5679 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5680 * remote-sim.c (gdbsim_create_inferior): Likewise.
5681 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5682 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5683 * windows-nat.c (do_initial_windows_stuff): Likewise.
5684
5685 2014-07-25 Pedro Alves <palves@redhat.com>
5686
5687 * NEWS: Mention signal passing and "signal" command changes.
5688 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5689 comment.
5690 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5691 call.
5692 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5693 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5694 (jump_command): Adjust clear_proceed_status call.
5695 (signal_command): Warn if other thread that are resumed have
5696 signals that will be delivered. Adjust clear_proceed_status call.
5697 (until_next_command, finish_command)
5698 (proceed_after_attach_callback, attach_command_post_wait)
5699 (attach_command): Adjust clear_proceed_status call.
5700 * infrun.c (proceed_after_vfork_done): Likewise.
5701 (proceed_after_attach_callback): Adjust comment.
5702 (clear_proceed_status_thread): Clear stop_signal if not in pass
5703 state.
5704 (clear_proceed_status_callback): Delete.
5705 (clear_proceed_status): New 'step' parameter. Only clear the
5706 proceed status of threads the command being prepared is about to
5707 resume.
5708 (proceed): If passed in an explicit signal, override stop_signal
5709 with it. Don't pass the last stop signal to the thread we're
5710 resuming.
5711 (init_wait_for_inferior): Adjust clear_proceed_status call.
5712 (switch_back_to_stepped_thread): Clear the signal if it should not
5713 be passed.
5714 * infrun.h (clear_proceed_status): New 'step' parameter.
5715 (user_visible_resume_ptid): Add comment.
5716 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5717 signal is in pass state.
5718 * remote.c (append_pending_thread_resumptions): Likewise.
5719 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5720
5721 2014-07-25 Tom Tromey <tromey@redhat.com>
5722
5723 * target.h (target_stopped_data_address)
5724 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5725 parentheses.
5726
5727 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5728
5729 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5730 comments.
5731 (avr_pointer_to_address): Likewise.
5732
5733 2014-07-24 Tom Tromey <tromey@redhat.com>
5734
5735 * monitor.c (compile_pattern): Update.
5736 * target.h (struct target_ops) <to_shortname, to_longname,
5737 to_doc>: Now const.
5738
5739 2014-07-24 Tom Tromey <tromey@redhat.com>
5740
5741 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5742 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5743 (add_info_alias, add_com): Make "doc" const.
5744 (print_doc_line): Make "str" const.
5745 (delete_cmd): Update.
5746 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5747 (print_doc_line): Update.
5748 * cli/cli-script.c (document_command): Update.
5749 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5750 (add_com, add_info, add_info_alias): Update.
5751 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5752 * python/py-cmd.c (cmdpy_destroyer): Update.
5753
5754 2014-07-24 Tom Tromey <tromey@redhat.com>
5755
5756 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5757 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5758 (help_cmd_list): Constify.
5759 (lookup_cmd): Update.
5760 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5761 const.
5762 (help_cmd_list, apropos_cmd): Update.
5763 * cli/cli-script.c (show_user): Update.
5764 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5765 * cli/cli-setshow.h (cmd_show_list): Update.
5766 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5767 (cmd_show_list): Update.
5768 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5769 * python/py-cmd.c (cmdpy_destroyer): Update.
5770
5771 2014-07-24 Tom Tromey <tromey@redhat.com>
5772
5773 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5774 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5775 const.
5776 * command.h (deprecate_cmd): Update.
5777 * maint.c (maintenance_do_deprecate): Add casts.
5778
5779 2014-07-24 Tom Tromey <tromey@redhat.com>
5780
5781 * cli/cli-decode.c (help_cmd): Make parameter "const".
5782 * cli/cli-decode.h (help_cmd): Update.
5783
5784 2014-07-24 Tom Tromey <tromey@redhat.com>
5785
5786 * stack.c (up_silently_base, down_silently_base): Make argument
5787 const.
5788
5789 2014-07-24 Tom Tromey <tromey@redhat.com>
5790
5791 * solib.c (solib_add): Make "pattern" const.
5792 * solib.h (solib_add): Update.
5793
5794 2014-07-24 Tom Tromey <tromey@redhat.com>
5795
5796 * remote.c (remote_serial_open, print_packet, putpkt)
5797 (putpkt_binary): Constify.
5798 * remote.h (putpkt): Update.
5799
5800 2014-07-24 Tom Tromey <tromey@redhat.com>
5801
5802 * monitor.c (monitor_open): Make "args" const.
5803 * monitor.h (monitor_open): Update.
5804
5805 2014-07-24 Tom Tromey <tromey@redhat.com>
5806
5807 * maint.c (match_bfd_flags): Make "string" const.
5808 (print_bfd_section_info): Remove casts.
5809 (print_objfile_section_info): Make "string" const.
5810
5811 2014-07-24 Tom Tromey <tromey@redhat.com>
5812
5813 * inf-child.c (inf_child_open_target): Make "arg" const.
5814 * inf-child.h (inf_child_open_target): Update.
5815
5816 2014-07-24 Tom Tromey <tromey@redhat.com>
5817
5818 * environ.c (unset_in_environ): Make "var" const.
5819 * environ.h (unset_in_environ): Update.
5820
5821 2014-07-24 Tom Tromey <tromey@redhat.com>
5822
5823 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5824 Make "cmd" const.
5825 (scan_filename_with_cleanup): Likewise.
5826 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5827 Make arguments const.
5828 (restore_command): Update.
5829
5830 2014-07-24 Pedro Alves <palves@redhat.com>
5831
5832 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5833
5834 2014-07-24 Tom Tromey <tromey@redhat.com>
5835 Gary Benson <gbenson@redhat.com>
5836
5837 * nat/linux-ptrace.c (additional_flags): New global.
5838 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5839 additional_flags; don't check GDBSERVER.
5840 (linux_ptrace_set_additional_flags): New function.
5841 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5842 Declare.
5843 * linux-nat.c (_initialize_linux_nat): Call
5844 linux_ptrace_set_additional_flags.
5845
5846 2014-07-24 Tom Tromey <tromey@redhat.com>
5847
5848 * make-target-delegates (munge_type, write_debugmethod): New
5849 functions.
5850 (debug_names): New global.
5851 ($TARGET_DEBUG_PRINTER): New global.
5852 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5853 name.
5854 Write debug methods. Generate init_debug_target.
5855 * target-debug.h: New file.
5856 * target-delegates.c: Rebuild.
5857 * target.c: Include target-debug.h.
5858 (debug_target): Hoist definition.
5859 (target_kill, target_get_section_table, target_memory_map)
5860 (target_flash_erase, target_flash_done, target_detach)
5861 (target_disconnect, target_wait, target_resume)
5862 (target_pass_signals, target_program_signals, target_follow_fork)
5863 (target_mourn_inferior, target_search_memory)
5864 (target_thread_address_space, target_close)
5865 (target_find_new_threads, target_core_of_thread)
5866 (target_verify_memory, target_insert_mask_watchpoint)
5867 (target_remove_mask_watchpoint): Remove targetdebug code.
5868 (debug_to_post_attach, debug_to_prepare_to_store)
5869 (debug_to_files_info, debug_to_insert_breakpoint)
5870 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5871 (debug_to_region_ok_for_hw_watchpoint)
5872 (debug_to_can_accel_watchpoint_condition)
5873 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5874 (debug_to_watchpoint_addr_within_range)
5875 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5876 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5877 (debug_to_terminal_init, debug_to_terminal_inferior)
5878 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5879 (debug_to_terminal_save_ours, debug_to_terminal_info)
5880 (debug_to_load, debug_to_post_startup_inferior)
5881 (debug_to_insert_fork_catchpoint)
5882 (debug_to_remove_fork_catchpoint)
5883 (debug_to_insert_vfork_catchpoint)
5884 (debug_to_remove_vfork_catchpoint)
5885 (debug_to_insert_exec_catchpoint)
5886 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5887 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5888 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5889 (setup_target_debug): Call init_debug_target.
5890 * target.h (TARGET_DEBUG_PRINTER): New macro.
5891 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5892 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5893
5894 2014-07-24 Gary Benson <gbenson@redhat.com>
5895
5896 * exceptions.h (throw_vfatal): Renamed to...
5897 (throw_vquit): New declaration.
5898 (throw_quit): Likewise.
5899 * exceptions.c (throw_vfatal): Renamed to...
5900 (throw_vquit): New function.
5901 (throw_quit): Likewise.
5902 (throw_error): Call throw_verror rather than throw_it.
5903 * utils.h (vfatal): Removed.
5904 (fatal): Likewise.
5905 * utils.c (vfatal): Removed.
5906 (fatal): Likewise.
5907 (internal_verror): Replaced call to fatal with call to throw_quit.
5908 (quit): Replaced calls to fatal with calls to throw_quit.
5909
5910 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5911
5912 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5913 target_read_code.
5914
5915 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5916
5917 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5918 less than zero in conditional expression.
5919
5920 2014-07-23 Tom Tromey <tromey@redhat.com>
5921
5922 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5923 ($INTRO_PART): Don't match whitespace.
5924 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5925 argument matching.
5926 ($METHOD): Add $METHOD_TRAILER.
5927 (trim): Rewrite.
5928 (scan_target_h): New sub.
5929 Change main loop not to collect state.
5930 * target-delegates.c: Rebuild.
5931
5932 2014-07-23 Gary Benson <gbenson@redhat.com>
5933
5934 * cp-support.c (gdb_demangle): Fix build on systems without
5935 sigaltstack.
5936
5937 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5938
5939 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5940 for reference entry value target data value.
5941
5942 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5943
5944 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5945 value_available_contents_eq.
5946
5947 2014-07-22 Pedro Alves <palves@redhat.com>
5948
5949 * value.c (allocate_optimized_out_value): Don't mark value as
5950 non-lazy.
5951
5952 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5953
5954 * MAINTAINERS (Write After Approval): Update my email address.
5955
5956 2014-07-20 Doug Evans <dje@google.com>
5957
5958 PR server/17147
5959 * remote.c (putpkt_binary): Add text to error message.
5960
5961 2014-07-20 Yao Qi <yao@codesourcery.com>
5962
5963 * eval.c: Remove "Chill" from comments.
5964 * gdbtypes.h: Likewise.
5965 * symtab.h: Likewise.
5966
5967 2014-07-20 Yao Qi <yao@codesourcery.com>
5968
5969 * std-operator.def: Update comments to TERNOP_SLICE.
5970
5971 2014-07-20 Yao Qi <yao@codesourcery.com>
5972
5973 * std-operator.def: Remove BINOP_RANGE.
5974 * breakpoint.c (watchpoint_exp_is_const): Update.
5975 * expprint.c (dump_subexp_body_standard): Likewise.
5976 * eval.c (init_array_element): Remove dead code.
5977 (evaluate_subexp_standard): Likewise.
5978
5979 2014-07-20 Yao Qi <yao@codesourcery.com>
5980
5981 * std-operator.def: Remove BINOP_IN.
5982 * breakpoint.c (watchpoint_exp_is_const): Update.
5983 * eval.c (evaluate_subexp_standard): Likewise.
5984 * expprint.c (dump_subexp_body_standard): Likewise.
5985
5986 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5987
5988 * microblaze-tdep.c (microblaze_register_names): Add
5989 the rshr and rslr register names.
5990 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5991 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5992 Use of tdesc_numbered_register. Use of
5993 microblaze_register_g_packet_guesses. Use of
5994 tdesc_use_registers. Use of set_gdbarch_register_type.
5995 (microblaze_register_g_packet_guesses): New.
5996 * microblaze-tdep.h (microblaze_reg_num): Add
5997 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5998 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5999 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6000 * features/microblaze-core.xml: New file.
6001 * features/microblaze-stack-protect.xml: New file.
6002 * features/microblaze-with-stack-protect.c: New file.
6003 * features/microblaze-with-stack-protect.xml: New file.
6004 * features/microblaze.xml: New file.
6005 * features/microblaze.c: New file.
6006 * features/Makefile (microblaze-with-stack-protect): Add
6007 microblaze-with-stack-protect microblaze and microblaze-expedite.
6008 * regformats/microblaze-with-stack-protect.dat: New file.
6009 * regformats/microblaze.dat: New file.
6010 * doc/gdb.texinfo (MicroBlaze Features): Added.
6011
6012 2014-07-18 Tom Tromey <tromey@redhat.com>
6013
6014 * exec.c (exec_ops): Now static.
6015 * exec.h (exec_ops): Don't declare.
6016
6017 2014-07-18 Tom Tromey <tromey@redhat.com>
6018
6019 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6020 to find_target_beneath.
6021 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6022 find_target_beneath.
6023 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6024
6025 2014-07-18 Tom Tromey <tromey@redhat.com>
6026
6027 PR gdb/17130:
6028 * utils.c (quit): Use target_supports_terminal_ours.
6029 * target.h (target_supports_terminal_ours): Declare.
6030 * target.c (target_supports_delete_record): Don't check
6031 to_delete_record against NULL.
6032 (target_supports_terminal_ours): New function.
6033
6034 2014-07-18 Tom Tromey <tromey@redhat.com>
6035
6036 PR gdb/17130:
6037 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6038 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6039 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6040 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6041 * windows-nat.c (windows_xfer_partial): Always delegate.
6042 * record-btrace.c (record_btrace_xfer_partial): Simplify
6043 delegation.
6044 (record_btrace_fetch_registers, record_btrace_store_registers)
6045 (record_btrace_prepare_to_store, record_btrace_resume)
6046 (record_btrace_wait, record_btrace_find_new_threads)
6047 (record_btrace_thread_alive): Likewise.
6048 * procfs.c (procfs_xfer_partial): Always delegate.
6049 * corelow.c (core_xfer_partial): Always delegate.
6050 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6051
6052 2014-07-18 Tom Tromey <tromey@redhat.com>
6053
6054 * exec.c (exec_make_note_section): Move earlier.
6055
6056 2014-07-17 Doug Evans <dje@google.com>
6057
6058 PR gdb/17170
6059 * maint.c (count_symtabs_and_blocks): Handle NULL
6060 current_program_space.
6061 (report_command_stats): Check global enabled flag in addition to
6062 recorded enabled flag.
6063 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6064
6065 2014-07-16 Pedro Alves <palves@redhat.com>
6066
6067 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6068
6069 2014-07-16 Tom Tromey <tromey@redhat.com>
6070
6071 * target.h (struct target_ops) <to_delete_record>: Reformat
6072 comment.
6073
6074 2014-07-16 Tom Tromey <tromey@redhat.com>
6075
6076 * target-delegates.c: Rebuild.
6077
6078 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6079
6080 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6081 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6082 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6083 (avr_pointer_to_address): Likewise.
6084 (avr_address_class_type_flags): New function.
6085 (avr_address_class_type_flags_to_name): Likewise.
6086 (avr_address_class_name_to_type_flags): Likewise.
6087 (avr_gdbarch_init): Set address_class_type_flags,
6088 address_class_type_flags_to_name and
6089 address_class_name_to_type_flags.
6090
6091 2014-07-15 Pedro Alves <palves@redhat.com>
6092
6093 * linux-nat.c (kill_callback): Save errno and work with saved
6094 copy.
6095
6096 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6097
6098 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6099
6100 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6101
6102 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6103 breakpoint support correctly.
6104
6105 2014-07-14 Pedro Alves <palves@redhat.com>
6106
6107 * utils.c (prompt_for_continue): Call target_terminal_ours.
6108
6109 2014-07-14 Pedro Alves <palves@redhat.com>
6110
6111 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6112 catch_errors. Don't re-enable stdin or notify observers where,
6113 and rethrow error.
6114 (fetch_inferior_event_wrapper): Delete.
6115
6116 2014-07-14 Pedro Alves <palves@redhat.com>
6117
6118 PR gdb/17072
6119 * top.c: Include "inf-loop.h".
6120 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6121 field.
6122 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6123 was async before.
6124 (gdb_readline_wrapper): Store whether the target is async, and
6125 make it sync.
6126
6127 2014-07-14 Pedro Alves <palves@redhat.com>
6128
6129 PR gdb/17072
6130 * top.c (gdb_readline_wrapper_line): Tweak comment.
6131 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6132 the input handler callback.
6133
6134 2014-07-14 Pedro Alves <palves@redhat.com>
6135
6136 PR gdb/17072
6137 * main.c: Include event-top.h.
6138 (handle_command_errors): New function.
6139 (catch_command_errors, catch_command_errors_const): Use it.
6140
6141 2014-07-14 Pedro Alves <palves@redhat.com>
6142
6143 * exceptions.c (catch_command_errors, catch_command_errors_const):
6144 Moved to main.c.
6145 * exceptions.h (catch_command_errors_ftype)
6146 (catch_command_errors_const_ftype): Moved to main.c.
6147 (catch_command_errors, catch_command_errors_const): Delete
6148 declarations.
6149 * main.c (catch_command_errors_ftype)
6150 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6151 (catch_command_errors, catch_command_errors_const)): Moved here
6152 from exceptions.c and make static.
6153
6154 2014-07-14 Pedro Alves <palves@redhat.com>
6155
6156 * exceptions.c (print_any_exception): Delete.
6157 (catch_exceptions_with_msg): Use exception_print instead of
6158 print_any_exception.
6159 (catch_errors): Use exception_fprintf instead of
6160 print_any_exception.
6161 (catch_command_errors, catch_command_errors_const): Use
6162 exception_print instead of print_any_exception.
6163
6164 2014-07-14 Pedro Alves <palves@redhat.com>
6165
6166 * infcall.c (run_inferior_call): Set 'sync_execution' while
6167 running the inferior call.
6168
6169 2014-07-14 Pedro Alves <palves@redhat.com>
6170
6171 * value.c (value_contents_equal): Delete function.
6172 * value.h (value_contents_equal): Delete declaration.
6173
6174 2014-07-14 Tom Tromey <tromey@redhat.com>
6175
6176 PR exp/17106:
6177 * gdbtypes.c (is_dynamic_type_internal): New function, from
6178 is_dynamic_type.
6179 (is_dynamic_type): Rewrite.
6180 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6181 (resolve_dynamic_struct): Likewise.
6182 (resolve_dynamic_type_internal): New function, from
6183 resolve_dynamic_type.
6184 (resolve_dynamic_type): Rewrite.
6185
6186 2014-07-14 Tom Tromey <tromey@redhat.com>
6187
6188 * target.c (target_require_runnable): Also check record_stratum.
6189 Update comment.
6190
6191 2014-07-11 Yao Qi <yao@codesourcery.com>
6192
6193 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6194 thumb_instruction_restores_sp return true.
6195
6196 2014-07-11 Yao Qi <yao@codesourcery.com>
6197
6198 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6199 (thumb_in_function_epilogue_p): Call
6200 thumb_instruction_restores_sp.
6201
6202 2014-07-11 Yao Qi <yao@codesourcery.com>
6203
6204 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6205 'add sp, #imm'.
6206 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6207
6208 2014-07-11 Gary Benson <gbenson@redhat.com>
6209
6210 * amd64-linux-nat.c (gdbcore.h): Remove include.
6211 (regset.h): Likewise.
6212 (nat/linux-btrace.h): Likewise.
6213 (btrace.h): Likewise.
6214 (gdb_assert.h): Likewise.
6215 (string.h): Likewise.
6216 (sys/uio.h): Likewise.
6217 (sys/debugreg.h): Likewise.
6218 (sys/syscall.h): Likewise.
6219 (sys/procfs.h): Likewise.
6220 (sys/user.h): Likewise.
6221 (asm/ptrace.h): Likewise.
6222 (i386-nat.h): Likewise.
6223 * i386-linux-nat.c (i386-nat.h): Likewise.
6224 (regset.h): Likewise.
6225 (target.h): Likewise.
6226 (linux-nat.h): Likewise.
6227 (nat/linux-btrace.h): Likewise.
6228 (btrace.h): Likewise.
6229 (gdb_assert.h): Likewise.
6230 (string.h): Likewise.
6231 (sys/uio.h): Likewise.
6232 (sys/user.h): Likewise.
6233 (sys/procfs.h): Likewise.
6234 (sys/reg.h): Likewise.
6235 (sys/debugreg.h): Likewise.
6236 (ORIG_EAX): Remove definition.
6237
6238 2014-07-11 Gary Benson <gbenson@redhat.com>
6239
6240 * i386-linux-nat.h: New file.
6241 * x86-linux-nat.h: Likewise.
6242 * x86-linux-nat.c: Likewise.
6243 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6244 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6245 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6246 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6247 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6248 (PTRACE_SETREGSET): Likewise.
6249 (arch_lwp_info): Now in x86-linux-nat.c.
6250 (have_ptrace_getregset): Now in x86-linux-nat.h.
6251 (x86_linux_dr_get): Now in x86-linux-nat.c.
6252 (x86_linux_dr_set): Likewise.
6253 (x86_linux_dr_get_addr): Likewise.
6254 (x86_linux_dr_get_control): Likewise.
6255 (x86_linux_dr_get_status): Likewise.
6256 (update_debug_registers_callback): Likewise.
6257 (x86_linux_dr_set_control): Likewise.
6258 (x86_linux_dr_set_addr): Likewise.
6259 (x86_linux_prepare_to_resume): Likewise.
6260 (x86_linux_new_thread): Likewise.
6261 (x86_linux_new_fork): Likewise.
6262 (x86_linux_get_thread_area): Likewise.
6263 (super_post_startup_inferior): Likewise.
6264 (x86_linux_child_post_startup_inferior): Likewise.
6265 (AMD64_LINUX_USER64_CS): Likewise.
6266 (AMD64_LINUX_X32_DS): Likewise.
6267 (x86_linux_read_description): Likewise.
6268 (x86_linux_enable_btrace): Likewise.
6269 (x86_linux_disable_btrace): Likewise.
6270 (x86_linux_teardown_btrace): Likewise.
6271 (x86_linux_read_btrace): Likewise.
6272 (x86_linux_create_target): Likewise.
6273 (x86_linux_add_target): Likewise.
6274 * i386-linux-nat.c (x86-linux-nat.h): New include.
6275 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6276 (PTRACE_SETREGSET): Likewise.
6277 (arch_lwp_info): Now in x86-linux-nat.c.
6278 (have_ptrace_getregset): Now in x86-linux-nat.h.
6279 (x86_linux_dr_get): Now in x86-linux-nat.c.
6280 (x86_linux_dr_set): Likewise.
6281 (x86_linux_dr_get_addr): Likewise.
6282 (x86_linux_dr_get_control): Likewise.
6283 (x86_linux_dr_get_status): Likewise.
6284 (update_debug_registers_callback): Likewise.
6285 (x86_linux_dr_set_control): Likewise.
6286 (x86_linux_dr_set_addr): Likewise.
6287 (x86_linux_prepare_to_resume): Likewise.
6288 (x86_linux_new_thread): Likewise.
6289 (x86_linux_new_fork): Likewise.
6290 (x86_linux_get_thread_area): Likewise.
6291 (super_post_startup_inferior): Likewise.
6292 (x86_linux_child_post_startup_inferior): Likewise.
6293 (AMD64_LINUX_USER64_CS): Likewise.
6294 (AMD64_LINUX_X32_DS): Likewise.
6295 (x86_linux_read_description): Likewise.
6296 (x86_linux_enable_btrace): Likewise.
6297 (x86_linux_disable_btrace): Likewise.
6298 (x86_linux_teardown_btrace): Likewise.
6299 (x86_linux_read_btrace): Likewise.
6300 (x86_linux_create_target): Likewise.
6301 (x86_linux_add_target): Likewise.
6302
6303 2014-07-11 Gary Benson <gbenson@redhat.com>
6304
6305 * amd64-linux-nat.c: Comment and whitespace changes.
6306 * i386-linux-nat.c: Comment and whitespace changes.
6307
6308 2014-07-11 Gary Benson <gbenson@redhat.com>
6309
6310 * amd64-linux-nat.c (x86_linux_create_target): New function.
6311 (x86_linux_add_target): Likewise.
6312 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6313 * i386-linux-nat.c (x86_linux_create_target): New function.
6314 (x86_linux_add_target): Likewise.
6315 (_initialize_i386_linux_nat): Delegate to the above new functions.
6316
6317 2014-07-11 Gary Benson <gbenson@redhat.com>
6318
6319 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6320 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6321 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6322 (ps_get_thread_area): Delegate to the above.
6323
6324 2014-07-11 Gary Benson <gbenson@redhat.com>
6325
6326 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6327 x86_linux_read_description. All uses updated. amd64-specific
6328 code conditionalized. Conditionalized i386-specific code added.
6329 Redundant cast removed.
6330 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6331 x86_linux_read_description. All uses updated. i386-specific
6332 code conditionalized. Conditionalized amd64-specific code added.
6333 One sizeof replaced with the actual type it is describing.
6334
6335 2014-07-11 Gary Benson <gbenson@redhat.com>
6336
6337 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6338 x86_linux_dr_get. All uses updated.
6339 (amd64_linux_dr_set): Renamed to
6340 x86_linux_dr_set. All uses updated.
6341 (amd64_linux_dr_get_addr): Renamed to
6342 x86_linux_dr_get_addr. All uses updated.
6343 (amd64_linux_dr_get_control): Renamed to
6344 x86_linux_dr_get_control. All uses updated.
6345 (amd64_linux_dr_get_status): Renamed to
6346 x86_linux_dr_get_status. All uses updated.
6347 (amd64_linux_dr_set_control): Renamed to
6348 x86_linux_dr_set_control. All uses updated.
6349 (amd64_linux_dr_set_addr): Renamed to
6350 x86_linux_dr_set_addr. All uses updated.
6351 (amd64_linux_prepare_to_resume): Renamed to
6352 x86_linux_prepare_to_resume. All uses updated.
6353 (amd64_linux_new_thread): Renamed to
6354 x86_linux_new_thread. All uses updated.
6355 (amd64_linux_new_fork): Renamed to
6356 x86_linux_new_fork. All uses updated.
6357 (amd64_linux_child_post_startup_inferior): Renamed to
6358 x86_linux_child_post_startup_inferior. All uses updated.
6359 (amd64_linux_enable_btrace): Renamed to
6360 x86_linux_enable_btrace. All uses updated.
6361 (amd64_linux_disable_btrace): Renamed to
6362 x86_linux_disable_btrace. All uses updated.
6363 (amd64_linux_teardown_btrace): Renamed to
6364 x86_linux_teardown_btrace. All uses updated.
6365 (amd64_linux_read_btrace): Renamed to
6366 x86_linux_read_btrace. All uses updated.
6367 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6368 x86_linux_dr_get. All uses updated.
6369 (i386_linux_dr_set): Renamed to
6370 x86_linux_dr_set. All uses updated.
6371 (i386_linux_dr_get_addr): Renamed to
6372 x86_linux_dr_get_addr. All uses updated.
6373 (i386_linux_dr_get_control): Renamed to
6374 x86_linux_dr_get_control. All uses updated.
6375 (i386_linux_dr_get_status): Renamed to
6376 x86_linux_dr_get_status. All uses updated.
6377 (i386_linux_dr_set_control): Renamed to
6378 x86_linux_dr_set_control. All uses updated.
6379 (i386_linux_dr_set_addr): Renamed to
6380 x86_linux_dr_set_addr. All uses updated.
6381 (i386_linux_prepare_to_resume): Renamed to
6382 x86_linux_prepare_to_resume. All uses updated.
6383 (i386_linux_new_thread): Renamed to
6384 x86_linux_new_thread. All uses updated.
6385 (i386_linux_new_fork): Renamed to
6386 x86_linux_new_fork. All uses updated.
6387 (i386_linux_child_post_startup_inferior): Renamed to
6388 x86_linux_child_post_startup_inferior. All uses updated.
6389 (i386_linux_enable_btrace): Renamed to
6390 x86_linux_enable_btrace. All uses updated.
6391 (i386_linux_disable_btrace): Renamed to
6392 x86_linux_disable_btrace. All uses updated.
6393 (i386_linux_teardown_btrace): Renamed to
6394 x86_linux_teardown_btrace. All uses updated.
6395 (i386_linux_read_btrace): Renamed to
6396 x86_linux_read_btrace. All uses updated.
6397
6398 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6399
6400 * remote.c (extended_remote_post_attach): New function.
6401 (init_extended_remote_ops): Install it as to_post_attach method.
6402
6403 2014-07-09 Pedro Alves <palves@redhat.com>
6404
6405 * infcmd.c (attach_command_post_wait): Don't call
6406 target_terminal_inferior here.
6407 (attach_command): Call it here instead.
6408
6409 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6410
6411 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6412 field.
6413 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6414 from varobj.c, with additional checks.
6415 (c_varobj_ops): Fill in is_path_expr_parent field.
6416 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6417 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6418 field.
6419 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6420 ops method.
6421 (varobj_default_is_path_expr_parent): New function.
6422 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6423 (varobj_default_is_path_expr_parent): Declare new function.
6424
6425 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6426
6427 * infcmd.c (finish_backward): Turn internal error into normal error.
6428
6429 2014-07-07 Pedro Alves <palves@redhat.com>
6430
6431 PR gdb/17096
6432 * remote.c (async_handle_remote_sigint)
6433 (async_handle_remote_sigint_twice): Call
6434 gdb_call_async_signal_handler instead of
6435 mark_async_signal_handler.
6436
6437 2014-07-07 Tom Tromey <tromey@redhat.com>
6438
6439 * target-delegates.c: Rebuild.
6440 * target.c (target_info_record): Remove.
6441 * record.c (info_record_command): Unconditionally call
6442 to_info_record.
6443 * target.h (struct target_ops) <to_info_record>: Use
6444 TARGET_DEFAULT_IGNORE.
6445 (target_info_record): Remove.
6446
6447 2014-07-07 Tom Tromey <tromey@redhat.com>
6448
6449 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6450 TARGET_DEFAULT_NORETURN.
6451 * target.c (generic_tls_error): New function.
6452 (target_translate_tls_address): Don't search target stack.
6453 * target-delegates.c: Rebuild.
6454 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6455 stack.
6456 * linux-thread-db.c (thread_db_get_thread_local_address):
6457 Unconditionally call beneath target.
6458
6459 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6460
6461 * cli/cli-logging.c (pop_output_files): Assign targerr to
6462 gdb_stdtargerr.
6463
6464 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6465
6466 * MAINTAINERS (Write After Approval): Update my email address.
6467
6468 2014-07-02 Gary Benson <gbenson@redhat.com>
6469
6470 * proc-service.c (ps_xfer_memory): Update comment.
6471 (ps_pstop): Remove unused function.
6472 (ps_pcontinue): Likewise.
6473 (ps_lstop): Likewise.
6474 (ps_lcontinue): Likewise.
6475 (ps_lgetxregsize): Likewise.
6476 (ps_lgetxregs): Likewise.
6477 (ps_lsetxregs): Likewise.
6478 (ps_plog): Likewise.
6479 (ps_ptread): Likewise.
6480 (ps_ptwrite): Likewise.
6481
6482 2014-07-01 Mark Wielaard <mjw@redhat.com>
6483
6484 * dwarf2read.c (add_array_cv_type): New function.
6485 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6486 (read_tag_volatile_type): Likewise.
6487
6488 2014-07-01 Tom Tromey <tromey@redhat.com>
6489
6490 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6491 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6492 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6493 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6494 * command.h (cmd_cfunc_ftype): Move earlier.
6495 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6496 (add_com, add_info): Use cmd_cfunc_ftype.
6497
6498 2014-06-30 Tom Tromey <tromey@redhat.com>
6499
6500 * symtab.c (operator_chars): Make parameters and return type
6501 const.
6502 (file_matches): Make "files" const.
6503 (struct search_symbols_data) <files>: Now const.
6504 (search_symbols): Make "regexp" and "files" parameters const.
6505 Update.
6506 (symtab_symbol_info): Remove cast.
6507 (rbreak_command): Update.
6508 * symtab.h (search_symbols): Update.
6509
6510 2014-06-27 Yao Qi <yao@codesourcery.com>
6511
6512 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6513 Change parameter type to 'struct thread_info *'. Caller
6514 updated.
6515 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6516 Update declaration.
6517 * dummy-frame.c (struct dummy_frame_id): New.
6518 (dummy_frame_id_eq): New function.
6519 (struct dummy_frame) <id>: Change its type to 'struct
6520 dummy_frame_id'.
6521 (dummy_frame_push): Add parameter ptid and save it in
6522 dummy_frame_id.
6523 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6524 inferior_ptid.
6525 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6526 to inferior_ptid.
6527 (lookup_dummy_frame): Change parameter type to 'struct
6528 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6529 instead of frame_id_eq.
6530 (dummy_frame_pop): Add parameter ptid. Callers updated.
6531 Update comments. Compose dummy_frame_id and pass it to
6532 lookup_dummy_frame.
6533 (dummy_frame_discard): Add parameter ptid.
6534 (dummy_frame_sniffer): Compose dummy_frame_id and call
6535 dummy_frame_id_eq instead of frame_id_eq.
6536 (fprint_dummy_frames): Print ptid.
6537 * dummy-frame.h: Remove comments.
6538 (dummy_frame_push): Add ptid in declaration.
6539 (dummy_frame_pop, dummy_frame_discard): Likewise.
6540
6541 2014-06-26 Tom Tromey <tromey@redhat.com>
6542
6543 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6544 * command.h (error_no_arg): Update.
6545
6546 2014-06-26 Tom Tromey <tromey@redhat.com>
6547
6548 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6549 (do_show_command): Make "arg" const.
6550 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6551
6552 2014-06-26 Tom Tromey <tromey@redhat.com>
6553
6554 * record-full.c (record_full_get_bookmark): Make "args" const.
6555 (record_full_goto_bookmark): Make "raw_bookmark" const.
6556 * record.c (record_goto): New function.
6557 (cmd_record_goto): Use it. Now static.
6558 * record.h (record_goto): Declare.
6559 (cmd_record_goto): Remove declaration.
6560 * target-delegates.c: Rebuild.
6561 * target.h (struct target_ops) <to_get_bookmark,
6562 to_goto_bookmark>: Make parameter const.
6563
6564 2014-06-26 Tom Tromey <tromey@redhat.com>
6565
6566 * defs.h (generic_load): Update.
6567 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6568 * monitor.c (monitor_load): Make "args" const.
6569 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6570 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6571 const.
6572 (mips_load): Make "file" const.
6573 * remote-sim.c (gdbsim_load): Make "args" const.
6574 * remote.c (remote_load): Make "name" const.
6575 * symfile.c (generic_load): Make "args" const.
6576 * target-delegates.c: Rebuild.
6577 * target.c (target_load): Make "arg" const.
6578 (debug_to_load): Make "args" const.
6579 * target.h (struct target_ops) <to_load>: Make parameter const.
6580 (target_load): Update.
6581
6582 2014-06-26 Tom Tromey <tromey@redhat.com>
6583
6584 PR symtab/16902:
6585 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6586 (dwarf2_physname, read_partial_die)
6587 (guess_partial_die_structure_name, fixup_partial_die)
6588 (guess_full_die_structure_name, anonymous_struct_prefix)
6589 (dwarf2_name): Use per-BFD obstack.
6590
6591 2014-06-26 Yao Qi <yao@codesourcery.com>
6592
6593 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6594 dummyframe and this_id into inner block below.
6595
6596 2014-06-26 Yao Qi <yao@codesourcery.com>
6597
6598 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6599 with "signal_pass[0]" in the initialization of signal_pass.
6600
6601 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6602
6603 * record-btrace.c (record_btrace_generating_corefile)
6604 (record_btrace_prepare_to_generate_core)
6605 (record_btrace_done_generating_core): New.
6606 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6607 (record_btrace_store_registers, record_btrace_prepare_to_store):
6608 Forward request when generating a core file.
6609 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6610 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6611 to_done_generating_core.
6612
6613 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6614
6615 * target.h (target_ops) <to_prepare_to_generate_core>
6616 <to_done_generating_core>: New.
6617 (target_prepare_to_generate_core, target_done_generating_core): New.
6618 * target.c (target_prepare_to_generate_core)
6619 (target_done_generating_core): New.
6620 * target-delegates.c: Regenerate.
6621 * gcore.c: (write_gcore_file): Rename to ...
6622 (write_gcore_file_1): ...this.
6623 (write_gcore_file): Call target_prepare_to_generate_core
6624 and target_done_generating_core.
6625
6626 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6627
6628 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6629 * gcore.c (write_gcore_file): Free memory returned from
6630 make_corefile_notes.
6631 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6632 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6633
6634 2014-06-24 Yao Qi <yao@codesourcery.com>
6635
6636 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6637 (arm_linux_init_abi): Set skip_trampoline_code with
6638 gdbarch_skip_trampoline_code instead of
6639 find_solib_trampoline_target.
6640
6641 2014-06-24 Yao Qi <yao@codesourcery.com>
6642
6643 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6644 arm_skip_bx_reg returns non-zero.
6645
6646 2014-06-24 Yao Qi <yao@codesourcery.com>
6647
6648 * arm-tdep.c (arm_skip_bx_reg): New function.
6649 (arm_skip_stub): Call arm_skip_bx_reg.
6650
6651 2014-06-23 Don Breazeal <donb@codesourcery.com>
6652
6653 * MAINTAINERS: Add myself as write-after-approval maintainer.
6654
6655 2014-06-23 Pedro Alves <palves@redhat.com>
6656
6657 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6658 DR_CONTROL before setting DR0..DR3.
6659 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6660 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6661 bits of DR_CONTROL related to the debug register slot being
6662 disabled. If all slots are vacant, clear local slowdown as well,
6663 and assert DR_CONTROL is 0.
6664
6665 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6666
6667 * python/lib/gdb/command/xmethods.py
6668 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6669 current progspace only if the string "progspace" matches LOCUS_RE.
6670
6671 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6672
6673 Fix --with-system-readline with readline-6.3 patch 5.
6674 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6675 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6676 types.
6677
6678 2014-06-20 Tom Tromey <tromey@redhat.com>
6679
6680 * dwarf2read.c (dw2_get_real_path): Use correct type in
6681 OBSTACK_CALLOC.
6682 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6683
6684 2014-06-20 Gary Benson <gbenson@redhat.com>
6685
6686 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6687 * common/glibc_thread_db.h: Likewise.
6688 * common/i386-cpuid.h: Likewise.
6689 * common/i386-gcc-cpuid.h: Likewise.
6690 * common/linux-btrace.h: Likewise.
6691 * common/linux-osdata.h: Likewise.
6692 * common/linux-procfs.h: Likewise.
6693 * common/linux-ptrace.h: Likewise.
6694 * common/mips-linux-watch.h: Likewise.
6695 * common/linux-btrace.c: Moved to nat.
6696 * common/linux-osdata.c: Likewise.
6697 * common/linux-procfs.c: Likewise.
6698 * common/linux-ptrace.c: Likewise.
6699 * common/mips-linux-watch.c: Likewise.
6700 * nat/gdb_thread_db.h: Moved from common.
6701 * nat/glibc_thread_db.h: Likewise.
6702 * nat/i386-cpuid.h: Likewise.
6703 * nat/i386-gcc-cpuid.h: Likewise.
6704 * nat/linux-btrace.c: Likewise.
6705 * nat/linux-btrace.h: Likewise.
6706 * nat/linux-osdata.c: Likewise.
6707 * nat/linux-osdata.h: Likewise.
6708 * nat/linux-procfs.c: Likewise.
6709 * nat/linux-procfs.h: Likewise.
6710 * nat/linux-ptrace.c: Likewise.
6711 * nat/linux-ptrace.h: Likewise.
6712 * nat/mips-linux-watch.c: Likewise.
6713 * nat/mips-linux-watch.h: Likewise.
6714 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6715 (object file files): Reordered.
6716 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6717 of glibc_thread_db.h.
6718
6719 2014-06-20 Gary Benson <gbenson@redhat.com>
6720
6721 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6722 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6723 (i386_dr_low): Likewise.
6724 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6725 (i386_dr_low_set_addr): Likewise.
6726 (i386_dr_low_get_addr): Likewise.
6727 (i386_dr_low_can_set_control): Likewise.
6728 (i386_dr_low_set_control): Likewise.
6729 (i386_dr_low_get_control): Likewise.
6730 (i386_dr_low_get_status): Likewise.
6731 (i386_get_debug_register_length): Likewise.
6732 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6733 (i386_dr_low): Likewise.
6734 * nat/i386-dregs.c (i386-low.h): Remove include.
6735 (i386-nat.h): Likewise.
6736 (nat/i386-dregs.h): New include.
6737 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6738 (i386_dr_low_set_addr): Likewise.
6739 (i386_dr_low_get_addr): Likewise.
6740 (i386_dr_low_can_set_control): Likewise.
6741 (i386_dr_low_set_control): Likewise.
6742 (i386_dr_low_get_control): Likewise.
6743 (i386_dr_low_get_status): Likewise.
6744 (i386_get_debug_register_length): Likewise.
6745 (debug_hw_points): Likewise.
6746
6747 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6748
6749 * Makefile.in (SFILES): Add d-exp.y.
6750 (YYFILES): Add d-exp.c.
6751 (YYOBJ): Add d-exp.o.
6752 (local-maintainer-clean): Delete d-exp.c.
6753 * d-exp.y: New file.
6754 * d-lang.h (d_parse): New declaration.
6755 (d_error): New declaration.
6756 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6757 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6758 PREC_ORDER operators.
6759 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6760
6761 2014-06-19 Yao Qi <yao@codesourcery.com>
6762
6763 * gdbthread.h (any_running): Remove the declaration.
6764 * thread.c (any_running): Remove.
6765
6766 2014-06-19 Yao Qi <yao@codesourcery.com>
6767
6768 * gdbthread.h (struct thread_info) <state>: Change its type to
6769 'enum thread_state'. Update comments.
6770
6771 2014-06-19 Pedro Alves <palves@redhat.com>
6772
6773 * gdbthread.h (ALL_THREADS): Delete.
6774 (ALL_NON_EXITED_THREADS): New macro.
6775 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6776 instead of ALL_THREADS.
6777 * infrun.c (find_thread_needs_step_over)
6778 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6779 instead of ALL_THREADS.
6780 * record-btrace.c (record_btrace_open)
6781 (record_btrace_stop_recording, record_btrace_close)
6782 (record_btrace_is_replaying, record_btrace_resume)
6783 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6784 * remote.c (append_pending_thread_resumptions): Likewise.
6785 * thread.c (thread_apply_all_command): Likewise.
6786
6787 2014-06-19 Gary Benson <gbenson@redhat.com>
6788
6789 * i386-nat.c (i386_stopped_by_watchpoint):
6790 Use i386_dr_stopped_by_watchpoint.
6791 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6792 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6793
6794 2014-06-19 Gary Benson <gbenson@redhat.com>
6795
6796 * nat/i386-dregs.c: New file.
6797 * Makefile.in (i386-dregs.o): New rule.
6798 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6799 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6800 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6801 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6802 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6803 * config/i386/go32.mh (NATDEPFILES): Likewise.
6804 * config/i386/linux.mh (NATDEPFILES): Likewise.
6805 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6806 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6807 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6808 * i386-nat.h (debug_hw_points): New declaration.
6809 * i386-nat.c (breakpoint.h): Remove include.
6810 (command.h): Likewise.
6811 (target.h): Likewise.
6812 (gdb_assert.h): Likewise.
6813 (debug_hw_points): Made nonstatic.
6814 (debug_printf): Now in i386-dregs.c.
6815 (TARGET_HAS_DR_LEN_8): Likewise.
6816 (DR_CONTROL_SHIFT): Likewise.
6817 (DR_CONTROL_SIZE): Likewise.
6818 (DR_RW_EXECUTE): Likewise.
6819 (DR_RW_WRITE): Likewise.
6820 (DR_RW_READ): Likewise.
6821 (DR_RW_IORW): Likewise.
6822 (DR_LEN_1): Likewise.
6823 (DR_LEN_2): Likewise.
6824 (DR_LEN_4): Likewise.
6825 (DR_LEN_8): Likewise.
6826 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6827 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6828 (DR_ENABLE_SIZE): Likewise.
6829 (DR_LOCAL_SLOWDOWN): Likewise.
6830 (DR_GLOBAL_SLOWDOWN): Likewise.
6831 (DR_CONTROL_RESERVED): Likewise.
6832 (I386_DR_CONTROL_MASK): Likewise.
6833 (I386_DR_VACANT): Likewise.
6834 (I386_DR_LOCAL_ENABLE): Likewise.
6835 (I386_DR_GLOBAL_ENABLE): Likewise.
6836 (I386_DR_DISABLE): Likewise.
6837 (I386_DR_SET_RW_LEN): Likewise.
6838 (I386_DR_GET_RW_LEN): Likewise.
6839 (I386_DR_WATCH_HIT): Likewise.
6840 (i386_wp_op_t): Likewise.
6841 (i386_show_dr): Likewise.
6842 (i386_length_and_rw_bits): Likewise.
6843 (i386_insert_aligned_watchpoint): Likewise.
6844 (i386_remove_aligned_watchpoint): Likewise.
6845 (i386_handle_nonaligned_watchpoint): Likewise.
6846 (i386_update_inferior_debug_regs): Likewise.
6847 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6848 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6849 (i386_region_ok_for_watchpoint):
6850 Use i386_dr_region_ok_for_watchpoint.
6851 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6852
6853 2014-06-19 Gary Benson <gbenson@redhat.com>
6854
6855 * i386-nat.c (i386_insert_hw_breakpoint): Use
6856 i386_insert_watchpoint.
6857 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6858
6859 2014-06-19 Gary Benson <gbenson@redhat.com>
6860
6861 * i386-nat.c (i386_dr_show): Renamed to
6862 i386_show_dr and made static. All uses updated.
6863 (i386_dr_length_and_rw_bits): Renamed to
6864 i386_length_and_rw_bits and made static.
6865 All uses updated.
6866 (i386_dr_insert_aligned_watchpoint): Renamed to
6867 i386_insert_aligned_watchpoint and made static.
6868 All uses updated.
6869 (i386_dr_remove_aligned_watchpoint): Renamed to
6870 i386_remove_aligned_watchpoint and made static.
6871 All uses updated.
6872 (i386_dr_update_inferior_debug_regs): Renamed to
6873 i386_update_inferior_debug_regs and made static.
6874 All uses updated.
6875 * nat/i386-dregs.h (i386_dr_show): Removed.
6876 (i386_dr_length_and_rw_bits): Likewise.
6877 (i386_dr_insert_aligned_watchpoint): Likewise.
6878 (i386_dr_remove_aligned_watchpoint): Likewise.
6879 (i386_dr_update_inferior_debug_regs): Likewise.
6880
6881 2014-06-19 Gary Benson <gbenson@redhat.com>
6882
6883 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6884 * configure: Regenerate.
6885 * config.in: Likewise.
6886 * main.c (signal.h): New include.
6887 (setup_alternate_signal_stack): New function.
6888 (captured_main): Call the above.
6889 * cp-support.c (signal.h): New include.
6890 (catch_demangler_crashes): New flag.
6891 (SIGJMP_BUF): New define.
6892 (SIGSETJMP): Likewise.
6893 (SIGLONGJMP): Likewise.
6894 (gdb_demangle_jmp_buf): New static global.
6895 (gdb_demangle_attempt_core_dump): Likewise.
6896 (gdb_demangle_signal_handler): New function.
6897 (gdb_demangle): If catch_demangler_crashes is set, install the
6898 above signal handler before calling bfd_demangle, and restore
6899 the original signal handler afterwards. Display the offending
6900 symbol and call demangler_warning the first time a segmentation
6901 fault is caught.
6902 (_initialize_cp_support): New maint set/show command.
6903
6904 2014-06-19 Gary Benson <gbenson@redhat.com>
6905
6906 * utils.h (resource_limit_kind): New enum.
6907 (can_dump_core): New declaration.
6908 (warn_cant_dump_core): Likewise.
6909 (dump_core): Likewise.
6910 * utils.c (dump_core): Made nonstatic. Added new
6911 parameter "limit_kind".
6912 (can_dump_core): Made nonstatic. Moved printing code to...
6913 (warn_cant_dump_core): New function.
6914 (can_dump_core_warn): Likewise.
6915 (internal_vproblem): Replace calls to can_dump_core with
6916 calls to can_dump_core_warn. Supply new argument to each.
6917
6918 2014-06-19 Gary Benson <gbenson@redhat.com>
6919
6920 * utils.h (demangler_vwarning): New declaration.
6921 (demangler_warning): Likewise.
6922 * utils.c (struct internal_problem)
6923 <user_settable_should_quit>: New field.
6924 <user_settable_should_dump_core>: Likewise
6925 (internal_error_problem): Add values for above new fields.
6926 (internal_warning_problem): Likewise.
6927 (demangler_warning_problem): New static global.
6928 (demangler_vwarning): New function.
6929 (demangler_warning): Likewise.
6930 (add_internal_problem_command): Selectively add commands.
6931 (_initialize_utils): New internal problem command.
6932 * maint.c (maintenance_demangler_warning): New function.
6933 (_initialize_maint_cmds): New command.
6934
6935 2014-06-18 Tom Tromey <tromey@redhat.com>
6936
6937 * f-valprint.c (info_common_command_for_block): Update.
6938 * symtab.h (struct general_symbol_info) <common_block>: Now
6939 const.
6940
6941 2014-06-18 Tom Tromey <tromey@redhat.com>
6942
6943 * symtab.h (struct symtab) <blockvector>: Now const.
6944 * ada-lang.c (ada_add_global_exceptions): Update.
6945 * buildsym.c (augment_type_symtab): Update.
6946 * dwarf2read.c (dw2_lookup_symbol): Update.
6947 * jit.c (finalize_symtab): Update.
6948 * jv-lang.c (add_class_symtab_symbol): Update.
6949 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6950 Update.
6951 * objfiles.c (objfile_relocate1): Update.
6952 * psymtab.c (lookup_symbol_aux_psymtabs)
6953 (maintenance_check_psymtabs): Update.
6954 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6955 Update.
6956 * spu-tdep.c (spu_catch_start): Update.
6957 * symmisc.c (dump_symtab_1): Update.
6958 * symtab.c (lookup_global_symbol_from_objfile)
6959 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6960 (basic_lookup_transparent_type_quick)
6961 (basic_lookup_transparent_type, find_pc_sect_symtab)
6962 (find_pc_sect_line, search_symbols): Update.
6963 * block.c (find_block_in_blockvector): Make "bl" const.
6964 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6965 const.
6966 (blockvector_contains_pc): Make "bv" const.
6967 (block_for_pc_sect): Update.
6968 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6969 (blockvector_contains_pc): Update.
6970 * breakpoint.c (resolve_sal_pc): Update.
6971 * inline-frame.c (block_starting_point_at): Update.
6972
6973 2014-06-18 Tom Tromey <tromey@redhat.com>
6974
6975 * completer.c (complete_line): Make "line_buffer" const.
6976 * completer.h (complete_line): Update.
6977
6978 2014-06-18 Tom Tromey <tromey@redhat.com>
6979
6980 * symtab.c (add_macro_name): Remove unneeded cast.
6981
6982 2014-06-18 Tom Tromey <tromey@redhat.com>
6983
6984 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6985 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6986
6987 2014-06-18 Tom Tromey <tromey@redhat.com>
6988
6989 * probe.c (info_probes_for_ops): Make "arg" const.
6990 * probe.h (info_probes_for_ops): Update.
6991
6992 2014-06-18 Tom Tromey <tromey@redhat.com>
6993
6994 * varobj.c (varobj_create): Update.
6995 * valops.c (value_of_this): Update.
6996 * tracepoint.c (add_local_symbols, scope_info): Update.
6997 * symtab.h (struct general_symbol_info) <block>: Now const.
6998 * symtab.c (skip_prologue_sal)
6999 (default_make_symbol_completion_list_break_on)
7000 (skip_prologue_using_sal): Update.
7001 * stack.h (iterate_over_block_locals)
7002 (iterate_over_block_local_vars): Update.
7003 * stack.c (print_frame_args): Update.
7004 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7005 parameter const.
7006 (get_selected_block): Make return type const.
7007 * python/py-frame.c (frapy_block): Update.
7008 * python/py-block.c (gdbpy_block_for_pc): Update.
7009 * p-exp.y (%union) <bval>: Now const.
7010 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7011 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7012 * m2-exp.y (%union) <bval>: Now const.
7013 * linespec.c (get_current_search_block): Make return type const.
7014 (create_sals_line_offset, find_label_symbols): Update.
7015 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7016 Update.
7017 (block_starting_point_at): Make "block" const.
7018 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7019 (check_exception_resume): Update.
7020 * guile/scm-frame.c (gdbscm_frame_block): Update.
7021 * guile/scm-block.c (gdbscm_lookup_block): Update.
7022 * frame.h (get_frame_block): Update.
7023 (get_selected_block): Make return type const.
7024 * frame.c (frame_id_inner): Update.
7025 * f-valprint.c (info_common_command_for_block)
7026 (info_common_command): Update.
7027 * dwarf2loc.c (dwarf2_find_location_expression)
7028 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7029 (locexpr_describe_location_piece): Update.
7030 * c-exp.y (%union) <bval>: Now const.
7031 * breakpoint.c (resolve_sal_pc): Update.
7032 * blockframe.c (get_frame_block):Make return type const.
7033 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7034 (block_innermost_frame): Update.
7035 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7036 (block_for_pc, block_for_pc_sect): Update.
7037 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7038 'pblock' const.
7039 (block_for_pc_sect, block_for_pc): Make return type const.
7040 * ax-gdb.c (gen_expr): Update.
7041 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7042 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7043 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7044 (ada_read_var_value): Update.
7045 * ada-exp.y (struct name_info) <block>: Now const.
7046 (%union): Likewise.
7047 (block_lookup): Constify.
7048
7049 2014-06-18 Gary Benson <gbenson@redhat.com>
7050
7051 * nat/i386-dregs.h: New file.
7052 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7053 * i386-nat.h (i386-dregs.h): New include.
7054 (DR_FIRSTADDR): Now in i386-dregs.h.
7055 (DR_LASTADDR): Likewise.
7056 (DR_NADDR): Likewise.
7057 (DR_STATUS): Likewise.
7058 (DR_CONTROL): Likewise.
7059 (i386_debug_reg_state): Likewise.
7060 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7061
7062 2014-06-18 Don Breazeal <donb@codesourcery.com>
7063
7064 * breakpoint.c (set_longjmp_breakpoint): Call
7065 momentary_breakpoint_from_master with additional argument.
7066 (set_longjmp_breakpoint_for_call_dummy): Call
7067 momentary_breakpoint_from_master with additional argument.
7068 (set_std_terminate_breakpoint): Call
7069 momentary_breakpoint_from_master with additional argument.
7070 (momentary_breakpoint_from_master): Add argument to function
7071 definition and use it to initialize structure member flag.
7072 (clone_momentary_breakpoint): Call
7073 momentary_breakpoint_from_master with additional argument.
7074 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7075 member flags set in momentary_breakpoint_from_master.
7076
7077 2014-06-18 Gary Benson <gbenson@redhat.com>
7078
7079 * i386-nat.c (i386_show_dr): Renamed to
7080 i386_dr_show and made nonstatic. All uses updated.
7081 (i386_length_and_rw_bits): Renamed to
7082 i386_dr_length_and_rw_bits and made nonstatic.
7083 All uses updated.
7084 (i386_insert_aligned_watchpoint): Renamed to
7085 i386_dr_insert_aligned_watchpoint and made nonstatic.
7086 All uses updated.
7087 (i386_remove_aligned_watchpoint): Renamed to
7088 i386_dr_remove_aligned_watchpoint and made nonstatic.
7089 All uses updated.
7090 (i386_update_inferior_debug_regs): Renamed to
7091 i386_dr_update_inferior_debug_regs and made nonstatic.
7092 All uses updated.
7093
7094 2014-06-18 Gary Benson <gbenson@redhat.com>
7095
7096 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7097 (i386_dr_low_can_set_control): Likewise.
7098 (i386_dr_low_set_addr): Likewise.
7099 (i386_dr_low_set_control): Likewise.
7100 (i386_dr_low_get_addr): Likewise.
7101 (i386_dr_low_get_status): Likewise.
7102 (i386_dr_low_get_control): Likewise.
7103 (i386_insert_aligned_watchpoint): Use new macros.
7104 (i386_update_inferior_debug_regs): Likewise.
7105 (i386_stopped_data_address): Likewise.
7106
7107 2014-06-18 Gary Benson <gbenson@redhat.com>
7108
7109 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7110 New parameter. All uses updated.
7111
7112 2014-06-18 Gary Benson <gbenson@redhat.com>
7113
7114 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7115 All uses updated.
7116
7117 2014-06-18 Gary Benson <gbenson@redhat.com>
7118
7119 * i386-nat.c (debug_printf): New macro.
7120 (i386_get_debug_register_length): Likewise.
7121 (TARGET_HAS_DR_LEN_8): Use above macro.
7122 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7123 and printf_unfiltered. Use phex to format values.
7124
7125 2014-06-18 Gary Benson <gbenson@redhat.com>
7126
7127 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7128 Make const.
7129
7130 2014-06-18 Gary Benson <gbenson@redhat.com>
7131
7132 * i386-nat.c: Comment changes.
7133
7134 2014-06-18 Gary Benson <gbenson@redhat.com>
7135
7136 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7137
7138 2014-06-18 Gary Benson <gbenson@redhat.com>
7139
7140 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7141 (i386_insert_aligned_watchpoint): Likewise.
7142 (i386_remove_aligned_watchpoint): Likewise.
7143 (i386_handle_nonaligned_watchpoint): Likewise.
7144
7145 2014-06-18 Gary Benson <gbenson@redhat.com>
7146
7147 * i386-nat.c: Whitespace changes.
7148
7149 2014-06-17 Samuel Bronson <naesten@gmail.com>
7150
7151 * MAINTAINERS: Update Roland McGrath's email address.
7152 Thanks to Sergio Durigan Junior for pointing out that he left
7153 Red Hat a while ago, and giving me a current address.
7154
7155 2014-06-17 Tom Tromey <tromey@redhat.com>
7156
7157 * utils.h (savestring): Remove declaration.
7158
7159 2014-06-17 Tom Tromey <tromey@redhat.com>
7160
7161 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7162
7163 2014-06-16 Keith Seitz <keiths@redhat.com>
7164
7165 PR mi/15863
7166 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7167 to update the varobj if inferior_ptid is null_ptid.
7168
7169 2014-06-16 Tom Tromey <tromey@redhat.com>
7170
7171 * target.h (struct target_ops) <to_info_proc>: Make parameter
7172 const.
7173 (target_info_proc): Update.
7174 * target.c (target_info_proc): Make "args" const.
7175 * procfs.c (procfs_info_proc): Update.
7176 * linux-tdep.c (linux_info_proc): Update.
7177 (linux_core_info_proc_mappings): Make "args" const.
7178 (linux_core_info_proc): Update.
7179 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7180 * gdbarch.c: Rebuild.
7181 * gdbarch.h: Rebuild.
7182 * corelow.c (core_info_proc): Update.
7183
7184 2014-06-16 Tom Tromey <tromey@redhat.com>
7185
7186 * target.h (struct target_ops) <to_disconnect>: Make parameter
7187 const.
7188 (target_disconnect): Update.
7189 * target.c (target_disconnect): Make "args" const.
7190 * target-delegates.c: Rebuild.
7191 * remote.c (remote_disconnect): Update.
7192 * record.h (record_disconnect): Update.
7193 * record.c (record_disconnect): Update.
7194 * inf-child.c (inf_child_disconnect): Update.
7195
7196 2014-06-16 Tom Tromey <tromey@redhat.com>
7197
7198 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7199 * target.c (debug_to_rcmd, default_rcmd): Update.
7200 * target-delegates.c: Rebuild.
7201 * remote.c (remote_rcmd): Update.
7202 * monitor.c (monitor_rcmd): Update.
7203
7204 2014-06-16 Pedro Alves <palves@redhat.com>
7205
7206 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7207 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7208 have OBJF_SHARED set.
7209 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7210 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7211 instead of OBJF_USERLOADED.
7212 * objfiles.h (OBJF_SHARED): Update comment.
7213 (userloaded_objfile_contains_address_p): Rename to ...
7214 (shared_objfile_contains_address_p): ... this, and update
7215 comments.
7216 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7217 new objfile.
7218 (remove_symbol_file_command): Skip objfiles that don't have
7219 OBJF_SHARED set.
7220
7221 2014-06-16 Tom Tromey <tromey@redhat.com>
7222
7223 * minsyms.h (prim_record_minimal_symbol)
7224 (prim_record_minimal_symbol_and_info): Update comments.
7225
7226 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7227
7228 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7229 or --without-guile, according to how GDB was built.
7230
7231 2014-06-13 Tom Tromey <tromey@redhat.com>
7232
7233 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7234 to help_list.
7235 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7236 to help_list.
7237 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7238 help_list.
7239 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7240 help_list.Pass all_commands, not -1, to help_list.
7241 * cli/cli-dump.c (dump_command, append_command)
7242 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7243 (binary_dump_command, binary_append_command): Pass all_commands,
7244 not -1, to help_list.
7245 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7246 -1, to help_list.
7247 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7248 -1, to help_list.
7249 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7250 help_list.
7251 * top.c (set_history): Pass all_commands, not -1, to help_list.
7252 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7253 all_commands, not -1, to help_list.
7254 * symfile.c (overlay_command): Pass all_commands, not -1, to
7255 help_list.
7256 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7257 help_list.
7258 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7259 help_list.
7260 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7261 -1, to help_list.
7262 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7263 not -1, to help_list.
7264 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7265 not -1, to help_list.
7266 * maint.c (maintenance_command, maintenance_info_command)
7267 (maintenance_print_command, maintenance_set_cmd): Pass
7268 all_commands, not -1, to help_list.
7269 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7270 help_list.
7271 * language.c (set_check): Pass all_commands, not -1, to help_list.
7272 * infcmd.c (unset_command): Pass all_commands, not -1, to
7273 help_list.
7274 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7275 help_list.
7276 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7277 help_list.
7278 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7279 help_list.
7280 * breakpoint.c (save_command): Pass all_commands, not -1, to
7281 help_list.
7282 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7283 all_commands, not -1, to help_list.
7284
7285 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7286
7287 * regcache.c (struct register_to_invalidate): New structure.
7288 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7289 functions.
7290 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7291
7292 2014-06-12 Yao Qi <yao@codesourcery.com>
7293
7294 * varobj.c (varobj_get_num_children): Call
7295 varobj_is_dynamic_p.
7296 (varobj_list_children): Likewise.
7297 (varobj_update): Likewise. Update comments.
7298
7299 2014-06-12 Yao Qi <yao@codesourcery.com>
7300
7301 * varobj.c (varobj_pretty_printed_p): Rename to ...
7302 (varobj_is_dynamic_p): ... this. New function.
7303 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7304 (varobj_is_dynamic_p): Declare.
7305 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7306 (mi_print_value_p, varobj_update_one): Likewise.
7307
7308 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7309 Yao Qi <yao@codesourcery.com>
7310
7311 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7312 (varobj_get_iterator): Wrap up code for pretty-printer by
7313 "#if HAVE_PYTHON" and "#endif".
7314 (update_dynamic_varobj_children): Likewise.
7315
7316 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7317 Yao Qi <yao@codesourcery.com>
7318
7319 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7320 gdb_python_initialized is false. Move some code from varobj.c.
7321 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7322 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7323 (struct varobj_item): Moved to varobj-iter.h".
7324 (varobj_clear_saved_item): New function.
7325 (update_dynamic_varobj_children): Move python-related code to
7326 py-varobj.c.
7327 (free_variable): Call varobj_clear_saved_item and
7328 varobj_iter_delete.
7329
7330 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7331 Yao Qi <yao@codesourcery.com>
7332
7333 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7334 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7335 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7336 (py-varobj.o): New rule.
7337 * python/py-varobj.c: New file.
7338 * python/python-internal.h (py_varobj_get_iterator): Declare.
7339 * varobj-iter.h: New file.
7340 * varobj.c: Include "varobj-iter.h"
7341 (struct varobj) <child_iter>: Change its type from "PyObject *"
7342 to "struct varobj_iter *".
7343 <saved_item>: Likewise.
7344 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7345 [HAVE_PYTHON] (varobj_get_iterator): New function.
7346 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7347 python-specific code to python/py-varobj.c.
7348 (install_visualizer): Call varobj_iter_delete instead of
7349 Py_XDECREF.
7350 * varobj.h (varobj_ensure_python_env): Declare.
7351
7352 2014-06-12 Yao Qi <yao@codesourcery.com>
7353
7354 * varobj.c (struct varobj_item): New structure.
7355 (create_child_with_value): Update declaration.
7356 (varobj_add_child): Replace arguments 'name' and 'value' with
7357 'item'. All callers updated.
7358 (install_dynamic_child): Likewise.
7359 (update_dynamic_varobj_children): Likewise.
7360 (varobj_add_child): Likewise.
7361 (create_child_with_value): Likewise.
7362
7363 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7364
7365 * NEWS: Create a new section for the next release branch.
7366 Rename the section of the current branch, now that it has
7367 been cut.
7368
7369 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7370
7371 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7372 * version.in: Bump version to 7.8.50.DATE-cvs.
7373
7374 2014-06-11 Pedro Alves <palves@redhat.com>
7375
7376 PR remote/17028
7377 * ser-mingw.c (net_windows_socket_check_pending): New function.
7378 (net_windows_select_thread): Ignore spurious wakeups. Use
7379 net_windows_socket_check_pending.
7380 (net_windows_wait_handle): Check for pending events with
7381 ioctlsocket, through net_windows_socket_check_pending, instead of
7382 checking the socket's event.
7383
7384 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7385
7386 * python/python-internal.h (gdb_PyObject_GetAttrString)
7387 (gdb_PyObject_HasAttrString): New inline function definitions.
7388 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7389 char * of the second argument to PyObject_GetAttrString.
7390
7391 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7392
7393 * serial.c (serial_write): Fix index of character to be printed
7394 in call to serial_logchar when serial debug traces are enabled.
7395
7396 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7397
7398 * gdbtypes (resolve_dynamic_range): Add function description.
7399
7400 2014-06-09 Pedro Alves <palves@redhat.com>
7401
7402 * linux-nat.c (linux_child_follow_fork): Initialize status with
7403 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7404 inner block. Only pass the signal to PTRACE_DETACH if in pass
7405 state.
7406
7407 2014-06-09 Gary Benson <gbenson@redhat.com>
7408
7409 * common/signals.c (gdb_signal_from_host): Reorder to separate
7410 the always-available ANSI-standard signals from the signals that
7411 require checking.
7412 (do_gdb_signal_to_host): Likewise.
7413 * proc-events.c (signal_table): Likewise.
7414
7415 2014-06-08 Hui Zhu <hui@codesourcery.com>
7416
7417 * common/linux-ptrace.c (linux_disable_event_reporting): New
7418 function.
7419 * common/linux-ptrace.h (linux_disable_event_reporting): New
7420 declaration.
7421 * linux-nat.c (linux_child_follow_fork): Do a single step before
7422 detach.
7423
7424 2014-06-07 Keith Seitz <keiths@redhat.com>
7425
7426 Revert:
7427 PR c++/16253
7428 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7429 from symbol_matches_domain in symtab.c. All local callers
7430 of symbol_matches_domain updated.
7431 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7432 search STRUCT_DOMAIN.
7433 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7434 independently. standard_lookup will do that automatically.
7435 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7436 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7437 (cp_lookup_symbol_in_namespace): Likewise.
7438 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7439 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7440 may return a STRUCT_DOMAIN match.
7441 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7442 * cp-support.c: Include language.h.
7443 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7444 VAR_DOMAIN.
7445 * psymtab.c (match_partial_symbol): Compare the requested
7446 domain with the symbol's domain directly.
7447 (lookup_partial_symbol): Likewise.
7448 * symtab.c (lookup_symbol_in_language): Explain when/why
7449 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7450 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7451 appropriate languages.
7452 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7453 and moved to ada-lang.c
7454 (lookup_block_symbol): Explain that this function only returns
7455 symbol matching the requested DOMAIN.
7456 Compare the requested domain with the symbol's domain directly.
7457 (iterate_over_symbols): Compare the requested domain with the
7458 symbol's domain directly.
7459 * symtab.h (symbol_matches_domain): Remove.
7460
7461 2014-06-06 Doug Evans <xdje42@gmail.com>
7462
7463 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7464 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7465 (gdbscm_guile_version_is_at_least): Declare.
7466 (gdbscm_scm_string_to_int): Declare.
7467 * guile/guile.c (gdbscm_guile_major_version): New global.
7468 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7469 (guile_datadir): New static global.
7470 (gdbscm_guile_data_directory): New function.
7471 (initialize_scheme_side): Update.
7472 (misc_guile_functions): Add guile-data-directory.
7473 (initialize_gdb_module): Fetch guile version number.
7474 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7475 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7476 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7477 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7478 comments.
7479 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7480 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7481 * guile/scm-value.c (gdbscm_value_to_string): Only call
7482 scm_port_conversion_strategy if Guile version >= 2.0.6.
7483
7484 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7485
7486 * main.c (print_gdb_help): Add -q and --silent.
7487
7488 2014-06-06 Gary Benson <gbenson@redhat.com>
7489
7490 * common/signals.c: Remove preprocessor conditionals for
7491 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7492 SIGSEGV and SIGTERM.
7493 * proc-events.c: Likewise.
7494
7495 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7496
7497 * symfile.c (symfile_free_objfile): Remove restriction to
7498 OBJF_USERLOADED.
7499 * symfile-mem.c (symbol_file_add_from_memory): Call
7500 add_target_sections_of_objfile.
7501
7502 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7503
7504 * guile/scm-value.c (gdbscm_history_append_x): Use
7505 'vlscm_get_value_smob_arg_unsafe' instead of
7506 'vlscm_scm_to_value'.
7507
7508 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7509
7510 PR mi/15806
7511 * utils.c (printchar): Don't escape at all if quoter is NUL.
7512 Update function documentation to clarify effect of parameter
7513 QUOTER.
7514 * remote.c (escape_buffer): Pass '\\' as the quoter to
7515 fputstrn_unfiltered.
7516 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7517 generate the output.
7518 (mi_solib_unloaded): Same.
7519
7520 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7521
7522 * development.sh: Delete.
7523 * Makefile.in (config.status): Adjust dependency on development.sh.
7524 * configure.ac: Adjust development.sh source call.
7525 * configure: Regenerate.
7526
7527 2014-06-04 Doug Evans <xdje42@gmail.com>
7528
7529 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7530 is_scheme_bkpt, spec.
7531 (bpscm_make_breakpoint_smob): Initialize new members.
7532 (gdbscm_create_breakpoint_x): Split into two ...
7533 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7534 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7535 (scheme_function breakpoint_functions): Update.
7536 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7537 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7538 register-breakpoint!.
7539
7540 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7541
7542 PR server/17023
7543 * mem-break.c (z_type_supported): Return zero if
7544 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7545
7546 2014-06-04 Tom Tromey <tromey@redhat.com>
7547
7548 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7549 value_from_contents_and_address_unresolved.
7550 (ada_template_to_fixed_record_type_1): Likewise.
7551 (ada_which_variant_applies): Likewise.
7552 * value.h (value_from_contents_and_address_unresolved): Declare.
7553 * value.c (value_from_contents_and_address_unresolved): New
7554 function.
7555 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7556 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7557 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7558
7559 2014-06-04 Tom Tromey <tromey@redhat.com>
7560
7561 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7562
7563 2014-06-04 Tom Tromey <tromey@redhat.com>
7564
7565 * procfs.c (procfs_attach): Make "args" const.
7566 * windows-nat.c (windows_attach): Make "args" const.
7567 * nto-procfs.c (procfs_attach): Make "args" const.
7568 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7569 * go32-nat.c (go32_attach): Make "args" const.
7570 * gnu-nat.c (gnu_attach): Make "args" const.
7571 * darwin-nat.c (darwin_attach): Make "args" const.
7572 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7573 * linux-nat.c (linux_nat_attach): Make "args" const.
7574 * remote.c (extended_remote_attach_1, extended_remote_attach):
7575 Make "args" const.
7576 * target.h (struct target_ops) <to_attach>: Make "args" const.
7577 (find_default_attach): Likewise.
7578 * utils.c (parse_pid_to_attach): Make "args" const.
7579 * utils.h (parse_pid_to_attach): Update.
7580
7581 2014-06-04 Tom Tromey <tromey@redhat.com>
7582
7583 * target-delegates.c: Rebuild.
7584 * target.c (default_thread_address_space): New function.
7585 (target_thread_address_space): Simplify.
7586 * target.h (struct target_ops) <to_thread_address_space>: Add
7587 TARGET_DEFAULT_FUNC.
7588
7589 2014-06-04 Doug Evans <xdje42@gmail.com>
7590
7591 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7592
7593 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7594
7595 * record-btrace.c: Include event-loop.h and inf-loop.h.
7596 (record_btrace_resume_exec_dir)
7597 (record_btrace_async_inferior_event_handler)
7598 (record_btrace_handle_async_inferior_event): New.
7599 (record_btrace_open): Create async event handler.
7600 (record_btrace_close): Delete async event handler.
7601 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7602 Mark async event handler.
7603 (record_btrace_execution_direction): New.
7604 (init_record_btrace_ops): Initialize to_execution_direction.
7605
7606 2014-06-03 Doug Evans <xdje42@gmail.com>
7607
7608 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7609 (gdbscm_make_parameter): Ditto.
7610
7611 2014-06-03 Doug Evans <dje@google.com>
7612
7613 * exec.c (exec_close_1): Call clear_section_table instead of
7614 resize_section_table.
7615 (clear_section_table): New function.
7616 (resize_section_table): Make static. Rename arg num_added to
7617 adjustment.
7618 * exec.h (clear_section_table): Declare.
7619 (resize_section_table): Delete.
7620 * progspace.c (release_program_space): Call clear_section_table
7621 instead of resize_section_table.
7622
7623 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7624
7625 * NEWS (Python Scripting): Add entry about the new xmethods
7626 feature.
7627
7628 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7629
7630 * python/py-xmethods.c: New file.
7631 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7632 (objfpy_dealloc): XDECREF on the new xmethods field.
7633 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7634 field.
7635 (objfpy_get_xmethods): New function.
7636 (objfile_getset): New entry 'xmethods'.
7637 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7638 (pspy_dealloc): XDECREF on the new xmethods field.
7639 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7640 field.
7641 (pspy_get_xmethods): New function.
7642 (pspace_getset): New entry 'xmethods'.
7643 * python/python-internal.h: Add declarations for new functions.
7644 * python/python.c (_initialize_python): Invoke
7645 gdbpy_initialize_xmethods.
7646 * python/lib/gdb/__init__.py (xmethods): New
7647 attribute.
7648 * python/lib/gdb/xmethod.py: New file.
7649 * python/lib/gdb/command/xmethods.py: New file.
7650
7651 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7652
7653 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7654 best match method returned by find_overload_match is an xmethod.
7655 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7656 the best matching operator returned by find_overload_match is an
7657 xmethod.
7658 * valops.c: #include "extension.h".
7659 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7660 Return void. The list of matching source methods is returned in
7661 "fn_list" and a vector of matching debug method workers is
7662 returned in "xm_worker_vec". Update all callers.
7663 (value_find_oload_method_list): Likewise.
7664 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7665 non-NULL, then the index of the best matching method in this
7666 vector is returned. Update all callers.
7667 (find_overload_match): Include xmethods while performing overload
7668 resolution.
7669
7670 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7671
7672 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7673 * extension-priv.h (struct extension_language_ops): Add the
7674 xmethod interface.
7675 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7676 get_matching_xmethod_workers, get_xmethod_argtypes,
7677 invoke_xmethod, free_xmethod_worker,
7678 free_xmethod_worker_vec): New functions.
7679 * extension.h: #include "common/vec.h".
7680 New function declarations.
7681 (struct xmethod_worker): New struct.
7682 (VEC (xmethod_worker_ptr)): New vector type.
7683 (xmethod_worker_ptr): New typedef.
7684 (xmethod_worker_vec): Likewise.
7685 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7686 builtin_type.
7687 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7688 (struct builtin_type): New field "xmethod".
7689 * valarith.c (value_ptradd): Assert that the value argument is not
7690 lval_xcallable.
7691 * valops.c (value_must_coerce_to_target): Return 0 for
7692 lval_xcallable values.
7693 * value.c (struct value): New field XM_WORKER in the field
7694 LOCATION.
7695 (value_address, value_raw_address): Return 0 for lval_xcallable
7696 values.
7697 (set_value_address): Assert that the value is not an
7698 lval_xcallable.
7699 (value_free): Free the associated xmethod worker when freeing
7700 lval_xcallable values.
7701 (set_value_component_location): Assert that the WHOLE value is not
7702 lval_xcallable.
7703 (value_of_xmethod, call_xmethod): New functions.
7704 * value.h: Declare "struct xmethod_worker".
7705 Declare new functions value_of_xmethod, call_xmethod.
7706
7707 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7708 Pedro Alves <palves@redhat.com>
7709
7710 PR breakpoints/17000
7711 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7712 New function, extracted from software_breakpoint_inserted_here_p.
7713 (software_breakpoint_inserted_here_p): Replace factored out code
7714 by call to find_non_raw_software_breakpoint_inserted_here.
7715 (bp_target_info_copy_insertion_state): New function.
7716 (bkpt_insert_location): Handle the case of a single-step
7717 breakpoint already inserted at the same address.
7718 (bkpt_remove_location): Handle the case of a single-step
7719 breakpoint still inserted at the same address.
7720 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7721 breakpoint already inserted at the same address.
7722 (deprecated_remove_raw_breakpoint): Handle the case of a
7723 non-raw breakpoint still inserted at the same address.
7724 (find_single_step_breakpoint): New function, extracted from
7725 single_step_breakpoint_inserted_here_p.
7726 (find_single_step_breakpoint): New function,
7727 factored out from single_step_breakpoint_inserted_here_p.
7728 (single_step_breakpoint_inserted_here_p): Reimplement.
7729
7730 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7731
7732 Pushed by Joel Brobecker <brobecker@adacore.com>
7733 * source.c (show_substitute_path_command): Fix display of matching
7734 substitution rules.
7735
7736 2014-06-03 Gary Benson <gbenson@redhat.com>
7737
7738 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7739
7740 2014-06-02 Doug Evans <xdje42@gmail.com>
7741
7742 Add parameter support for Guile.
7743 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7744 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7745 (scm-param.o): New rule.
7746 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7747 (gdbscm_misc_error): Declare.
7748 (gdbscm_canonicalize_command_name): Declare.
7749 (gdbscm_scm_to_host_string): Declare.
7750 (gdbscm_scm_from_host_string): Declare.
7751 (gdbscm_initialize_parameters): Declare.
7752 * guile/guile.c (initialize_gdb_module): Call
7753 gdbscm_initialize_parameters.
7754 * guile/lib/gdb.scm: Export parameter symbols.
7755 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7756 cmdscm_canonicalize_name and made public. All callers updated.
7757 * guile/scm-exception.c (gdbscm_misc_error): New function.
7758 * guile/scm-param.c: New file.
7759 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7760 (gdbscm_scm_to_host_string): New function.
7761 (gdbscm_scm_from_host_string): New function.
7762 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7763
7764 2014-06-02 Doug Evans <xdje42@gmail.com>
7765
7766 Add command support for Guile.
7767 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7768 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7769 (scm-cmd.o): New rule.
7770 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7771 (gdbscm_user_error_p): Declare.
7772 (gdbscm_parse_command_name): Declare.
7773 (gdbscm_valid_command_class_p): Declare.
7774 (gdbscm_initialize_commands): Declare.
7775 * guile/guile.c (initialize_gdb_module): Call
7776 gdbscm_initialize_commands.
7777 * guile/lib/gdb.scm: Export command symbols.
7778 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7779 (throw-user-error): New function.
7780 * guile/scm-cmd.c: New file.
7781 * guile/scm-exception.c (user_error_symbol): New static global.
7782 (gdbscm_user_error_p): New function.
7783 (gdbscm_initialize_exceptions): Set user_error_symbol.
7784 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7785
7786 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7787
7788 * top.c (command_loop): Handle comments here...
7789 (command_line_input): ... not here.
7790
7791 2014-06-02 Doug Evans <xdje42@gmail.com>
7792
7793 Add progspace support for Guile.
7794 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7795 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7796 (scm-progspace.o): New rule.
7797 * guile/guile-internal.h (pspace_smob): New typedef.
7798 (psscm_pspace_smob_pretty_printers): Declare.
7799 (psscm_pspace_smob_from_pspace): Declare.
7800 (psscm_scm_from_pspace): Declare.
7801 * guile/guile.c (initialize_gdb_module): Call
7802 gdbscm_initialize_pspaces.
7803 * guile/lib/gdb.scm: Export progspace symbols.
7804 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7805 support.
7806 (append-pretty-printer!): Ditto.
7807 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7808 Implement.
7809 * guile/scm-progspace.c: New file.
7810
7811 2014-06-03 Alan Modra <amodra@gmail.com>
7812
7813 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7814 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7815
7816 2014-06-02 Doug Evans <dje@google.com>
7817
7818 Add support for skeletonless type units.
7819 * dwarf2read.c (struct dwarf2_per_objfile): New member
7820 n_allocated_type_units.
7821 (struct dwarf2_per_objfile) <tu_stats>: New member
7822 nr_all_type_units_reallocs.
7823 (create_signatured_type_table_from_index): Initialize
7824 n_allocated_type_units
7825 (create_all_type_units): Ditto.
7826 (add_type_unit): Move up in file. New arg slot.
7827 All callers updated. Increase space for all_type_units more
7828 efficiently.
7829 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7830 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7831 (lookup_dwp_signatured_type): Ditto.
7832 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7833 All callers updated.
7834 (build_type_psymtabs_1): Leave type_unit_groups as
7835 NULL if no TUs present.
7836 (print_tu_stats): New function.
7837 (process_skeletonless_type_unit): New function.
7838 (process_dwo_file_for_skeletonless_type_units): New
7839 function.
7840 (process_skeletonless_type_units): New function.
7841 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7842 Call print tu_stats if debugging enabled.
7843
7844 2014-06-02 Pedro Alves <palves@redhat.com>
7845
7846 * breakpoint.c (build_target_command_list): Don't build a command
7847 list if we have any duplicate location that isn't a dprintf.
7848
7849 2014-06-02 Pedro Alves <palves@redhat.com>
7850
7851 * breakpoint.c (dprintf_breakpoint_hit): New function.
7852 (initialize_breakpoint_ops): Install it as dprintf's
7853 breakpoint_hit method.
7854
7855 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7856
7857 * source.c (substitute_path_rule_matches): Simplify using
7858 filename_ncmp instead of FILENAME_CMP.
7859
7860 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7861
7862 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7863
7864 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7865
7866 * configure.ac: When Guile is available, check for the
7867 availability of 'scm_new_smob'.
7868 * configure, config.h.in: Regenerate.
7869 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7870 function.
7871
7872 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7873
7874 * frame.c (struct frame_info): Add stop_string field.
7875 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7876 (get_prev_frame_always): Old content moved into
7877 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7878 TRY_CATCH, handle MEMORY_ERROR exceptions.
7879 (frame_stop_reason_string): New function definition.
7880 * frame.h (unwind_stop_reason_to_string): Extend comment to
7881 mention frame_stop_reason_string.
7882 (frame_stop_reason_string): New function declaration.
7883 * stack.c (frame_info): Switch to frame_stop_reason_string.
7884 (backtrace_command_1): Switch to frame_stop_reason_string.
7885 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7886 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7887 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7888
7889 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7890
7891 * frame.c (frame_stop_reason_string): Rename to ...
7892 (unwind_stop_reason_to_string): this.
7893 * frame.h (frame_stop_reason_string): Rename to ...
7894 (unwind_stop_reason_to_string): this.
7895 * stack.c (frame_info): Update call to frame_stop_reason_string.
7896 (backtrace_command_1): Likewise.
7897 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7898 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7899
7900 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7901
7902 * frame.c (remove_prev_frame): New function.
7903 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7904 remove_prev_frame.
7905
7906 2014-05-29 Pedro Alves <palves@redhat.com>
7907
7908 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7909 and make it const. When a single-step decays to a continue,
7910 clear 'step', not 'hw_step'. Pass whether the caller wanted
7911 to step to user_visible_resume_ptid, not what we ask the
7912 target to do.
7913
7914 2014-05-29 Pedro Alves <palves@redhat.com>
7915
7916 * infrun.c (process_event_stop_test, handle_step_into_function)
7917 (handle_step_into_function_backward): Adjust.
7918 Don't set the even thread's stop_step and call stop_waiting before
7919 calling end_stepping_range. Instead do that ...
7920 (end_stepping_range): ... here. Take an ecs pointer parameter.
7921
7922 2014-05-29 Pedro Alves <palves@redhat.com>
7923
7924 * infrun.c (stop_stepping): Rename to ...
7925 (stop_waiting): ... this.
7926 (proceed): Update comment.
7927 (process_event_stop_test, handle_inferior_event)
7928 (handle_signal_stop, handle_step_into_function)
7929 (handle_step_into_function_backward): Update.
7930
7931 2014-05-29 Pedro Alves <palves@redhat.com>
7932
7933 * infcall.c (run_inferior_call): Don't check whether the current
7934 thread is running after the proceed call.
7935
7936 2014-05-29 Pedro Alves <palves@redhat.com>
7937 Tom Tromey <tromey@redhat.com>
7938
7939 * NEWS: Mention "maint set target-async", "set mi-async", and that
7940 background execution commands are now always available.
7941 * target.h (target_async_permitted): Update comment.
7942 * target.c (target_async_permitted, target_async_permitted_1):
7943 Default to 1.
7944 (set_target_async_command): Rename to ...
7945 (maint_set_target_async_command): ... this.
7946 (show_target_async_command): Rename to ...
7947 (maint_show_target_async_command): ... this.
7948 (_initialize_target): Adjust.
7949 * infcmd.c (prepare_execution_command): Make extern.
7950 * inferior.h (prepare_execution_command): Declare.
7951 * infrun.c (set_observer_mode): Leave target async alone.
7952 * mi/mi-interp.c (mi_interpreter_init): Install
7953 mi_on_sync_execution_done as sync_execution_done observer.
7954 (mi_on_sync_execution_done): New function.
7955 (mi_execute_command_input_handler): Don't print the prompt if we
7956 just started a synchronous command with an async target.
7957 (mi_on_resume): Check sync_execution before printing prompt.
7958 * mi/mi-main.h (mi_async_p): Declare.
7959 * mi/mi-main.c: Include gdbcmd.h.
7960 (mi_async_p): New function.
7961 (mi_async, mi_async_1): New globals.
7962 (set_mi_async_command, show_mi_async_command, mi_async): New
7963 functions.
7964 (exec_continue): Call prepare_execution_command.
7965 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7966 (mi_execute_async_cli_command): Use mi_async_p.
7967 (_initialize_mi_main): Install "set mi-async". Make
7968 "target-async" a deprecated alias.
7969
7970 2014-05-29 Pedro Alves <palves@redhat.com>
7971
7972 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7973 (_initialize_cli_interp): Adjust.
7974 * event-loop.c: Include "observer.h".
7975 (start_event_loop): Notify 'command_error' observers instead of
7976 calling display_gdb_prompt. Remove FIXME comment.
7977 * event-top.c (display_gdb_prompt): Remove call into the
7978 interpreters.
7979 * inf-loop.c: Include "observer.h".
7980 (inferior_event_handler): Notify 'command_error' observers instead
7981 of calling display_gdb_prompt.
7982 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7983 observers instead of calling display_gdb_prompt.
7984 * interps.c (interp_set): Don't call display_gdb_prompt.
7985 (current_interp_display_prompt_p): Delete.
7986 * interps.h (interp_prompt_p): Delete declaration.
7987 (interp_prompt_p_ftype): Delete.
7988 (struct interp_procs) <prompt_proc_p>: Delete field.
7989 (current_interp_display_prompt_p): Delete declaration.
7990 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7991 (_initialize_mi_interp): Adjust.
7992 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7993 'command_error' observers.
7994 (tui_on_sync_execution_done, tui_on_command_error): New
7995 functions.
7996 (tui_display_prompt_p): Delete.
7997 (_initialize_tui_interp): Adjust.
7998
7999 2014-05-29 Pedro Alves <palves@redhat.com>
8000
8001 PR gdb/13860
8002 * cli/cli-interp.c: Include infrun.h and observer.h.
8003 (cli_uiout, cli_interp): New globals.
8004 (cli_on_signal_received, cli_on_end_stepping_range)
8005 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8006 functions.
8007 (cli_interpreter_init): Install them as 'end_stepping_range',
8008 'signal_received' 'signal_exited', 'exited' and 'no_history'
8009 observers.
8010 (_initialize_cli_interp): Remove cli_interp local.
8011 * infrun.c (handle_inferior_event): Call the several stop reason
8012 observers instead of printing the stop reason directly.
8013 (end_stepping_range): New function.
8014 (print_end_stepping_range_reason, print_signal_exited_reason)
8015 (print_exited_reason, print_signal_received_reason)
8016 (print_no_history_reason): Make static, and add an uiout
8017 parameter. Print to that instead of to CURRENT_UIOUT.
8018 * infrun.h (print_end_stepping_range_reason)
8019 (print_signal_exited_reason, print_exited_reason)
8020 (print_signal_received_reason print_no_history_reason): New
8021 declarations.
8022 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8023 'mi_uiout'.
8024 <cli_uiout>: New field.
8025 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8026 uiout for CLI output. Install 'signal_received',
8027 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8028 observers.
8029 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8030 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8031 (mi_on_no_history): New functions.
8032 (ui_out_free_cleanup): Delete function.
8033 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8034 instead use the one already stored in the MI interpreter data.
8035 (mi_ui_out): Adjust.
8036 * tui/tui-interp.c: Include infrun.h and observer.h.
8037 (tui_interp): New global.
8038 (tui_on_signal_received, tui_on_end_stepping_range)
8039 (tui_on_signal_exited, tui_on_exited)
8040 (tui_on_no_history): New functions.
8041 (tui_init): Install them as 'end_stepping_range',
8042 'signal_received' 'signal_exited', 'exited' and 'no_history'
8043 observers.
8044 (_initialize_tui_interp): Delete tui_interp local.
8045
8046 2014-05-29 Pedro Alves <palves@redhat.com>
8047
8048 PR gdb/15713
8049 * linux-nat.c (linux_nat_resume_callback): Rename the second
8050 parameter to 'except'. Skip LP if it points to EXCEPT.
8051 (linux_nat_resume): Don't mark the event lwp as not stopped
8052 before resuming sibling lwps. Instead ask
8053 linux_nat_resume_callback to skip the event lwp. Mark it as not
8054 stopped after actually resuming it.
8055 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8056 resuming it.
8057 (wait_lwp): Mark the lwp as stopped here.
8058 (stop_wait_callback): Mark the lwp as not stopped right after
8059 resuming it. Don't mark lwps as stopped here.
8060 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8061 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8062
8063 2014-05-29 Pedro Alves <palves@redhat.com>
8064
8065 PR PR15693
8066 * infrun.c (resume): Determine how much to resume depending on
8067 whether the caller wanted a step, not whether we can hardware step
8068 the target. Mark all threads that we intend to run as running,
8069 unless we're calling an inferior function.
8070 (normal_stop): If the thread is running an infcall, don't finish
8071 thread state.
8072 * target.c (target_resume): Don't mark threads as running here.
8073
8074 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8075
8076 * serial.c (_initialize_serial): Remove support for
8077 the "set remotebaud" and "show remotebaud" commands.
8078 * NEWS: Add entry documenting the removal of that command.
8079
8080 2014-05-28 Yao Qi <yao@codesourcery.com>
8081
8082 * charset.c: Fix typo in comments.
8083
8084 2014-05-27 Gary Benson <gbenson@redhat.com>
8085
8086 * utils.c (internal_vproblem): Prompt for a bug report.
8087
8088 2014-05-26 Andy Wingo <wingo@igalia.com>
8089
8090 * guile/scm-arch.c (arscm_mark_arch_smob):
8091 * guile/scm-block.c (bkscm_mark_block_smob)
8092 (bkscm_mark_block_syms_progress_smob):
8093 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8094 * guile/scm-exception.c (exscm_mark_exception_smob):
8095 * guile/scm-frame.c (frscm_mark_frame_smob):
8096 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8097 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8098 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8099 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8100 (ppscm_mark_pretty_printer_worker_smob):
8101 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8102 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8103 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8104 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8105 mark functions.
8106 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8107 function.
8108
8109 2014-05-26 Andy Wingo <wingo@igalia.com>
8110 Doug Evans <xdje42@gmail.com>
8111
8112 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8113 empty_base_class. All uses updated.
8114 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8115 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8116 Adapt all callers.
8117 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8118 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8119 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8120 (gdbscm_gsmob_has_property_p, add_property_name)
8121 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8122 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8123 (gdb-object-has-property?, gdb-object-properties): Remove.
8124 (gdb-object-kind): Renamed from gsmob-kind.
8125
8126 2014-05-26 Andy Wingo <wingo@igalia.com>
8127
8128 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8129 * configure: Regenerate.
8130
8131 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8132
8133 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8134
8135 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8136
8137 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8138 (replay_memory_access_read_only, replay_memory_access_read_write)
8139 (replay_memory_access_types, replay_memory_access)
8140 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8141 (cmd_set_record_btrace, cmd_show_record_btrace)
8142 (cmd_show_replay_memory_access): New.
8143 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8144 (record_btrace_remove_breakpoint): Replace
8145 record_btrace_allow_memory_access with replay_memory_access.
8146 (_initialize_record_btrace): Add commands.
8147 * NEWS: Announce it.
8148
8149 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8150
8151 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8152
8153 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8154
8155 * MAINTAINERS (Write After Approval): Move self back from
8156 paper trail.
8157
8158 2014-05-22 Pedro Alves <palves@redhat.com>
8159
8160 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8161 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8162 (disable_randomization, enum exec_direction_kind)
8163 (execution_direction, stop_registers, start_remote)
8164 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8165 (wait_for_inferior, normal_stop, get_last_target_status)
8166 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8167 (insert_step_resume_breakpoint_at_sal)
8168 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8169 (set_step_info, print_stop_event, signal_stop_state)
8170 (signal_print_state, signal_pass_state, signal_stop_update)
8171 (signal_print_update, signal_pass_update)
8172 (update_signals_program_target, clear_exit_convenience_vars)
8173 (displaced_step_dump_bytes, update_observer_mode)
8174 (signal_catch_update, gdb_signal_from_command): Move
8175 declarations ...
8176 * infrun.h: ... to this new file.
8177 * amd64-tdep.c: Include infrun.h.
8178 * annotate.c: Include infrun.h.
8179 * arch-utils.c: Include infrun.h.
8180 * arm-linux-tdep.c: Include infrun.h.
8181 * arm-tdep.c: Include infrun.h.
8182 * break-catch-sig.c: Include infrun.h.
8183 * breakpoint.c: Include infrun.h.
8184 * common/agent.c: Include infrun.h instead of inferior.h.
8185 * corelow.c: Include infrun.h.
8186 * event-top.c: Include infrun.h.
8187 * go32-nat.c: Include infrun.h.
8188 * i386-tdep.c: Include infrun.h.
8189 * inf-loop.c: Include infrun.h.
8190 * infcall.c: Include infrun.h.
8191 * infcmd.c: Include infrun.h.
8192 * infrun.c: Include infrun.h.
8193 * linux-fork.c: Include infrun.h.
8194 * linux-nat.c: Include infrun.h.
8195 * linux-thread-db.c: Include infrun.h.
8196 * monitor.c: Include infrun.h.
8197 * nto-tdep.c: Include infrun.h.
8198 * procfs.c: Include infrun.h.
8199 * record-btrace.c: Include infrun.h.
8200 * record-full.c: Include infrun.h.
8201 * remote-m32r-sdi.c: Include infrun.h.
8202 * remote-mips.c: Include infrun.h.
8203 * remote-notif.c: Include infrun.h.
8204 * remote-sim.c: Include infrun.h.
8205 * remote.c: Include infrun.h.
8206 * reverse.c: Include infrun.h.
8207 * rs6000-tdep.c: Include infrun.h.
8208 * s390-linux-tdep.c: Include infrun.h.
8209 * solib-irix.c: Include infrun.h.
8210 * solib-osf.c: Include infrun.h.
8211 * solib-svr4.c: Include infrun.h.
8212 * target.c: Include infrun.h.
8213 * top.c: Include infrun.h.
8214 * windows-nat.c: Include infrun.h.
8215 * mi/mi-interp.c: Include infrun.h.
8216 * mi/mi-main.c: Include infrun.h.
8217 * python/py-threadevent.c: Include infrun.h.
8218
8219 2014-05-22 Pedro Alves <palves@redhat.com>
8220
8221 * infrun.c (handle_inferior_event): Store the exit code for
8222 --return-child-result here, instead of ...
8223 (print_exited_reason): ... here.
8224
8225 2014-05-21 Pedro Alves <palves@redhat.com>
8226
8227 PR gdb/13860
8228 * gdbthread.h (struct thread_control_state): New field
8229 `command_interp'.
8230 * infrun.c (follow_fork): Copy the new thread control field to the
8231 child fork thread.
8232 (clear_proceed_status_thread): Clear the new thread control field.
8233 (proceed): Set the new thread control field.
8234 * interps.h (command_interp): Declare.
8235 * interps.c (command_interpreter): New global.
8236 (command_interp): New function.
8237 (interp_exec): Set `command_interpreter' while here.
8238 * cli-out.c (cli_uiout_dtor): New function.
8239 (cli_ui_out_impl): Install it.
8240 * mi/mi-interp.c: Include cli-out.h.
8241 (mi_cmd_interpreter_exec): Add comment.
8242 (restore_current_uiout_cleanup): New function.
8243 (ui_out_free_cleanup): New function.
8244 (mi_on_normal_stop): If finishing an execution command started by
8245 a CLI command, or any kind of breakpoint-like event triggered,
8246 print the stop event to the output (CLI) stream.
8247 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8248
8249 2014-05-21 Pedro Alves <palves@redhat.com>
8250
8251 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8252 current source line having changed.
8253 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8254 * infrun.c (normal_stop): Adjust call to
8255 set_current_sal_from_frame.
8256 * source.c (clear_lines_listed_range): New function.
8257 (set_current_source_symtab_and_line, identify_source_line): Clear
8258 the lines listed range.
8259 (line_info): Handle the first "info line" after the current source
8260 line having changed.
8261 * stack.c (print_stack_frame): Remove center handling.
8262 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8263 center sal.line.
8264
8265 2014-05-21 Pedro Alves <palves@redhat.com>
8266
8267 * inf-child.c (inf_child_mourn_inferior): New function.
8268 * inf-child.h (inf_child_mourn_inferior): New declaration.
8269 * darwin-nat.c (darwin_mourn_inferior): Use
8270 inf_child_mourn_inferior.
8271 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8272 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8273 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8274 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8275 * windows-nat.c (windows_mourn_inferior): Likewise.
8276
8277 2014-05-21 Doug Evans <xdje42@gmail.com>
8278
8279 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8280
8281 2014-05-21 Doug Evans <xdje42@gmail.com>
8282
8283 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8284 (gdbscm_out_of_range_error): Ditto.
8285 (gdbscm_memory_error): Ditto.
8286 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8287 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8288 (gdbscm_out_of_range_error): Update.
8289 (gdbscm_memory_error): Update.
8290 (gdbscm_scm_to_target_string_unsafe): Delete.
8291
8292 2014-05-21 Pedro Alves <palves@redhat.com>
8293
8294 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8295 globals.
8296 (inf_child_open_target): New function.
8297 (inf_child_open): Use inf_child_open_target to push the target
8298 instead of erroring out.
8299 (inf_child_disconnect, inf_child_close)
8300 (inf_child_maybe_unpush_target): New functions.
8301 (inf_child_target): Install inf_child_disconnect and
8302 inf_child_close. Store a pointer to the returned object.
8303 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8304 declarations.
8305 * target.c (auto_connect_native_target): New global.
8306 (show_default_run_target): New function.
8307 (find_default_run_target): Return NULL if automatically connecting
8308 to the native target is disabled.
8309 (_initialize_target): Install set/show auto-connect-native-target.
8310 * NEWS: Mention "set auto-connect-native-target", and "target
8311 native".
8312 * linux-nat.c (super_close): New global.
8313 (linux_nat_close): Call super_close.
8314 (linux_nat_add_target): Store a pointer to the base class's
8315 to_close method.
8316 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8317 inf_child_maybe_unpush.
8318 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8319 already pushed.
8320 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8321 the inferior. Use inf_child_maybe_unpush_target.
8322 (inf_ttrace_attach): Don't push the target if it is already
8323 pushed.
8324 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8325 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8326 after mourning the inferior. Use inf_child_maybe_unpush_target.
8327 (darwin_attach_pid): Don't push the target if it is already
8328 pushed.
8329 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8330 mourning the inferior. Use inf_child_maybe_unpush_target.
8331 (gnu_detach): Use inf_child_maybe_unpush_target.
8332 * go32-nat.c (go32_create_inferior): Don't push the target if it
8333 is already pushed.
8334 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8335 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8336 (procfs_open): Rename to ...
8337 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8338 comments. Can target_preopen before changing node. Call
8339 inf_child_open_target to push the target explicitly.
8340 (procfs_attach): Don't push the target if it is already pushed.
8341 (procfs_detach): Use inf_child_maybe_unpush_target.
8342 (procfs_create_inferior): Don't push the target if it is already
8343 pushed.
8344 (nto_native_ops): New global.
8345 (procfs_open): Reimplement.
8346 (procfs_native_open): New function.
8347 (init_procfs_targets): Install procfs_native_open as to_open of
8348 "target native". Store a pointer to the "native" target in
8349 nto_native_ops.
8350 * procfs.c (procfs_attach): Don't push the target if it is already
8351 pushed.
8352 (procfs_detach): Use inf_child_maybe_unpush_target.
8353 (procfs_mourn_inferior): Only unpush the target after mourning the
8354 inferior. Use inf_child_maybe_unpush_target.
8355 (procfs_init_inferior): Don't push the target if it is already
8356 pushed.
8357 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8358 if it is already pushed.
8359
8360 2014-05-21 Pedro Alves <palves@redhat.com>
8361
8362 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8363 and "procfs" targets are now called "native" instead.
8364
8365 2014-05-21 Pedro Alves <palves@redhat.com>
8366
8367 * go32-nat.c (go32_open): Delete.
8368 (go32_target): Don't override the to_open method.
8369
8370 2014-05-21 Pedro Alves <palves@redhat.com>
8371
8372 * nto-procfs.c (procfs_can_run): New function.
8373 (nto_procfs_ops): New global.
8374 (init_procfs_targets): New, based on procfs_target. Install
8375 "target native" in addition to "target procfs".
8376 (_initialize_procfs): Call init_procfs_targets instead of adding
8377 the target here.
8378
8379 2014-05-21 Pedro Alves <palves@redhat.com>
8380
8381 * windows-nat.c (windows_target): Don't override to_shortname,
8382 to_longname or to_doc.
8383
8384 2014-05-21 Pedro Alves <palves@redhat.com>
8385
8386 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8387 to_doc.
8388
8389 2014-05-21 Pedro Alves <palves@redhat.com>
8390
8391 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8392 to_shortname, to_longname or to_doc.
8393
8394 2014-05-21 Pedro Alves <palves@redhat.com>
8395
8396 * go32-nat.c (go32_target): Don't override to_shortname,
8397 to_longname or to_doc.
8398
8399 2014-05-21 Pedro Alves <palves@redhat.com>
8400
8401 * inf-child.c (inf_child_open): Remove mention of "child".
8402 (inf_child_target): Rename target to "native" instead of "child".
8403
8404 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8405
8406 * Makefile.in (SFILES): Delete "regset.c".
8407 (COMMON_OBS): Delete "regset.o".
8408 * regset.c: Remove.
8409 * regset.h (regset_alloc): Delete prototype.
8410
8411 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8412
8413 * sparc-linux-tdep.c (sparc32_linux_gregset)
8414 (sparc32_linux_fpregset): New static regset structures.
8415 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8416 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8417 'fpregset' fields.
8418 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8419 (sparc64_linux_fpregset): New static regset structures.
8420 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8421 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8422 New static regset structures.
8423 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8424 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8425 New static regset structures.
8426 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8427 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8428 New static regset structures.
8429 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8430 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8431 New static regset structures.
8432 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8433
8434 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8435
8436 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8437 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8438 register maps ("regmaps") from "*regset" to "*regmap". Do this
8439 for all regmap types and variables.
8440 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8441 (sparc32_linux_supply_core_gregset)
8442 (sparc32_linux_collect_core_gregset)
8443 (sparc32_linux_supply_core_fpregset)
8444 (sparc32_linux_collect_core_fpregset): Likewise.
8445 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8446 (sparc_gregmap, sparc_fpregmap): ... these.
8447 (sparc_supply_gregset, sparc_collect_gregset)
8448 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8449 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8450 (_initialize_sparc_nat): Rename regmaps.
8451 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8452 (sparc_gregmap, sparc_fpregmap): ... these.
8453 (sparc_supply_gregset, sparc_collect_gregset)
8454 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8455 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8456 Rename macros to...
8457 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8458 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8459 Likewise.
8460 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8461 Rename to...
8462 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8463 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8464 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8465 regmaps.
8466 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8467 (sparc32_bsd_fpregset): Rename to...
8468 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8469 (sparc32_bsd_fpregmap): ... these.
8470 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8471 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8472 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8473 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8474 (struct sparc_gregmap, struct sparc_fpregmap)
8475 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8476 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8477 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8478 (sparc32_supply_regset, sparc32_collect_gregset)
8479 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8480 prototypes.
8481 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8482 (sparc64_linux_ptrace_gregmap): ... this.
8483 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8484 (_initialize_sparc64_linux_nat): Rename regmaps.
8485 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8486 (sparc64_linux_core_gregmap): ... this.
8487 (sparc64_linux_supply_core_gregset)
8488 (sparc64_linux_collect_core_gregset)
8489 (sparc64_linux_supply_core_fpregset)
8490 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8491 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8492 (sparc64_sol2_fpregset): Rename to...
8493 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8494 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8495 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8496 regmaps.
8497 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8498 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8499 (sparc64_bsd_fpregset): Rename to...
8500 (struct sparc_gregmap, sparc64_sol2_gregmap)
8501 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8502 (sparc64_bsd_fpregmap): ... these.
8503 (sparc64_supply_gregset, sparc64_collect_gregset)
8504 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8505 prototypes.
8506 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8507 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8508 (sparc64fbsd_gregmap): ... this.
8509 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8510 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8511 Rename regmaps.
8512 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8513 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8514 (sparc64nbsd_collect_fpregset): Likewise.
8515 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8516 (sparc64nbsd_gregmap): ... this.
8517 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8518 regmaps.
8519 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8520 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8521 (sparc64obsd_gregmap): ... this.
8522 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8523 regmaps.
8524 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8525 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8526 (sparc32nbsd_gregmap): ... this.
8527 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8528 regmaps.
8529
8530 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8531
8532 * score-tdep.c (score7_linux_gregset): New static regset
8533 structure.
8534 (score7_linux_regset_from_core_section): Remove dynamic regset
8535 allocation.
8536 (score_gdbarch_init): Drop allocation of tdep structure.
8537 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8538
8539 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8540
8541 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8542 regset structures.
8543 (am33_regset_from_core_section): Remove dynamic regset
8544 allocations.
8545
8546 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8547
8548 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8549 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8550 structures.
8551 (mips_linux_regset_from_core_section): Remove dynamic regset
8552 allocations.
8553 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8554 'gregset64', 'fpregset', and 'fpregset64'.
8555 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8556 deleted tdep fields.
8557
8558 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8559
8560 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8561 regset structures.
8562 (amd64_regset_from_core_section): Remove dynamic regset
8563 allocations.
8564 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8565 structure.
8566 (amd64obsd_regset_from_core_section): Remove dynamic regset
8567 allocation.
8568 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8569 Likewise.
8570 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8571 x86-common regset supply function.
8572 * i386-tdep.c (i386_collect_gregset): Make static.
8573 (i386_gregset): New global regset structure.
8574 (i386_fpregset, i386_xstateregset): New static regset structures.
8575 (i386_regset_from_core_section): Remove dynamic regset
8576 allocations.
8577 (i386_gdbarch_init): Remove initialization of tdep fields
8578 'gregset', 'fpregset', and 'xstateregset'.
8579 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8580 'fpregset', and 'xstateregset'.
8581 (i386_collect_gregset): Remove prototype.
8582 (i386_gregset): New declaration.
8583 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8584 structure.
8585 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8586 allocation.
8587
8588 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8589
8590 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8591 (arm_linux_vfpregset): New static regset structures.
8592 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8593 regset structures.
8594 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8595 and 'vfpregset' fields.
8596
8597 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8598
8599 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8600 (aarch64_linux_fpregset): New static regset structures.
8601 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8602 of regset structures.
8603 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8604 'fpregset' fields.
8605
8606 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8607
8608 * regset.h (struct regset): Remove gdbarch field.
8609 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8610 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8611 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8612 Likewise.
8613 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8614 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8615 (ppc32_linux_vsxregset): Likewise.
8616 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8617 via the regcache instead of the regset.
8618 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8619 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8620 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8621 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8622 Likewise.
8623
8624 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8625
8626 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8627 Constify structures.
8628 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8629 (alphanbsd_aout_gregset): Likewise.
8630 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8631 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8632 Likewise.
8633 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8634 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8635 Likewise.
8636 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8637 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8638 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8639 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8640 * m88k-tdep.c (m88k_gregset): Likewise.
8641 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8642 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8643 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8644 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8645 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8646 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8647 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8648 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8649 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8650 Likewise.
8651 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8652 * sh-tdep.h (sh_corefile_gregset): Likewise.
8653 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8654 * vax-tdep.c (vax_gregset): Likewise.
8655
8656 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8657
8658 Fix TLS access for -static -pthread.
8659 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8660 (try_thread_db_load_1): Initialize it.
8661 (thread_db_get_thread_local_address): Call it if LM is zero.
8662 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8663 * target.h (struct target_ops) (to_get_thread_local_address): Add
8664 load_module_addr comment.
8665
8666 2014-05-21 Pedro Alves <palves@redhat.com>
8667
8668 * dcache.c (dcache_read_memory_partial): If reading the cache line
8669 fails, fallback to reading just the memory the caller wanted.
8670
8671 2014-05-20 Doug Evans <dje@google.com>
8672
8673 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8674 instead of get_current_arch.
8675
8676 2014-05-20 Pedro Alves <palves@redhat.com>
8677
8678 * NEWS: Mention that compare-sections now works with all targets.
8679
8680 * remote.c (PACKET_qCRC): New enum value.
8681 (remote_verify_memory): Don't send qCRC if the target has no
8682 execution. Use packet_support/packet_ok. If the target doesn't
8683 support the qCRC packet, fallback to a deep memory copy.
8684 (compare_sections_command): Say "target image" instead of "remote
8685 executable".
8686 (_initialize_remote): Add PACKET_qCRC to the list of config
8687 packets that have no associated command. Extend comment.
8688 * target.c (simple_verify_memory, default_verify_memory): New
8689 function.
8690 * target.h (struct target_ops) <to_verify_memory>: Default to
8691 default_verify_memory.
8692 (simple_verify_memory): New declaration.
8693 * target-delegates.c: Regenerate.
8694
8695 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8696
8697 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8698
8699 2014-05-20 Hui Zhu <hui@codesourcery.com>
8700 Yao Qi <yao@codesourcery.com>
8701
8702 PR backtrace/16558
8703 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8704 and change address of sp and pc.
8705
8706 2014-05-19 Tom Tromey <tromey@redhat.com>
8707
8708 * gdbtypes.c (rank_function): Use XNEWVEC.
8709 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8710
8711 2014-05-19 Doug Evans <dje@google.com>
8712
8713 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8714 build_type_unit_groups and moved closer to only caller. Remove
8715 arguments. All references updated. Remove outdated .gdb_index
8716 comment.
8717 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8718 build_type_psymtabs_1.
8719
8720 2014-05-19 Doug Evans <dje@google.com>
8721
8722 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8723 n_type_unit_groups, all_type_unit_groups. All uses removed.
8724 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8725 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8726 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8727 (add_type_unit_group_to_table): Delete.
8728
8729 2014-05-19 Doug Evans <dje@google.com>
8730
8731 * eval.c (evaluate_subexp_standard): Add some comments.
8732
8733 2014-05-17 Doug Evans <xdje42@gmail.com>
8734
8735 * progspace.c (remove_program_space): Delete, unused.
8736 * progspace.h (remove_program_space): Ditto.
8737
8738 2014-05-17 Doug Evans <xdje42@gmail.com>
8739
8740 * inferior.c (prune_inferiors): Fix comment.
8741 (remove_inferior_command): Call prune_program_spaces.
8742
8743 2014-05-16 Doug Evans <dje@google.com>
8744
8745 New command line option -D.
8746 * NEWS: Mention it.
8747 * main.c (set_gdb_data_directory): New function.
8748 (captured_main): Recognize -D. Flag error for --data-directory "".
8749 Call set_gdb_data_directory.
8750 (print_gdb_help): Print --data-directory, -D.
8751 * main.h (set_gdb_data_directory): Declare.
8752 * top.c (staged_gdb_datadir): New static global.
8753 (set_gdb_datadir): Call set_gdb_data_directory
8754 (show_gdb_datadir): New function.
8755 (init_main): Update init of data-directory parameter.
8756
8757 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8758
8759 Import the "dirfd" gnulib module.
8760 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8761 * gnulib/aclocal.m4: Update.
8762 * gnulib/config.in: Update.
8763 * gnulib/configure: Update.
8764 * gnulib/import/Makefile.am: Update.
8765 * gnulib/import/Makefile.in: Update.
8766 * gnulib/import/dirfd.c: New.
8767 * gnulib/import/m4/dirfd.m4: New.
8768 * gnulib/import/m4/gnulib-cache.m4: Update.
8769 * gnulib/import/m4/gnulib-comp.m4: Update.
8770
8771 2014-05-16 Pierre Muller <muller@sourceware.org>
8772 Yao Qi <yao@codesourcery.com>
8773
8774 * valprint.c (print_wchar): Move the code on checking whether
8775 W is a printable wide char to the default branch of switch
8776 statement below. Call wchar_printable instead of gdb_iswprint.
8777
8778 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8779
8780 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8781 ldr.w and ldrd instructions.
8782
8783 2014-05-15 Doug Evans <dje@google.com>
8784
8785 * dwarf2read.c (read_structure_type): Delete outdated comments.
8786
8787 2014-05-14 Tom Tromey <tromey@redhat.com>
8788
8789 * macrocmd.c (print_macro_definition): Reindent.
8790
8791 2014-05-13 Doug Evans <xdje42@gmail.com>
8792
8793 * python/py-cmd.c (cmdpy_completer): Add comment.
8794 (completers): Make const.
8795
8796 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8797
8798 * infrun.c (resume): Remove should_resume (unused). Move up
8799 declaration of resume_ptid.
8800
8801 2014-05-13 Tom Tromey <tromey@redhat.com>
8802
8803 * language.h (unop_type_check): Remove.
8804 (binop_type_check): Don't declare.
8805
8806 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8807
8808 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8809 call to regcache_raw_collect.
8810
8811 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8812
8813 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8814 mi_console->quote as the quoting character.
8815
8816 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8817
8818 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8819
8820 2014-04-29 Tom Tromey <tromey@redhat.com>
8821
8822 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8823 "show debug varobj".
8824
8825 2014-05-07 Kyle McMartin <kyle@redhat.com>
8826
8827 Pushed by Joel Brobecker <brobecker@adacore.com>.
8828 * aarch64-tdep.c (aarch64_software_single_step): New function.
8829 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8830 with aarch64_software_single_step.
8831
8832 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8833
8834 GDB 7.7.1 released.
8835
8836 2014-05-05 Keith Seitz <keiths@redhat.com>
8837
8838 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8839 variable or history value is successfully parsed.
8840
8841 2014-05-05 Yao Qi <yao@codesourcery.com>
8842 Pedro Alves <palves@redhat.com>
8843
8844 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8845 address of blocks that intersects the requested range. Trim
8846 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8847 sections.
8848 * ctf.c (ctf_xfer_partial): Likewise.
8849
8850 2014-05-05 Yao Qi <yao@codesourcery.com>
8851
8852 * printcmd.c (display_command): Remove the check to
8853 target_has_execution.
8854
8855 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8856
8857 * ppcobsd-nat.c: Include "obsd-nat.h".
8858 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8859 add_target.
8860 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8861
8862 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8863
8864 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8865 and 16-bit signed and unsigned arguments. Update comment.
8866 (stap_parse_probe_arguments): Extend code to handle such
8867 arguments. Use warning instead of complaint to notify about
8868 unrecognized bitness.
8869
8870 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8871
8872 PR breakpoints/16889
8873 * stap-probe.c (stap_parse_probe_arguments): Simplify
8874 check for non-prefixed probes (i.e., probes whose
8875 arguments do not start with "N@"). Always set the
8876 argument type to a sane value.
8877
8878 2014-05-01 David Taylor <dtaylor@emc.com>
8879
8880 * remote.c (compare_sections_command): Add -r option to compare
8881 all loadable read-only sections.
8882
8883 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8884
8885 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8886 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8887 Update all callers.
8888 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8889 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8890 Remove unused CORE_ADDR argument. Update all callers.
8891
8892 2014-04-29 Pedro Alves <palves@redhat.com>
8893
8894 * remote.c (struct packet_config) <detect>: Extend comment.
8895 (add_packet_config_cmd): Don't set the config's detect or support
8896 fields here.
8897 (init_all_packet_configs): Also initialize the config's 'detect'
8898 field.
8899 (reset_all_packet_configs_support): New function.
8900 (remote_open_1): Call reset_all_packet_configs_support instead of
8901 init_all_packet_configs.
8902 (_initialize_remote): Initialize all packet configs. Assert that
8903 all packets have an associated command, except a few known
8904 outliers.
8905
8906 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8907
8908 * dwarf2read.c (read_subrange_type): Handle dynamic
8909 DW_AT_lower_bound attributes.
8910
8911 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8912
8913 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8914 dynamic bounds before computing its upper bound.
8915 (ada_discrete_type_low_bound): Same as above with the lower bound.
8916
8917 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8918
8919 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8920 range types. Adjust the array handling implementation to
8921 take advantage of this change.
8922 (resolve_dynamic_range): New function, mostly extracted from
8923 resolve_dynamic_bounds.
8924 (resolve_dynamic_array): New function, mostly extracted from
8925 resolve_dynamic_bounds.
8926 (resolve_dynamic_bounds): Delete.
8927 (resolve_dynamic_type): Reimplement. Add handling of
8928 TYPE_CODE_RANGE types.
8929
8930 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8931
8932 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8933 handling of parallel ___XA types.
8934
8935 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8936
8937 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8938 unnecessary second call to static_unwrap_type.
8939
8940 2014-04-27 Hui Zhu <hui@codesourcery.com>
8941
8942 * stack.c (print_frame_info): Call do_gdb_disassembly with
8943 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8944
8945 2014-04-26 Doug Evans <xdje42@gmail.com>
8946
8947 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8948
8949 2014-04-25 Pedro Alves <palves@redhat.com>
8950
8951 PR server/16255
8952 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8953 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8954 and newline from built string.
8955 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8956 (linux_ptrace_attach_fail_reason): ... this.
8957 * linux-nat.c (linux_nat_attach): Adjust to use
8958 linux_ptrace_attach_fail_reason.
8959
8960 2014-04-25 Pedro Alves <palves@redhat.com>
8961
8962 * remote.c (struct remote_state): Remove multi_process_aware,
8963 non_stop_aware, cond_tracepoints, cond_breakpoints,
8964 breakpoint_commands, fast_tracepoints, static_tracepoints,
8965 install_in_trace, disconnected_tracing,
8966 enable_disable_tracepoints, string_tracing, and
8967 augmented_libraries_svr4_read fields.
8968 (remote_multi_process_p): Move further below in the file.
8969 (struct packet_config): Add comments.
8970 (update_packet_config): Delete function.
8971 (show_packet_config_cmd): Use packet_config_support.
8972 (add_packet_config_cmd): Use NULL as set callback.
8973 (packet_ok): "set remote foo-packet"-style commands no longer
8974 change config->supported -- adjust.
8975 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8976 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8977 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8978 (PACKET_QNonStop, PACKET_multiprocess_feature)
8979 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8980 (PACKET_DisconnectedTracing_feature)
8981 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8982 (set_remote_protocol_packet_cmd): Delete function.
8983 (packet_config_support, packet_support): New functions.
8984 (set_remote_protocol_Z_packet_cmd): Don't call
8985 update_packet_config.
8986 (remote_query_attached, remote_pass_signals)
8987 (remote_program_signals, remote_threads_info)
8988 (remote_threads_extra_info, remote_start_remote): Use
8989 packet_support.
8990 (remote_start_remote): Use packet_config_support and
8991 packet_support.
8992 (init_all_packet_configs): Set all packets to unknown support,
8993 instead of calling update_packet_config.
8994 (remote_check_symbols): Use packet_support.
8995 (remote_supported_packet): Unconditionally set the packet config's
8996 support status.
8997 (remote_multi_process_feature, remote_non_stop_feature)
8998 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8999 (remote_breakpoint_commands_feature)
9000 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9001 (remote_install_in_trace_feature)
9002 (remote_disconnected_tracing_feature)
9003 (remote_enable_disable_tracepoint_feature)
9004 (remote_string_tracing_feature)
9005 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9006 (remote_protocol_features): Adjust to use remote_supported_packet
9007 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9008 "ConditionalTracepoints", "ConditionalBreakpoints",
9009 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9010 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9011 "EnableDisableTracepoints", and "tracenz".
9012 (remote_query_supported): Use packet_support.
9013 (remote_open_1): Adjust.
9014 (extended_remote_attach_1): Use packet_support. Switch on the
9015 result of packet_ok instead of checking whether the packet ended
9016 up disabled.
9017 (remote_vcont_resume): Use packet_support.
9018 (remote_resume, remote_stop_ns, fetch_register_using_p)
9019 (remote_prepare_to_store, store_register_using_P)
9020 (check_binary_download, remote_write_bytes): Use packet_support.
9021 (remote_vkill): Use packet_support. Switch on the result of
9022 packet_ok instead of checking whether the packet ended up
9023 disabled.
9024 (extended_remote_supports_disable_randomization): Use
9025 packet_support.
9026 (extended_remote_run): Switch on the result of packet_ok instead
9027 of checking whether the packet ended up disabled.
9028 (remote_insert_breakpoint, remote_remove_breakpoint)
9029 (remote_insert_watchpoint, remote_remove_watchpoint)
9030 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9031 packet_support.
9032 (remote_search_memory): Use packet_config_support.
9033 (remote_get_thread_local_address, remote_get_tib_address)
9034 (remote_hostio_send_command, remote_can_execute_reverse): Use
9035 packet_support.
9036 (remote_supports_cond_tracepoints)
9037 (remote_supports_cond_breakpoints)
9038 (remote_supports_fast_tracepoints)
9039 (remote_supports_static_tracepoints)
9040 (remote_supports_install_in_trace)
9041 (remote_supports_enable_disable_tracepoint)
9042 (remote_supports_string_tracing)
9043 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9044 the packet config says the feature is enabled or disabled.
9045 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9046 (remote_get_trace_status): Use packet_support.
9047 (remote_set_disconnected_tracing): Adjust to check whether the
9048 feature is enabled with packet_support.
9049 (remote_set_trace_buffer_size, remote_use_agent)
9050 (remote_can_use_agent, remote_supports_btrace): Use
9051 packet_support.
9052 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9053 Use packet_config_support.
9054 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9055 the packet config says the feature is enabled or disabled.
9056 (set_range_stepping): Use packet_support.
9057
9058 2014-04-25 Tom Tromey <tromey@redhat.com>
9059
9060 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9061 argument.
9062
9063 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9064
9065 * NEWS: Mention support for C99 variable length arrays.
9066
9067 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9068
9069 * ada-lang.c (standard_exc): Expand introductory comment.
9070
9071 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9072 Walfred Tedeschi <walfred.tedeschi@intel.com>
9073
9074 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9075 AVX512 registers.
9076 (amd64_linux_read_description): Add code to handle AVX512 xstate
9077 mask and return respective tdesc.
9078 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9079 and features/i386/x32-avx512-linux.c.
9080 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9081 (amd64_linux_core_read_description): Add code to handle AVX512
9082 xstate mask and return respective tdesc.
9083 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9084 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9085 calculation.
9086 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9087 (tdesc_amd64_avx512_linux): New prototype.
9088 (tdesc_x32_avx512_linux): Likewise.
9089 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9090 features/i386/x32-avx512.c.
9091 (amd64_ymm_avx512_names): New register names for pseudo
9092 registers YMM16-31.
9093 (amd64_ymmh_avx512_names): New register names for raw registers
9094 YMMH16-31.
9095 (amd64_k_names): New register names for K registers.
9096 (amd64_zmmh_names): New register names for ZMM raw registers.
9097 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9098 (amd64_xmm_avx512_names): New register names for XMM16-31
9099 registers.
9100 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9101 registers.
9102 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9103 if feature is present.
9104 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9105 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9106 (AMD64_NUM_REGS): Adjust to new number of registers.
9107 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9108 registers supplied via XSTATE by AVX512 registers.
9109 (i386_linux_read_description): Add case for AVX512.
9110 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9111 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9112 (i386_linux_core_read_description): Add case for AVX512.
9113 (i386_linux_init_abi): Install supported register note section
9114 for AVX512.
9115 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9116 AVX512.
9117 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9118 registers to be number of zmm7h + 1.
9119 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9120 * i386-tdep.c: Include features/i386/i386-avx512.c.
9121 (i386_zmm_names): Add ZMM pseudo register names array.
9122 (i386_zmmh_names): Add ZMM raw register names array.
9123 (i386_k_names): Add K raw register names array.
9124 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9125 registers. AVX512 has 16 more ZMM registers than there are YMM
9126 registers.
9127 (i386_zmmh_regnum_p): Add function to look up register number of
9128 ZMM raw registers.
9129 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9130 (i386_k_regnum_p): Likewise for K raw registers.
9131 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9132 registers added by AVX512.
9133 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9134 registers added by AVX512.
9135 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9136 added by AVX512.
9137 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9138 (i386_pseudo_register_name): Add ZMM pseudo registers.
9139 (i386_zmm_type): Construct and return vector registers type for ZMM
9140 registers.
9141 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9142 ZMM0-31 pseudo registers and K registers.
9143 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9144 and YMM16-31 registers from register cache.
9145 (i386_pseudo_register_write): Add code to write K, ZMM and
9146 YMM16-31 registers.
9147 (i386_register_reggroup_p): Add code to include/exclude AVX512
9148 registers in/from respective register groups.
9149 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9150 registers if feature is present in xcr0.
9151 (i386_gdbarch_init): Add code to initialize AVX512 feature
9152 variables in tdep structure, wire in pseudo registers and call
9153 initialize_tdesc_i386_avx512.
9154 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9155 variables.
9156 (i386_regnum): Add AVX512 registers.
9157 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9158 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9159 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9160 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9161 512 bits wide.
9162 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9163 (i386_ymm_avx512_regnum_p): Likewise.
9164 (i386_k_regnum_p): Likewise.
9165 (i386_zmm_regnum_p): Likewise.
9166 (i386_zmmh_regnum_p): Likewise.
9167 * i387-tdep.c : Update year in copyright notice.
9168 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9169 XSAVE buffer.
9170 (XSAVE_YMM_AVX512_ADDR): New macro.
9171 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9172 XSAVE buffer.
9173 (XSAVE_XMM_AVX512_ADDR): New macro.
9174 (xsave_avx512_k_offset): New table for K register offsets in
9175 XSAVE buffer.
9176 (XSAVE_AVX512_K_ADDR): New macro.
9177 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9178 in XSAVE buffer.
9179 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9180 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9181 buffer.
9182 (i387_collect_xsave): Add code to collect AVX512 registers from
9183 XSAVE buffer.
9184 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9185 of XMM16-31 registers.
9186 (I387_NUM_K_REGS): New define for number of K registers.
9187 (I387_K0_REGNUM): New define for K0 register number.
9188 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9189 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9190 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9191 registers.
9192 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9193 (I387_XMM16_REGNUM): New define for XMM16 register number.
9194 (I387_YMM0_REGNUM): New define for YMM0 register number.
9195 (I387_KEND_REGNUM): New define for last K register number.
9196 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9197 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9198 number.
9199 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9200 number.
9201 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9202 size.
9203 * features/Makefile: Add AVX512 related files.
9204 * features/i386/32bit-avx512.xml: New file.
9205 * features/i386/64bit-avx512.xml: Likewise.
9206 * features/i386/amd64-avx512-linux.c: Likewise.
9207 * features/i386/amd64-avx512-linux.xml: Likewise.
9208 * features/i386/amd64-avx512.c: Likewise.
9209 * features/i386/amd64-avx512.xml: Likewise.
9210 * features/i386/i386-avx512-linux.c: Likewise.
9211 * features/i386/i386-avx512-linux.xml: Likewise.
9212 * features/i386/i386-avx512.c: Likewise.
9213 * features/i386/i386-avx512.xml: Likewise.
9214 * features/i386/x32-avx512-linux.c: Likewise.
9215 * features/i386/x32-avx512-linux.xml: Likewise.
9216 * features/i386/x32-avx512.c: Likewise.
9217 * features/i386/x32-avx512.xml: Likewise.
9218 * regformats/i386/amd64-avx512-linux.dat: New file.
9219 * regformats/i386/amd64-avx512.dat: Likewise.
9220 * regformats/i386/i386-avx512-linux.dat: Likewise.
9221 * regformats/i386/i386-avx512.dat: Likewise.
9222 * regformats/i386/x32-avx512-linux.dat: Likewise.
9223 * regformats/i386/x32-avx512.dat: Likewise.
9224 * NEWS: Add note about new support for AVX512.
9225
9226
9227 2014-04-23 Pedro Alves <palves@redhat.com>
9228
9229 * breakpoint.c (insert_bp_location): Tolerate errors if the
9230 breakpoint is set in a user-loaded objfile.
9231 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9232 location is marked shlib_disabled. If the breakpoint is set in a
9233 user-loaded objfile is a GDB-side memory breakpoint, validate it
9234 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9235 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9236 flag.
9237 * mem-break.c (memory_validate_breakpoint): New function.
9238 * objfiles.c (userloaded_objfile_contains_address_p): New
9239 function.
9240 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9241 * target.h (memory_validate_breakpoint): New declaration.
9242
9243 2014-04-23 Pedro Alves <palves@redhat.com>
9244
9245 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9246 the breakpoint is set in a shared library, only suppress
9247 errors for software breakpoints, not hardware breakpoints.
9248
9249 2014-04-22 Pedro Alves <palves@redhat.com>
9250
9251 * infrun.c (schedlock_applies): New function, factored out from
9252 find_thread_needs_step_over.
9253 (find_thread_needs_step_over): Use it.
9254 (switch_back_to_stepped_thread): Always clear trap_expected if the
9255 step over is finished. Return early if scheduler locking applies.
9256 Look for the stepping thread and a potential step-over thread with
9257 a single loop.
9258 (currently_stepping_or_nexting_callback): Delete.
9259
9260 2014-04-22 Nick Clifton <nickc@redhat.com>
9261
9262 * NEWS: Mention that ARM sim now supports tracing.
9263
9264 2014-04-22 Yao Qi <yao@codesourcery.com>
9265
9266 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9267 to ...
9268 * tracefile.c (tracefile_fetch_registers): ... it. New
9269 function.
9270 * tracefile.h (tracefile_fetch_registers): Declare.
9271 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9272 tracefile_fetch_registers.
9273
9274 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9275
9276 PR gdb/14018
9277 * windows-nat.c (thread_rec): Don't display a warning when
9278 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9279 fails for any reason, set th->suspended to -1, so that we don't
9280 try to resume such a thread. Also, don't return NULL in these
9281 cases, to avoid completely ruin the session due to "PC register is
9282 not available" error.
9283 (do_windows_fetch_inferior_registers): Check errors in
9284 GetThreadContext call.
9285 (windows_continue): Accept an additional argument KILLED; if not
9286 zero, ignore errors in the SetThreadContext call, since the
9287 inferior was killed and is shutting down.
9288 (windows_resume, get_windows_debug_event)
9289 (windows_create_inferior, windows_mourn_inferior)
9290 (windows_kill_inferior): All callers of windows_continue changed
9291 to adjust to its new calling sequence.
9292
9293 2014-04-19 Yao Qi <yao@codesourcery.com>
9294
9295 * ctf.c (ctf_open): Call post_create_inferior.
9296
9297 2014-04-19 Yao Qi <yao@codesourcery.com>
9298
9299 * ctf.c (handle_id): New static variable.
9300 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9301 value. Get the declaration of event "register" and get length
9302 of field "contents".
9303
9304 2014-04-19 Yao Qi <yao@codesourcery.com>
9305
9306 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9307
9308 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9309
9310 * valops.c (oload_method_static): Remove unnecessary argument
9311 METHOD. Update all callers.
9312
9313 2014-04-18 Pedro alves <palves@redhat.com>
9314 Tom Tromey <tromey@redhat.com>
9315
9316 PR backtrace/15558
9317 * frame.c (get_prev_frame_1): Rename to ...
9318 (get_prev_frame_always): ... this, and make extern. Adjust.
9319 (skip_artificial_frames): Use get_prev_frame_always.
9320 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9321 (get_frame_unwind_stop_reason): Adjust to rename.
9322 * frame.h (get_prev_frame_always): Declare.
9323 * inline-frame.c: Include frame.h.
9324 (inline_frame_this_id): Use get_prev_frame_always.
9325
9326 2014-04-18 Tristan Gingold <gingold@adacore.com>
9327
9328 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9329 code by using bfd_mach_o_get_base_address.
9330
9331 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9332
9333 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9334 (spu_ax_pseudo_register_collect): New function.
9335 (spu_ax_pseudo_register_push_stack): Likewise.
9336 (spu_dwarf_reg_to_regnum): Likewise.
9337 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9338
9339 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9340
9341 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9342 Replace FRAME argument with FRAME_ID.
9343 * gdbarch.c, gdbarch.h: Regenerate.
9344 * findvar.c (default_value_from_register): Add GDBARCH argument;
9345 replace FRAME by FRAME_ID. No longer call get_frame_id.
9346 (value_from_register): Update call to gdbarch_value_from_register.
9347 * value.h (default_value_from_register): Update prototype.
9348 * s390-linux-tdep.c (s390_value_from_register): Update interface
9349 and call to default_value_from_register.
9350 * spu-tdep.c (spu_value_from_register): Likewise.
9351
9352 * findvar.c (address_from_register): Remove TYPE argument.
9353 Do not call value_from_register; use gdbarch_value_from_register
9354 with null_frame_id instead.
9355 * value.h (address_from_register): Update prototype.
9356 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9357 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9358 address_from_register interface change.
9359
9360 2014-04-17 Yao Qi <yao@codesourcery.com>
9361
9362 * gdbtypes.h: Update comments to link to types and macros'
9363 definitions.
9364
9365 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9366
9367 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9368
9369 2014-04-16 Keith Seitz <keiths@redhat.com>
9370
9371 PR gdb/15827
9372 * dwarf2read.c (skip_one_die): Check that all relative-offset
9373 sibling DIEs fall within range of the current reader's buffer.
9374 (read_partial_die): Likewise.
9375
9376 2014-04-16 Keith Seitz <keiths@redhat.com>
9377
9378 PR c++/16597
9379 * cp-namespace.c (lookup_symbol_file): If the type name of
9380 `this' is NULL, return immediately.
9381
9382 2014-04-14 Keith Seitz <keiths@redhat.com>
9383
9384 PR c++/16253
9385 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9386 from symbol_matches_domain in symtab.c. All local callers
9387 of symbol_matches_domain updated.
9388 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9389 search STRUCT_DOMAIN.
9390 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9391 independently. standard_lookup will do that automatically.
9392 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9393 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9394 (cp_lookup_symbol_in_namespace): Likewise.
9395 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9396 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9397 may return a STRUCT_DOMAIN match.
9398 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9399 * cp-support.c: Include language.h.
9400 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9401 VAR_DOMAIN.
9402 * psymtab.c (match_partial_symbol): Compare the requested
9403 domain with the symbol's domain directly.
9404 (lookup_partial_symbol): Likewise.
9405 * symtab.c (lookup_symbol_in_language): Explain when/why
9406 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9407 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9408 appropriate languages.
9409 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9410 and moved to ada-lang.c
9411 (lookup_block_symbol): Explain that this function only returns
9412 symbol matching the requested DOMAIN.
9413 Compare the requested domain with the symbol's domain directly.
9414 (iterate_over_symbols): Compare the requested domain with the
9415 symbol's domain directly.
9416 * symtab.h (symbol_matches_domain): Remove.
9417
9418 2014-04-14 Tom Tromey <tromey@redhat.com>
9419
9420 PR c++/15246:
9421 * c-exp.y (type_aggregate_p): New function.
9422 (qualified_name, classify_inner_name): Use it.
9423 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9424 and TYPE_TARGET_TYPE of an enum type.
9425 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9426 an enum type.
9427 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9428 handle TYPE_DECLARED_CLASS.
9429 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9430 types.
9431 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9432 * valops.c (enum_constant_from_type): New function.
9433 (value_aggregate_elt): Use it.
9434 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9435 TYPE_CODE_ENUM.
9436
9437 2014-04-14 Tom Tromey <tromey@redhat.com>
9438
9439 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9440 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9441 const.
9442 * value.h (value_aggregate_elt): Update.
9443
9444 2014-04-14 Tom Tromey <tromey@redhat.com>
9445
9446 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9447
9448 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9449
9450 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9451 (evaluate_subexp_standard): Pass noside argument.
9452 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9453 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9454 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9455 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9456 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9457
9458 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9459
9460 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9461 points to a constant blob.
9462
9463 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9464
9465 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9466 property and store it as the high bound and flag the range accordingly.
9467 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9468 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9469 * gdbtypes.h (enum range_flags): New enum.
9470 (struct range_bounds): Add flags member.
9471
9472 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9473
9474 * c-typeprint.c (c_type_print_varspec_suffix): Added
9475 check for not yet resolved high bound. If unresolved, print
9476 "variable length" string to the console instead of random
9477 length.
9478
9479 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9480
9481 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9482 value.
9483 (ada_template_to_fixed_record_type_1): Likewise.
9484 (ada_to_fixed_type_1): Likewise.
9485 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9486 (cp_print_value): Likewise.
9487 * d-valprint.c (dynamic_array_type): Likewise.
9488 * findvar.c (address_of_variable): Likewise.
9489 * jv-valprint.c (java_value_print): Likewise.
9490 * valops.c (value_ind): Likewise.
9491 * value.c (coerce_ref): Likewise.
9492
9493 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9494
9495 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9496 value and retrieve the dynamic type size.
9497
9498 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9499
9500 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9501 passed to sizeof is dynamic evaluate the argument to compute the length.
9502
9503 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9504 Joel Brobecker <brobecker@adacore.com>
9505
9506 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9507 (dwarf2_evaluate_property): New function.
9508 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9509 * dwarf2read.c (attr_to_dynamic_prop): New function.
9510 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9511 attribute.
9512 * gdbtypes.c: Include dwarf2loc.h.
9513 (is_dynamic_type): New function.
9514 (resolve_dynamic_type): New function.
9515 (resolve_dynamic_bounds): New function.
9516 (get_type_length): New function.
9517 (check_typedef): Use get_type_length to compute type length.
9518 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9519 (TYPE_LOW_BOUND_KIND): New macro.
9520 (is_dynamic_type): New function prototype.
9521 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9522 to resolve dynamic properties of the type. Update comment.
9523 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9524
9525 2014-04-14 Richard Henderson <rth@redhat.com>
9526
9527 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9528
9529 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9530 Doug Evans <xdje42@gmail.com>
9531
9532 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9533 dereference TYPE_CODE_REF values.
9534
9535 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9536
9537 Revert the following changes due to regressions:
9538
9539 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9540 (dwarf2_evaluate_property): New function.
9541 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9542 * dwarf2read.c (attr_to_dynamic_prop): New function.
9543 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9544 attribute.
9545 * gdbtypes.c: Include dwarf2loc.h.
9546 (is_dynamic_type): New function.
9547 (resolve_dynamic_type): New function.
9548 (resolve_dynamic_bounds): New function.
9549 (get_type_length): New function.
9550 (check_typedef): Use get_type_length to compute type length.
9551 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9552 (TYPE_LOW_BOUND_KIND): New macro.
9553 (is_dynamic_type): New function prototype.
9554 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9555 to resolve dynamic properties of the type. Update comment.
9556 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9557
9558 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9559 passed to sizeof is dynamic evaluate the argument to compute the length.
9560
9561 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9562 value and retrieve the dynamic type size.
9563
9564 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9565 (ada_template_to_fixed_record_type_1): Likewise.
9566 (ada_to_fixed_type_1): Likewise.
9567 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9568 (cp_print_value): Likewise.
9569 * d-valprint.c (dynamic_array_type): Likewise.
9570 * eval.c (evaluate_subexp_with_coercion): Likewise.
9571 * findvar.c (address_of_variable): Likewise.
9572 * jv-valprint.c (java_value_print): Likewise.
9573 * valops.c (value_ind): Likewise.
9574 * value.c (coerce_ref): Likewise.
9575
9576 * c-typeprint.c (c_type_print_varspec_suffix): Added
9577 check for not yet resolved high bound. If unresolved, print
9578 "variable length" string to the console instead of random
9579 length.
9580
9581 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9582 property and store it as the high bound and flag the range accordingly.
9583 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9584 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9585 * gdbtypes.h (enum range_flags): New enum.
9586 (struct range_bounds): Add flags member.
9587
9588 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9589 points to a constant blob.
9590
9591 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9592 (evaluate_subexp_standard): Pass noside argument.
9593 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9594 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9595 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9596 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9597 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9598
9599 2014-04-11 Keith Seitz <keiths@redhat.com>
9600
9601 PR c++/16675
9602 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9603 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9604 reference types.
9605
9606 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9607
9608 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9609 (evaluate_subexp_standard): Pass noside argument.
9610 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9611 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9612 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9613 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9614 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9615
9616 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9617
9618 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9619 points to a constant blob.
9620
9621 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9622
9623 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9624 property and store it as the high bound and flag the range accordingly.
9625 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9626 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9627 * gdbtypes.h (enum range_flags): New enum.
9628 (struct range_bounds): Add flags member.
9629
9630 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9631
9632 * c-typeprint.c (c_type_print_varspec_suffix): Added
9633 check for not yet resolved high bound. If unresolved, print
9634 "variable length" string to the console instead of random
9635 length.
9636
9637 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9638
9639 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9640 (ada_template_to_fixed_record_type_1): Likewise.
9641 (ada_to_fixed_type_1): Likewise.
9642 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9643 (cp_print_value): Likewise.
9644 * d-valprint.c (dynamic_array_type): Likewise.
9645 * eval.c (evaluate_subexp_with_coercion): Likewise.
9646 * findvar.c (address_of_variable): Likewise.
9647 * jv-valprint.c (java_value_print): Likewise.
9648 * valops.c (value_ind): Likewise.
9649 * value.c (coerce_ref): Likewise.
9650
9651 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9652
9653 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9654 value and retrieve the dynamic type size.
9655
9656 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9657
9658 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9659 passed to sizeof is dynamic evaluate the argument to compute the length.
9660
9661 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9662
9663 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9664 (dwarf2_evaluate_property): New function.
9665 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9666 * dwarf2read.c (attr_to_dynamic_prop): New function.
9667 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9668 attribute.
9669 * gdbtypes.c: Include dwarf2loc.h.
9670 (is_dynamic_type): New function.
9671 (resolve_dynamic_type): New function.
9672 (resolve_dynamic_bounds): New function.
9673 (get_type_length): New function.
9674 (check_typedef): Use get_type_length to compute type length.
9675 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9676 (TYPE_LOW_BOUND_KIND): New macro.
9677 (is_dynamic_type): New function prototype.
9678 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9679 to resolve dynamic properties of the type. Update comment.
9680 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9681
9682 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9683
9684 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9685 declaring high/low bounds and change uses accordingly. Call
9686 create_range_type instead of create_static_range_type.
9687 * gdbtypes.c (create_range_type): New function.
9688 (create_range_type): Convert bounds into struct bound_prop and pass
9689 them to create_range_type.
9690 * gdbtypes.h (struct bound_prop): New struct.
9691 (create_range_type): New function prototype.
9692 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9693 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9694 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9695 part of the bound.
9696 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9697
9698 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9699
9700 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9701 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9702 * ada-lang.c: All uses of create_range_type updated.
9703 * coffread.c: All uses of create_range_type updated.
9704 * dwarf2read.c: All uses of create_range_type updated.
9705 * f-exp.y: All uses of create_range_type updated.
9706 * m2-valprint.c: All uses of create_range_type updated.
9707 * mdebugread.c: All uses of create_range_type updated.
9708 * stabsread.c: All uses of create_range_type updated.
9709 * valops.c: All uses of create_range_type updated.
9710 * valprint.c: All uses of create_range_type updated.
9711
9712 2014-04-10 Pedro Alves <palves@redhat.com>
9713
9714 * breakpoint.c (single_step_breakpoints)
9715 (single_step_gdbarch): Move up in the file.
9716 (one_breakpoint_xfer_memory): New function, factored out from ...
9717 (breakpoint_xfer_memory): ... here. Also process single-step
9718 breakpoints.
9719
9720 2014-04-09 Tristan Gingold <gingold@adacore.com>
9721
9722 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9723 comments.
9724 (darwin_decode_exception_message): Free port only after use.
9725
9726 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9727
9728 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9729 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9730 when setting the size of call_length.
9731
9732 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9733
9734 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9735 dereference TYPE_CODE_REF values.
9736
9737 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9738
9739 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9740 end of warning message.
9741
9742 2014-04-03 Doug Evans <dje@google.com>
9743
9744 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9745 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9746
9747 2014-04-02 Alan Modra <amodra@gmail.com>
9748
9749 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9750 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9751 (struct symbol_file_add_from_memory_args): Add size field.
9752 (find_vdso_size): New function.
9753 (add_vsyscall_page): Attempt to find vdso size.
9754
9755 2014-04-01 Doug Evans <dje@google.com>
9756
9757 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9758
9759 2014-04-01 Tristan Gingold <gingold@adacore.com>
9760
9761 * darwin-nat.c (darwin_encode_reply): Add prototype.
9762 (darwin_decode_exception_message): Reply to unknown inferiors.
9763 (darwin_decode_message): Handle message by id. Ignore message
9764 to unknown inferior.
9765 (darwin_wait): Discard unknown messages, add debug trace.
9766
9767 2014-03-31 Doug Evans <dje@google.com>
9768
9769 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9770 comp_dir_string.
9771
9772 2014-03-31 Doug Evans <dje@google.com>
9773
9774 New option "set print symbol-loading".
9775 * NEWS: Mention it.
9776 * solib.c (solib_read_symbols): Only print symbol loading messages
9777 if requested.
9778 (solib_add): If symbol loading is in "brief" mode, notify user
9779 symbols are being loaded.
9780 (reload_shared_libraries_1): Ditto.
9781 * symfile.c (print_symbol_loading_off): New static global.
9782 (print_symbol_loading_brief): New static global.
9783 (print_symbol_loading_full): New static global.
9784 (print_symbol_loading_enums): New static global.
9785 (print_symbol_loading): New static global.
9786 (print_symbol_loading_p): New function.
9787 (symbol_file_add_with_addrs): Only print symbol loading messages
9788 if requested.
9789 (_initialize_symfile): Register "print symbol-loading" set/show
9790 command.
9791 * symfile.h (print_symbol_loading_p): Declare.
9792
9793 2014-03-30 Doug Evans <xdje42@gmail.com>
9794
9795 * infrun.c (set_last_target_status): New function.
9796 (handle_inferior_event): Call it.
9797
9798 2014-03-30 Doug Evans <xdje42@gmail.com>
9799
9800 * inferior.h (enum stop_kind): Improve comment.
9801
9802 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9803
9804 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9805 a reference, strip the reference layer before calling
9806 the lang_ops value_has_mutated callback.
9807
9808 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9809
9810 Remove some globals from our parser.
9811 * language.c (unk_lang_parser): Add "struct parser_state"
9812 argument.
9813 * language.h (struct language_defn) <la_parser>: Likewise.
9814 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9815 (initialize_expout): Add "struct parser_state" argument.
9816 Rewrite function to use the parser state.
9817 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9818 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9819 write_exp_elt_longcst, write_exp_elt_dblcst,
9820 write_exp_elt_decfloatcst, write_exp_elt_type,
9821 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9822 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9823 write_dollar_variable): Likewise.
9824 (parse_exp_in_context_1): Use parser state.
9825 (insert_type_address_space): Add "struct parser_state" argument.
9826 Use parser state.
9827 (increase_expout_size): New function.
9828 * parser-defs.h: Forward declare "struct language_defn" and
9829 "struct parser_state".
9830 (expout, expout_size, expout_ptr): Remove extern declarations.
9831 (parse_gdbarch, parse_language): Rewrite macro declarations to
9832 accept the parser state.
9833 (struct parser_state): New struct.
9834 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9835 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9836 write_exp_elt_decfloatcst, write_exp_elt_type,
9837 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9838 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9839 write_exp_msymbol, write_dollar_variable,
9840 mark_struct_expression, insert_type_address_space): Add "struct
9841 parser_state" argument.
9842 (increase_expout_size): New function.
9843 * utils.c (do_clear_parser_state): New function.
9844 (make_cleanup_clear_parser_state): Likewise.
9845 * utils.h (make_cleanup_clear_parser_state): New function
9846 prototype.
9847 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9848 Update calls to write_exp* in order to pass the parser state.
9849 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9850 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9851 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9852 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9853 * stap-probe.c (stap_parse_register_operand): Likewise.
9854 (stap_parse_single_operand): Likewise.
9855 (stap_parse_argument_1): Likewise.
9856 (stap_parse_argument): Use parser state.
9857 * stap-probe.h: Include "parser-defs.h".
9858 (struct stap_parse_info) <pstate>: New field.
9859 * c-exp.y (parse_type): Rewrite to use parser state.
9860 (yyparse): Redefine to c_parse_internal.
9861 (pstate): New global variable.
9862 (parse_number): Add "struct parser_state" argument.
9863 (write_destructor_name): Likewise.
9864 (type_exp): Update calls to write_exp* and similars in order to
9865 use parser state.
9866 (exp1, exp, variable, qualified_name, space_identifier,
9867 typename, typebase): Likewise.
9868 (write_destructor_name, parse_number, lex_one_token,
9869 classify_name, classify_inner_name, c_parse): Add "struct
9870 parser_state" argument. Update function to use parser state.
9871 * c-lang.h: Forward declare "struct parser_state".
9872 (c_parse): Add "struct parser_state" argument.
9873 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9874 (yyparse): Redefine macro to ada_parse_internal.
9875 (pstate): New variable.
9876 (write_int, write_object_renaming, write_var_or_type,
9877 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9878 type_int, type_long, type_long_long, type_float, type_double,
9879 type_long_double, type_char, type_boolean, type_system_address):
9880 Add "struct parser_state" argument.
9881 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9882 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9883 var_or_type, aggregate, aggregate_component_list,
9884 positional_list, others, component_group,
9885 component_associations): Update calls to write_exp* and similar
9886 functions in order to use parser state.
9887 (ada_parse, write_var_from_sym, write_int,
9888 write_exp_op_with_string, write_object_renaming,
9889 find_primitive_type, write_selectors, write_ambiguous_var,
9890 write_var_or_type, write_name_assoc, type_int, type_long,
9891 type_long_long, type_float, type_double, type_long_double,
9892 type_char, type_boolean, type_system_address): Add "struct
9893 parser_state" argument. Adjust function to use parser state.
9894 * ada-lang.c (parse): Likewise.
9895 * ada-lang.h: Forward declare "struct parser_state".
9896 (ada_parse): Add "struct parser_state" argument.
9897 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9898 calls to both functions.
9899 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9900 parser state.
9901 (yyparse): Redefine macro to f_parse_internal.
9902 (pstate): New variable.
9903 (parse_number): Add "struct parser_state" argument.
9904 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9905 and similars in order to use parser state.
9906 (parse_number): Adjust code to use parser state.
9907 (yylex): Likewise.
9908 (f_parse): New function.
9909 * f-lang.h: Forward declare "struct parser_state".
9910 (f_parse): Add "struct parser_state" argument.
9911 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9912 parser state.
9913 (yyparse): Redefine macro for java_parse_internal.
9914 (pstate): New variable.
9915 (push_expression_name, push_expression_name, insert_exp): Add
9916 "struct parser_state" argument.
9917 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9918 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9919 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9920 PostIncrementExpression, PostDecrementExpression,
9921 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9922 UnaryExpressionNotPlusMinus, CastExpression,
9923 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9924 RelationalExpression, EqualityExpression, AndExpression,
9925 ExclusiveOrExpression, InclusiveOrExpression,
9926 ConditionalAndExpression, ConditionalOrExpression,
9927 ConditionalExpression, Assignment, LeftHandSide): Update
9928 calls to write_exp* and similars in order to use parser state.
9929 (parse_number): Ajust code to use parser state.
9930 (yylex): Likewise.
9931 (java_parse): New function.
9932 (push_variable): Add "struct parser_state" argument. Adjust
9933 code to user parser state.
9934 (push_fieldnames, push_qualified_expression_name,
9935 push_expression_name, insert_exp): Likewise.
9936 * jv-lang.h: Forward declare "struct parser_state".
9937 (java_parse): Add "struct parser_state" argument.
9938 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9939 parser state.
9940 (yyparse): Redefine macro to m2_parse_internal.
9941 (pstate): New variable.
9942 (type_exp, exp, fblock, variable, type): Update calls to
9943 write_exp* and similars to use parser state.
9944 (yylex): Likewise.
9945 (m2_parse): New function.
9946 * m2-lang.h: Forward declare "struct parser_state".
9947 (m2_parse): Add "struct parser_state" argument.
9948 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9949 * objc-lang.h: Forward declare "struct parser_state".
9950 (end_msglist): Add "struct parser_state" argument.
9951 * p-exp.y (parse_type): Rewrite macro to use parser state.
9952 (yyparse): Redefine macro to pascal_parse_internal.
9953 (pstate): New variable.
9954 (parse_number): Add "struct parser_state" argument.
9955 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9956 write_exp* and similars in order to use parser state.
9957 (parse_number, yylex): Adjust code to use parser state.
9958 (pascal_parse): New function.
9959 * p-lang.h: Forward declare "struct parser_state".
9960 (pascal_parse): Add "struct parser_state" argument.
9961 * go-exp.y (parse_type): Rewrite macro to use parser state.
9962 (yyparse): Redefine macro to go_parse_internal.
9963 (pstate): New variable.
9964 (parse_number): Add "struct parser_state" argument.
9965 (type_exp, exp1, exp, variable, type): Update calls to
9966 write_exp* and similars in order to use parser state.
9967 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9968 to use parser state.
9969 (go_parse): Likewise.
9970 * go-lang.h: Forward declare "struct parser_state".
9971 (go_parse): Add "struct parser_state" argument.
9972
9973 2014-03-27 Doug Evans <dje@google.com>
9974
9975 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9976
9977 2014-03-27 Doug Evans <dje@google.com>
9978
9979 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9980 Remove argument abbrev_section. All callers updated.
9981
9982 2014-03-27 Doug Evans <dje@google.com>
9983
9984 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9985 addr_base, ranges_base.
9986
9987 2014-03-26 Keith Seitz <keiths@redhat.com>
9988
9989 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9990 types, not VAR_DOMAIN.
9991
9992 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9993
9994 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9995 "ra" registers.
9996 * features/nios2-linux.c: Regenerated.
9997 * features/nios2.c: Regenerated.
9998
9999 2014-03-25 Pedro Alves <palves@redhat.com>
10000
10001 * cli/cli-script.c (script_from_file): Force the interpreter to
10002 sync mode.
10003
10004 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10005
10006 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10007 small stack allocation.
10008
10009 2014-03-24 Tristan Gingold <gingold@adacore.com>
10010
10011 * darwin-nat.c (exc_server): Remove unused prototype.
10012 (darwin_dump_message): Correctly display data on x86_64.
10013 (darwin_encode_reply): Fix style.
10014 Add comments and fix indentation.
10015
10016 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10017
10018 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10019
10020 2014-03-22 Doug Evans <xdje42@gmail.com>
10021
10022 * infcmd.c: Whitespace fixes.
10023 (interrupt_command): Merge two function comments into one.
10024
10025 2014-03-22 Doug Evans <xdje42@gmail.com>
10026
10027 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10028 All uses updated.
10029
10030 2014-03-22 Yao Qi <yao@codesourcery.com>
10031
10032 * remote.c (target_read_live_memory): Remove.
10033 (memory_xfer_live_readonly_partial): Rename it to
10034 remote_xfer_live_readonly_partial. Remove argument 'object'.
10035 All callers updated. Call remote_read_bytes_1
10036 instead of target_read_live_memory.
10037 * tracepoint.c (set_traceframe_number): Remove.
10038 (make_cleanup_restore_traceframe_number): Likewise .
10039 * tracepoint.h (set_traceframe_number): Remove declaration.
10040 (make_cleanup_restore_traceframe_number): Likewise.
10041
10042 2014-03-22 Yao Qi <yao@codesourcery.com>
10043
10044 * remote.c (remote_read_bytes): Move code on reading from the
10045 remote stub to ...
10046 (remote_read_bytes_1): ... here. New function.
10047
10048 2014-03-22 Yao Qi <yao@codesourcery.com>
10049
10050 * ctf.c (ctf_xfer_partial): Check the return value of
10051 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10052 return TARGET_XFER_UNAVAILABLE.
10053 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10054 * target.c (target_read_live_memory): Move it to remote.c.
10055 (memory_xfer_live_readonly_partial): Likewise.
10056 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10057 * remote.c (target_read_live_memory): Moved from target.c.
10058 (memory_xfer_live_readonly_partial): Likewise.
10059 (remote_read_bytes): Factored out from
10060 memory_xfer_partial_1.
10061
10062 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10063
10064 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10065 NULL pointer.
10066
10067 2014-03-21 Pedro Alves <palves@redhat.com>
10068
10069 * infrun.c (normal_stop): Extend comment.
10070
10071 2014-03-21 Hui Zhu <hui@codesourcery.com>
10072 Pedro Alves <palves@redhat.com>
10073
10074 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10075 static buffer.
10076 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10077 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10078 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10079
10080 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10081
10082 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10083 `z' formatted output modifier.
10084
10085 2014-03-20 Tom Tromey <tromey@redhat.com>
10086 Sergio Durigan Junior <sergiodj@redhat.com>
10087
10088 * probe.c (parse_probes): Turn assert into an ordinary error.
10089 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10090 exceptions when parsing probes. Rearrange the code for clarity.
10091
10092 2014-03-20 Tom Tromey <tromey@redhat.com>
10093
10094 PR gdb/14135
10095 * top.c (execute_command): Only dispatch events if the command
10096 started the target.
10097
10098 2014-03-20 Tom Tromey <tromey@redhat.com>
10099
10100 PR cli/15718
10101 * infcall.c: Include event-top.h.
10102 (run_inferior_call): Call async_disable_stdin if needed.
10103
10104 2014-03-20 Pedro Alves <palves@redhat.com>
10105
10106 * infrun.c (prepare_to_proceed): Delete.
10107 (thread_still_needs_step_over): New function.
10108 (find_thread_needs_step_over): New function.
10109 (proceed): If the current thread needs a step-over, set its
10110 steping_over_breakpoint flag. Adjust to use
10111 find_thread_needs_step_over instead of prepare_to_proceed.
10112 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10113 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10114 breakpoint.
10115 (switch_back_to_stepped_thread): Step over breakpoints of all
10116 threads not the stepping thread, before switching back to the
10117 stepping thread.
10118
10119 2014-03-20 Pedro Alves <palves@redhat.com>
10120
10121 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10122 extern.
10123 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10124 * infrun.c (saved_singlestep_ptid)
10125 (stepping_past_singlestep_breakpoint): Delete.
10126 (resume): Remove stepping_past_singlestep_breakpoint handling.
10127 (proceed): Store the prev_pc of the stepping thread too.
10128 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10129 singlestep_pc.
10130 (enum infwait_states): Delete infwait_thread_hop_state.
10131 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10132 field.
10133 (handle_inferior_event): Adjust.
10134 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10135 handling and the thread-hop code. Before removing single-step
10136 breakpoints, check whether the thread hit a single-step breakpoint
10137 of another thread. If it did, the trap is not a random signal.
10138 (switch_back_to_stepped_thread): If the event thread hit a
10139 single-step breakpoint, unblock it before switching to the
10140 stepping thread. Handle the case of the stepped thread having
10141 advanced already.
10142 (keep_going): Handle the case of the current thread moving past a
10143 single-step breakpoint.
10144
10145 2014-03-20 Pedro Alves <palves@redhat.com>
10146
10147 PR breakpoints/7143
10148 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10149 are being stepped over.
10150 (breakpoint_address_match): Make extern.
10151 * breakpoint.h (breakpoint_address_match): New declaration.
10152 * inferior.h (stepping_past_instruction_at): New declaration.
10153 * infrun.c (struct step_over_info): New type.
10154 (step_over_info): New global.
10155 (set_step_over_info, clear_step_over_info)
10156 (stepping_past_instruction_at): New functions.
10157 (handle_inferior_event): Clear the step-over info when
10158 trap_expected is cleared.
10159 (resume): Remove now stale comment.
10160 (clear_proceed_status): Clear step-over info.
10161 (proceed): Adjust step-over handling to set or clear the step-over
10162 info instead of removing all breakpoints.
10163 (handle_signal_stop): When setting up a thread-hop, don't remove
10164 breakpoints here.
10165 (stop_stepping): Clear step-over info.
10166 (keep_going): Adjust step-over handling to set or clear step-over
10167 info and then always inserting breakpoints, instead of removing
10168 all breakpoints when stepping over one.
10169
10170 2014-03-20 Pedro Alves <palves@redhat.com>
10171
10172 * infrun.c (previous_inferior_ptid): Adjust comment.
10173 (deferred_step_ptid): Delete.
10174 (infrun_thread_ptid_changed, prepare_to_proceed)
10175 (init_wait_for_inferior): Adjust.
10176 (handle_signal_stop): Delete deferred_step_ptid handling.
10177
10178 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10179
10180 PR gdb/15358
10181 * defs.h (sync_quit_force_run): New declaration.
10182 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10183 * event-top.c (async_sigterm_handler): New declaration.
10184 (async_sigterm_token): New variable.
10185 (async_init_signals): Create also async_sigterm_token.
10186 (async_sigterm_handler): New function.
10187 (sync_quit_force_run): New variable.
10188 (handle_sigterm): Replace quit_force call by other calls.
10189 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10190
10191 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10192
10193 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10194 offset into SPE pseudo registers.
10195
10196 2014-03-18 Pedro Alves <palves@redhat.com>
10197
10198 PR gdb/13860
10199 * inferior.h (print_stop_event): Declare.
10200 * infrun.c (print_stop_event): New, factored out from ...
10201 (normal_stop): ... this.
10202 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10203 of bpstat_print/print_stack_frame.
10204
10205 2014-03-17 Tom Tromey <tromey@redhat.com>
10206
10207 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10208
10209 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10210
10211 * ada-lang.c (decode_constrained_packed_array): Perform a
10212 minimal coercion for reference with coerce_ref instead of
10213 ada_coerce_ref.
10214
10215 2014-03-17 Tristan Gingold <gingold@adacore.com>
10216
10217 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10218 (darwin_solib_create_inferior_hook): Emit a warning if version
10219 is unhandled.
10220
10221 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10222
10223 * python/py-value.c (get_field_flag): Cast flag_name argument to
10224 PyObject_GetAttrString to support Python 2.4.
10225
10226 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10227
10228 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10229 (Global Maintainers): Remove Jan Kratochvil.
10230
10231 2014-03-14 Pedro Alves <palves@redhat.com>
10232
10233 * inferior.h (terminal_ours_for_output): Rename to ...
10234 (child_terminal_ours_for_output): ... this.
10235 (terminal_save_ours): Rename to ...
10236 (child_terminal_save_ours): ... this.
10237 (terminal_ours): Rename to ...
10238 (child_terminal_ours): ... this.
10239 (terminal_inferior): Rename to ...
10240 (child_terminal_inferior): ... this.
10241 (terminal_init_inferior): Rename to ...
10242 (child_terminal_init_inferior): ... this.
10243 (terminal_init_inferior_with_pgrp): Rename to ...
10244 (child_terminal_init_inferior_with_pgrp): ... this.
10245 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10246 (child_terminal_init_with_pgrp): ... this.
10247 (terminal_save_ours): Rename to ...
10248 (child_terminal_save_ours): ... this.
10249 (terminal_init_inferior): Rename to ...
10250 (child_terminal_init): ... this. Adjust.
10251 (terminal_inferior): Rename to ...
10252 (child_terminal_inferior): ... this.
10253 (terminal_ours_for_output): Rename to ...
10254 (child_terminal_ours_for_output): ... this. Adjust.
10255 (terminal_ours): Rename to ...
10256 (child_terminal_ours): ... this.
10257 (terminal_ours_1): Rename to ...
10258 (child_terminal_ours_1): ... this. Adjust.
10259 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10260 * windows-nat.c (do_initial_windows_stuff): Adjust.
10261 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10262 (gnu_terminal_init): ... this. Adjust.
10263 (gnu_target): Adjust.
10264 * inf-child.c (inf_child_target): Adjust.
10265
10266 2014-03-13 Doug Evans <xdje42@gmail.com>
10267
10268 PR guile/16612
10269 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10270 new eq?-hashtab.
10271
10272 2014-03-13 Doug Evans <xdje42@gmail.com>
10273
10274 * value.c (record_latest_value): Call release_value_or_incref
10275 instead of release_value.
10276
10277 2014-03-13 Pedro Alves <palves@redhat.com>
10278
10279 * procfs.c (procfs_target): Don't override to_shortname,
10280 to_longname or to_doc.
10281
10282 2014-03-13 Pedro Alves <palves@redhat.com>
10283
10284 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10285 Unix in user visible strings.
10286
10287 2014-03-12 Stan Shebs <stan@codesourcery.com>
10288
10289 * gdbtypes.h: Annotate comments for Doxygen, add a page
10290 block comment with some general info.
10291
10292 2014-03-12 Pedro Alves <palves@redhat.com>
10293
10294 * infcmd.c (prepare_execution_command): New function, factored out
10295 from several execution commands.
10296 (run_command_1, continue_command, step_1, jump_command)
10297 (signal_command, until_command, advance_command, finish_command)
10298 (attach_command): Use prepare_execution_command.
10299
10300 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10301
10302 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10303 (MAX_BPTS): Define.
10304 (MAX_WPTS): Define.
10305 (struct arm_linux_thread_points): Removed.
10306 (struct arm_linux_process_info): New.
10307 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10308 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10309 (arm_linux_find_breakpoints_by_tid): Removed.
10310 (struct arch_lwp_info): New.
10311 (arm_linux_find_process_pid): New functions.
10312 (arm_linux_add_process): New functions.
10313 (arm_linux_process_info_get): New functions.
10314 (arm_linux_forget_process): New function.
10315 (arm_linux_get_debug_reg_state): New function.
10316 (struct update_registers_data): New.
10317 (update_registers_callback): New function.
10318 (arm_linux_insert_hw_breakpoint1): Updated.
10319 (arm_linux_remove_hw_breakpoint1): Updated.
10320 (arm_linux_insert_hw_breakpoint): Updated.
10321 (arm_linux_remove_hw_breakpoint): Updated.
10322 (arm_linux_insert_watchpoint): Updated.
10323 (arm_linux_remove_watchpoint): Updated.
10324 (arm_linux_new_thread): Updated.
10325 (arm_linux_prepare_to_resume): New function.
10326 (arm_linux_new_fork): New function.
10327 (_initialize_arm_linux_nat): Updated.
10328
10329 2014-03-12 Pedro Alves <palves@redhat.com>
10330
10331 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10332
10333 2014-03-12 Tom Tromey <tromey@redhat.com>
10334
10335 * inf-child.c (return_zero): New function.
10336 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10337 * aix-thread.c (aix_thread_inferior_created): New function.
10338 (aix_thread_attach): Remove.
10339 (init_aix_thread_ops): Don't set to_attach.
10340 (_initialize_aix_thread): Register inferior_created observer.
10341 * corelow.c (init_core_ops): Don't set to_attach or
10342 to_create_inferior.
10343 * exec.c (init_exec_ops): Don't set to_attach or
10344 to_create_inferior.
10345 * infcmd.c (run_command_1): Use find_run_target. Make direct
10346 target calls.
10347 (attach_command): Use find_attach_target. Make direct target
10348 calls.
10349 * record-btrace.c (init_record_btrace_ops): Don't set
10350 to_create_inferior.
10351 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10352 Remove.
10353 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10354 set to_create_inferior.
10355 * target.c (complete_target_initialization): Add assertion.
10356 (target_create_inferior): Remove.
10357 (find_default_attach, find_default_create_inferior): Remove.
10358 (find_attach_target, find_run_target): New functions.
10359 (find_default_is_async_p, find_default_can_async_p)
10360 (target_supports_non_stop, target_attach): Remove.
10361 (init_dummy_target): Don't set to_create_inferior or
10362 to_supports_non_stop.
10363 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10364 TARGET_DEFAULT_FUNC.
10365 <to_create_inferior>: Add comment.
10366 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10367 TARGET_DEFAULT_RETURN.
10368 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10369 (find_attach_target, find_run_target): Declare.
10370 (target_create_inferior): Remove.
10371 (target_has_execution_1): Update comment.
10372 (target_supports_non_stop): Remove.
10373 * target-delegates.c: Rebuild.
10374
10375 2014-03-12 Pedro Alves <palves@redhat.com>
10376
10377 * inf-child.h: Update comment to not mention Unix.
10378
10379 2014-03-12 Pedro Alves <palves@redhat.com>
10380
10381 * inf-child.c: Update top comment to not mention Unix. Add
10382 generic comment describing how this target is meant to be used.
10383 (inf_child_post_attach, inf_child_post_startup_inferior)
10384 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10385 Unix in comment.
10386
10387 2014-03-12 Pedro Alves <palves@redhat.com>
10388
10389 * nto-procfs.c: Include inf-child.h.
10390 (procfs_ops): Delete global.
10391 (procfs_can_run): Delete method.
10392 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10393 target pointer instead of referencing procfs_ops.
10394 (procfs_prepare_to_store): Delete.
10395 (init_procfs_ops): Delete function.
10396 (procfs_target): New function, based on init_procfs_ops, but
10397 inherit inf_child_target.
10398 (_initialize_procfs): Use procfs_target.
10399
10400 2014-03-12 Pedro Alves <palves@redhat.com>
10401
10402 * windows-nat.c: Include inf-child.h.
10403 (windows_ops): Delete global.
10404 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10405 methods.
10406 (init_windows_ops): Delete function.
10407 (windows_target): New function, based on init_windows_ops, but
10408 inherit inf_child_target.
10409 (_initialize_windows_nat): Use windows_target. Install x86
10410 specific target methods here.
10411
10412 2014-03-10 Doug Evans <xdje42@gmail.com>
10413
10414 * guile/guile.c (call_initialize_gdb_module): New function.
10415 (initialize_guile): Replace call to scm_init_guile with call to
10416 scm_with_guile.
10417
10418 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10419
10420 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10421 in call to TYPE_CODE macro.
10422
10423 2014-03-10 Jerome Guitton <guitton@adacore.com>
10424
10425 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10426 Resolve tagged types to full view.
10427
10428 2014-03-10 Hui Zhu <hui@codesourcery.com>
10429
10430 * target.h (target_insert_breakpoint): Remove "hardware" from its
10431 comments.
10432
10433 2014-03-07 Doug Evans <dje@google.com>
10434
10435 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10436
10437 2014-03-07 Doug Evans <dje@google.com>
10438
10439 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10440 Remove unused local comp_dir_attr. Assert exactly one of
10441 stub_comp_unit_die, stub_comp_dir is non-NULL.
10442
10443 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10444
10445 * target.h (complete_target_initialization, add_target):
10446 Add comment.
10447
10448 2014-03-07 Pedro Alves <palves@redhat.com>
10449
10450 * go32-nat.c: Include inf-child.h.
10451 (go32_ops): Delete global.
10452 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10453 Delete methods.
10454 (go32_create_inferior): Push the passed in target pointer instead
10455 of referencing go32_ops.
10456 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10457 (go32_target): New function, based on init_go32_ops, but inherit
10458 inf_child_target.
10459 (_initialize_go32_nat): Use go32_target. Move parts of
10460 init_go32_ops here.
10461
10462 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10463
10464 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10465 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10466 SYMBOL_VALUE_ADDRESS.
10467 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10468
10469 2014-03-06 Yao Qi <yao@codesourcery.com>
10470
10471 * breakpoint.c (get_tracepoint_by_number): Remove argument
10472 optional_p. All callers updated. Adjust comments. Update
10473 output message.
10474 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10475
10476 2014-03-06 Yao Qi <yao@codesourcery.com>
10477
10478 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10479 early if get_number returns zero. Use 'p' instead of 'args'.
10480
10481 2014-03-06 Yao Qi <yao@codesourcery.com>
10482
10483 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10484 message.
10485
10486 2014-03-06 Yao Qi <yao@codesourcery.com>
10487
10488 PR breakpoints/16508
10489 * tracepoint.c (check_trace_running): New function.
10490 (trace_find_command): Move code to check_trace_running and
10491 call check_trace_running.
10492 (trace_find_pc_command): Likewise.
10493 (trace_find_tracepoint_command): Likewise.
10494 (trace_find_line_command): Likewise.
10495 (trace_find_range_command): Likewise.
10496 * tracepoint.h (check_trace_running): Likewise.
10497 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10498
10499 2014-03-06 Yao Qi <yao@codesourcery.com>
10500
10501 * target.h (struct target_ops) <to_traceframe_info>: Use
10502 TARGET_DEFAULT_NORETURN (tcomplain ()).
10503 * target-delegates.c: Regenerated.
10504
10505 2014-03-05 Pedro Alves <palves@redhat.com>
10506
10507 PR gdb/16575
10508 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10509 void. Update comment.
10510 (dcache_xfer_memory): Delete.
10511 (dcache_read_memory_partial): New, based on the read bits of
10512 dcache_xfer_memory.
10513 (dcache_update): Add status parameter. Use ULONGEST for len, and
10514 adjust. Discard cache lines if the reason for the update was
10515 error.
10516 * dcache.h (dcache_xfer_memory): Delete declaration.
10517 (dcache_read_memory_partial): New declaration.
10518 (dcache_update): Update prototype.
10519 * target.c (raw_memory_xfer_partial): Update the dcache here.
10520 (memory_xfer_partial_1): Don't handle dcache writes here.
10521
10522 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10523
10524 * remote-sim.c (gdbsim_load): Add const to prog.
10525
10526 2014-03-03 Tom Tromey <tromey@redhat.com>
10527
10528 * elfread.c (probe_key): Change to bfd_data.
10529 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10530 now per-BFD, not per-objfile.
10531 * stap-probe.c (stap_probe_destroy): Update comment.
10532 (handle_stap_probe): Allocate on the per-BFD obstack.
10533
10534 2014-03-03 Tom Tromey <tromey@redhat.com>
10535
10536 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10537 * breakpoint.c (create_longjmp_master_breakpoint): Use
10538 get_probe_address.
10539 (add_location_to_breakpoint, bkpt_probe_insert_location)
10540 (bkpt_probe_remove_location): Update.
10541 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10542 * elfread.c (elf_symfile_relocate_probe): Remove.
10543 (elf_probe_fns): Update.
10544 (insert_exception_resume_breakpoint): Change type of "probe"
10545 parameter to bound_probe.
10546 (check_exception_resume): Update.
10547 * objfiles.c (objfile_relocate1): Don't relocate probes.
10548 * probe.c (bound_probe_s): New typedef.
10549 (parse_probes): Use get_probe_address. Set sal's objfile.
10550 (find_probe_by_pc): Return a bound_probe.
10551 (collect_probes): Return a VEC(bound_probe_s).
10552 (compare_probes): Update.
10553 (gen_ui_out_table_header_info): Change type of "probes"
10554 parameter. Update.
10555 (info_probes_for_ops): Update.
10556 (get_probe_address): New function.
10557 (probe_safe_evaluate_at_pc): Update.
10558 * probe.h (struct probe_ops) <get_probe_address>: New field.
10559 <set_semaphore, clear_semaphore>: Add objfile parameter.
10560 (struct probe) <objfile>: Remove field.
10561 <arch>: New field.
10562 <address>: Update comment.
10563 (struct bound_probe): New.
10564 (find_probe_by_pc): Return a bound_probe.
10565 (get_probe_address): Declare.
10566 * solib-svr4.c (struct probe_and_action) <address>: New field.
10567 (hash_probe_and_action, equal_probe_and_action): Update.
10568 (register_solib_event_probe): Add address parameter.
10569 (solib_event_probe_at): Update.
10570 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10571 get_probe_address.
10572 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10573 (stap_get_probe_address): New function.
10574 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10575 (compile_probe_arg): Update.
10576 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10577 address.
10578 (handle_stap_probe): Don't relocate the probe.
10579 (stap_relocate): Remove.
10580 (stap_gen_info_probes_table_values): Update.
10581 (stap_probe_ops): Remove stap_relocate.
10582 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10583 (debug_sym_probe_fns): Update.
10584 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10585 * symtab.c (init_sal): Use memset.
10586 * symtab.h (struct symtab_and_line) <objfile>: New field.
10587 * tracepoint.c (start_tracing, stop_tracing): Update.
10588
10589 2014-03-03 Tom Tromey <tromey@redhat.com>
10590
10591 * probe.h (parse_probes, find_probe_by_pc)
10592 (find_probes_in_objfile): Fix comments.
10593
10594 2014-03-02 Doug Evans <xdje42@gmail.com>
10595
10596 * infrun.c (handle_signal_stop): Replace test for
10597 TARGET_WAITKIND_STOPPED with an assert.
10598
10599 2014-03-02 Doug Evans <xdje42@gmail.com>
10600
10601 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10602
10603 2014-03-02 Doug Evans <xdje42@gmail.com>
10604
10605 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10606
10607 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10608
10609 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10610
10611 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10612
10613 * i386obsd-nat.c: Include "obsd-nat.h".
10614 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10615 add_target.
10616 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10617
10618 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10619
10620 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10621
10622 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10623
10624 * mips64obsd-nat.c: Include "obsd-nath".
10625 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10626 add_target
10627 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10628
10629 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10630
10631 * amd64obsd-nat.c: Include "obsd-nat,h.
10632 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10633 add_target.
10634 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10635
10636 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10637
10638 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10639 (find_overload_match): Update call to find_oload_champ.
10640 (find_oload_champ_namespace_loop): Likewise
10641
10642 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10643
10644 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10645
10646 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10647 * config/sparc/obsd64.mh: New file.
10648 * sparc64obsd-nat.c: New file.
10649
10650 * obsd-nat.h: New file.
10651 * obsd-nat.c: New file.
10652 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10653 (ALLDEPFILES): Add obsd-nat.c.
10654
10655 2014-02-28 Tom Tromey <tromey@redhat.com>
10656
10657 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10658 * cli-out.h (cli_ui_out_impl): Now const.
10659 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10660 * ui-out.c (struct ui_out) <impl>: Now const.
10661 (default_ui_out_impl): Now const.
10662 (ui_out_new): Make 'impl' parameter const.
10663 * ui-out.h (ui_out_new): Update.
10664
10665 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10666
10667 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10668
10669 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10670
10671 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10672
10673 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10674
10675 Additional PR 8882 fix.
10676 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10677
10678 2014-02-27 Pedro Alves <palves@redhat.com>
10679
10680 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10681 isn't set.
10682
10683 2014-02-27 Pedro Alves <palves@redhat.com>
10684
10685 PR 12702
10686 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10687 * nat/linux-waitpid.c: Include string.h.
10688 (status_to_str): Moved here and made extern.
10689 * nat/linux-waitpid.h (status_to_str): New declaration.
10690
10691 2014-02-27 Hui Zhu <hui@codesourcery.com>
10692
10693 PR 12702
10694 * infrun.c (ptid_match): Move ...
10695 * common/ptid.c (ptid_match): ... here.
10696 * inferior.h (ptid_match): Move ...
10697 * common/ptid.h (ptid_match): ... here.
10698
10699 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10700
10701 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10702 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10703 gdb_target_obs.
10704
10705 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10706
10707 * obsd-tdep.c (obsd_auxv_parse): New function.
10708 (obsd_init_abi): Set auxv_parse.
10709
10710 * gdbarch.sh (auxv_parse): New.
10711 * gdbarch.h: Regenerated.
10712 * gdbarch.c: Regenerated.
10713 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10714
10715 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10716
10717 * guile/scm-value.c (gdbscm_history_append_x): New function.
10718 (value_functions): Add it.
10719
10720 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10721
10722 * dwarf2read.c (attr_value_as_address): New function.
10723 (dwarf2_find_base_address, read_call_site_scope): Use
10724 attr_value_as_address in place of DW_ADDR.
10725 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10726 the low and high addresses. Slight rework of the handling
10727 of the high pc being a constant form, and limit it to
10728 DWARF verson 4 or higher.
10729 (dwarf2_record_block_ranges): Likewise.
10730 (read_partial_die): Likewise.
10731 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10732
10733 2014-02-26 Tom Tromey <tromey@redhat.com>
10734
10735 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10736
10737 2014-02-26 Tom Tromey <tromey@redhat.com>
10738
10739 * elfread.c (elf_read_minimal_symbols): Return early if
10740 minimal symbols have already been read. Add "ei" parameter.
10741 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10742 * minsyms.c (prim_record_minimal_symbol_full): Update.
10743 * objfiles.h (struct objstats) <n_minsyms>: Move...
10744 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10745 * symmisc.c (print_objfile_statistics): Update.
10746
10747 2014-02-26 Tom Tromey <tromey@redhat.com>
10748
10749 * elfread.c (elf_read_minimal_symbols): New function, from
10750 elf_symfile_read.
10751 (elf_symfile_read): Call it.
10752
10753 2014-02-26 Tom Tromey <tromey@redhat.com>
10754
10755 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10756 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10757 (lookup_minimal_symbol_solib_trampoline)
10758 (lookup_minimal_symbol_by_pc_section_1)
10759 (lookup_minimal_symbol_and_objfile): Update.
10760 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10761 Don't allocate a minimal symbol if minsyms have already been read.
10762 (build_minimal_symbol_hash_tables): Update.
10763 (install_minimal_symbols): Do nothing if minsyms already read.
10764 Use the per-BFD obstack.
10765 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10766 * objfiles.c (allocate_objfile): Call
10767 terminate_minimal_symbol_table later.
10768 (have_minimal_symbols): Update.
10769 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10770 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10771 Move from struct objfile.
10772 <minsyms_read>: New field.
10773 (struct objfile) <msymbols, minimal_symbol_count,
10774 msymbol_hash, msymbol_demangled_hash>: Move.
10775 (ALL_OBJFILE_MSYMBOLS): Update.
10776 * symfile.c (read_symbols): Set minsyms_read.
10777 (reread_symbols): Update.
10778 * symmisc.c (dump_objfile, dump_msymbols): Update.
10779
10780 2014-02-26 Tom Tromey <tromey@redhat.com>
10781
10782 * minsyms.c (msymbols_sort): Remove.
10783 * minsyms.h (msymbols_sort): Remove.
10784 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10785 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10786 * elfread.c (elf_symtab_read): Don't add section offsets.
10787 * xcoffread.c (record_minimal_symbol): Don't add section offset
10788 to minimal symbol address.
10789 * somread.c (text_offset, data_offset): Remove.
10790 (som_symtab_read): Don't add section offsets to minimal symbol
10791 addresses.
10792 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10793 Don't add section offsets to minimal symbols.
10794 * coffread.c (coff_symtab_read): Don't add section offsets
10795 to minimal symbol addresses.
10796 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10797 to minimal symbol addresses.
10798 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10799 section offset to minimal symbol addresses.
10800 * mdebugread.c (parse_partial_symbols): Don't add section
10801 offset to minimal symbol addresses.
10802 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10803 offset to minimal symbol addresses.
10804
10805 2014-02-26 Tom Tromey <tromey@redhat.com>
10806
10807 * ada-lang.c (ada_main_name): Update.
10808 (ada_add_standard_exceptions): Update.
10809 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10810 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10811 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10812 * auxv.c (ld_so_xfer_auxv): Update.
10813 * avr-tdep.c (avr_scan_prologue): Update.
10814 * ax-gdb.c (gen_var_ref): Update.
10815 * blockframe.c (get_pc_function_start)
10816 (find_pc_partial_function_gnu_ifunc): Update.
10817 * breakpoint.c (create_overlay_event_breakpoint)
10818 (create_longjmp_master_breakpoint)
10819 (create_std_terminate_master_breakpoint)
10820 (create_exception_master_breakpoint): Update.
10821 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10822 * c-valprint.c (c_val_print): Update.
10823 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10824 * common/agent.c (agent_look_up_symbols): Update.
10825 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10826 * dwarf2loc.c (call_site_to_target_addr): Update.
10827 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10828 * elfread.c (elf_gnu_ifunc_record_cache)
10829 (elf_gnu_ifunc_resolve_by_got): Update.
10830 * findvar.c (default_read_var_value): Update.
10831 * frame.c (inside_main_func): Update.
10832 * frv-tdep.c (frv_frame_this_id): Update.
10833 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10834 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10835 Update.
10836 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10837 (hppa_hpux_find_dummy_bpaddr): Update.
10838 * hppa-tdep.c (hppa_symbol_address): Update.
10839 * infcmd.c (until_next_command): Update.
10840 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10841 Update.
10842 * linespec.c (minsym_found, add_minsym): Update.
10843 * linux-nat.c (get_signo): Update.
10844 * linux-thread-db.c (inferior_has_bug): Update.
10845 * m32c-tdep.c (m32c_return_value)
10846 (m32c_m16c_address_to_pointer): Update.
10847 * m32r-tdep.c (m32r_frame_this_id): Update.
10848 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10849 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10850 * maint.c (maintenance_translate_address): Update.
10851 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10852 (frob_address): New function.
10853 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10854 frob_address. Rename parameter to "pc_in".
10855 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10856 addresses.
10857 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10858 Update.
10859 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10860 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10861 * objc-lang.c (find_objc_msgsend): Update.
10862 * objfiles.c (objfile_relocate1): Update.
10863 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10864 * p-valprint.c (pascal_val_print): Update.
10865 * parse.c (write_exp_msymbol): Update.
10866 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10867 (ppc_elfv2_skip_entrypoint): Update.
10868 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10869 * printcmd.c (build_address_symbolic, msym_info)
10870 (address_info): Update.
10871 * proc-service.c (ps_pglobal_lookup): Update.
10872 * psymtab.c (find_pc_sect_psymtab_closer)
10873 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10874 Change msymbol parameter to bound_minimal_symbol.
10875 * ravenscar-thread.c (get_running_thread_id): Update.
10876 * remote.c (remote_check_symbols): Update.
10877 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10878 address.
10879 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10880 * solib-dsbt.c (lm_base): Update.
10881 * solib-frv.c (lm_base, main_got): Update.
10882 * solib-irix.c (locate_base): Update.
10883 * solib-som.c (som_solib_create_inferior_hook)
10884 (link_map_start): Update.
10885 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10886 * solib-svr4.c (elf_locate_base, enable_break): Update.
10887 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10888 (flush_ea_cache): Update.
10889 * stabsread.c (define_symbol, scan_file_globals): Update.
10890 * stack.c (find_frame_funname): Update.
10891 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10892 (debug_qf_find_pc_sect_symtab): Update.
10893 * symfile.c (simple_read_overlay_table)
10894 (simple_overlay_update): Update.
10895 * symfile.h (struct quick_symbol_functions)
10896 <find_pc_sect_symtab>: Change type of msymbol to
10897 bound_minimal_symbol.
10898 * symmisc.c (dump_msymbols): Update.
10899 * symtab.c (find_pc_sect_symtab_via_partial)
10900 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10901 (search_symbols, print_msymbol_info): Update.
10902 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10903 (MSYMBOL_VALUE_ADDRESS): Redefine.
10904 (BMSYMBOL_VALUE_ADDRESS): New macro.
10905 * tracepoint.c (scope_info): Update.
10906 * tui/tui-disasm.c (tui_find_disassembly_address)
10907 (tui_get_begin_asm_address): Update.
10908 * valops.c (find_function_in_inferior): Update.
10909 * value.c (value_static_field, value_fn_field): Update.
10910
10911 2014-02-26 Tom Tromey <tromey@redhat.com>
10912
10913 * ada-lang.c (ada_update_initial_language): Update.
10914 (ada_main_name, ada_has_this_exception_support): Update.
10915 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10916 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10917 * arm-tdep.c (arm_skip_stub): Update.
10918 * auxv.c (ld_so_xfer_auxv): Update.
10919 * avr-tdep.c (avr_scan_prologue): Update.
10920 * ax-gdb.c (gen_var_ref): Update.
10921 * breakpoint.c (struct breakpoint_objfile_data)
10922 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10923 type to bound_minimal_symbol.
10924 (create_overlay_event_breakpoint)
10925 (create_longjmp_master_breakpoint)
10926 (create_std_terminate_master_breakpoint)
10927 (create_exception_master_breakpoint): Update.
10928 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10929 * c-exp.y (classify_name): Update.
10930 * coffread.c (coff_symfile_read): Update.
10931 * common/agent.c (agent_look_up_symbols): Update.
10932 * d-lang.c (d_main_name): Update.
10933 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10934 * dec-thread.c (enable_dec_thread): Update.
10935 * dwarf2loc.c (call_site_to_target_addr): Update.
10936 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10937 * eval.c (evaluate_subexp_standard): Update.
10938 * findvar.c (struct minsym_lookup_data) <result>: Change type
10939 to bound_minimal_symbol.
10940 <objfile>: Remove.
10941 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10942 * frame.c (inside_main_func): Update.
10943 * frv-tdep.c (frv_frame_this_id): Update.
10944 * gcore.c (call_target_sbrk): Update.
10945 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10946 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10947 Update.
10948 * go-lang.c (go_main_name): Update.
10949 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10950 (hppa_hpux_find_import_stub_for_addr): Update.
10951 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10952 Update. Change return type.
10953 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10954 type.
10955 * jit.c (jit_breakpoint_re_set_internal): Update.
10956 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10957 Update.
10958 * linux-nat.c (get_signo): Update.
10959 * linux-thread-db.c (inferior_has_bug): Update
10960 * m32c-tdep.c (m32c_return_value)
10961 (m32c_m16c_address_to_pointer): Update.
10962 * m32r-tdep.c (m32r_frame_this_id): Update.
10963 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10964 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10965 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10966 lookup_minimal_symbol. Change return type.
10967 (lookup_minimal_symbol): Remove.
10968 (lookup_bound_minimal_symbol): Update.
10969 (lookup_minimal_symbol_text): Change return type.
10970 (lookup_minimal_symbol_solib_trampoline): Change return type.
10971 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10972 (lookup_minimal_symbol_solib_trampoline): Change return type.
10973 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10974 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10975 (value_nsstring, find_imps): Update.
10976 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10977 * p-lang.c (pascal_main_name): Update.
10978 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10979 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10980 * proc-service.c (ps_pglobal_lookup): Update.
10981 * ravenscar-thread.c (get_running_thread_msymbol): Change
10982 return type.
10983 (has_ravenscar_runtime, get_running_thread_id): Update.
10984 * remote.c (remote_check_symbols): Update.
10985 * sol-thread.c (ps_pglobal_lookup): Update.
10986 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10987 * solib-dsbt.c (lm_base): Update.
10988 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10989 Update.
10990 * solib-irix.c (locate_base): Update.
10991 * solib-som.c (som_solib_create_inferior_hook)
10992 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10993 Update.
10994 * solib-spu.c (spu_enable_break): Update.
10995 * solib-svr4.c (elf_locate_base, enable_break): Update.
10996 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10997 (flush_ea_cache): Update.
10998 * stabsread.c (define_symbol): Update.
10999 * symfile.c (simple_read_overlay_table): Update.
11000 * symtab.c (find_pc_sect_line): Update.
11001 * tracepoint.c (scope_info): Update.
11002 * tui-disasm.c (tui_get_begin_asm_address): Update.
11003 * value.c (value_static_field): Update.
11004
11005 2014-02-26 Tom Tromey <tromey@redhat.com>
11006
11007 * minsyms.c (prim_record_minimal_symbol_full): Use
11008 SET_MSYMBOL_VALUE_ADDRESS.
11009 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11010 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11011 SET_MSYMBOL_VALUE_ADDRESS.
11012 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11013 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11014
11015 2014-02-26 Tom Tromey <tromey@redhat.com>
11016
11017 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11018 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11019 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11020 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11021 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11022 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11023 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11024 * ada-lang.c (ada_main_name): Update.
11025 (ada_lookup_simple_minsym): Update.
11026 (ada_make_symbol_completion_list): Update.
11027 (ada_add_standard_exceptions): Update.
11028 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11029 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11030 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11031 * arm-tdep.c (skip_prologue_function): Update.
11032 (arm_skip_stack_protector, arm_skip_stub): Update.
11033 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11034 (arm_wince_skip_main_prologue): Update.
11035 * auxv.c (ld_so_xfer_auxv): Update.
11036 * avr-tdep.c (avr_scan_prologue): Update.
11037 * ax-gdb.c (gen_var_ref): Update.
11038 * block.c (call_site_for_pc): Update.
11039 * blockframe.c (get_pc_function_start): Update.
11040 (find_pc_partial_function_gnu_ifunc): Update.
11041 * breakpoint.c (create_overlay_event_breakpoint): Update.
11042 (create_longjmp_master_breakpoint): Update.
11043 (create_std_terminate_master_breakpoint): Update.
11044 (create_exception_master_breakpoint): Update.
11045 (resolve_sal_pc): Update.
11046 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11047 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11048 Update.
11049 * c-valprint.c (c_val_print): Update.
11050 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11051 * coffread.c (coff_symfile_read): Update.
11052 * common/agent.c (agent_look_up_symbols): Update.
11053 * dbxread.c (find_stab_function_addr): Update.
11054 (end_psymtab): Update.
11055 * dwarf2loc.c (call_site_to_target_addr): Update.
11056 (func_verify_no_selftailcall): Update.
11057 (tailcall_dump): Update.
11058 (call_site_find_chain_1): Update.
11059 (dwarf_expr_reg_to_entry_parameter): Update.
11060 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11061 (elf_gnu_ifunc_resolve_by_got): Update.
11062 * f-valprint.c (info_common_command): Update.
11063 * findvar.c (read_var_value): Update.
11064 * frame.c (get_prev_frame_1): Update.
11065 (inside_main_func): Update.
11066 * frv-tdep.c (frv_skip_main_prologue): Update.
11067 (frv_frame_this_id): Update.
11068 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11069 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11070 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11071 (gnuv3_skip_trampoline): Update.
11072 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11073 (hppa64_hpux_in_solib_call_trampoline): Update.
11074 (hppa_hpux_skip_trampoline_code): Update.
11075 (hppa64_hpux_search_dummy_call_sequence): Update.
11076 (hppa_hpux_find_import_stub_for_addr): Update.
11077 (hppa_hpux_find_dummy_bpaddr): Update.
11078 * hppa-tdep.c (hppa_symbol_address)
11079 (hppa_lookup_stub_minimal_symbol): Update.
11080 * i386-tdep.c (i386_skip_main_prologue): Update.
11081 (i386_pe_skip_trampoline_code): Update.
11082 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11083 * infcall.c (get_function_name): Update.
11084 * infcmd.c (until_next_command): Update.
11085 * jit.c (jit_breakpoint_re_set_internal): Update.
11086 (jit_inferior_init): Update.
11087 * linespec.c (minsym_found): Update.
11088 (add_minsym): Update.
11089 * linux-fork.c (info_checkpoints_command): Update.
11090 * linux-nat.c (get_signo): Update.
11091 * linux-thread-db.c (inferior_has_bug): Update.
11092 * m32c-tdep.c (m32c_return_value): Update.
11093 (m32c_m16c_address_to_pointer): Update.
11094 (m32c_m16c_pointer_to_address): Update.
11095 * m32r-tdep.c (m32r_frame_this_id): Update.
11096 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11097 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11098 * maint.c (maintenance_translate_address): Update.
11099 * minsyms.c (add_minsym_to_hash_table): Update.
11100 (add_minsym_to_demangled_hash_table): Update.
11101 (msymbol_objfile): Update.
11102 (lookup_minimal_symbol): Update.
11103 (iterate_over_minimal_symbols): Update.
11104 (lookup_minimal_symbol_text): Update.
11105 (lookup_minimal_symbol_by_pc_name): Update.
11106 (lookup_minimal_symbol_solib_trampoline): Update.
11107 (lookup_minimal_symbol_by_pc_section_1): Update.
11108 (lookup_minimal_symbol_and_objfile): Update.
11109 (prim_record_minimal_symbol_full): Update.
11110 (compare_minimal_symbols): Update.
11111 (compact_minimal_symbols): Update.
11112 (build_minimal_symbol_hash_tables): Update.
11113 (install_minimal_symbols): Update.
11114 (terminate_minimal_symbol_table): Update.
11115 (find_solib_trampoline_target): Update.
11116 (minimal_symbol_upper_bound): Update.
11117 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11118 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11119 (mips_skip_pic_trampoline_code): Update.
11120 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11121 * objc-lang.c (selectors_info): Update.
11122 (classes_info): Update.
11123 (find_methods): Update.
11124 (find_imps): Update.
11125 (find_objc_msgsend): Update.
11126 * objfiles.c (objfile_relocate1): Update.
11127 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11128 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11129 * p-valprint.c (pascal_val_print): Update.
11130 * parse.c (write_exp_msymbol): Update.
11131 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11132 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11133 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11134 * printcmd.c (build_address_symbolic): Update.
11135 (sym_info): Update.
11136 (address_info): Update.
11137 * proc-service.c (ps_pglobal_lookup): Update.
11138 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11139 (find_pc_sect_psymtab): Update.
11140 * python/py-framefilter.c (py_print_frame): Update.
11141 * ravenscar-thread.c (get_running_thread_id): Update.
11142 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11143 Update.
11144 * remote.c (remote_check_symbols): Update.
11145 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11146 (rs6000_skip_trampoline_code): Update.
11147 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11148 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11149 * solib-dsbt.c (lm_base): Update.
11150 * solib-frv.c (lm_base): Update.
11151 (main_got): Update.
11152 * solib-irix.c (locate_base): Update.
11153 * solib-som.c (som_solib_create_inferior_hook): Update.
11154 (som_solib_desire_dynamic_linker_symbols): Update.
11155 (link_map_start): Update.
11156 * solib-spu.c (spu_enable_break): Update.
11157 (ocl_enable_break): Update.
11158 * solib-svr4.c (elf_locate_base): Update.
11159 (enable_break): Update.
11160 * spu-tdep.c (spu_get_overlay_table): Update.
11161 (spu_catch_start): Update.
11162 (flush_ea_cache): Update.
11163 * stabsread.c (define_symbol): Update.
11164 (scan_file_globals): Update.
11165 * stack.c (find_frame_funname): Update.
11166 (frame_info): Update.
11167 * symfile.c (simple_read_overlay_table): Update.
11168 (simple_overlay_update): Update.
11169 * symmisc.c (dump_msymbols): Update.
11170 * symtab.c (fixup_section): Update.
11171 (find_pc_sect_line): Update.
11172 (skip_prologue_sal): Update.
11173 (search_symbols): Update.
11174 (print_msymbol_info): Update.
11175 (rbreak_command): Update.
11176 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11177 (completion_list_objc_symbol): Update.
11178 (default_make_symbol_completion_list_break_on): Update.
11179 * tracepoint.c (scope_info): Update.
11180 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11181 (tui_get_begin_asm_address): Update.
11182 * valops.c (find_function_in_inferior): Update.
11183 * value.c (value_static_field): Update.
11184 (value_fn_field): Update.
11185
11186 2014-02-26 Tom Tromey <tromey@redhat.com>
11187
11188 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11189 bound minimal symbols. Move code that knows about minsym
11190 table layout...
11191 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11192 function.
11193 * minsyms.h (minimal_symbol_upper_bound): Declare.
11194 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11195 minimal_symbol_upper_bound.
11196
11197 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11198
11199 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11200 Use the type's name if its basic type does not have a tag.
11201
11202 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11203
11204 * dwarf2read.c (read_subrange_type): Add comment.
11205
11206 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11207
11208 * dwarf2read.c (update_enumeration_type_from_children): New
11209 function, mostly extracted from process_structure_scope.
11210 (read_enumeration_type): Call update_enumeration_type_from_children.
11211 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11212 and flag_flag_enum fields.
11213
11214 2014-02-26 Pedro Alves <palves@redhat.com>
11215
11216 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11217 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11218 to_xfer_partial method.
11219
11220 2014-02-26 Pedro Alves <palves@redhat.com>
11221
11222 * target.c (complete_target_initialization): Don't install
11223 default_xfer_partial as to_xfer_partial hook.
11224 (nomemory): Delete.
11225 (update_current_target): Don't INHERIT nor de_fault
11226 deprecated_xfer_memory. Delete de_fault macro.
11227 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11228 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11229 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11230 field.
11231
11232 2014-02-26 Pedro Alves <palves@redhat.com>
11233
11234 * go32-nat.c (my_write_child): New function.
11235 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11236 (go32_xfer_partial): New function.
11237 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11238 Instead install a to_xfer_partial hook.
11239
11240 2014-02-26 Pedro Alves <palves@redhat.com>
11241
11242 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11243 to_xfer_partial helper. Rewrite.
11244 (procfs_xfer_partial): New function.
11245 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11246 Install a to_xfer_partial hook.
11247
11248 2014-02-26 Pedro Alves <palves@redhat.com>
11249
11250 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11251 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11252 (m32r_xfer_partial): New function.
11253 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11254 Install a to_xfer_partial hook.
11255
11256 2014-02-26 Pedro Alves <palves@redhat.com>
11257
11258 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11259 helper.
11260 (mips_xfer_partial): New function.
11261 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11262 hook. Install a to_xfer_partial hook.
11263
11264 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11265
11266 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11267 * gdbtypes.c (create_array_type_with_stride): New function,
11268 renaming create_array_type, but with an added parameter
11269 called "bit_stride".
11270 (create_array_type): Re-implement using
11271 create_array_type_with_stride.
11272 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11273 and DW_AT_bit_stride attributes.
11274
11275 2014-02-26 Pedro Alves <palves@redhat.com>
11276
11277 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11278 task-specific breakpoints.
11279
11280 2014-02-25 Pedro Alves <palves@redhat.com>
11281
11282 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11283 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11284
11285 2014-02-25 Stan Shebs <stan@codesourcery.com>
11286
11287 * defs.h: Annotate comments for Doxygen.
11288
11289 2014-02-25 Tom Tromey <tromey@redhat.com>
11290
11291 * target.h (target_ignore): Don't declare.
11292 * target.c (target_ignore): Remove.
11293
11294 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11295
11296 PR gdb/16626
11297 * auto-load.c (auto_load_objfile_script_1): Change filename to
11298 debugfile.
11299
11300 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11301
11302 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11303 documentation. Adjust prototype to match the target_ops
11304 to_xfer_partial method. Adjust implementation accordingly.
11305
11306 2014-02-25 Hui Zhu <hui@codesourcery.com>
11307
11308 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11309 to_traceframe_info.
11310
11311 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11312
11313 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11314 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11315 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11316 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11317 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11318 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11319 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11320 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11321 New constants.
11322 (rl78_register_type): Use a data pointer type for SP and
11323 new pseudo registers mentioned above. Use a 16 bit integer
11324 type for all other register pairs.
11325 (rl78_register_name, rl78_g10_register_name): Update for
11326 new pseudo registers.
11327 (rl78_pseudo_register_read): Likewise.
11328 (rl78_pseudo_register_write): Likewise.
11329 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11330 to the newly added pseudo registers.
11331
11332 2014-02-24 Doug Evans <dje@google.com>
11333
11334 * value.c (record_latest_value): Fix comment.
11335 * printcmd.c (print_command_1): Remove code to handle -1 return from
11336 record_latest_value.
11337
11338 2014-02-24 Pedro Alves <palves@redhat.com>
11339
11340 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11341 deprecated_xfer_memory hook.
11342 (procfs_xfer_partial): Call procfs_xfer_memory instead
11343 of the deprecated_xfer_memory target hook.
11344 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11345 helper.
11346
11347 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11348
11349 * windows-nat.c (windows_xfer_shared_libraries): Return
11350 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11351 requested object is TARGET_OBJECT_LIBRARIES.
11352
11353 2014-02-24 Yao Qi <yao@codesourcery.com>
11354
11355 * target.h (enum target_xfer_status)
11356 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11357 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11358 explicitly. New.
11359 * corefile.c (memory_error_message): User updated.
11360 * exec.c (section_table_read_available_memory): Likewise.
11361 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11362 * target.c (target_xfer_status_to_string): Likewise.
11363 (raw_memory_xfer_partial): Likewise.
11364 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11365 * valops.c (read_value_memory): Likewise.
11366 * exec.h: Update comments.
11367
11368 2014-02-24 Yao Qi <yao@codesourcery.com>
11369
11370 * target.c (target_xfer_status_to_string): Rename argument err
11371 to status.
11372 * target.h (target_xfer_status_to_string): Update declaration.
11373 Replace target_xfer_error_to_string with
11374 target_xfer_status_to_string in comment.
11375
11376 2014-02-24 Yao Qi <yao@codesourcery.com>
11377
11378 * mips-linux-nat.c (super_close): Update its type.
11379 (mips_linux_close): Pass 'self' to super_close.
11380
11381 2014-02-24 Yao Qi <yao@codesourcery.com>
11382
11383 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11384 * corefile.c (read_memory): Adjusted.
11385 * target.c (target_write_with_progress): Adjusted.
11386
11387 2014-02-23 Yao Qi <yao@codesourcery.com>
11388
11389 Revert two patches:
11390
11391 2013-10-25 Yao Qi <yao@codesourcery.com>
11392
11393 * remote.c (remote_traceframe_info): Return early if
11394 traceframe is not selected.
11395
11396 2013-07-19 Yao Qi <yao@codesourcery.com>
11397
11398 * target.c (update_current_target): Change the default action
11399 of 'to_traceframe_info' from tcomplain to return_zero.
11400 * target.h (struct target_ops) <to_traceframe_info>: Add more
11401 comments.
11402
11403 2014-02-23 Yao Qi <yao@codesourcery.com>
11404
11405 * valops.c (read_value_memory): Rewrite it. Call
11406 target_xfer_partial in a loop.
11407 * exec.h (section_table_available_memory): Remove declaration.
11408 Move comments to ...
11409 * exec.c (section_table_available_memory): ... here. Make it
11410 static.
11411
11412 2014-02-23 Yao Qi <yao@codesourcery.com>
11413
11414 * exec.c (section_table_read_available_memory): New function.
11415 * exec.h (section_table_read_available_memory): Declare.
11416 * ctf.c (ctf_xfer_partial): Call
11417 section_table_read_available_memory.
11418 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11419
11420 2014-02-23 Yao Qi <yao@codesourcery.com>
11421
11422 * ctf.c (ctf_xfer_partial): Move code to ...
11423 * exec.c (exec_read_partial_read_only): ... it. New function.
11424 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11425 * tracefile.c: Include "exec.h".
11426 * exec.h (exec_read_partial_read_only): Declare.
11427
11428 2014-02-23 Yao Qi <yao@codesourcery.com>
11429
11430 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11431 (tfile_has_memory): Remove.
11432 (init_tfile_ops): Don't set fields to_has_all_memory and
11433 to_has_memory of tfile_ops.
11434 * tracefile.c (tracefile_has_all_memory): New function.
11435 (tracefile_has_memory): New function.
11436 (init_tracefile_ops): Initialize fields to_has_all_memory and
11437 to_has_memory of 'ops'.
11438
11439 2014-02-23 Yao Qi <yao@codesourcery.com>
11440
11441 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11442 (ctf_thread_alive, ctf_get_trace_status): Remove.
11443 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11444 init_tracefile_ops.
11445 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11446 (tfile_has_stack, tfile_has_registers): Remove.
11447 (tfile_thread_alive): Remove.
11448 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11449 init_tracefile_ops.
11450 * tracefile.c (tracefile_has_stack): New function.
11451 (tracefile_has_registers): New function.
11452 (tracefile_thread_alive): New function.
11453 (tracefile_get_trace_status): New function.
11454 (init_tracefile_ops): New function.
11455 * tracefile.h (init_tracefile_ops): Declare.
11456
11457 2014-02-23 Yao Qi <yao@codesourcery.com>
11458
11459 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11460 (O_LARGEFILE): Likewise.
11461 (tfile_ops): Likewise.
11462 (TRACE_HEADER_SIZE): Likewise.
11463 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11464 (cur_data_size): Likewise.
11465 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11466 (tfile_close, tfile_files_info): Likewise.
11467 (tfile_get_trace_status): Likewise.
11468 (tfile_get_tracepoint_status): Likewise.
11469 (tfile_get_traceframe_address): Likewise.
11470 (tfile_trace_find, match_blocktype): Likewise.
11471 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11472 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11473 (tfile_get_trace_state_variable_value): Likewise.
11474 (tfile_has_all_memory, tfile_has_memory): Likewise.
11475 (tfile_has_stack, tfile_has_registers): Likewise.
11476 (tfile_thread_alive, build_traceframe_info): Likewise.
11477 (tfile_traceframe_info, init_tfile_ops): Likewise.
11478 (_initialize_tracepoint): Don't call init_tfile_ops
11479 and add_target_with_completer.
11480 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11481 exec.h, completer.h and filenames.h.
11482 (_initialize_tracefile_tfile): New function.
11483
11484 2014-02-23 Yao Qi <yao@codesourcery.com>
11485
11486 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11487 tracefile-tfile.o.
11488 (HFILES_NO_SRCDIR): Add tracefile.h.
11489 * ctf.c: Include "tracefile.h".
11490 * tracefile.h: New file.
11491 * tracefile.c: New file
11492 * tracefile-tfile.c: New file.
11493 * tracepoint.c: Include "tracefile.h".
11494 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11495 (stop_reason_names): Add const.
11496 (trace_file_writer_xfree): Move it to tracefile.c.
11497 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11498 (trace_save_ctf): Likewise.
11499 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11500 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11501 (tfile_write_header, tfile_write_regblock_type): Likewise.
11502 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11503 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11504 (tfile_write_raw_data, tfile_end): Likewise.
11505 (tfile_trace_file_writer_new): Likewise.
11506 (free_uploaded_tp): Make it extern.
11507 (free_uploaded_tsv): Make it extern.
11508 (_initialize_tracepoint): Move code to register command 'tsave'
11509 to tracefile.c.
11510 * tracepoint.h (stop_reason_names): Declare.
11511 (struct trace_frame_write_ops): Move it to tracefile.h.
11512 (struct trace_file_write_ops): Likewise.
11513 (struct trace_file_writer): Likewise.
11514 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11515
11516 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11517
11518 PR gdb/16594
11519 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11520 process name.
11521 (get_cores_used_by_process): New parameter num_cores, use it.
11522 (linux_xfer_osdata_processes): Pass num_cores to it.
11523 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11524 process name.
11525
11526 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11527
11528 * target.c (memory_xfer_partial): Fix length arg in call to
11529 breakpoint_xfer_memory.
11530
11531 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11532
11533 PR tdep/16397
11534 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11535 number comes after the + or - signs. Adjust length of register
11536 name to be extracted.
11537
11538 2014-02-20 Tom Tromey <tromey@redhat.com>
11539
11540 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11541 (ada_varobj_ops): Mark "extern".
11542
11543 2014-02-20 Tom Tromey <tromey@redhat.com>
11544
11545 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11546
11547 2014-02-20 Doug Evans <xdje42@gmail.com>
11548
11549 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11550 All callers updated.
11551 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11552 All callers updated.
11553 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11554 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11555
11556 2014-02-20 lin zuojian <manjian2006@gmail.com>
11557 Joel Brobecker <brobecker@adacore.com>
11558 Doug Evans <xdje42@gmail.com>
11559
11560 PR symtab/16581
11561 * dwarf2read.c (struct die_info): New member in_process.
11562 (reset_die_in_process): New function.
11563 (process_die): Set it at the start, reset when returning.
11564 (inherit_abstract_dies): Only call process_die if origin_child_die
11565 not already being processed.
11566
11567 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11568
11569 * windows-nat.c (handle_unload_dll): Add function documentation.
11570 (do_initial_windows_stuff): Add comment explaining why we wait
11571 until after inferior initialization has finished before
11572 processing all DLLs.
11573
11574 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11575
11576 * windows-nat.c (get_module_name): Delete.
11577 (windows_get_exec_module_filename): New function, mostly
11578 inspired from get_module_name.
11579 (windows_pid_to_exec_file): Replace call to get_module_name
11580 by call to windows_get_exec_module_filename.
11581
11582 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11583
11584 * windows-nat.c (handle_load_dll): Rewrite this function's
11585 introductory comment. Remove code using get_module_name
11586 to get the DLL's name.
11587
11588 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11589
11590 * windows-nat.c (get_windows_debug_event): Ignore
11591 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11592 if windows_initialization_done == 0.
11593 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11594 Adjust implementation to always load all DLLs.
11595 (do_initial_windows_stuff): Replace call to
11596 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11597
11598 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11599
11600 * windows-nat.c (_initialize_windows_nat): Deprecate the
11601 "dll-symbols" command. Turn the "add-shared-symbol-files"
11602 and "assf" aliases into commands, and deprecate them as well.
11603 * NEWS: Add entry explaining that "dll-symbols" and its two
11604 aliases are now deprecated.
11605
11606 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11607
11608 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11609 new-line in debug string. Remove trailing spaces.
11610
11611 2014-02-19 Stan Shebs <stan@codesourcery.com>
11612
11613 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11614
11615 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11616
11617 * NEWS: Add entry for the new feature
11618 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11619 and class values.
11620
11621 2014-02-19 Stan Shebs <stan@codesourcery.com>
11622
11623 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11624
11625 2014-02-19 Pedro Alves <palves@redhat.com>
11626
11627 * common/ptid.h (struct ptid): Mention that process_stratum
11628 targets should prefer ptid.lwp.
11629
11630 2014-02-19 Pedro Alves <palves@redhat.com>
11631
11632 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11633 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11634 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11635 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11636 store remote thread ids rather than ptid.tid.
11637 (_initialize_remote): Adjust.
11638
11639 2014-02-19 Tom Tromey <tromey@redhat.com>
11640
11641 * target.c (target_get_unwinder): Rewrite.
11642 (target_get_tailcall_unwinder): Rewrite.
11643 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11644 (record_btrace_to_get_tailcall_unwinder): New function.
11645 (init_record_btrace_ops): Update.
11646 * target.h (struct target_ops) <to_get_unwinder,
11647 to_get_tailcall_unwinder>: Now function pointers. Use
11648 TARGET_DEFAULT_RETURN.
11649
11650 2014-02-19 Tom Tromey <tromey@redhat.com>
11651
11652 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11653 argument.
11654 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11655
11656 2014-02-19 Tom Tromey <tromey@redhat.com>
11657
11658 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11659 directly.
11660 * target-delegates.c: Rebuild.
11661 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11662 TARGET_DEFAULT_FUNC.
11663 * target.c (default_target_decr_pc_after_break): Rename from
11664 forward_target_decr_pc_after_break. Simplify.
11665 (target_decr_pc_after_break): Rely on delegation.
11666
11667 2014-02-19 Tom Tromey <tromey@redhat.com>
11668
11669 * target.c (update_current_target): Do not INHERIT to_doc or
11670 to_magic. Do not de_fault to_open or to_close.
11671
11672 2014-02-19 Tom Tromey <tromey@redhat.com>
11673
11674 * gcore.h (objfile_find_memory_regions): Declare.
11675 * gcore.c (objfile_find_memory_regions): No longer static. Add
11676 "self" argument.
11677 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11678 * exec.c: Include gcore.h.
11679 (exec_set_find_memory_regions): Remove.
11680 (exec_find_memory_regions): Remove.
11681 (exec_do_find_memory_regions): Remove.
11682 (init_exec_ops): Update.
11683 * defs.h (exec_set_find_memory_regions): Remove.
11684
11685 2014-02-19 Tom Tromey <tromey@redhat.com>
11686
11687 * target-delegates.c: Rebuild.
11688 * target.h (struct target_ops) <to_extra_thread_info,
11689 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11690 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11691 not 0, in TARGET_DEFAULT_RETURN.
11692
11693 2014-02-19 Tom Tromey <tromey@redhat.com>
11694
11695 * target.c (complete_target_initialization): Remove casts. Use
11696 return_zero_has_execution.
11697 (return_zero): Add "ignore" argument.
11698 (return_zero_has_execution): New function.
11699 (init_dummy_target): Remove casts. Use
11700 return_zero_has_execution.
11701
11702 2014-02-19 Tom Tromey <tromey@redhat.com>
11703
11704 * target.c (update_current_target): Update comments. Do not
11705 INHERIT to_stratum.
11706
11707 2014-02-19 Tom Tromey <tromey@redhat.com>
11708
11709 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11710 needed.
11711 * corelow.c (core_read_description): Delegate when needed.
11712 * remote.c (remote_read_description): Delegate when needed.
11713 * target-delegates.c: Rebuild.
11714 * target.c (target_read_description): Rewrite.
11715 * target.h (struct target_ops) <to_read_description>: Update
11716 comment. Use TARGET_DEFAULT_RETURN.
11717
11718 2014-02-19 Tom Tromey <tromey@redhat.com>
11719
11720 * target-delegates.c: Rebuild.
11721 * target.c (update_current_target): Don't inherit or default
11722 to_can_run.
11723 (find_default_run_target): Check against delegate_can_run.
11724 * target.h (struct target_ops) <to_can_run>: Use
11725 TARGET_DEFAULT_RETURN.
11726
11727 2014-02-19 Tom Tromey <tromey@redhat.com>
11728
11729 * target-delegates.c: Rebuild.
11730 * target.c (target_disconnect): Unconditionally delegate.
11731 * target.h (struct target_ops) <to_disconnect>: Use
11732 TARGET_DEFAULT_NORETURN.
11733
11734 2014-02-19 Tom Tromey <tromey@redhat.com>
11735
11736 * record.c (record_stop): Unconditionally delegate.
11737 * target-delegates.c: Rebuild.
11738 * target.c (target_stop_recording): Unconditionally delegate.
11739 * target.h (struct target_ops) <to_stop_recording>: Use
11740 TARGET_DEFAULT_IGNORE.
11741
11742 2014-02-19 Tom Tromey <tromey@redhat.com>
11743
11744 * target-delegates.c: Rebuild.
11745 * target.c (target_enable_btrace): Unconditionally delegate.
11746 * target.h (struct target_ops) <to_enable_btrace>: Use
11747 TARGET_DEFAULT_NORETURN.
11748
11749 2014-02-19 Tom Tromey <tromey@redhat.com>
11750
11751 * target-delegates.c: Rebuild.
11752 * target.c (target_read_btrace): Unconditionally delegate.
11753 * target.h (struct target_ops) <to_read_btrace>: Use
11754 TARGET_DEFAULT_NORETURN.
11755
11756 2014-02-19 Tom Tromey <tromey@redhat.com>
11757
11758 * target-delegates.c: Rebuild.
11759 * target.c (target_teardown_btrace): Unconditionally delegate.
11760 * target.h (struct target_ops) <to_teardown_btrace>: Use
11761 TARGET_DEFAULT_NORETURN.
11762
11763 2014-02-19 Tom Tromey <tromey@redhat.com>
11764
11765 * target-delegates.c: Rebuild.
11766 * target.c (target_disable_btrace): Unconditionally delegate.
11767 * target.h (struct target_ops) <to_disable_btrace>: Use
11768 TARGET_DEFAULT_NORETURN.
11769
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * target-delegates.c: Rebuild.
11773 * target.c (default_search_memory): New function.
11774 (simple_search_memory): Update comment.
11775 (target_search_memory): Unconditionally delegate.
11776 * target.h (struct target_ops) <to_search_memory>: Use
11777 TARGET_DEFAULT_FUNC.
11778
11779 2014-02-19 Tom Tromey <tromey@redhat.com>
11780
11781 * auxv.c (default_auxv_parse): No longer static.
11782 (target_auxv_parse): Unconditionally delegate.
11783 * auxv.h (default_auxv_parse): Declare.
11784 * target-delegates.c: Rebuild.
11785 * target.c: Include auxv.h.
11786 * target.h (struct target_ops) <to_auxv_parse>: Use
11787 TARGET_DEFAULT_FUNC.
11788
11789 2014-02-19 Tom Tromey <tromey@redhat.com>
11790
11791 * target-delegates.c: Rebuild.
11792 * target.c (target_memory_map): Unconditionally delegate.
11793 * target.h (struct target_ops) <to_memory_map>: Use
11794 TARGET_DEFAULT_RETURN.
11795
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11797
11798 * target-delegates.c: Rebuild.
11799 * target.c (target_thread_alive): Unconditionally delegate.
11800 * target.h (struct target_ops) <to_thread_alive>: Use
11801 TARGET_DEFAULT_RETURN.
11802
11803 2014-02-19 Tom Tromey <tromey@redhat.com>
11804
11805 * target-delegates.c: Rebuild.
11806 * target.c (target_save_record): Unconditionally delegate.
11807 * target.h (struct target_ops) <to_save_record>: Use
11808 TARGET_DEFAULT_NORETURN.
11809
11810 2014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * target-delegates.c: Rebuild.
11813 * target.c (target_delete_record): Unconditionally delegate.
11814 * target.h (struct target_ops) <to_delete_record>: Use
11815 TARGET_DEFAULT_NORETURN.
11816
11817 2014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * target-delegates.c: Rebuild.
11820 * target.c (target_record_is_replaying): Unconditionally
11821 delegate.
11822 * target.h (struct target_ops) <to_record_is_replaying>: Use
11823 TARGET_DEFAULT_RETURN.
11824
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11826
11827 * target-delegates.c: Rebuild.
11828 * target.c (target_goto_record_begin): Unconditionally delegate.
11829 * target.h (struct target_ops) <to_goto_record_begin>: Use
11830 TARGET_DEFAULT_NORETURN.
11831
11832 2014-02-19 Tom Tromey <tromey@redhat.com>
11833
11834 * target-delegates.c: Rebuild.
11835 * target.c (target_goto_record_end): Unconditionally delegate.
11836 * target.h (struct target_ops) <to_goto_record_end>: Use
11837 TARGET_DEFAULT_NORETURN.
11838
11839 2014-02-19 Tom Tromey <tromey@redhat.com>
11840
11841 * target-delegates.c: Rebuild.
11842 * target.c (target_goto_record): Unconditionally delegate.
11843 * target.h (struct target_ops) <to_goto_record>: Use
11844 TARGET_DEFAULT_NORETURN.
11845
11846 2014-02-19 Tom Tromey <tromey@redhat.com>
11847
11848 * target-delegates.c: Rebuild.
11849 * target.c (target_insn_history): Unconditionally delegate.
11850 * target.h (struct target_ops) <to_insn_history>: Use
11851 TARGET_DEFAULT_NORETURN.
11852
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11854
11855 * target-delegates.c: Rebuild.
11856 * target.c (target_insn_history_from): Unconditionally delegate.
11857 * target.h (struct target_ops) <to_insn_history_from>: Use
11858 TARGET_DEFAULT_NORETURN.
11859
11860 2014-02-19 Tom Tromey <tromey@redhat.com>
11861
11862 * target-delegates.c: Rebuild.
11863 * target.c (target_insn_history_range): Unconditionally delegate.
11864 * target.h (struct target_ops) <to_insn_history_range>: Use
11865 TARGET_DEFAULT_NORETURN.
11866
11867 2014-02-19 Tom Tromey <tromey@redhat.com>
11868
11869 * target-delegates.c: Rebuild.
11870 * target.c (target_call_history): Unconditionally delegate.
11871 * target.h (struct target_ops) <to_call_history>: Use
11872 TARGET_DEFAULT_NORETURN.
11873
11874 2014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * target-delegates.c: Rebuild.
11877 * target.c (target_call_history_from): Unconditionally delegate.
11878 * target.h (struct target_ops) <to_call_history_from>: Use
11879 TARGET_DEFAULT_NORETURN.
11880
11881 2014-02-19 Tom Tromey <tromey@redhat.com>
11882
11883 * target-delegates.c: Rebuild.
11884 * target.c (target_call_history_range): Unconditionally delegate.
11885 * target.h (struct target_ops) <to_call_history_range>: Use
11886 TARGET_DEFAULT_NORETURN.
11887
11888 2014-02-19 Tom Tromey <tromey@redhat.com>
11889
11890 * target-delegates.c: Rebuild.
11891 * target.c (target_verify_memory): Unconditionally delegate.
11892 * target.h (struct target_ops) <to_verify_memory>: Use
11893 TARGET_DEFAULT_NORETURN.
11894
11895 2014-02-19 Tom Tromey <tromey@redhat.com>
11896
11897 * target-delegates.c: Rebuild.
11898 * target.c (target_core_of_thread): Unconditionally delegate.
11899 * target.h (struct target_ops) <to_core_of_thread>: Use
11900 TARGET_DEFAULT_RETURN.
11901
11902 2014-02-19 Tom Tromey <tromey@redhat.com>
11903
11904 * target-delegates.c: Rebuild.
11905 * target.c (target_flash_done): Unconditionally delegate.
11906 * target.h (struct target_ops) <to_flash_done>: Use
11907 TARGET_DEFAULT_NORETURN.
11908
11909 2014-02-19 Tom Tromey <tromey@redhat.com>
11910
11911 * target-delegates.c: Rebuild.
11912 * target.c (target_flash_erase): Unconditionally delegate.
11913 * target.h (struct target_ops) <to_flash_erase>: Use
11914 TARGET_DEFAULT_NORETURN.
11915
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11917
11918 * target-delegates.c: Rebuild.
11919 * target.c (target_get_section_table): Unconditionally delegate.
11920 * target.h (struct target_ops) <to_get_section_table>: Use
11921 TARGET_DEFAULT_RETURN.
11922
11923 2014-02-19 Tom Tromey <tromey@redhat.com>
11924
11925 * target-delegates.c: Rebuild.
11926 * target.c (target_pid_to_str): Unconditionally delegate.
11927 (init_dummy_target): Don't initialize to_pid_to_str.
11928 (default_pid_to_str): Rename from dummy_pid_to_str.
11929 * target.h (struct target_ops) <to_pid_to_str>: Use
11930 TARGET_DEFAULT_FUNC.
11931
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11933
11934 * target-delegates.c: Rebuild.
11935 * target.c (target_find_new_threads): Unconditionally delegate.
11936 * target.h (struct target_ops) <to_find_new_threads>: Use
11937 TARGET_DEFAULT_RETURN.
11938
11939 2014-02-19 Tom Tromey <tromey@redhat.com>
11940
11941 * target-delegates.c: Rebuild.
11942 * target.c (target_program_signals): Unconditionally delegate.
11943 * target.h (struct target_ops) <to_program_signals>: Use
11944 TARGET_DEFAULT_IGNORE.
11945
11946 2014-02-19 Tom Tromey <tromey@redhat.com>
11947
11948 * target-delegates.c: Rebuild.
11949 * target.c (target_pass_signals): Unconditionally delegate.
11950 * target.h (struct target_ops) <to_pass_signals>: Use
11951 TARGET_DEFAULT_IGNORE.
11952
11953 2014-02-19 Tom Tromey <tromey@redhat.com>
11954
11955 * target-delegates.c: Rebuild.
11956 * target.c (default_mourn_inferior): New function.
11957 (target_mourn_inferior): Unconditionally delegate.
11958 * target.h (struct target_ops) <to_mourn_inferior>: Use
11959 TARGET_DEFAULT_FUNC.
11960
11961 2014-02-19 Tom Tromey <tromey@redhat.com>
11962
11963 * target-delegates.c: Rebuild.
11964 * target.c (default_follow_fork): New function.
11965 (target_follow_fork): Unconditionally delegate.
11966 * target.h (struct target_ops) <to_follow_fork>: Use
11967 TARGET_DEFAULT_FUNC.
11968
11969 2014-02-19 Tom Tromey <tromey@redhat.com>
11970
11971 * target-delegates.c: Rebuild.
11972 * target.c (target_kill): Unconditionally delegate.
11973 * target.h (struct target_ops) <to_kill>: Use
11974 TARGET_DEFAULT_NORETURN.
11975
11976 2014-02-19 Tom Tromey <tromey@redhat.com>
11977
11978 * target-delegates.c: Rebuild.
11979 * target.c (target_masked_watch_num_registers): Unconditionally
11980 delegate.
11981 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11982 Use TARGET_DEFAULT_RETURN.
11983
11984 2014-02-19 Tom Tromey <tromey@redhat.com>
11985
11986 * target-delegates.c: Rebuild.
11987 * target.c (target_remove_mask_watchpoint): Unconditionally
11988 delegate.
11989 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11990 TARGET_DEFAULT_RETURN.
11991
11992 2014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target-delegates.c: Rebuild.
11995 * target.c (target_insert_mask_watchpoint): Unconditionally
11996 delegate.
11997 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11998 TARGET_DEFAULT_RETURN.
11999
12000 2014-02-19 Tom Tromey <tromey@redhat.com>
12001
12002 * target-delegates.c: Rebuild.
12003 * target.c (target_ranged_break_num_registers): Unconditionally
12004 delegate.
12005 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12006 Use TARGET_DEFAULT_RETURN.
12007
12008 2014-02-19 Tom Tromey <tromey@redhat.com>
12009
12010 * target-delegates.c: Rebuild.
12011 * target.c (target_fetch_registers): Unconditionally delegate.
12012 * target.h (struct target_ops) <to_fetch_registers>: Use
12013 TARGET_DEFAULT_NORETURN.
12014
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * target-delegates.c: Rebuild.
12018 * target.c (update_current_target): Don't inherit or default
12019 to_stop.
12020 * target.h (struct target_ops) <to_stop>: Use
12021 TARGET_DEFAULT_IGNORE.
12022
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12024
12025 * target-delegates.c: Rebuild.
12026 * target.c (update_current_target): Don't inherit or default
12027 to_can_run_breakpoint_commands.
12028 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12029 Use TARGET_DEFAULT_RETURN.
12030
12031 2014-02-19 Tom Tromey <tromey@redhat.com>
12032
12033 * target-delegates.c: Rebuild.
12034 * target.c (update_current_target): Don't inherit or default
12035 to_supports_evaluation_of_breakpoint_conditions.
12036 * target.h (struct target_ops)
12037 <to_supports_evaluation_of_breakpoint_conditions>: Use
12038 TARGET_DEFAULT_RETURN.
12039
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12041
12042 * target-delegates.c: Rebuild.
12043 * target.c (update_current_target): Don't inherit or default
12044 to_augmented_libraries_svr4_read.
12045 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12046 Use TARGET_DEFAULT_RETURN.
12047
12048 2014-02-19 Tom Tromey <tromey@redhat.com>
12049
12050 * target-delegates.c: Rebuild.
12051 * target.c (update_current_target): Don't inherit or default
12052 to_can_use_agent.
12053 * target.h (struct target_ops) <to_can_use_agent>: Use
12054 TARGET_DEFAULT_RETURN.
12055
12056 2014-02-19 Tom Tromey <tromey@redhat.com>
12057
12058 * target-delegates.c: Rebuild.
12059 * target.c (update_current_target): Don't inherit or default
12060 to_use_agent.
12061 * target.h (struct target_ops) <to_use_agent>: Use
12062 TARGET_DEFAULT_NORETURN.
12063
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12065
12066 * target-delegates.c: Rebuild.
12067 * target.c (update_current_target): Don't inherit or default
12068 to_traceframe_info.
12069 (return_null): Remove.
12070 * target.h (struct target_ops) <to_traceframe_info>: Use
12071 TARGET_DEFAULT_RETURN.
12072
12073 2014-02-19 Tom Tromey <tromey@redhat.com>
12074
12075 * target-delegates.c: Rebuild.
12076 * target.c (update_current_target): Don't inherit or default
12077 to_static_tracepoint_markers_by_strid.
12078 * target.h (struct target_ops)
12079 <to_static_tracepoint_markers_by_strid>: Use
12080 TARGET_DEFAULT_NORETURN.
12081
12082 2014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target-delegates.c: Rebuild.
12085 * target.c (update_current_target): Don't inherit or default
12086 to_static_tracepoint_marker_at.
12087 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12088 Use TARGET_DEFAULT_RETURN.
12089
12090 2014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * target-delegates.c: Rebuild.
12093 * target.c (update_current_target): Don't inherit or default
12094 to_set_permissions.
12095 * target.h (struct target_ops) <to_set_permissions>: Use
12096 TARGET_DEFAULT_IGNORE.
12097
12098 2014-02-19 Tom Tromey <tromey@redhat.com>
12099
12100 * target-delegates.c: Rebuild.
12101 * target.c (update_current_target): Don't inherit or default
12102 to_get_tib_address.
12103 * target.h (struct target_ops) <to_get_tib_address>: Use
12104 TARGET_DEFAULT_NORETURN.
12105
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target-delegates.c: Rebuild.
12109 * target.c (update_current_target): Don't inherit or default
12110 to_set_trace_notes.
12111 * target.h (struct target_ops) <to_set_trace_notes>: Use
12112 TARGET_DEFAULT_RETURN.
12113
12114 2014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * target-delegates.c: Rebuild.
12117 * target.c (update_current_target): Don't initialize
12118 to_set_trace_buffer_size.
12119 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12120 TARGET_DEFAULT_IGNORE.
12121
12122 2014-02-19 Tom Tromey <tromey@redhat.com>
12123
12124 * target-delegates.c: Rebuild.
12125 * target.c (update_current_target): Don't inherit or default
12126 to_set_circular_trace_buffer.
12127 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12128 TARGET_DEFAULT_IGNORE.
12129
12130 2014-02-19 Tom Tromey <tromey@redhat.com>
12131
12132 * target-delegates.c: Rebuild.
12133 * target.c (update_current_target): Don't inherit or default
12134 to_set_disconnected_tracing.
12135 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12136 TARGET_DEFAULT_IGNORE.
12137
12138 2014-02-19 Tom Tromey <tromey@redhat.com>
12139
12140 * target-delegates.c: Rebuild.
12141 * target.c (update_current_target): Don't inherit or default
12142 to_get_min_fast_tracepoint_insn_len.
12143 (return_minus_one): Remove.
12144 * target.h (struct target_ops)
12145 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12146
12147 2014-02-19 Tom Tromey <tromey@redhat.com>
12148
12149 * target-delegates.c: Rebuild.
12150 * target.c (update_current_target): Don't inherit or default
12151 to_get_raw_trace_data.
12152 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12153 TARGET_DEFAULT_NORETURN.
12154
12155 2014-02-19 Tom Tromey <tromey@redhat.com>
12156
12157 * target-delegates.c: Rebuild.
12158 * target.c (update_current_target): Don't inherit or default
12159 to_upload_trace_state_variables.
12160 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12161 Use TARGET_DEFAULT_RETURN.
12162
12163 2014-02-19 Tom Tromey <tromey@redhat.com>
12164
12165 * target-delegates.c: Rebuild.
12166 * target.c (update_current_target): Don't inherit or default
12167 to_upload_tracepoints.
12168 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12169 TARGET_DEFAULT_RETURN.
12170
12171 2014-02-19 Tom Tromey <tromey@redhat.com>
12172
12173 * target-delegates.c: Rebuild.
12174 * target.c (update_current_target): Don't inherit or default
12175 to_save_trace_data.
12176 * target.h (struct target_ops) <to_save_trace_data>: Use
12177 TARGET_DEFAULT_NORETURN.
12178
12179 2014-02-19 Tom Tromey <tromey@redhat.com>
12180
12181 * target-delegates.c: Rebuild.
12182 * target.c (update_current_target): Don't inherit or default
12183 to_get_trace_state_variable_value.
12184 * target.h (struct target_ops)
12185 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12186
12187 2014-02-19 Tom Tromey <tromey@redhat.com>
12188
12189 * target-delegates.c: Rebuild.
12190 * target.c (update_current_target): Don't inherit or default
12191 to_trace_find.
12192 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12193
12194 2014-02-19 Tom Tromey <tromey@redhat.com>
12195
12196 * target-delegates.c: Rebuild.
12197 * target.c (update_current_target): Don't inherit or default
12198 to_trace_stop.
12199 * target.h (struct target_ops) <to_trace_stop>: Use
12200 TARGET_DEFAULT_NORETURN.
12201
12202 2014-02-19 Tom Tromey <tromey@redhat.com>
12203
12204 * target-delegates.c: Rebuild.
12205 * target.c (update_current_target): Don't inherit or default
12206 to_get_tracepoint_status.
12207 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12208 TARGET_DEFAULT_NORETURN.
12209
12210 2014-02-19 Tom Tromey <tromey@redhat.com>
12211
12212 * target-delegates.c: Rebuild.
12213 * target.c (update_current_target): Don't inherit or default
12214 to_get_trace_status.
12215 * target.h (struct target_ops) <to_get_trace_status>: Use
12216 TARGET_DEFAULT_RETURN.
12217
12218 2014-02-19 Tom Tromey <tromey@redhat.com>
12219
12220 * target-delegates.c: Rebuild.
12221 * target.c (update_current_target): Don't inherit or default
12222 to_trace_start.
12223 * target.h (struct target_ops) <to_trace_start>: Use
12224 TARGET_DEFAULT_NORETURN.
12225
12226 2014-02-19 Tom Tromey <tromey@redhat.com>
12227
12228 * target-delegates.c: Rebuild.
12229 * target.c (update_current_target): Don't inherit or default
12230 to_trace_set_readonly_regions.
12231 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12232 Use TARGET_DEFAULT_NORETURN.
12233
12234 2014-02-19 Tom Tromey <tromey@redhat.com>
12235
12236 * target-delegates.c: Rebuild.
12237 * target.c (update_current_target): Don't inherit or default
12238 to_disable_tracepoint.
12239 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12240 TARGET_DEFAULT_NORETURN.
12241
12242 2014-02-19 Tom Tromey <tromey@redhat.com>
12243
12244 * target-delegates.c: Rebuild.
12245 * target.c (update_current_target): Don't inherit or default
12246 to_enable_tracepoint.
12247 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12248 TARGET_DEFAULT_NORETURN.
12249
12250 2014-02-19 Tom Tromey <tromey@redhat.com>
12251
12252 * target-delegates.c: Rebuild.
12253 * target.c (update_current_target): Don't inherit or default
12254 to_download_trace_state_variable.
12255 * target.h (struct target_ops) <to_download_trace_state_variable>:
12256 Use TARGET_DEFAULT_NORETURN.
12257
12258 2014-02-19 Tom Tromey <tromey@redhat.com>
12259
12260 * target-delegates.c: Rebuild.
12261 * target.c (update_current_target): Don't inherit or default
12262 to_can_download_tracepoint.
12263 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12264 TARGET_DEFAULT_RETURN.
12265
12266 2014-02-19 Tom Tromey <tromey@redhat.com>
12267
12268 * target-delegates.c: Rebuild.
12269 * target.c (update_current_target): Don't inherit or default
12270 to_download_tracepoint.
12271 * target.h (struct target_ops) <to_download_tracepoint>: Use
12272 TARGET_DEFAULT_NORETURN.
12273
12274 2014-02-19 Tom Tromey <tromey@redhat.com>
12275
12276 * target-delegates.c: Rebuild.
12277 * target.c (update_current_target): Don't inherit or default
12278 to_trace_init.
12279 * target.h (struct target_ops) <to_trace_init>: Use
12280 TARGET_DEFAULT_RETURN.
12281
12282 2014-02-19 Tom Tromey <tromey@redhat.com>
12283
12284 * target-delegates.c: Rebuild.
12285 * target.c (update_current_target): Don't inherit or default
12286 to_supports_string_tracing.
12287 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12288 TARGET_DEFAULT_RETURN.
12289
12290 2014-02-19 Tom Tromey <tromey@redhat.com>
12291
12292 * target-delegates.c: Rebuild.
12293 * target.c (update_current_target): Don't inherit or default
12294 to_supports_enable_disable_tracepoint.
12295 * target.h (struct target_ops)
12296 <to_supports_enable_disable_tracepoint>: Use
12297 TARGET_DEFAULT_RETURN.
12298
12299 2014-02-19 Tom Tromey <tromey@redhat.com>
12300
12301 * target-delegates.c: Rebuild.
12302 * target.c (update_current_target): Don't inherit or default
12303 to_supports_multi_process.
12304 * target.h (struct target_ops) <to_supports_multi_process>: Use
12305 TARGET_DEFAULT_RETURN.
12306
12307 2014-02-19 Tom Tromey <tromey@redhat.com>
12308
12309 * target-delegates.c: Rebuild.
12310 * target.c (update_current_target): Don't inherit or default
12311 to_get_ada_task_ptid.
12312 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12313 TARGET_DEFAULT_FUNC.
12314
12315 2014-02-19 Tom Tromey <tromey@redhat.com>
12316
12317 * target-delegates.c: Rebuild.
12318 * target.c (update_current_target): Don't inherit or default
12319 to_thread_architecture.
12320 * target.h (struct target_ops) <to_thread_architecture>: Use
12321 TARGET_DEFAULT_FUNC.
12322
12323 2014-02-19 Tom Tromey <tromey@redhat.com>
12324
12325 * target-delegates.c: Rebuild.
12326 * target.c (update_current_target): Don't inherit or default
12327 to_execution_direction.
12328 * target.h (struct target_ops) <to_execution_direction>: Use
12329 TARGET_DEFAULT_FUNC.
12330
12331 2014-02-19 Tom Tromey <tromey@redhat.com>
12332
12333 * target-delegates.c: Rebuild.
12334 * target.c (update_current_target): Don't inherit or default
12335 to_can_execute_reverse.
12336 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12337 TARGET_DEFAULT_RETURN.
12338 (target_can_execute_reverse): Unconditionally delegate.
12339
12340 2014-02-19 Tom Tromey <tromey@redhat.com>
12341
12342 * target-delegates.c: Rebuild.
12343 * target.c (update_current_target): Don't inherit or default
12344 to_goto_bookmark.
12345 (dummy_goto_bookmark): Remove.
12346 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12347 * target.h (struct target_ops) <to_goto_bookmark>: Use
12348 TARGET_DEFAULT_NORETURN.
12349
12350 2014-02-19 Tom Tromey <tromey@redhat.com>
12351
12352 * target-delegates.c: Rebuild.
12353 * target.c (update_current_target): Don't inherit or default
12354 to_get_bookmark.
12355 (dummy_get_bookmark): Remove.
12356 (init_dummy_target): Don't inherit or default to_get_bookmark.
12357 * target.h (struct target_ops) <to_get_bookmark>: Use
12358 TARGET_DEFAULT_NORETURN
12359
12360 2014-02-19 Tom Tromey <tromey@redhat.com>
12361
12362 * target-delegates.c: Rebuild.
12363 * target.c (update_current_target): Don't inherit or default
12364 to_make_corefile_notes.
12365 (init_dummy_target): Don't initialize to_make_corefile_notes.
12366 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12367 TARGET_DEFAULT_FUNC.
12368
12369 2014-02-19 Tom Tromey <tromey@redhat.com>
12370
12371 * target-delegates.c: Rebuild.
12372 * target.c (update_current_target): Don't inherit or default
12373 to_find_memory_regions.
12374 (init_dummy_target): Don't initialize to_find_memory_regions.
12375 * target.h (struct target_ops) <to_find_memory_regions>: Use
12376 TARGET_DEFAULT_FUNC.
12377
12378 2014-02-19 Tom Tromey <tromey@redhat.com>
12379
12380 * target-delegates.c: Rebuild.
12381 * target.c (update_current_target): Don't inherit or default
12382 to_log_command.
12383 * target.h (struct target_ops) <to_log_command>: Use
12384 TARGET_DEFAULT_IGNORE.
12385 (target_log_command): Unconditionally delegate.
12386
12387 2014-02-19 Tom Tromey <tromey@redhat.com>
12388
12389 * target-delegates.c: Rebuild.
12390 * target.c (update_current_target): Don't inherit or default
12391 to_pid_to_exec_file.
12392 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12393 TARGET_DEFAULT_RETURN.
12394
12395 2014-02-19 Tom Tromey <tromey@redhat.com>
12396
12397 * target-delegates.c: Rebuild.
12398 * target.c (update_current_target): Don't inherit or default
12399 to_thread_name.
12400 (target_thread_name): Unconditionally delegate.
12401 * target.h (struct target_ops) <to_thread_name>: Use
12402 TARGET_DEFAULT_RETURN.
12403
12404 2014-02-19 Tom Tromey <tromey@redhat.com>
12405
12406 * target-delegates.c: Rebuild.
12407 * target.c (update_current_target): Don't inherit or default
12408 to_extra_thread_info.
12409 * target.h (struct target_ops) <to_extra_thread_info>: Use
12410 TARGET_DEFAULT_RETURN.
12411
12412 2014-02-19 Tom Tromey <tromey@redhat.com>
12413
12414 * target-delegates.c: Rebuild.
12415 * target.c (update_current_target): Don't inherit or default
12416 to_has_exited.
12417 * target.h (struct target_ops) <to_has_exited>: Use
12418 TARGET_DEFAULT_RETURN..
12419
12420 2014-02-19 Tom Tromey <tromey@redhat.com>
12421
12422 * target-delegates.c: Rebuild.
12423 * target.c (update_current_target): Don't inherit or default
12424 to_set_syscall_catchpoint.
12425 (return_one): Remove.
12426 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12427 TARGET_DEFAULT_RETURN.
12428
12429 2014-02-19 Tom Tromey <tromey@redhat.com>
12430
12431 * target-delegates.c: Rebuild.
12432 * target.c (update_current_target): Don't inherit or default
12433 to_insert_exec_catchpoint.
12434 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12435 TARGET_DEFAULT_RETURN.
12436
12437 2014-01-08 Tom Tromey <tromey@redhat.com>
12438
12439 * target-delegates.c: Rebuild.
12440 * target.c (update_current_target): Don't inherit or default
12441 to_insert_exec_catchpoint.
12442 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12443 TARGET_DEFAULT_RETURN.
12444
12445 2014-02-19 Tom Tromey <tromey@redhat.com>
12446
12447 * target-delegates.c: Rebuild.
12448 * target.c (update_current_target): Don't inherit or default
12449 to_remove_vfork_catchpoint.
12450 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12451 TARGET_DEFAULT_RETURN.
12452
12453 2014-02-19 Tom Tromey <tromey@redhat.com>
12454
12455 * target-delegates.c: Rebuild.
12456 * target.c (update_current_target): Don't inherit or default
12457 to_insert_vfork_catchpoint.
12458 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12459 TARGET_DEFAULT_RETURN.
12460
12461 2014-02-19 Tom Tromey <tromey@redhat.com>
12462
12463 * target-delegates.c: Rebuild.
12464 * target.c (update_current_target): Don't inherit or default
12465 to_remove_fork_catchpoint.
12466 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12467 TARGET_DEFAULT_RETURN.
12468
12469 2014-02-19 Tom Tromey <tromey@redhat.com>
12470
12471 * target-delegates.c: Rebuild.
12472 * target.c (update_current_target): Don't inherit or default
12473 to_insert_fork_catchpoint.
12474 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12475 TARGET_DEFAULT_RETURN.
12476
12477 2014-02-19 Tom Tromey <tromey@redhat.com>
12478
12479 * target-delegates.c: Rebuild.
12480 * target.c (update_current_target): Don't inherit or default
12481 to_post_startup_inferior.
12482 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12483 TARGET_DEFAULT_IGNORE.
12484
12485 2014-02-19 Tom Tromey <tromey@redhat.com>
12486
12487 * target-delegates.c: Rebuild.
12488 * target.c (update_current_target): Don't inherit or default
12489 to_load.
12490 * target.h (struct target_ops) <to_load>: Use
12491 TARGET_DEFAULT_NORETURN.
12492
12493 2014-02-19 Tom Tromey <tromey@redhat.com>
12494
12495 * target-delegates.c: Rebuild.
12496 * target.c (update_current_target): Don't inherit or default
12497 to_terminal_info.
12498 * target.h (struct target_ops) <to_terminal_info>: Use
12499 TARGET_DEFAULT_FUNC.
12500
12501 2014-02-19 Tom Tromey <tromey@redhat.com>
12502
12503 * target-delegates.c: Rebuild.
12504 * target.c (update_current_target): Don't inherit or default
12505 to_terminal_save_ours.
12506 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12507 TARGET_DEFAULT_IGNORE.
12508
12509 2014-02-19 Tom Tromey <tromey@redhat.com>
12510
12511 * target-delegates.c: Rebuild.
12512 * target.c (update_current_target): Don't inherit or default
12513 to_terminal_ours.
12514 * target.h (struct target_ops) <to_terminal_ours>: Use
12515 TARGET_DEFAULT_IGNORE.
12516
12517 2014-02-19 Tom Tromey <tromey@redhat.com>
12518
12519 * target-delegates.c: Rebuild.
12520 * target.c (update_current_target): Don't inherit or default
12521 to_terminal_ours_for_output.
12522 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12523 TARGET_DEFAULT_IGNORE.
12524
12525 2014-02-19 Tom Tromey <tromey@redhat.com>
12526
12527 * target-delegates.c: Rebuild.
12528 * target.c (update_current_target): Don't inherit or default
12529 to_terminal_inferior.
12530 * target.h (struct target_ops) <to_terminal_inferior>: Use
12531 TARGET_DEFAULT_IGNORE.
12532
12533 2014-02-19 Tom Tromey <tromey@redhat.com>
12534
12535 * target-delegates.c: Rebuild.
12536 * target.c (update_current_target): Don't inherit or default
12537 to_terminal_init.
12538 * target.h (struct target_ops) <to_terminal_init>: Use
12539 TARGET_DEFAULT_IGNORE.
12540
12541 2014-02-19 Tom Tromey <tromey@redhat.com>
12542
12543 * target-delegates.c: Rebuild.
12544 * target.c (update_current_target): Don't inherit or default
12545 to_can_accel_watchpoint_condition.
12546 * target.h (struct target_ops)
12547 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12548
12549 2014-02-19 Tom Tromey <tromey@redhat.com>
12550
12551 * target-delegates.c: Rebuild.
12552 * target.c (update_current_target): Don't inherit or default
12553 to_region_ok_for_hw_watchpoint.
12554 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12555 Use TARGET_DEFAULT_FUNC.
12556
12557 2014-02-19 Tom Tromey <tromey@redhat.com>
12558
12559 * target-delegates.c: Rebuild.
12560 * target.c (update_current_target): Don't inherit or default
12561 to_watchpoint_addr_within_range.
12562 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12563 Use TARGET_DEFAULT_FUNC.
12564
12565 2014-02-19 Tom Tromey <tromey@redhat.com>
12566
12567 * target-delegates.c: Rebuild.
12568 * target.c (update_current_target): Don't inherit or default
12569 to_remove_watchpoint.
12570 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12571 TARGET_DEFAULT_NORETURN.
12572
12573 2014-02-19 Tom Tromey <tromey@redhat.com>
12574
12575 * target-delegates.c: Rebuild.
12576 * target.c (update_current_target): Don't inherit or default
12577 to_insert_watchpoint.
12578 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12579 TARGET_DEFAULT_RETURN.
12580
12581 2014-02-19 Tom Tromey <tromey@redhat.com>
12582
12583 * target-delegates.c: Rebuild.
12584 * target.c (update_current_target): Don't inherit or default
12585 to_remove_hw_breakpoint.
12586 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12587 TARGET_DEFAULT_RETURN.
12588
12589 2014-02-19 Tom Tromey <tromey@redhat.com>
12590
12591 * target-delegates.c: Rebuild.
12592 * target.c (update_current_target): Don't inherit or default
12593 to_insert_hw_breakpoint.
12594 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12595 TARGET_DEFAULT_RETURN.
12596
12597 2014-02-19 Tom Tromey <tromey@redhat.com>
12598
12599 * target-delegates.c: Rebuild.
12600 * target.c (update_current_target): Don't inherit or default
12601 to_can_use_hw_breakpoint.
12602 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12603 TARGET_DEFAULT_RETURN.
12604
12605 2014-02-19 Tom Tromey <tromey@redhat.com>
12606
12607 * target-delegates.c: Rebuild.
12608 * target.c (update_current_target): Don't inherit or default
12609 to_files_info.
12610 * target.h (struct target_ops) <to_files_info>: Use
12611 TARGET_DEFAULT_IGNORE.
12612
12613 2014-02-19 Tom Tromey <tromey@redhat.com>
12614
12615 * target-delegates.c: Rebuild.
12616 * target.c (update_current_target): Don't inherit or default
12617 to_store.
12618 * target.h (struct target_ops) <to_store>: Use
12619 TARGET_DEFAULT_NORETURN.
12620
12621 2014-02-19 Tom Tromey <tromey@redhat.com>
12622
12623 * target-delegates.c: Rebuild.
12624 * target.c (update_current_target): Don't inherit or default
12625 to_post_attach.
12626 * target.h (struct target_ops) <to_post_attach>: Use
12627 TARGET_DEFAULT_IGNORE.
12628
12629 2014-02-19 Tom Tromey <tromey@redhat.com>
12630
12631 * target-delegates.c: Rebuild.
12632 * target.c (update_current_target): Don't inherit or default
12633 to_rcmd.
12634 (default_rcmd): New function.
12635 (do_monitor_command): Unconditionally delegate.
12636 * target.h (struct target_ops) <to_rmcd>: Use
12637 TARGET_DEFAULT_FUNC.
12638
12639 2014-02-19 Tom Tromey <tromey@redhat.com>
12640
12641 * target-delegates.c: Rebuild.
12642 * target.c (init_dummy_target): Don't initialize to_attach.
12643 (target_attach): Unconditionally delegate.
12644 * target.h (struct target_ops) <to_attach>: Use
12645 TARGET_DEFAULT_FUNC.
12646
12647 2014-02-19 Tom Tromey <tromey@redhat.com>
12648
12649 * target-delegates.c: Rebuild.
12650 * target.c (target_detach): Unconditionally delegate.
12651 (init_dummy_target): Don't initialize to_detach.
12652 * target.h (struct target_ops) <to_detach>: Use
12653 TARGET_DEFAULT_IGNORE.
12654
12655 2014-02-19 Tom Tromey <tromey@redhat.com>
12656
12657 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12658 Add argument.
12659 (target_augmented_libraries_svr4_read): Add argument.
12660 * target.c (update_current_target): Update.
12661 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12662 argument.
12663
12664 2014-02-19 Tom Tromey <tromey@redhat.com>
12665
12666 * target.h (struct target_ops) <to_call_history_range>: Add
12667 argument.
12668 * target.c (target_call_history_range): Add argument.
12669 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12670 argument.
12671 (record_btrace_call_history_from): Update.
12672
12673 2014-02-19 Tom Tromey <tromey@redhat.com>
12674
12675 * target.h (struct target_ops) <to_call_history_from>: Add
12676 argument.
12677 * target.c (target_call_history_from): Add argument.
12678 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12679 argument.
12680
12681 2014-02-19 Tom Tromey <tromey@redhat.com>
12682
12683 * target.h (struct target_ops) <to_call_history>: Add argument.
12684 * target.c (target_call_history): Add argument.
12685 * record-btrace.c (record_btrace_call_history): Add 'self'
12686 argument.
12687
12688 2014-02-19 Tom Tromey <tromey@redhat.com>
12689
12690 * target.h (struct target_ops) <to_insn_history_range>: Add
12691 argument.
12692 * target.c (target_insn_history_range): Add argument.
12693 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12694 argument.
12695 (record_btrace_insn_history_from): Update.
12696
12697 2014-02-19 Tom Tromey <tromey@redhat.com>
12698
12699 * target.h (struct target_ops) <to_insn_history_from>: Add
12700 argument.
12701 * target.c (target_insn_history_from): Add argument.
12702 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12703 argument.
12704
12705 2014-02-19 Tom Tromey <tromey@redhat.com>
12706
12707 * target.h (struct target_ops) <to_insn_history>: Add argument.
12708 * target.c (target_insn_history): Add argument.
12709 * record-btrace.c (record_btrace_insn_history): Add 'self'
12710 argument.
12711
12712 2014-02-19 Tom Tromey <tromey@redhat.com>
12713
12714 * target.h (struct target_ops) <to_goto_record>: Add argument.
12715 * target.c (target_goto_record): Add argument.
12716 * record-full.c (record_full_goto): Add 'self' argument.
12717 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12718
12719 2014-02-19 Tom Tromey <tromey@redhat.com>
12720
12721 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12722 * target.c (target_goto_record_end): Add argument.
12723 * record-full.c (record_full_goto_end): Add 'self' argument.
12724 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12725
12726 2014-02-19 Tom Tromey <tromey@redhat.com>
12727
12728 * target.h (struct target_ops) <to_goto_record_begin>: Add
12729 argument.
12730 * target.c (target_goto_record_begin): Add argument.
12731 * record-full.c (record_full_goto_begin): Add 'self' argument.
12732 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12733 argument.
12734
12735 2014-02-19 Tom Tromey <tromey@redhat.com>
12736
12737 * target.h (struct target_ops) <to_record_is_replaying>: Add
12738 argument.
12739 * target.c (target_record_is_replaying): Add argument.
12740 * record-full.c (record_full_is_replaying): Add 'self' argument.
12741 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12742 argument.
12743 (record_btrace_xfer_partial, record_btrace_store_registers)
12744 (record_btrace_prepare_to_store, record_btrace_resume)
12745 (record_btrace_wait, record_btrace_decr_pc_after_break)
12746 (record_btrace_find_new_threads, record_btrace_thread_alive):
12747 Update.
12748
12749 2014-02-19 Tom Tromey <tromey@redhat.com>
12750
12751 * target.h (struct target_ops) <to_delete_record>: Add argument.
12752 * target.c (target_delete_record): Add argument.
12753 * record-full.c (record_full_delete): Add 'self' argument.
12754
12755 2014-02-19 Tom Tromey <tromey@redhat.com>
12756
12757 * target.h (struct target_ops) <to_save_record>: Add argument.
12758 * target.c (target_save_record): Add argument.
12759 * record-full.c (record_full_save): Add 'self' argument.
12760 (record_full_save): Add 'self' argument.
12761
12762 2014-02-19 Tom Tromey <tromey@redhat.com>
12763
12764 * target.h (struct target_ops) <to_info_record>: Add argument.
12765 * target.c (target_info_record): Add argument.
12766 * record.c (info_record_command): Add argument.
12767 * record-full.c (record_full_info): Add 'self' argument.
12768 * record-btrace.c (record_btrace_info): Add 'self' argument.
12769
12770 2014-02-19 Tom Tromey <tromey@redhat.com>
12771
12772 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12773 * target.c (target_stop_recording): Add argument.
12774 * record.c (record_stop): Add argument.
12775 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12776 argument.
12777
12778 2014-02-19 Tom Tromey <tromey@redhat.com>
12779
12780 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12781 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12782 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12783 argument.
12784 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12785 (_initialize_amd64_linux_nat): Use it.
12786 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12787 (_initialize_i386_linux_nat): Use it.
12788
12789 2014-02-19 Tom Tromey <tromey@redhat.com>
12790
12791 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12792 * target.c (target_teardown_btrace): Add argument.
12793 * remote.c (remote_teardown_btrace): Add 'self' argument.
12794 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12795 argument.
12796 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12797 argument.
12798
12799 2014-02-19 Tom Tromey <tromey@redhat.com>
12800
12801 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12802 * target.c (target_disable_btrace): Add argument.
12803 * remote.c (remote_disable_btrace): Add 'self' argument.
12804 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12805 argument.
12806 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12807 argument.
12808
12809 2014-02-19 Tom Tromey <tromey@redhat.com>
12810
12811 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12812 * target.c (target_enable_btrace): Add argument.
12813 * remote.c (remote_enable_btrace): Add 'self' argument.
12814 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12815 argument.
12816 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12817 argument.
12818
12819 2014-02-19 Tom Tromey <tromey@redhat.com>
12820
12821 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12822 (target_can_use_agent): Add argument.
12823 * target.c (update_current_target): Update.
12824 * remote.c (remote_can_use_agent): Add 'self' argument.
12825 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12826
12827 2014-02-19 Tom Tromey <tromey@redhat.com>
12828
12829 * target.h (struct target_ops) <to_use_agent>: Add argument.
12830 (target_use_agent): Add argument.
12831 * target.c (update_current_target): Update.
12832 * remote.c (remote_use_agent): Add 'self' argument.
12833 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12834
12835 2014-02-19 Tom Tromey <tromey@redhat.com>
12836
12837 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12838 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12839 (target_traceframe_info): Add argument.
12840 * target.c (update_current_target): Update.
12841 * remote.c (remote_traceframe_info): Add 'self' argument.
12842 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12843
12844 2014-02-19 Tom Tromey <tromey@redhat.com>
12845
12846 * target.h (target_static_tracepoint_markers_by_strid): Add
12847 argument.
12848 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12849 'self' argument.
12850 * target.c (update_current_target): Update.
12851 * remote.c (struct target_ops)
12852 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12853 * linux-nat.c (struct target_ops)
12854 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12855
12856 2014-02-19 Tom Tromey <tromey@redhat.com>
12857
12858 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12859 Add argument.
12860 (target_static_tracepoint_marker_at): Add argument.
12861 * target.c (update_current_target): Update.
12862 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12863 argument.
12864
12865 2014-02-19 Tom Tromey <tromey@redhat.com>
12866
12867 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12868 (target_set_permissions): Add argument.
12869 * target.c (update_current_target): Update.
12870 * remote.c (remote_set_permissions): Add 'self' argument.
12871 (remote_start_remote): Update.
12872
12873 2014-02-19 Tom Tromey <tromey@redhat.com>
12874
12875 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12876 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12877 (target_get_tib_address): Add argument.
12878 * target.c (update_current_target): Update.
12879 * remote.c (remote_get_tib_address): Add 'self' argument.
12880
12881 2014-02-19 Tom Tromey <tromey@redhat.com>
12882
12883 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12884 (target_set_trace_notes): Add argument.
12885 * target.c (update_current_target): Update.
12886 * remote.c (remote_set_trace_notes): Add 'self' argument.
12887
12888 2014-02-19 Tom Tromey <tromey@redhat.com>
12889
12890 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12891 argument.
12892 (target_set_trace_buffer_size): Add argument.
12893 * target.c (update_current_target): Update.
12894 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12895
12896 2014-02-19 Tom Tromey <tromey@redhat.com>
12897
12898 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12899 argument.
12900 (target_set_circular_trace_buffer): Add argument.
12901 * target.c (update_current_target): Update.
12902 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12903 argument.
12904
12905 2014-02-19 Tom Tromey <tromey@redhat.com>
12906
12907 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12908 argument.
12909 (target_set_disconnected_tracing): Add argument.
12910 * target.c (update_current_target): Update.
12911 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12912
12913 2014-02-19 Tom Tromey <tromey@redhat.com>
12914
12915 * target.h (struct target_ops)
12916 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12917 (target_get_min_fast_tracepoint_insn_len): Add argument.
12918 * target.c (update_current_target): Update.
12919 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12920 argument.
12921
12922 2014-02-19 Tom Tromey <tromey@redhat.com>
12923
12924 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12925 argument.
12926 (target_get_raw_trace_data): Add argument.
12927 * target.c (update_current_target): Update.
12928 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12929
12930 2014-02-19 Tom Tromey <tromey@redhat.com>
12931
12932 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12933 Add argument.
12934 (target_upload_trace_state_variables): Add argument.
12935 * target.c (update_current_target): Update.
12936 * remote.c (remote_upload_trace_state_variables): Add 'self'
12937 argument.
12938 (remote_start_remote): Update.
12939
12940 2014-02-19 Tom Tromey <tromey@redhat.com>
12941
12942 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12943 argument.
12944 (target_upload_tracepoints): Add argument.
12945 * target.c (update_current_target): Update.
12946 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12947 (remote_start_remote): Update.
12948
12949 2014-02-19 Tom Tromey <tromey@redhat.com>
12950
12951 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12952 (target_save_trace_data): Add argument.
12953 * target.c (update_current_target): Update.
12954 * remote.c (remote_save_trace_data): Add 'self' argument.
12955
12956 2014-02-19 Tom Tromey <tromey@redhat.com>
12957
12958 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12959 argument.
12960 * target.h (struct target_ops)
12961 <to_get_trace_state_variable_value>: Add argument.
12962 (target_get_trace_state_variable_value): Add argument.
12963 * target.c (update_current_target): Update.
12964 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12965 argument.
12966 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12967
12968 2014-02-19 Tom Tromey <tromey@redhat.com>
12969
12970 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12971 * target.h (struct target_ops) <to_trace_find>: Add argument.
12972 (target_trace_find): Add argument.
12973 * target.c (update_current_target): Update.
12974 * remote.c (remote_trace_find): Add 'self' argument.
12975 * ctf.c (ctf_trace_find): Add 'self' argument.
12976
12977 2014-02-19 Tom Tromey <tromey@redhat.com>
12978
12979 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12980 (target_trace_stop): Add argument.
12981 * target.c (update_current_target): Update.
12982 * remote.c (remote_trace_stop): Add 'self' argument.
12983
12984 2014-02-19 Tom Tromey <tromey@redhat.com>
12985
12986 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12987 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12988 argument.
12989 (target_get_tracepoint_status): Add argument.
12990 * target.c (update_current_target): Update.
12991 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12992
12993 2014-02-19 Tom Tromey <tromey@redhat.com>
12994
12995 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12996 * target.h (struct target_ops) <to_get_trace_status>: Add
12997 argument.
12998 (target_get_trace_status): Add argument.
12999 * target.c (update_current_target): Update.
13000 * remote.c (remote_get_trace_status): Add 'self' argument.
13001 (remote_start_remote, remote_can_download_tracepoint): Update.
13002 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13003
13004 2014-02-19 Tom Tromey <tromey@redhat.com>
13005
13006 * target.h (struct target_ops) <to_trace_start>: Add argument.
13007 (target_trace_start): Add argument.
13008 * target.c (update_current_target): Update.
13009 * remote.c (remote_trace_start): Add 'self' argument.
13010
13011 2014-02-19 Tom Tromey <tromey@redhat.com>
13012
13013 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13014 Add argument.
13015 (target_trace_set_readonly_regions): Add argument.
13016 * target.c (update_current_target): Update.
13017 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13018 argument.
13019
13020 2014-02-19 Tom Tromey <tromey@redhat.com>
13021
13022 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13023 argument.
13024 (target_disable_tracepoint): Add argument.
13025 * target.c (update_current_target): Update.
13026 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13027
13028 2014-02-19 Tom Tromey <tromey@redhat.com>
13029
13030 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13031 argument.
13032 (target_enable_tracepoint): Add argument.
13033 * target.c (update_current_target): Update.
13034 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13035
13036 2014-02-19 Tom Tromey <tromey@redhat.com>
13037
13038 * target.h (struct target_ops) <to_download_trace_state_variable>:
13039 Add argument.
13040 (target_download_trace_state_variable): Add argument.
13041 * target.c (update_current_target): Update.
13042 * remote.c (remote_download_trace_state_variable): Add 'self'
13043 argument.
13044
13045 2014-02-19 Tom Tromey <tromey@redhat.com>
13046
13047 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13048 argument.
13049 (target_can_download_tracepoint): Add argument.
13050 * target.c (update_current_target): Update.
13051 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13052
13053 2014-02-19 Tom Tromey <tromey@redhat.com>
13054
13055 * target.h (struct target_ops) <to_download_tracepoint>: Add
13056 argument.
13057 (target_download_tracepoint): Add argument.
13058 * target.c (update_current_target): Update.
13059 * remote.c (remote_download_tracepoint): Add 'self' argument.
13060
13061 2014-02-19 Tom Tromey <tromey@redhat.com>
13062
13063 * target.h (struct target_ops) <to_trace_init>: Add argument.
13064 (target_trace_init): Add argument.
13065 * target.c (update_current_target): Update.
13066 * remote.c (remote_trace_init): Add 'self' argument.
13067
13068 2014-02-19 Tom Tromey <tromey@redhat.com>
13069
13070 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13071 * target.c (target_fileio_readlink): Add argument.
13072 * remote.c (remote_hostio_readlink): Add 'self' argument.
13073 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13074
13075 2014-02-19 Tom Tromey <tromey@redhat.com>
13076
13077 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13078 * target.c (target_fileio_unlink): Add argument.
13079 * remote.c (remote_hostio_unlink): Add 'self' argument.
13080 (remote_file_delete): Update.
13081 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13082
13083 2014-02-19 Tom Tromey <tromey@redhat.com>
13084
13085 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13086 * target.c (target_fileio_close): Add argument.
13087 * remote.c (remote_hostio_close): Add 'self' argument.
13088 (remote_hostio_close_cleanup): Update.
13089 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13090 Update.
13091 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13092
13093 2014-02-19 Tom Tromey <tromey@redhat.com>
13094
13095 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13096 * target.c (target_fileio_pread): Add argument.
13097 * remote.c (remote_hostio_pread): Add 'self' argument.
13098 (remote_bfd_iovec_pread, remote_file_get): Update.
13099 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13100
13101 2014-02-19 Tom Tromey <tromey@redhat.com>
13102
13103 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13104 * target.c (target_fileio_pwrite): Add argument.
13105 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13106 (remote_file_put): Update.
13107 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13108
13109 2014-02-19 Tom Tromey <tromey@redhat.com>
13110
13111 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13112 * target.c (target_fileio_open): Add argument.
13113 * remote.c (remote_hostio_open): Add 'self' argument.
13114 (remote_bfd_iovec_open): Add 'self' argument.
13115 (remote_file_put): Add 'self' argument.
13116 (remote_file_get): Add 'self' argument.
13117 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13118
13119 2014-02-19 Tom Tromey <tromey@redhat.com>
13120
13121 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13122 Add argument.
13123 (target_can_run_breakpoint_commands): Add argument.
13124 * target.c (update_current_target): Update.
13125 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13126 argument.
13127 (remote_insert_breakpoint): Add 'self' argument.
13128 (remote_insert_hw_breakpoint): Add 'self' argument.
13129 (remote_can_run_breakpoint_commands): Add 'self' argument.
13130
13131 2014-02-19 Tom Tromey <tromey@redhat.com>
13132
13133 * target.h (struct target_ops)
13134 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13135 (target_supports_evaluation_of_breakpoint_conditions): Add
13136 argument.
13137 * target.c (update_current_target): Update.
13138 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13139 argument.
13140 (remote_insert_breakpoint): Add 'self' argument.
13141 (remote_insert_hw_breakpoint): Add 'self' argument.
13142 (remote_supports_cond_breakpoints): Add 'self' argument.
13143
13144 2014-02-19 Tom Tromey <tromey@redhat.com>
13145
13146 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13147 argument.
13148 (target_supports_string_tracing): Add argument.
13149 * target.c (update_current_target): Update.
13150 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13151
13152 2014-02-19 Tom Tromey <tromey@redhat.com>
13153
13154 * target.h (struct target_ops)
13155 <to_supports_disable_randomization>: Add argument.
13156 * target.c (find_default_supports_disable_randomization): Add
13157 argument.
13158 (target_supports_disable_randomization): Add argument.
13159 (find_default_supports_disable_randomization): Add 'self'
13160 argument.
13161 * remote.c (extended_remote_supports_disable_randomization): Add
13162 'self' argument.
13163 (remote_supports_disable_randomization): Add 'self' argument.
13164 (extended_remote_create_inferior): Update.
13165 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13166 'self' argument.
13167
13168 2014-02-19 Tom Tromey <tromey@redhat.com>
13169
13170 * target.h (struct target_ops)
13171 <to_supports_enable_disable_tracepoint>: Add argument.
13172 (target_supports_enable_disable_tracepoint): Add argument.
13173 * target.c (update_current_target): Update.
13174 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13175 argument.
13176
13177 2014-02-19 Tom Tromey <tromey@redhat.com>
13178
13179 * target.h (struct target_ops) <to_supports_multi_process>: Add
13180 argument.
13181 (target_supports_multi_process): Add argument.
13182 * target.c (update_current_target): Update.
13183 * remote.c (remote_supports_multi_process): Add 'self' argument.
13184 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13185 argument.
13186 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13187 argument.
13188
13189 2014-02-19 Tom Tromey <tromey@redhat.com>
13190
13191 * target.h (struct target_ops) <to_execution_direction>: Add
13192 argument.
13193 (target_execution_direction): Add argument.
13194 * target.c (default_execution_direction): Add 'self' argument.
13195 * record-full.c (record_full_execution_direction): Add 'self'
13196 argument.
13197
13198 2014-02-19 Tom Tromey <tromey@redhat.com>
13199
13200 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13201 argument.
13202 (target_can_execute_reverse): Add argument.
13203 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13204 * record-full.c (record_full_can_execute_reverse): Add 'self'
13205 argument.
13206 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13207 argument.
13208
13209 2014-02-19 Tom Tromey <tromey@redhat.com>
13210
13211 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13212 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13213 argument.
13214 (target_get_ada_task_ptid): Add argument.
13215 * target.c (update_current_target): Update.
13216 (default_get_ada_task_ptid): Add 'self' argument.
13217 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13218 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13219 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13220 argument.
13221 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13222 argument.
13223 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13224 argument.
13225 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13226 argument.
13227 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13228 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13229 argument.
13230
13231 2014-02-19 Tom Tromey <tromey@redhat.com>
13232
13233 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13234 (target_goto_bookmark): Add argument.
13235 * target.c (dummy_goto_bookmark): Add 'self' argument.
13236 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13237
13238 2014-02-19 Tom Tromey <tromey@redhat.com>
13239
13240 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13241 (target_get_bookmark): Add argument.
13242 * target.c (dummy_get_bookmark): Add 'self' argument.
13243 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13244
13245 2014-02-19 Tom Tromey <tromey@redhat.com>
13246
13247 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13248 argument.
13249 (target_make_corefile_notes): Add argument.
13250 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13251 * procfs.c (procfs_make_note_section): Add 'self' argument.
13252 (procfs_make_note_section): Add 'self' argument.
13253 (procfs_make_note_section): Add 'self' argument.
13254 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13255 argument.
13256 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13257 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13258 * exec.c (exec_make_note_section): Add 'self' argument.
13259 (exec_make_note_section): Add 'self' argument.
13260
13261 2014-02-19 Tom Tromey <tromey@redhat.com>
13262
13263 * target.h (struct target_ops) <to_find_memory_regions>: Add
13264 argument.
13265 (target_find_memory_regions): Add argument.
13266 * target.c (dummy_find_memory_regions): Add 'self' argument.
13267 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13268 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13269 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13270 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13271 * exec. (exec_do_find_memory_regions): New global.
13272 (exec_set_find_memory_regions): Rewrite.
13273 (exec_find_memory_regions): New function.
13274 (init_exec_ops): Use exec_find_memory_regions.
13275
13276 2014-02-19 Tom Tromey <tromey@redhat.com>
13277
13278 * target.h (struct target_ops) <to_supports_non_stop>: Add
13279 argument.
13280 * target.c (find_default_supports_non_stop): Add argument.
13281 (target_supports_non_stop): Add argument.
13282 (find_default_supports_non_stop): Add 'self' argument.
13283 * remote.c (remote_supports_non_stop): Add 'self' argument.
13284 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13285
13286 2014-02-19 Tom Tromey <tromey@redhat.com>
13287
13288 * target.h (struct target_ops) <to_log_command>: Add argument.
13289 (target_log_command): Add argument.
13290 * serial.h (serial_log_command): Add 'self' argument.
13291 * serial.c (serial_log_command): Add 'self' argument.
13292
13293 2014-02-19 Tom Tromey <tromey@redhat.com>
13294
13295 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13296 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13297 argument.
13298 (target_pid_to_exec_file): Add argument.
13299 * target.c (debug_to_pid_to_exec_file): Add argument.
13300 (update_current_target): Update.
13301 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13302 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13303 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13304 (linux_handle_extended_wait): Update.
13305 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13306 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13307 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13308 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13309
13310 2014-02-19 Tom Tromey <tromey@redhat.com>
13311
13312 * target.h (struct target_ops) <to_rcmd>: Add argument.
13313 (target_rcmd): Add argument.
13314 * target.c (debug_to_rcmd): Add argument.
13315 (update_current_target, do_monitor_command): Update.
13316 * remote.c (remote_rcmd): Add 'self' argument.
13317 * monitor.c (monitor_rcmd): Add 'self' argument.
13318
13319 2014-02-19 Tom Tromey <tromey@redhat.com>
13320
13321 * windows-nat.c (windows_stop): Add 'self' argument.
13322 * target.h (struct target_ops) <to_stop>: Add argument.
13323 * target.c (target_stop): Add argument.
13324 (debug_to_stop): Add argument.
13325 (update_current_target): Update.
13326 * remote.c (remote_stop): Add 'self' argument.
13327 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13328 (gdbsim_cntrl_c): Update.
13329 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13330 * procfs.c (procfs_stop): Add 'self' argument.
13331 * nto-procfs.c (procfs_stop): Add 'self' argument.
13332 * monitor.c (monitor_stop): Add 'self' argument.
13333 (monitor_open): Update.
13334 * linux-nat.c (linux_nat_stop): Add argument.
13335 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13336 * gnu-nat.c (gnu_stop): Add 'self' argument.
13337 * darwin-nat.c (darwin_stop): Add 'self' argument.
13338
13339 2014-02-19 Tom Tromey <tromey@redhat.com>
13340
13341 * target.h (struct target_ops) <to_thread_name>: Add argument.
13342 * target.c (target_thread_name): Add argument.
13343 (update_current_target): Update.
13344 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13345
13346 2014-02-19 Tom Tromey <tromey@redhat.com>
13347
13348 * target.h (struct target_ops) <to_extra_thread_info>: Add
13349 argument.
13350 (target_extra_thread_info): Add argument.
13351 * target.c (update_current_target): Update.
13352 * remote.c (remote_threads_extra_info): Add 'self' argument.
13353 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13354 argument.
13355 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13356 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13357 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13358 argument.
13359 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13360 argument.
13361 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13362 argument.
13363 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13364 argument.
13365
13366 2014-02-19 Tom Tromey <tromey@redhat.com>
13367
13368 * target.h (struct target_ops) <to_program_signals>: Add argument.
13369 * target.c (target_program_signals): Add argument.
13370 * remote.c (remote_program_signals): Add 'self' argument.
13371
13372 2014-02-19 Tom Tromey <tromey@redhat.com>
13373
13374 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13375 * target.c (target_pass_signals): Add argument.
13376 * remote.c (remote_pass_signals): Add 'self' argument.
13377 (remote_start_remote): Update.
13378 * procfs.c (procfs_pass_signals): Add 'self' argument.
13379 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13380 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13381 (linux_nat_create_inferior, linux_nat_attach): Update.
13382
13383 2014-02-19 Tom Tromey <tromey@redhat.com>
13384
13385 * windows-nat.c (windows_can_run): Add 'self' argument.
13386 * target.h (struct target_ops) <to_can_run>: Add argument.
13387 (target_can_run): Add argument.
13388 * target.c (debug_to_can_run): Add argument.
13389 (update_current_target): Update.
13390 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13391 * inf-child.c (inf_child_can_run): Add 'self' argument.
13392 * go32-nat.c (go32_can_run): Add 'self' argument.
13393
13394 2014-02-19 Tom Tromey <tromey@redhat.com>
13395
13396 * target.h (struct target_ops) <to_has_exited>: Add argument.
13397 (target_has_exited): Add argument.
13398 * target.c (debug_to_has_exited): Add argument.
13399 (update_current_target): Update.
13400
13401 2014-02-19 Tom Tromey <tromey@redhat.com>
13402
13403 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13404 argument.
13405 (target_set_syscall_catchpoint): Add argument.
13406 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13407 argument.
13408 * target.c (update_current_target): Update.
13409
13410 2014-02-19 Tom Tromey <tromey@redhat.com>
13411
13412 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13413 argument.
13414 (target_remove_exec_catchpoint): Add argument.
13415 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13416 (update_current_target): Update.
13417 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13418 argument.
13419
13420 2014-02-19 Tom Tromey <tromey@redhat.com>
13421
13422 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13423 argument.
13424 (target_insert_exec_catchpoint): Add argument.
13425 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13426 (update_current_target): Update.
13427 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13428 argument.
13429
13430 2014-02-19 Tom Tromey <tromey@redhat.com>
13431
13432 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13433 argument.
13434 (target_remove_vfork_catchpoint): Add argument.
13435 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13436 (update_current_target): Update.
13437 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13438 argument.
13439
13440 2014-02-19 Tom Tromey <tromey@redhat.com>
13441
13442 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13443 argument.
13444 (target_insert_vfork_catchpoint): Add argument.
13445 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13446 (update_current_target): Update.
13447 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13448 argument.
13449
13450 2014-02-19 Tom Tromey <tromey@redhat.com>
13451
13452 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13453 argument.
13454 (target_remove_fork_catchpoint): Add argument.
13455 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13456 (update_current_target): Update.
13457 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13458 argument.
13459
13460 2014-02-19 Tom Tromey <tromey@redhat.com>
13461
13462 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13463 argument.
13464 (target_insert_fork_catchpoint): Add argument.
13465 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13466 (update_current_target): Update.
13467 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13468 argument.
13469
13470 2014-02-19 Tom Tromey <tromey@redhat.com>
13471
13472 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13473 argument.
13474 (target_post_startup_inferior): Add argument.
13475 * target.c (debug_to_post_startup_inferior): Add argument.
13476 (update_current_target): Update.
13477 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13478 argument.
13479 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13480 argument.
13481 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13482 argument.
13483 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13484 argument.
13485 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13486 'self' argument.
13487 (super_post_startup_inferior): Likewise.
13488 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13489 'self' argument.
13490 (super_post_startup_inferior): Likewise.
13491 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13492 Add 'self' argument.
13493 (super_post_startup_inferior): Likewise.
13494
13495 2014-02-19 Tom Tromey <tromey@redhat.com>
13496
13497 * target.h (struct target_ops) <to_load>: Add argument.
13498 * target.c (target_load): Add argument.
13499 (debug_to_load): Add argument.
13500 (update_current_target): Update.
13501 * remote.c (remote_load): Add 'self' argument.
13502 * remote-sim.c (gdbsim_load): Add 'self' argument.
13503 * remote-mips.c (mips_load): Add 'self' argument.
13504 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13505 * monitor.c (monitor_load): Add 'self' argument.
13506 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13507
13508 2014-02-19 Tom Tromey <tromey@redhat.com>
13509
13510 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13511 (target_terminal_info): Add argument.
13512 * target.c (debug_to_terminal_info): Add argument.
13513 (default_terminal_info): Likewise.
13514 * inflow.c (child_terminal_info): Add 'self' argument.
13515 * inferior.h (child_terminal_info): Add 'self' argument.
13516 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13517
13518 2014-02-19 Tom Tromey <tromey@redhat.com>
13519
13520 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13521 argument.
13522 (target_terminal_save_ours): Add argument.
13523 * target.c (debug_to_terminal_save_ours): Add argument.
13524 (update_current_target): Update.
13525 * inflow.c (terminal_save_ours): Add 'self' argument.
13526 * inferior.h (terminal_save_ours): Add 'self' argument.
13527
13528 2014-02-19 Tom Tromey <tromey@redhat.com>
13529
13530 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13531 (target_terminal_ours): Add argument.
13532 * target.c (debug_to_terminal_ours): Add argument.
13533 (update_current_target): Update.
13534 * remote.c (remote_terminal_ours): Add 'self' argument.
13535 (remote_close): Update.
13536 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13537 * inflow.c (terminal_ours): Add 'self' argument.
13538 * inferior.h (terminal_ours): Add 'self' argument.
13539 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13540
13541 2014-02-19 Pedro Alves <palves@redhat.com>
13542 Tom Tromey <tromey@redhat.com>
13543
13544 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13545 argument.
13546 (target_terminal_ours_for_output): Add argument.
13547 * target.c (debug_to_terminal_ours_for_output): Add argument.
13548 (update_current_target): Update.
13549 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13550 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13551 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13552
13553 2014-02-19 Tom Tromey <tromey@redhat.com>
13554
13555 * target.h (struct target_ops) <to_terminal_inferior>: Add
13556 argument.
13557 * target.c (target_terminal_inferior): Add argument.
13558 (update_current_target): Update.
13559 * remote.c (remote_terminal_inferior): Add 'self' argument.
13560 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13561 * inflow.c (terminal_inferior): Add 'self' argument.
13562 * inferior.h (terminal_inferior): Add 'self' argument.
13563 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13564 (go32_terminal_inferior): Add 'self' argument.
13565
13566 2014-02-19 Tom Tromey <tromey@redhat.com>
13567
13568 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13569 (target_terminal_init): Add argument.
13570 * target.c (debug_to_terminal_init): Add argument.
13571 (update_current_target): Update.
13572 * inflow.c (terminal_init_inferior): Add 'self' argument.
13573 * inferior.h (terminal_init_inferior): Add 'self' argument.
13574 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13575 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13576
13577 2014-02-19 Tom Tromey <tromey@redhat.com>
13578
13579 * target.h (struct target_ops)
13580 <to_can_accel_watchpoint_condition>: Add argument.
13581 (target_can_accel_watchpoint_condition): Add argument.
13582 * target.c (debug_to_can_accel_watchpoint_condition): Add
13583 argument.
13584 (update_current_target): Update.
13585 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13586 'self' argument.
13587
13588 2014-02-19 Tom Tromey <tromey@redhat.com>
13589
13590 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13591 Add argument.
13592 (target_region_ok_for_hw_watchpoint): Add argument.
13593 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13594 (default_region_ok_for_hw_watchpoint): Add argument.
13595 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13596 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13597 argument.
13598 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13599 argument.
13600 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13601 argument.
13602 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13603 'self' argument.
13604 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13605 'self' argument.
13606 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13607 'self' argument.
13608 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13609 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13610 'self' argument.
13611 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13612 Add 'self' argument.
13613
13614 2014-02-19 Tom Tromey <tromey@redhat.com>
13615
13616 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13617 argument.
13618 (target_insert_watchpoint): Add argument.
13619 * target.c (debug_to_insert_watchpoint): Add argument.
13620 (update_current_target): Update.
13621 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13622 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13623 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13624 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13625 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13626 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13627 argument.
13628 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13629 (procfs_insert_hw_watchpoint): Add 'self' argument.
13630 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13631 argument.
13632 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13633 argument.
13634 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13635 argument.
13636 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13637 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13638 argument.
13639 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13640 'self' argument.
13641
13642 2014-02-19 Tom Tromey <tromey@redhat.com>
13643
13644 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13645 argument.
13646 (target_remove_watchpoint): Add argument.
13647 * target.c (debug_to_remove_watchpoint): Add argument.
13648 (update_current_target): Update.
13649 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13650 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13651 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13652 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13653 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13654 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13655 argument.
13656 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13657 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13658 argument.
13659 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13660 argument.
13661 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13662 argument.
13663 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13664 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13665 argument.
13666 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13667 'self' argument.
13668
13669 2014-02-19 Tom Tromey <tromey@redhat.com>
13670
13671 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13672 argument.
13673 (target_remove_hw_breakpoint): Add argument.
13674 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13675 (update_current_target): Update.
13676 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13677 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13678 argument.
13679 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13680 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13681 argument.
13682 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13683 'self' argument.
13684
13685 2014-02-19 Tom Tromey <tromey@redhat.com>
13686
13687 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13688 argument.
13689 (target_insert_hw_breakpoint): Add argument.
13690 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13691 (update_current_target): Update.
13692 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13693 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13694 argument.
13695 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13696 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13697 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13698 argument.
13699 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13700 'self' argument.
13701
13702 2014-02-19 Tom Tromey <tromey@redhat.com>
13703
13704 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13705 argument.
13706 (target_can_use_hardware_watchpoint): Add argument.
13707 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13708 (update_current_target): Update.
13709 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13710 argument.
13711 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13712 argument.
13713 * remote.c (remote_check_watch_resources): Add 'self' argument.
13714 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13715 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13716 argument.
13717 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13718 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13719 argument.
13720 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13721 argument.
13722 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13723 argument.
13724 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13725 argument.
13726 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13727 argument.
13728 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13729 argument.
13730 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13731 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13732 argument.
13733 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13734 'self' argument.
13735
13736 2014-02-19 Tom Tromey <tromey@redhat.com>
13737
13738 * target.h (struct target_ops) <to_post_attach>: Add argument.
13739 (target_post_attach): Add argument.
13740 * target.c (debug_to_post_attach): Add argument.
13741 (update_current_target): Update.
13742 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13743 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13744 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13745 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13746 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13747
13748 2014-02-19 Tom Tromey <tromey@redhat.com>
13749
13750 * windows-nat.c (windows_close): Add 'self' argument.
13751 * tracepoint.c (tfile_close): Add 'self' argument.
13752 * target.h (struct target_ops) <to_close>: Add argument.
13753 * target.c (target_close): Add argument.
13754 (update_current_target): Update.
13755 * remote.c (remote_close): Add 'self' argument.
13756 * remote-sim.c (gdbsim_close): Add 'self' argument.
13757 * remote-mips.c (mips_close): Add 'self' argument.
13758 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13759 * record-full.c (record_full_close): Add 'self' argument.
13760 * record-btrace.c (record_btrace_close): Add 'self' argument.
13761 * monitor.h (monitor_close): Add 'self' argument.
13762 * monitor.c (monitor_close): Add 'self' argument.
13763 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13764 * linux-nat.c (linux_nat_close): Add argument.
13765 * go32-nat.c (go32_close): Add 'self' argument.
13766 * exec.c (exec_close_1): Add 'self' argument.
13767 * ctf.c (ctf_close): Add 'self' argument.
13768 * corelow.c (core_close): Add 'self' argument.
13769 (core_close_cleanup): Update.
13770 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13771 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13772
13773 2014-02-19 Tom Tromey <tromey@redhat.com>
13774
13775 * remote.c (remote_load): New function.
13776 (init_remote_ops): Use it.
13777
13778 2014-02-19 Tom Tromey <tromey@redhat.com>
13779
13780 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13781 argument.
13782 * common/linux-btrace.h (linux_supports_btrace): Update.
13783 * remote.c (remote_supports_btrace): Add "self" argument.
13784 * target-delegates.c: Rebuild.
13785 * target.c (target_supports_btrace): Remove.
13786 * target.h (struct target_ops) <to_supports_btrace>: Add
13787 target_ops argument.
13788 (target_supports_btrace): New define.
13789
13790 2014-02-19 Tom Tromey <tromey@redhat.com>
13791
13792 * record-full.c (record_full_beneath_to_resume_ops)
13793 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13794 (record_full_beneath_to_wait)
13795 (record_full_beneath_to_store_registers_ops)
13796 (record_full_beneath_to_store_registers)
13797 (record_full_beneath_to_xfer_partial_ops)
13798 (record_full_beneath_to_xfer_partial)
13799 (record_full_beneath_to_insert_breakpoint_ops)
13800 (record_full_beneath_to_insert_breakpoint)
13801 (record_full_beneath_to_remove_breakpoint_ops)
13802 (record_full_beneath_to_remove_breakpoint)
13803 (record_full_beneath_to_stopped_by_watchpoint)
13804 (record_full_beneath_to_stopped_data_address)
13805 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13806 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13807 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13808 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13809 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13810 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13811 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13812 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13813 (record_full_resume, record_full_wait_1)
13814 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13815 (record_full_store_registers, record_full_xfer_partial)
13816 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13817 (record_full_async, record_full_core_xfer_partial): Use target
13818 delegation.
13819 * target-delegates.c: Rebuild.
13820 * target.c (current_xfer_partial): Remove.
13821 (update_current_target): Do not INHERIT or de_fault
13822 to_insert_breakpoint, to_remove_breakpoint,
13823 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13824 to_is_async_p, to_async. Do not set to_xfer_partial field.
13825 (default_xfer_partial): Simplify.
13826 (current_xfer_partial): Remove.
13827 (target_wait, target_resume): Simplify.
13828 (find_default_can_async_p, find_default_is_async_p): Update.
13829 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13830 to_xfer_partial, to_stopped_by_watchpoint,
13831 to_stopped_data_address.
13832 (target_store_registers): Simplify.
13833 (forward_target_remove_breakpoint)
13834 (forward_target_insert_breakpoint): Remove.
13835 (target_remove_breakpoint, target_insert_breakpoint)
13836 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13837 * target.h (struct target_ops) <to_resume, to_wait,
13838 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13839 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13840 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13841 markup.
13842 (forward_target_remove_breakpoint)
13843 (forward_target_insert_breakpoint): Remove.
13844 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13845 directly.
13846 (record_btrace_insert_breakpoint): Delegate directly.
13847
13848 2014-02-19 Tom Tromey <tromey@redhat.com>
13849
13850 PR build/7701:
13851 * target-delegates.c: New file.
13852 * target.c: Include target-delegates.c.
13853 (init_dummy_target): Call install_dummy_methods.
13854 (complete_target_initialization): Call install_delegators.
13855 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13856 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13857 * make-target-delegates: New file.
13858
13859 2014-02-19 Tom Tromey <tromey@redhat.com>
13860
13861 * record.c (find_record_target): Use find_target_at.
13862 * target.c (find_target_at): New function.
13863 * target.h (find_target_at): Declare.
13864
13865 2014-02-19 Tom Tromey <tromey@redhat.com>
13866
13867 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13868 Add 'ops' argument.
13869 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13870 'ops' argument.
13871 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13872 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13873 'ops' argument.
13874 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13875 argument.
13876 * linux-nat.c (save_sigtrap): Update.
13877 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13878 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13879 (linux_nat_close): Update.
13880 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13881 argument.
13882 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13883 argument.
13884 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13885 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13886 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13887 (tmp_to_async): Add 'ops' argument.
13888 (record_full_stopped_by_watchpoint, record_full_async)
13889 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13890 argument.
13891 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13892 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13893 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13894 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13895 (remote_is_async_p, remote_async): Add 'ops' argument.
13896 (remote_stopped_data_address): Update.
13897 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13898 * target.c (update_current_target)
13899 (find_default_can_async_p, find_default_is_async_p): Update.
13900 (init_dummy_target): Update.
13901 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13902 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13903 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13904 (target_can_async_p, target_is_async_p, target_async)
13905 (target_stopped_by_watchpoint): Update.
13906
13907 2014-02-19 Yao Qi <yao@codesourcery.com>
13908
13909 PR gdb/16220
13910 * gdbarch.sh: Remove startup_gdbarch.
13911 * gdbarch.c: Regenerated.
13912 * gdbarch.h: Likewise.
13913
13914 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13915
13916 * rl78-tdep.c (rl78_g10_register_name): New function.
13917 (rl78_return_value): Add g10 support.
13918 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13919 g10.
13920
13921 2014-02-17 Doug Evans <xdje42@gmail.com>
13922
13923 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13924 (SUBDIR_GUILE_SRCS): Ditto.
13925 (scm-gsmob.o): Ditto.
13926
13927 2014-02-17 Yao Qi <yao@codesourcery.com>
13928
13929 * gnu-nat.c (ILL_RPC): Declare defined function.
13930
13931 2014-02-17 Yao Qi <yao@codesourcery.com>
13932
13933 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13934 mach_msg_type_number_t.
13935 (gnu_write_inferior): Likewise.
13936
13937 2014-02-17 Yao Qi <yao@codesourcery.com>
13938
13939 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13940 in format string.
13941 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13942 (inf_validate_procs, inf_signal): Likewise.
13943 (S_exception_raise_request): Likewise.
13944 (do_mach_notify_dead_name): Likewise.
13945 (steal_exc_port): Likewise.
13946 (gnu_read_inferior): Change 'copy_count''s type to
13947 mach_msg_type_number_t.
13948 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13949 format string.
13950
13951 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13952
13953 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13954 flag. Adjust all users; in particular...
13955 (gnu_wait): ..., don't decrement its value in here...
13956 (gnu_create_inferior): ..., and instead set the flag in here,
13957 around the startup_inferior call, and call that one with
13958 START_INFERIOR_TRAPS_EXPECTED.
13959
13960 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13961 (ILL_RPC): ... new macro.
13962 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13963 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13964 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13965 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13966 functions with ILL_RPC macro.
13967 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13968 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13969 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13970 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13971 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13972 (S_proc_getlogin_reply, S_proc_getsid_reply)
13973 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13974 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13975 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13976 (S_proc_getnports_reply, S_proc_is_important_reply)
13977 (S_proc_get_code_reply): New stub functions, generated with
13978 ILL_RPC macro.
13979
13980 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13981 collected the type check structures.
13982
13983 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13984
13985 2014-02-14 Doug Evans <dje@google.com>
13986
13987 * target.c (target_write_partial): Fix result type.
13988
13989 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13990
13991 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13992 the proper offsets to access fpregset_t.
13993
13994 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13995
13996 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13997 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13998 * h8300-tdep.c (setmachinelist): Remove global.
13999 * hppa-tdep.c (hppa_sigtramp): Remove global.
14000 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14001 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14002 * ravenscar-thread.c (update_target_observer): Remove global.
14003 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14004
14005 2014-02-12 Tom Tromey <tromey@redhat.com>
14006
14007 * common/rsp-low.c: Update comments.
14008 * common/rsp-low.h: Update comments.
14009
14010 2014-02-12 Tom Tromey <tromey@redhat.com>
14011
14012 * common/rsp-low.c (convert_ascii_to_int): Remove.
14013 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14014
14015 2014-02-12 Tom Tromey <tromey@redhat.com>
14016
14017 * common/rsp-low.h (unhexify): Don't declare.
14018 * common/rsp-low.c (unhexify): Remove.
14019
14020 2014-02-12 Tom Tromey <tromey@redhat.com>
14021
14022 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14023 * common/rsp-low.c (convert_int_to_ascii): Remove.
14024
14025 2014-02-12 Tom Tromey <tromey@redhat.com>
14026
14027 * common/rsp-low.h (hexify): Don't declare.
14028 * common/rsp-low.c (hexify): Remove.
14029
14030 2014-02-12 Tom Tromey <tromey@redhat.com>
14031
14032 * common/rsp-low.c (hexify): Never take strlen of argument.
14033
14034 2014-02-12 Tom Tromey <tromey@redhat.com>
14035
14036 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14037 * remote.c (extended_remote_run, remote_rcmd)
14038 (remote_download_trace_state_variable, remote_save_trace_data)
14039 (remote_set_trace_notes): Update.
14040 * tracepoint.c (encode_source_string, tfile_write_status)
14041 (tfile_write_uploaded_tsv): Update.
14042
14043 2014-02-12 Tom Tromey <tromey@redhat.com>
14044
14045 * tracepoint.c: Include rsp-low.h.
14046 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14047 * remote.c: Include rsp-low.h.
14048 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14049 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14050 (remote_unescape_input): Move to common/rsp-low.c.
14051 * common/rsp-low.h: New file.
14052 * common/rsp-low.c: New file.
14053 * Makefile.in (SFILES): Add common/rsp-low.c.
14054 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14055 (COMMON_OBS): Add rsp-low.o.
14056 (rsp-low.o): New target.
14057
14058 2014-02-12 Tom Tromey <tromey@redhat.com>
14059
14060 * utils.h: Include print-utils.h.
14061 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14062 (int_string, core_addr_to_string, core_addr_to_string_nz)
14063 (hex_string, hex_string_custom): Don't declare.
14064 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14065 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14066 (hex_string_custom, int_string, core_addr_to_string)
14067 (core_addr_to_string_nz, host_address_to_string): Move to
14068 common/print-utils.c.
14069 * common/print-utils.h: New file.
14070 * common/print-utils.c: New file
14071 * Makefile.in (SFILES): Add common/print-utils.c.
14072 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14073 (COMMON_OBS): Add print-utils.o.
14074 (print-utils.o): New target.
14075
14076 2014-02-12 Tom Tromey <tromey@redhat.com>
14077
14078 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14079
14080 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14081
14082 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14083
14084 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14085
14086 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14087 if a PT_IO ptrace request returns sucessfully but indicates that 0
14088 bytes were transferred.
14089
14090 2014-02-12 Pedro Alves <palves@redhat.com>
14091 Kevin Buettner <kevinb@redhat.com>
14092
14093 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14094 TYPE_INSTANCE_FLAG_CODE_SPACE.
14095
14096 2014-02-12 Pedro Alves <palves@redhat.com>
14097
14098 * h8300-tdep.c (pseudo_from_raw_register)
14099 (raw_from_pseudo_register): New functions.
14100 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14101 them.
14102
14103 2014-02-12 Pedro Alves <palves@redhat.com>
14104
14105 * h8300-tdep.c (h8300_register_sim_regno): New function.
14106 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14107 gdbarch_register_sim_regno hook.
14108
14109 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14110
14111 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14112
14113 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14114
14115 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14116
14117 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14118
14119 * obsd-tdep.h (obsd_init_abi): New prototype.
14120 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14121 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14122 (obsd_init_abi): New functions.
14123 * i386obsd-tdep.c: Include "obsd-tdep.h".
14124 (i386obsd_init_abi): Call obsd_init_abi.
14125 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14126 (amd64obsd_init_abi): Call obsd_init_abi.
14127 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14128 obsd-tdep.c to gdb_target_obs.
14129
14130 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14131
14132 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14133 double float arguments to 16-byte in the argument slots.
14134
14135 2014-02-11 Doug Evans <xdje42@gmail.com>
14136
14137 * configure.ac: Don't crash if pkg-config is not found and guile
14138 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14139 in guile checks.
14140 * configure: Regenerate.
14141
14142 2014-02-11 Yao Qi <yao@codesourcery.com>
14143
14144 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14145 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14146 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14147 * gnu-nat.c (gnu_xfer_memory): Likewise.
14148 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14149 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14150 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14151 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14152
14153 2014-02-11 Yao Qi <yao@codesourcery.com>
14154
14155 * target.h (enum target_xfer_error): Rename to ...
14156 (enum target_xfer_status): ... it. New. All users updated.
14157 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14158 New.
14159 (TARGET_XFER_STATUS_ERROR_P): New macro.
14160 (target_xfer_error_to_string): Remove declaration.
14161 (target_xfer_status_to_string): Declare.
14162 (target_xfer_partial_ftype): Adjust it.
14163 (struct target_ops) <to_xfer_partial>: Return
14164 target_xfer_status. Add argument xfered_len. Update
14165 comments.
14166 * target.c (target_xfer_error_to_string): Rename to ...
14167 (target_xfer_status_to_string): ... it. New. All callers
14168 updated.
14169 (target_read_live_memory): Likewise. Call target_xfer_partial
14170 instead of target_read.
14171 (memory_xfer_live_readonly_partial): Return
14172 target_xfer_status. Add argument xfered_len.
14173 (raw_memory_xfer_partial): Likewise.
14174 (memory_xfer_partial_1): Likewise.
14175 (memory_xfer_partial): Likewise.
14176 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14177 properly. Update debug message.
14178 (default_xfer_partial, current_xfer_partial): Likewise.
14179 (target_write_partial): Likewise.
14180 (target_read_partial): Likewise. All callers updated.
14181 (read_whatever_is_readable): Likewise.
14182 (target_write_with_progress): Likewise.
14183 (target_read_alloc_1): Likewise.
14184
14185 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14186 * auxv.c (procfs_xfer_auxv): Likewise.
14187 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14188 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14189 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14190 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14191 * corefile.c (read_memory): Adjust.
14192 * corelow.c (core_xfer_partial): Likewise.
14193 * ctf.c (ctf_xfer_partial): Likewise.
14194 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14195 updated.
14196 (darwin_xfer_partial): Likewise.
14197 * exec.c (section_table_xfer_memory_partial): Likewise. All
14198 callers updated.
14199 (exec_xfer_partial): Likewise.
14200 * exec.h (section_table_xfer_memory_partial): Update
14201 declaration.
14202 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14203 negative.
14204 (gnu_xfer_partial): Likewise.
14205 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14206 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14207 (ia64_hpux_xfer_solib_got): Likewise.
14208 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14209 type of 'partial_len' to ULONGEST.
14210 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14211 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14212 (linux_nat_xfer_partial): Likewise.
14213 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14214 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14215 * monitor.c (monitor_xfer_memory): Likewise.
14216 (monitor_xfer_partial): Likewise.
14217 * procfs.c (procfs_xfer_partial): Likewise.
14218 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14219 * record-full.c (record_full_xfer_partial): Likewise.
14220 (record_full_core_xfer_partial): Likewise.
14221 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14222 (gdbsim_xfer_partial): Likewise.
14223 * remote.c (remote_write_bytes_aux): Likewise. All callers
14224 updated.
14225 (remote_write_bytes, remote_read_bytes): Likewise. All
14226 callers updated.
14227 (remote_flash_erase): Likewise. All callers updated.
14228 (remote_write_qxfer): Likewise. All callers updated.
14229 (remote_read_qxfer): Likewise. All callers updated.
14230 (remote_xfer_partial): Likewise.
14231 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14232 (rs6000_xfer_shared_libraries): Likewise.
14233 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14234 (sol_thread_xfer_partial): Likewise.
14235 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14236 (sparc_xfer_partial): Likewise.
14237 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14238 updated.
14239 (spu_xfer_partial): Likewise.
14240 * spu-multiarch.c (spu_xfer_partial): Likewise.
14241 * tracepoint.c (tfile_xfer_partial): Likewise.
14242 * windows-nat.c (windows_xfer_memory): Likewise.
14243 (windows_xfer_shared_libraries): Likewise.
14244 (windows_xfer_partial): Likewise.
14245 * valprint.c: Replace 'target_xfer_error' with
14246 'target_xfer_status' in comments.
14247
14248 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14249
14250 Checked in by Joel Brobecker <brobecker@adacore.com>.
14251 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14252
14253 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14254
14255 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14256 function parameters.
14257
14258 2014-02-10 Will Newton <will.newton@linaro.org>
14259
14260 * elfread.c (elf_rel_plt_read): Look for a .got section if
14261 looking up .got.plt fails.
14262 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14263 on address passed to elf_gnu_ifunc_record_cache.
14264 (elf_gnu_ifunc_resolve_addr): Likewise.
14265 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14266
14267 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14268
14269 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14270 (X_RETTURN): New macro.
14271 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14272
14273 * sparc64-tdep.c (sparc64_init_abi): Hook
14274 sparc_in_function_epilogue_p.
14275
14276 2014-02-10 Gary Benson <gbenson@redhat.com>
14277
14278 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14279 Rename name_matcher to symbol_matcher.
14280
14281 2014-02-10 Gary Benson <gbenson@redhat.com>
14282
14283 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14284 Use expand_symtabs_file_matcher_ftype and
14285 expand_symtabs_symbol_matcher_ftype.
14286
14287 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14288
14289 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14290 (struct ada_symbol_cache): New.
14291 (ada_free_symbol_cache): Forward declare.
14292 (struct ada_pspace_data): New.
14293 (ada_pspace_data_handle): New static global.
14294 (get_ada_pspace_data, ada_pspace_data_cleanup)
14295 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14296 (cache_space, cache): Delete, now folded inside struct
14297 ada_pspace_data.
14298 (ada_get_symbol_cache): New function.
14299 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14300 implementation.
14301 (_initialize_ada_language): Remove initialization of cache_space.
14302 Move call to observer_attach_inferior_exit up, grouping it
14303 with the other observer registrations inside this function.
14304 Rename command to be more general. Add call to
14305 register_program_space_data_with_cleanup.
14306
14307 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14308
14309 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14310 ada_new_objfile_observer.
14311 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14312 (_initialize_tasks): Update uses of ada_new_objfile_observer
14313 and ada_tasks_normal_stop_observer.
14314
14315 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14316
14317 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14318 returned by the 'Length attribute to integer.
14319
14320 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14321
14322 * ada-lang.c (_initialize_ada_language): Initialize
14323 cache_space obstack.
14324
14325 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14326
14327 * ada-lang.c (HASH_SIZE): New macro.
14328 (struct cache_entry): New type.
14329 (cache_space, cache): New static globals.
14330 (ada_clear_symbol_cache, find_entry): New functions.
14331 (lookup_cached_symbol, cache_symbol): Implement.
14332 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14333 (_initialize_ada_language): Attach ada_new_objfile_observer
14334 and ada_free_objfile_observer.
14335
14336 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14337
14338 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14339 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14340 struct block * parameter.
14341 (ada_lookup_symbol_list_worker): Constify local variable "block".
14342 Remove cast which is no longer necessary.
14343
14344 2014-02-10 Doug Evans <xdje42@gmail.com>
14345
14346 Add Guile as an extension language.
14347 * NEWS: Mention Guile scripting.
14348 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14349 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14350 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14351 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14352 (CLIBS): Add GUILE_LIBS.
14353 (install-guile): New rule.
14354 (guile.o): New rule.
14355 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14356 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14357 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14358 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14359 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14360 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14361 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14362 * configure.ac: New option --with-guile.
14363 * configure: Regenerate.
14364 * config.in: Regenerate.
14365 * auto-load.c: Remove #include "python/python.h". Add #include
14366 "gdb/section-scripts.h".
14367 (source_section_scripts): Handle Guile scripts.
14368 (_initialize_auto_load): Add name of Guile objfile script to
14369 scripts-directory help text.
14370 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14371 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14372 (struct breakpoint): New member scm_bp_object.
14373 * defs.h (enum command_control_type): New value guile_control.
14374 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14375 "extension.h".
14376 (show_user): Update comment.
14377 (_initialize_cli_cmds): Update help text for "show user". Update help
14378 text for max-user-call-depth.
14379 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14380 "extension.h".
14381 (multi_line_command_p): Add guile_control.
14382 (print_command_lines): Handle guile_control.
14383 (execute_control_command, recurse_read_control_structure): Ditto.
14384 (process_next_line): Recognize "guile" commands.
14385 * disasm.c (gdb_disassemble_info): Make non-static.
14386 * disasm.h: #include "dis-asm.h".
14387 (struct gdbarch): Add forward decl.
14388 (gdb_disassemble_info): Declare.
14389 * extension.c: #include "guile/guile.h".
14390 (extension_languages): Add guile.
14391 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14392 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14393 * gdbtypes.c (get_unsigned_type_max): New function.
14394 (get_signed_type_minmax): New function.
14395 * gdbtypes.h (get_unsigned_type_max): Declare.
14396 (get_signed_type_minmax): Declare.
14397 * guile/README: New file.
14398 * guile/guile-internal.h: New file.
14399 * guile/guile.c: New file.
14400 * guile/guile.h: New file.
14401 * guile/scm-arch.c: New file.
14402 * guile/scm-auto-load.c: New file.
14403 * guile/scm-block.c: New file.
14404 * guile/scm-breakpoint.c: New file.
14405 * guile/scm-disasm.c: New file.
14406 * guile/scm-exception.c: New file.
14407 * guile/scm-frame.c: New file.
14408 * guile/scm-gsmob.c: New file.
14409 * guile/scm-iterator.c: New file.
14410 * guile/scm-lazy-string.c: New file.
14411 * guile/scm-math.c: New file.
14412 * guile/scm-objfile.c: New file.
14413 * guile/scm-ports.c: New file.
14414 * guile/scm-pretty-print.c: New file.
14415 * guile/scm-safe-call.c: New file.
14416 * guile/scm-string.c: New file.
14417 * guile/scm-symbol.c: New file.
14418 * guile/scm-symtab.c: New file.
14419 * guile/scm-type.c: New file.
14420 * guile/scm-utils.c: New file.
14421 * guile/scm-value.c: New file.
14422 * guile/lib/gdb.scm: New file.
14423 * guile/lib/gdb/boot.scm: New file.
14424 * guile/lib/gdb/experimental.scm: New file.
14425 * guile/lib/gdb/init.scm: New file.
14426 * guile/lib/gdb/iterator.scm: New file.
14427 * guile/lib/gdb/printing.scm: New file.
14428 * guile/lib/gdb/types.scm: New file.
14429 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14430 (VPATH): Add $(GUILE_SRCDIR).
14431 (GUILE_DIR): New variable.
14432 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14433 (all): Add stamp-guile dependency.
14434 (stamp-guile): New rule.
14435 (clean-guile, install-guile, uninstall-guile): New rules.
14436 (install-only): Add install-guile dependency.
14437 (uninstall): Add uninstall-guile dependency.
14438 (clean): Add clean-guile dependency.
14439
14440 2014-02-09 Doug Evans <xdje42@gmail.com>
14441
14442 Revert this patch (which I approved, mea culpa).
14443
14444 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14445
14446 * Makefile.in (all-lib): Remove.
14447 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14448
14449 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14450
14451 Fix Python stack corruption.
14452 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14453 gdb_py_longest.
14454
14455 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14456
14457 * Makefile.in (all-lib): Remove.
14458 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14459
14460 2014-02-07 Doug Evans <dje@google.com>
14461
14462 * extension-priv.h (extension_language_script_ops): Add comment.
14463 (extension_language_ops): Add comment.
14464 (active_ext_lang_state): Fix typo in comment.
14465
14466 2014-02-07 Pedro Alves <palves@redhat.com>
14467
14468 PR breakpoints/16292
14469 * infrun.c (handle_signal_stop) <signal arrives while stepping
14470 over a breakpoint>: Switch back to the stepping thread.
14471
14472 2014-02-07 Yao Qi <yao@codesourcery.com>
14473
14474 * target.c (target_xfer_partial): Return zero if LEN is zero.
14475
14476 2014-02-07 Yao Qi <yao@codesourcery.com>
14477
14478 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14479 (ld_so_xfer_auxv): Likewise.
14480 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14481 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14482 * corelow.c (core_xfer_partial): Likewise.
14483 * ctf.c (ctf_xfer_partial): Likewise.
14484 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14485 (darwin_xfer_partial): Likewise.
14486 * exec.c (exec_xfer_partial): Likewise.
14487 * gnu-nat.c (gnu_xfer_partial): Likewise.
14488 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14489 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14490 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14491 * linux-nat.c (linux_xfer_siginfo): Likewise.
14492 (linux_proc_xfer_spu): Likewise.
14493 * procfs.c (procfs_xfer_partial): Likewise.
14494 * record-full.c (record_full_xfer_partial): Likewise.
14495 (record_full_core_xfer_partial): Likewise.
14496 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14497 * remote.c (remote_write_qxfer): Likewise.
14498 (remote_write_qxfer, remote_read_qxfer): Likewise.
14499 (remote_xfer_partial): Likewise.
14500 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14501 (rs6000_xfer_shared_libraries): Likewise.
14502 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14503 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14504 (spu_xfer_partial): Likewise.
14505 * target.c (memory_xfer_partial_1): Likewise.
14506 * tracepoint.c (tfile_xfer_partial): Likewise.
14507 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14508 (windows_xfer_partial): Likewise.
14509
14510 2014-02-07 Yao Qi <yao@codesourcery.com>
14511
14512 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14513 comments.
14514 (core_xfer_shared_libraries_aix): Likewise.
14515 * gdbarch.c, gdbarch.h: Regenerated.
14516 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14517 ULONGEST. Change 'len_avail' type to ULONGEST.
14518 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14519 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14520 declaration.
14521 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14522
14523 2014-02-07 Yao Qi <yao@codesourcery.com>
14524
14525 * corefile.c (memory_error): Get 'exception' from ERR and pass
14526 'exception' to throw_error.
14527
14528 2014-02-06 Doug Evans <xdje42@gmail.com>
14529
14530 * configure.ac (libpython checking): Remove all but python.o from
14531 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14532 * configure: Regenerate.
14533
14534 * Makefile.in (SFILES): Add extension.c.
14535 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14536 (COMMON_OBS): Add extension.o.
14537 * extension.h: New file.
14538 * extension-priv.h: New file.
14539 * extension.c: New file.
14540
14541 * python/python-internal.h: #include "extension.h".
14542 (gdbpy_auto_load_enabled): Declare.
14543 (gdbpy_apply_val_pretty_printer): Declare.
14544 (gdbpy_apply_frame_filter): Declare.
14545 (gdbpy_preserve_values): Declare.
14546 (gdbpy_breakpoint_cond_says_stop): Declare.
14547 (gdbpy_breakpoint_has_cond): Declare.
14548 (void source_python_script_for_objfile): Delete.
14549 * python/python.c: #include "extension-priv.h".
14550 Delete inclusion of "observer.h".
14551 (extension_language_python): Moved here and renamed from
14552 script_language_python in py-auto-load.c.
14553 Redefined to be of type extension_language_defn.
14554 (python_extension_script_ops): New global.
14555 (python_extension_ops): New global.
14556 (struct python_env): New member previous_active.
14557 (restore_python_env): Call restore_active_ext_lang.
14558 (ensure_python_env): Call set_active_ext_lang.
14559 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14560 New arg extlang.
14561 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14562 New arg extlang.
14563 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14564 New arg extlang.
14565 (gdbpy_eval_from_control_command): Renamed from
14566 eval_python_from_control_command, made static. New arg extlang.
14567 (gdbpy_source_script) Renamed from source_python_script, made static.
14568 New arg extlang.
14569 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14570 result to int. New arg extlang.
14571 (gdbpy_source_objfile_script): Renamed from
14572 source_python_script_for_objfile, made static. New arg extlang.
14573 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14574 static. New args extlang, extlang_printers. Change result type to
14575 "void".
14576 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14577 static. New arg extlang. Rename arg printers to extlang_printers
14578 and change type to ext_lang_type_printers *.
14579 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14580 static. Replace argument arg with extlang, extlang_printers.
14581 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14582 (!HAVE_PYTHON, source_python_script): Delete.
14583 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14584 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14585 (!HAVE_PYTHON, start_type_printers): Delete.
14586 (!HAVE_PYTHON, apply_type_printers): Delete.
14587 (!HAVE_PYTHON, free_type_printers): Delete.
14588 (_initialize_python): Delete call to observer_attach_before_prompt.
14589 (finalize_python): Set/restore active extension language.
14590 (gdbpy_finish_initialization) Renamed from
14591 finish_python_initialization, made static. New arg extlang.
14592 (gdbpy_initialized): New function.
14593 * python/python.h: #include "extension.h". Delete #include
14594 "value.h", "mi/mi-cmds.h".
14595 (extension_language_python): Declare.
14596 (GDBPY_AUTO_FILE_NAME): Delete.
14597 (enum py_bt_status): Moved to extension.h and renamed to
14598 ext_lang_bt_status.
14599 (enum frame_filter_flags): Moved to extension.h.
14600 (enum py_frame_args): Moved to extension.h and renamed to
14601 ext_lang_frame_args.
14602 (finish_python_initialization): Delete.
14603 (eval_python_from_control_command): Delete.
14604 (source_python_script): Delete.
14605 (apply_val_pretty_printer): Delete.
14606 (apply_frame_filter): Delete.
14607 (preserve_python_values): Delete.
14608 (gdbpy_script_language_defn): Delete.
14609 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14610 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14611
14612 * auto-load.c: #include "extension.h".
14613 (GDB_AUTO_FILE_NAME): Delete.
14614 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14615 (script_language_gdb): Delete, moved to extension.c and renamed to
14616 extension_language_gdb.
14617 (source_gdb_script_for_objfile): Delete.
14618 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14619 (loaded_script): Change type of language member to
14620 struct extension_language_defn *.
14621 (init_loaded_scripts_info): Initialize
14622 unsupported_script_warning_printed.
14623 (maybe_add_script): Make static. Change type of language arg to
14624 struct extension_language_defn *.
14625 (clear_section_scripts): Reset unsupported_script_warning_printed.
14626 (auto_load_objfile_script_1): Rewrite to use extension language API.
14627 (auto_load_objfile_script): Make public. Remove support-compiled-in
14628 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14629 (source_section_scripts): Rewrite to use extension language API.
14630 (load_auto_scripts_for_objfile): Rewrite to use
14631 auto_load_scripts_for_objfile.
14632 (collect_matching_scripts_data): Change type of language member to
14633 struct extension_language_defn *.
14634 (auto_load_info_scripts): Change type of language arg to
14635 struct extension_language_defn *.
14636 (unsupported_script_warning_print): New function.
14637 (script_not_found_warning_print): Make static.
14638 (_initialize_auto_load): Rewrite construction of scripts-directory
14639 help.
14640 * auto-load.h (struct objfile): Add forward decl.
14641 (struct script_language): Delete.
14642 (struct auto_load_pspace_info): Add forward decl.
14643 (struct extension_language_defn): Add forward decl.
14644 (maybe_add_script): Delete.
14645 (auto_load_objfile_script): Declare.
14646 (script_not_found_warning_print): Delete.
14647 (auto_load_info_scripts): Update prototype.
14648 (auto_load_gdb_scripts_enabled): Declare.
14649 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14650 auto_load_python_scripts_enabled and made public.
14651 (script_language_python): Delete, moved to python.c.
14652 (gdbpy_script_language_defn): Delete.
14653 (info_auto_load_python_scripts): Update to use
14654 extension_language_python.
14655
14656 * breakpoint.c (condition_command): Replace call to
14657 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14658 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14659 with call to breakpoint_ext_lang_cond_says_stop.
14660 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14661 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14662 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14663 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14664 New arg slang.
14665 (local_setattro): Print name of extension language with existing
14666 stop condition.
14667
14668 * valprint.c (val_print, value_print): Update to call
14669 apply_ext_lang_val_pretty_printer.
14670 * cp-valprint.c (cp_print_value): Update call to
14671 apply_ext_lang_val_pretty_printer.
14672 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14673 (gdbpy_apply_val_pretty_printer): Renamed from
14674 apply_val_pretty_printer. New arg extlang.
14675 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14676
14677 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14678 extension language API.
14679 * cli/cli-script.c (execute_control_command): Update to call
14680 eval_ext_lang_from_control_command.
14681
14682 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14683 enum ext_lang_bt_status values. Update call to
14684 apply_ext_lang_frame_filter.
14685 (mi_cmd_stack_list_locals): Ditto.
14686 (mi_cmd_stack_list_args): Ditto.
14687 (mi_cmd_stack_list_variables): Ditto.
14688 * mi/mi-main.c: Delete #include "python/python-internal.h".
14689 Add #include "extension.h".
14690 (mi_cmd_list_features): Replace reference to python internal variable
14691 gdb_python_initialized with call to ext_lang_initialized_p.
14692
14693 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14694 Update to use enum ext_lang_frame_args. Update to call
14695 apply_ext_lang_frame_filter.
14696 * python/py-framefilter.c (extract_sym): Update to use enum
14697 ext_lang_bt_status.
14698 (extract_value, py_print_type, py_print_value): Ditto.
14699 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14700 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14701 (py_print_frame): Ditto.
14702 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14703 New arg extlang. Update to use enum ext_lang_bt_status.
14704
14705 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14706 finish_python_initialization. Replace with call to
14707 finish_ext_lang_initialization.
14708
14709 * typeprint.c (do_free_global_table): Update to call
14710 free_ext_lang_type_printers.
14711 (create_global_typedef_table): Update to call
14712 start_ext_lang_type_printers.
14713 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14714 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14715 (type_print_options): Change type of global_printers from "void *"
14716 to "struct ext_lang_type_printers *".
14717
14718 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14719 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14720 (gdbpy_preserve_values): Renamed from preserve_python_values.
14721 New arg extlang.
14722 (!HAVE_PYTHON, preserve_python_values): Delete.
14723
14724 * utils.c (quit_flag): Delete, moved to extension.c.
14725 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14726 extension.c.
14727
14728 * eval.c: Delete #include "python/python.h".
14729 * main.c: Delete #include "python/python.h".
14730
14731 * defs.h: Update comment.
14732
14733 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14734
14735 GDB 7.7 released.
14736
14737 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14738
14739 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14740 defined.
14741
14742 2014-02-05 Yao Qi <yao@codesourcery.com>
14743
14744 * remote.c (remote_pass_signals): Remove local 'buf' and use
14745 rs->buf.
14746 (remote_program_signals): Likewise.
14747
14748 2014-02-05 Yao Qi <yao@codesourcery.com>
14749
14750 * ctf.c: Include "inferior.h" and "gdbthread.h".
14751 (CTF_PID): A new macro.
14752 (ctf_open): Call inferior_appeared and add_thread_silent.
14753 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14754 (ctf_thread_alive): New function.
14755 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14756
14757 2014-02-05 Yao Qi <yao@codesourcery.com>
14758
14759 Revert this patch:
14760
14761 2013-05-24 Yao Qi <yao@codesourcery.com>
14762
14763 * tracepoint.c (TFILE_PID): Remove.
14764 (tfile_open): Don't add thread and inferior.
14765 (tfile_close): Don't set 'inferior_ptid'. Don't call
14766 exit_inferior_silent.
14767 (tfile_thread_alive): Remove.
14768 (init_tfile_ops): Don't set field 'to_thread_alive' of
14769 tfile_ops.
14770
14771 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14772
14773 * remote.c (remote_start_remote): Call remote_check_symbols even
14774 if only symbol-file (not file) has been given.
14775
14776 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14777
14778 * gdbarch.sh (skip_entrypoint): New callback.
14779 * gdbarch.c, gdbarch.h: Regenerate.
14780 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14781 * infrun.c (fill_in_stop_func): Likewise.
14782 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14783 (ppc_elfv2_elf_make_msymbol_special): New function.
14784 (ppc_elfv2_skip_entrypoint): Likewise.
14785 (ppc_linux_init_abi): Install them for ELFv2.
14786
14787 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14788
14789 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14790 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14791 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14792 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14793 structures returned in GPRs.
14794
14795 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14796
14797 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14798 offset to the stack parameter list for the ELFv2 ABI.
14799
14800 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14801
14802 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14803 set_gdbarch_convert_from_func_ptr_addr and
14804 set_gdbarch_elf_make_msymbol_special for ELFv1.
14805 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14806 function descriptors on ELFv1.
14807 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14808 set up r12 at function entry.
14809
14810 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14811
14812 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14813 (struct gdbarch_tdep): New member elf_abi.
14814
14815 * rs6000-tdep.c: Include "elf/ppc64.h".
14816 (rs6000_gdbarch_init): Detect ELF ABI version.
14817
14818 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14819
14820 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14821 within a register pair holding a DFP 128-bit value on little-endian.
14822 (ppc64_sysv_abi_return_value_base): Likewise.
14823 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14824 (dfp_pseudo_register_write): Likewise.
14825
14826 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14827
14828 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14829 offset on little-endian when passing _Decimal32.
14830 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14831
14832 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14833
14834 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14835 of the overlapped FP register within the VSX register on little-
14836 endian platforms.
14837 (efpr_pseudo_register_write): Likewise.
14838
14839 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14840
14841 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14842 offset on little-endian when passing small structures.
14843
14844 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14845
14846 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14847 (struct ppc64_sysv_argpos): New data structure.
14848 (ppc64_sysv_abi_push_float): Remove.
14849 (ppc64_sysv_abi_push_val): New function.
14850 (ppc64_sysv_abi_push_integer): Likewise.
14851 (ppc64_sysv_abi_push_freg): Likewise.
14852 (ppc64_sysv_abi_push_vreg): Likewise.
14853 (ppc64_sysv_abi_push_param): Likewise.
14854 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14855 (ppc64_sysv_abi_return_value_base): New function.
14856 (ppc64_sysv_abi_return_value): Refactor to use it.
14857
14858 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14859
14860 * NEWS: Document new target powerpc64le-*-linux*.
14861
14862 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14863
14864 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14865 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14866 core dumps.
14867 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14868 register set used in ELF core dumps. Add floating-point register set.
14869
14870 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14871
14872 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14873 dwarf2_to_gdb[] table using symbolic constants. Adjust
14874 penultimate entry from number representing the PC register
14875 to symbolic constant representing the MDR register. Add
14876 constant for the PC register to the end of the table.
14877
14878 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14879
14880 * bsd-kvm.c: Include <sys/param.h>
14881
14882 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14883
14884 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14885
14886 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14887
14888 * ada-lang.h (clear_ada_sym_cache): Delete.
14889
14890 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14891
14892 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14893
14894 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14895
14896 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14897 the sigreturn register save area only if the syscall is
14898 sigreturn.
14899
14900 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14901
14902 * valops.c (value_slice): Minor reformatting.
14903
14904 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14905
14906 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14907
14908 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14909
14910 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14911 New static globals.
14912 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14913 (ada_ignore_descriptive_types_p): New static global.
14914 (find_parallel_type_by_descriptive_type): Return immediately
14915 if ada_ignore_descriptive_types_p is set.
14916 (_initialize_ada_language): Register new commands "maintenance
14917 set ada", "maintenance show ada", "maintenance set ada
14918 ignore-descriptive-types" and "maintenance show ada
14919 ignore-descriptive-types".
14920 * NEWS: Add entry for new "maint ada set/show
14921 ignore-descriptive-types" commands.
14922
14923 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14924
14925 * record-btrace.c (record_btrace_close): Call btrace_teardown
14926 for all threads.
14927
14928 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14929
14930 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14931 "ui-out.h".
14932
14933 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14934
14935 * ada-typeprint (type_is_full_subrange_of_target_type):
14936 New function.
14937 (print_range): Add parameter bounds_prefered_p. If not set,
14938 try printing range types using the name of their base type.
14939 (print_range_type): Add parameter bounds_prefered_p.
14940 Use it in call to print_range.
14941 (print_array_type, ada_print_type): Update calls to print_range
14942 and print_range_type.
14943
14944 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14945
14946 * ada-typeprint.c (print_array_type, print_choices, print_range)
14947 (print_range_bound, print_dynamic_range_bound, print_range_type):
14948 Remove declaration.
14949
14950 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14951
14952 * ada-typeprint.c (print_range): Add missing empty line
14953 after local declaration.
14954
14955 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14956
14957 * ada-valprint.c (print_optional_low_bound): Get index_type's
14958 target type for as long as it is a TYPE_CODE_RANGE.
14959
14960 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14961
14962 * procfs.c (procfs_make_note_section): Remove assertion and
14963 associated comment.
14964
14965 2014-01-24 Yao Qi <yao@codesourcery.com>
14966
14967 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14968 * corelow.c (get_core_siginfo): Likewise.
14969
14970 2014-01-24 Yao Qi <yao@codesourcery.com>
14971
14972 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14973 ULONGEST. Don't check 'len' is negative.
14974 (remote_write_bytes): Change type of 'len' to ULONGEST.
14975
14976 2014-01-23 Tom Tromey <tromey@redhat.com>
14977
14978 PR python/16485:
14979 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14980 Handle exception from frame.block.
14981 (FrameVars.fetch_frame_locals): Likewise.
14982
14983 2014-01-23 Tom Tromey <tromey@redhat.com>
14984
14985 PR python/16487:
14986 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14987 on a NULL pointer. Move "goto error" to correct place.
14988
14989 2014-01-23 Tom Tromey <tromey@redhat.com>
14990
14991 PR python/16491:
14992 * python/py-framefilter.c (apply_frame_filter): Call
14993 ensure_python_env after computing gdbarch.
14994
14995 2014-01-23 Yao Qi <yao@codesourcery.com>
14996
14997 * target.c (raw_memory_xfer_partial): Change argument type
14998 from void * to gdb_byte *.
14999 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15000
15001 2014-01-22 Doug Evans <dje@google.com>
15002
15003 New gdbserver option --debug-format=timestamp.
15004 * NEWS: Mention it.
15005
15006 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15007
15008 * syscalls/s390x-linux.xml: New file.
15009 * syscalls/s390-linux.xml: New file.
15010 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15011 (XML_SYSCALL_FILENAME_S390X): Likewise.
15012 (op_svc): New enum value for SVC opcode.
15013 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15014 (s390_linux_get_syscall_number): New function.
15015 (s390_gdbarch_init): Register '*get_syscall_number' and the
15016 syscall xml file name.
15017 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15018 "s390-linux.xml" and "s390x-linux.xml".
15019 * NEWS: Announce new feature.
15020
15021 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15022
15023 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15024
15025 2014-01-22 Pedro Alves <palves@redhat.com>
15026
15027 * xtensa-config.c: Include defs.h.
15028
15029 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15030
15031 * common/common-utils.h: Add "ARI:" comment beside __func__
15032 reference.
15033
15034 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15035
15036 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15037 documentation a bit.
15038
15039 2014-01-21 Roland McGrath <mcgrathr@google.com>
15040
15041 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15042 * configure: Regenerate.
15043 * aclocal.m4: Regenerate.
15044 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15045 New substituted variables.
15046 (install-strip): New target.
15047 (INSTALL_SCRIPT): New substituted variable.
15048 (FLAGS_TO_PASS): Add it.
15049 (install-only): Use $(INSTALL_SCRIPT) rather than
15050 $(INSTALL_PROGRAM) for gcore.
15051
15052 2014-01-20 Tom Tromey <tromey@redhat.com>
15053
15054 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15055 together.
15056
15057 2014-01-20 Tom Tromey <tromey@redhat.com>
15058
15059 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15060 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15061 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15062 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15063 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15064 (struct cmd_list_element) <flags>: Remove.
15065 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15066 doc_allocated>: New fields.
15067 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15068 bitfields.
15069 * maint.c (maintenance_do_deprecate): Update.
15070 * top.c (execute_command): Update.
15071
15072 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15073
15074 * xtensa-linux-nat.c: Include asm/ptrace.h.
15075
15076 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15077
15078 * Makefile.in (SFILES): Add d-support.c.
15079 (COMMON_OBS): Add d-support.o.
15080 * d-lang.h (d_parse_symbol): Add comment, now defined in
15081 d-support.c.
15082 * d-lang.c (parse_call_convention)
15083 (parse_attributes, parse_function_types)
15084 (parse_function_args, parse_type, parse_identifier)
15085 (call_convention_p, d_parse_symbol): Move functions to ...
15086 * d-support.c: ... New file.
15087
15088 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15089
15090 * d-lang.h (d_parse_symbol): Add declaration.
15091 * d-lang.c (extract_identifiers)
15092 (extract_type_info): Remove functions.
15093 (parse_call_convention, parse_attributes)
15094 (parse_function_types, parse_function_args)
15095 (parse_type, parse_identifier, call_convention_p)
15096 (d_parse_symbol): New functions.
15097 (d_demangle): Use d_parse_symbol to demangle D symbols.
15098
15099 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15100
15101 * d-lang.h (struct builtin_d_type): New data type.
15102 (builtin_d_type): Add declaration.
15103 * d-lang.c (d_language_arch_info, build_d_types)
15104 (builtin_d_type): New functions.
15105 (enum d_primitive_types): New data type.
15106 (d_language_defn): Change c_language_arch_info to
15107 d_language_arch_info.
15108 (d_type_data): New static variable.
15109 (_initialize_d_language): Initialize d_type_data.
15110
15111 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15112
15113 * d-lang.h (d_main_name): Add declaration.
15114 * d-lang.c (d_main_name): New function.
15115 * symtab.c (find_main_name): Add call to d_main_name.
15116
15117 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15118
15119 * d-lang.c (d_language_defn): Change macro_expansion_c to
15120 macro_expansion_no.
15121
15122 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15123
15124 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15125
15126 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15127
15128 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15129 gdb_exception" declaration.
15130 * remote.c (getpkt_or_notif_sane): Likewise.
15131
15132 2014-01-17 Doug Evans <dje@google.com>
15133
15134 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15135 function, contents of dirnames_to_char_ptr_vec_append moved here.
15136 (delim_string_to_char_ptr_vec): New function.
15137 (dirnames_to_char_ptr_vec_append): Rewrite.
15138 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15139
15140 2014-01-17 Doug Evans <dje@google.com>
15141
15142 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15143 and moved here ...
15144 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15145 #include "common-utils.h".
15146 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15147 * common/vec.h (VEC_ASSERT_PASS): Update.
15148 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15149 (MACH_CHECK_ERROR): Update.
15150
15151 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15152
15153 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15154 comments.
15155 * gdbarch.h: Regenerate.
15156
15157 2014-01-16 Tom Tromey <tromey@redhat.com>
15158
15159 * value.c (struct value) <regnum>: Move earlier.
15160
15161 2014-01-16 Tom Tromey <tromey@redhat.com>
15162
15163 * remote.c (extended_remote_create_inferior): Rename from
15164 extended_remote_create_inferior_1. Add "ops" argument. Remove
15165 old implementation.
15166
15167 2014-01-16 Pedro Alves <palves@redhat.com>
15168
15169 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15170 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15171 the backchain.
15172
15173 2014-01-16 Doug Evans <dje@google.com>
15174
15175 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15176
15177 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15178
15179 * btrace.h (btrace_thread_flag): New.
15180 (struct btrace_thread_info) <flags>: New.
15181 * record-btrace.c (record_btrace_resume_thread)
15182 (record_btrace_find_thread_to_move, btrace_step_no_history)
15183 (btrace_step_stopped, record_btrace_start_replaying)
15184 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15185 (record_btrace_find_resume_thread): New.
15186 (record_btrace_resume, record_btrace_wait): Extend.
15187 (record_btrace_can_execute_reverse): New.
15188 (record_btrace_open): Fail in non-stop mode.
15189 (record_btrace_set_replay): Split into this, ...
15190 (record_btrace_stop_replaying): ... this, ...
15191 (record_btrace_clear_histories): ... and this.
15192 (init_record_btrace_ops): Init to_can_execute_reverse.
15193 * NEWS: Announce it.
15194
15195 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15196
15197 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15198 (forward_target_decr_pc_after_break)
15199 (target_decr_pc_after_break): New.
15200 * target.c (forward_target_decr_pc_after_break)
15201 (target_decr_pc_after_break): New.
15202 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15203 instead of gdbarch_decr_pc_after_break.
15204 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15205 instead of gdbarch_decr_pc_after_break.
15206 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15207 instead of gdbarch_decr_pc_after_break.
15208 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15209 instead of gdbarch_decr_pc_after_break.
15210 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15211 instead of gdbarch_decr_pc_after_break.
15212 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15213 instead of gdbarch_decr_pc_after_break.
15214
15215 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15216
15217 * btrace.c: Include regcache.h.
15218 (btrace_add_pc): New.
15219 (btrace_enable): Call btrace_add_pc.
15220 (btrace_is_empty): New.
15221 * btrace.h (btrace_is_empty): New.
15222 * record-btrace.c (require_btrace, record_btrace_info): Call
15223 btrace_is_empty.
15224
15225 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15226
15227 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15228 Support delta reads.
15229 (linux_disable_btrace): Change return type.
15230 * common/linux-btrace.h (linux_read_btrace): Change parameters
15231 and return type to allow error reporting. Update users.
15232 (linux_disable_btrace): Change return type. Update users.
15233 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15234 New.
15235 (btrace_error): New.
15236 (btrace_block) <begin>: Comment on BEGIN == 0.
15237 * btrace.c (btrace_compute_ftrace): Start from the end of
15238 the current trace.
15239 (btrace_stitch_trace, btrace_clear_history): New.
15240 (btrace_fetch): Read delta trace, return if replaying.
15241 (btrace_clear): Move clear history code to btrace_clear_history.
15242 (parse_xml_btrace): Throw an error if parsing failed.
15243 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15244 and return type to allow error reporting.
15245 (target_read_btrace): Change parameters and return type to allow
15246 error reporting.
15247 * target.c (target_read_btrace): Update.
15248 * remote.c (remote_read_btrace): Support delta reads. Pass
15249 errors on.
15250 * NEWS: Announce it.
15251
15252 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15253
15254 * record.h (record_btrace_frame_unwind)
15255 (record_btrace_tailcall_frame_unwind): New declarations.
15256 * dwarf2-frame: Include record.h
15257 (dwarf2_frame_cfa): Throw an error for btrace frames.
15258 * record-btrace.c: Include hashtab.h.
15259 (btrace_get_bfun_name): New.
15260 (btrace_call_history): Call btrace_get_bfun_name.
15261 (struct btrace_frame_cache): New.
15262 (bfcache): New.
15263 (bfcache_hash, bfcache_eq, bfcache_new): New.
15264 (btrace_get_frame_function): New.
15265 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15266 (record_btrace_frame_this_id): Compute own id.
15267 (record_btrace_frame_prev_register): Provide PC, throw_error
15268 for all other registers.
15269 (record_btrace_frame_sniffer): Detect btrace frames.
15270 (record_btrace_tailcall_frame_sniffer): New.
15271 (record_btrace_frame_dealloc_cache): New.
15272 (record_btrace_frame_unwind): Add new functions.
15273 (record_btrace_tailcall_frame_unwind): New.
15274 (_initialize_record_btrace): Allocate cache.
15275 * btrace.c (btrace_clear): Call reinit_frame_cache.
15276 * NEWS: Announce it.
15277
15278 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15279
15280 * record-btrace.c (record_btrace_set_replay)
15281 (record_btrace_goto_begin, record_btrace_goto_end)
15282 (record_btrace_goto): New.
15283 (init_record_btrace_ops): Initialize them.
15284 * NEWS: Announce it.
15285
15286 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15287
15288 * record-btrace.c (record_btrace_find_new_threads)
15289 (record_btrace_thread_alive): New.
15290 (init_record_btrace_ops): Initialize to_find_new_threads and
15291 to_thread_alive.
15292
15293 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15294
15295 * record-btrace.c (record_btrace_resume): New.
15296 (record_btrace_wait): New.
15297 (init_record_btrace_ops): Initialize to_wait and to_resume.
15298
15299 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15300
15301 * record-btrace.c (record_btrace_xfer_partial)
15302 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15303 (record_btrace_allow_memory_access): New.
15304 (init_record_btrace_ops): Initialize new methods.
15305 * target.c (raw_memory_xfer_partial): Bail out if target reports
15306 that this memory is not available.
15307
15308 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15309
15310 * target.h (target_ops) <to_insert_breakpoint>
15311 <to_remove_breakpoint>: Add target_ops parameter.
15312 (forward_target_insert_breakpoint): New.
15313 (forward_target_remove_breakpoint): New.
15314 (memory_remove_breakpoint, memory_insert_breakpoint):
15315 Add target_ops parameter.
15316 * target.c (target_insert_breakpoint): Split into this and ...
15317 (forward_target_insert_breakpoint): ... this.
15318 (target_remove_breakpoint): Split into this and ...
15319 (forward_target_remove_breakpoint): ... this.
15320 (debug_to_insert_breakpoint): Add target_ops parameter.
15321 Call forward_target_insert_breakpoint.
15322 (debug_to_remove_breakpoint): Add target_ops parameter.
15323 Call forward_target_remove_breakpoint.
15324 (update_current_target): Do not inherit or default to_insert_breakpoint
15325 and to_remove_breakpoint.
15326 * corelow.c (ignore): Add target_ops parameter.
15327 * exec.c (ignore): Add target_ops parameter.
15328 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15329 Add target_ops parameter.
15330 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15331 Add target_ops parameter.
15332 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15333 Add target_ops parameter.
15334 * record-full.c (record_full_beneath_to_insert_breakpoint)
15335 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15336 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15337 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15338 (record_full_core_remove_breakpoint): Add target_ops parameter.
15339 Update users.
15340 (record_full_beneath_to_insert_breakpoint_ops)
15341 (record_full_beneath_to_remove_breakpoint_ops)
15342 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15343 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15344 tmp_to_remove_breakpoint_ops,
15345 record_full_beneath_to_insert_breakpoint_ops, and
15346 record_full_beneath_to_remove_breakpoint_ops.
15347 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15348 (m32r_remove_breakpoint): Add target_ops parameter.
15349 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15350 Add target_ops parameter.
15351 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15352 Add target_ops parameter.
15353
15354 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15355 Markus Metzger <markus.t.metzger@intel.com>
15356
15357 * record-btrace.c: Include frame-unwind.h.
15358 (record_btrace_frame_unwind_stop_reason)
15359 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15360 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15361 New.
15362 (init_record_btrace_ops): Install it.
15363
15364 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15365
15366 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15367 get_prev_frame_1.
15368
15369 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15370
15371 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15372 earlier.
15373
15374 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15375
15376 * frame-unwind.c: Include target.h.
15377 (frame_unwind_try_unwinder): New function with code from ...
15378 (frame_unwind_find_by_frame): ... here. New variable
15379 unwinder_from_target, call also target_get_unwinder)
15380 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15381 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15382 * target.h (struct target_ops): New fields to_get_unwinder and
15383 to_get_tailcall_unwinder.
15384 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15385
15386 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15387
15388 * record-btrace.c (record_btrace_fetch_registers)
15389 (record_btrace_store_registers)
15390 (record_btrace_to_prepare_to_store): New.
15391 (init_record_btrace_ops): Add the above.
15392
15393 2014-01-16 Tom Tromey <tromey@redhat.com>
15394
15395 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15396 * target.h (struct target_ops) <to_prepare_to_store>: Add
15397 argument.
15398 (target_prepare_to_store): Add argument.
15399 * target.c (debug_to_prepare_to_store): Add argument.
15400 (update_current_target): Update.
15401 * remote.c (remote_prepare_to_store): Add 'self' argument.
15402 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15403 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15404 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15405 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15406 argument.
15407 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15408 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15409 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15410 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15411 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15412
15413 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15414
15415 * btrace.h (replay) <replay>: New.
15416 (btrace_is_replaying): New.
15417 * btrace.c (btrace_clear): Free replay iterator.
15418 (btrace_is_replaying): New.
15419 * record-btrace.c (record_btrace_is_replaying): New.
15420 (record_btrace_info): Print insn number if replaying.
15421 (record_btrace_insn_history): Start at replay position.
15422 (record_btrace_call_history): Start at replay position.
15423 (init_record_btrace_ops): Init to_record_is_replaying.
15424
15425 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15426
15427 * record-btrace.c (record_btrace_insn_history_range): Include
15428 end.
15429 (record_btrace_insn_history_from): Adjust range.
15430 (record_btrace_call_history_range): Include
15431 end.
15432 (record_btrace_call_history_from): Adjust range.
15433 * NEWS: Announce changes.
15434
15435 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15436
15437 * record.h (enum record_print_flag)
15438 <record_print_indent_calls>: New.
15439 * record.c (get_call_history_modifiers): Recognize /c modifier.
15440 (_initialize_record): Document /c modifier.
15441 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15442 Reorder fields. Optionally indent the function name. Update
15443 all users.
15444 * NEWS: Announce changes.
15445
15446 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15447
15448 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15449
15450 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15451
15452 * btrace.c (ftrace_new_function): Start counting at one.
15453 * record-btrace.c (record_btrace_info): Adjust number of calls
15454 and insns.
15455 * NEWS: Announce it.
15456
15457 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15458
15459 * record-btrace.c (btrace_call_history_insn_range): Print
15460 insn range as [begin, end].
15461
15462 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15463
15464 * btrace.h (struct btrace_func_link): New.
15465 (enum btrace_function_flag): New.
15466 (struct btrace_inst): Rename to ...
15467 (struct btrace_insn): ...this. Update all users.
15468 (struct btrace_func) <ibegin, iend>: Remove.
15469 (struct btrace_func_link): New.
15470 (struct btrace_func): Rename to ...
15471 (struct btrace_function): ...this. Update all users.
15472 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15473 (number, level, flags>: New.
15474 (struct btrace_insn_iterator): Rename to ...
15475 (struct btrace_insn_history): ...this.
15476 Update all users.
15477 (struct btrace_insn_iterator, btrace_call_iterator): New.
15478 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15479 (struct btrace_target_info) <begin, end, level>
15480 <insn_history, call_history>: New.
15481 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15482 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15483 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15484 (btrace_call_number, btrace_call_begin, btrace_call_end)
15485 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15486 (btrace_find_function_by_number, btrace_set_insn_history)
15487 (btrace_set_call_history): New.
15488 * btrace.c (btrace_init_insn_iterator)
15489 (btrace_init_func_iterator, compute_itrace): Remove.
15490 (ftrace_print_function_name, ftrace_print_filename)
15491 (ftrace_skip_file): Change
15492 parameter to const.
15493 (ftrace_init_func): Remove.
15494 (ftrace_debug): Use new btrace_function fields.
15495 (ftrace_function_switched): Also consider gaining and
15496 losing symbol information).
15497 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15498 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15499 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15500 New.
15501 (ftrace_new_function): Move. Remove debug print.
15502 (ftrace_update_lines, ftrace_update_insns): New.
15503 (ftrace_update_function): Check for call, ret, and jump.
15504 (compute_ftrace): Renamed to ...
15505 (btrace_compute_ftrace): ...this. Rewritten to compute call
15506 stack.
15507 (btrace_fetch, btrace_clear): Updated.
15508 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15509 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15510 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15511 (btrace_call_number, btrace_call_begin, btrace_call_end)
15512 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15513 (btrace_find_function_by_number, btrace_set_insn_history)
15514 (btrace_set_call_history): New.
15515 * record-btrace.c (require_btrace): Use new btrace thread
15516 info fields.
15517 (record_btrace_info, btrace_insn_history)
15518 (record_btrace_insn_history, record_btrace_insn_history_range):
15519 Use new btrace thread info fields and new iterator.
15520 (btrace_func_history_src_line): Rename to ...
15521 (btrace_call_history_src_line): ...this. Use new btrace
15522 thread info fields.
15523 (btrace_func_history): Rename to ...
15524 (btrace_call_history): ...this. Use new btrace thread info
15525 fields and new iterator.
15526 (record_btrace_call_history, record_btrace_call_history_range):
15527 Use new btrace thread info fields and new iterator.
15528
15529 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15530
15531 * frame.h (frame_id_build_unavailable_stack_special): New.
15532 * frame.c (frame_id_build_unavailable_stack_special): New.
15533
15534 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15535
15536 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15537 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15538 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15539 to gdbarch.
15540 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15541 (i386_insn_is_jump, i386_jmp_p): New.
15542 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15543 insn_is_jump to gdbarch.
15544 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15545 * gdbarch.h: Regenerated.
15546 * gdbarch.c: Regenerated.
15547 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15548 (default_insn_is_jump): New.
15549 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15550 (default_insn_is_jump): New.
15551
15552 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15553
15554 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15555 Change to ...
15556 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15557 (btrace_read_type) <btrace_read_new>: Change to ...
15558 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15559
15560 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15561
15562 * common/linux-btrace.c (linux_read_btrace): Free trace from
15563 previous iteration.
15564
15565 2014-01-15 Doug Evans <dje@google.com>
15566
15567 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15568 uint32_t.
15569
15570 2014-01-15 Tom Tromey <tromey@redhat.com>
15571
15572 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15573 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15574 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15575 (set_objfile_main_name): New function.
15576 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15577 language_of_main>: New fields.
15578 (set_objfile_main_name): Declare.
15579 * symtab.c (find_main_name): Loop over objfiles to find the main
15580 name and language.
15581 (set_main_name): Now static.
15582 (get_main_info): Add comment.
15583 * symtab.h (set_main_name): Don't declare.
15584
15585 2014-01-15 Tom Tromey <tromey@redhat.com>
15586
15587 * symtab.c (main_progspace_key): New global.
15588 (struct main_info): New.
15589 (name_of_main, language_of_main): Remove.
15590 (get_main_info, main_info_cleanup): New function.
15591 (set_main_name, main_name, main_language): Use get_main_info.
15592 (_initialize_symtab): Initialize main_progspace_key.
15593
15594 2014-01-15 Tom Tromey <tromey@redhat.com>
15595
15596 * dbxread.c (process_one_symbol): Update.
15597 * dwarf2read.c (read_partial_die): Update.
15598 * symfile.c (set_initial_language): Call main_language.
15599 * symtab.c (language_of_main): Now static.
15600 (set_main_name): Add 'lang' parameter.
15601 (find_main_name): Update.
15602 (main_language): New function.
15603 (symtab_observer_executable_changed): Update.
15604 * symtab.h (set_main_name): Update.
15605 (language_of_main): Remove.
15606 (main_language): Declare.
15607
15608 2014-01-15 Tom Tromey <tromey@redhat.com>
15609
15610 * symfile.c (init_entry_point_info): Use new "initialized" field.
15611 Update.
15612 * objfiles.h (struct entry_point) <initialized>: New field.
15613 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15614 (struct objfile) <ei>: ...here. Remove.
15615 * objfiles.c (entry_point_address_query): Update.
15616
15617 2014-01-15 Tom Tromey <tromey@redhat.com>
15618
15619 * objfiles.c (entry_point_address_query): Relocate entry point
15620 address.
15621 (objfile_relocate1): Do not relocate entry point address.
15622 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15623 <the_bfd_section_index>: New field.
15624 * symfile.c (init_entry_point_info): Find the entry point's
15625 section.
15626
15627 2014-01-15 Tom Tromey <tromey@redhat.com>
15628
15629 * solib-frv.c (enable_break): Use entry_point_address_query.
15630
15631 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15632
15633 * NEWS: Add note on improved process record-replay on
15634 arm*-linux* targets.
15635
15636 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15637
15638 * arm-tdep.c (enum arm_record_result): New enum.
15639 (arm_record_unsupported_insn): New function.
15640 (arm_record_coproc_data_proc): Removed.
15641 (thumb2_record_ld_st_multiple): New function.
15642 (thumb2_record_ld_st_dual_ex_tbb): New function.
15643 (thumb2_record_data_proc_sreg_mimm): New function.
15644 (thumb2_record_ps_dest_generic): New function.
15645 (thumb2_record_branch_misc_cntrl): New function.
15646 (thumb2_record_str_single_data): New function.
15647 (thumb2_record_ld_mem_hints): New function.
15648 (thumb2_record_ld_word): New function.
15649 (thumb2_record_lmul_lmla_div): New function.
15650 (thumb2_record_decode_insn_handler): New function.
15651 (decode_insn): Add thumb32 instruction handlers.
15652
15653 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15654
15655 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15656 (struct arm_linux_record_tdep): Declare.
15657 (arm_canonicalize_syscall): New function.
15658 (arm_all_but_pc_registers_record): New function.
15659 (arm_linux_syscall_record): New function.
15660 (arm_linux_init_abi): Add syscall recording constructs.
15661 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15662 decoding. (arm_record_coproc_data_proc): Update arm syscall
15663 decoding.
15664 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15665 <arm_syscall_record>: New field.
15666 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15667 gdb_target_obs.
15668
15669 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15670
15671 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15672 register for push instruction recording.
15673
15674 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15675
15676 * arm-tdep.c (thumb_record_misc): Update to correct logical
15677 error while recording ldm, ldmia and pop instructions.
15678
15679 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15680
15681 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15682
15683 2014-01-15 Pedro Alves <palves@redhat.com>
15684
15685 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15686 (go32_resume, go32_fetch_registers, store_register)
15687 (go32_store_registers, go32_prepare_to_store)
15688 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15689 (go32_create_inferior, go32_can_run, go32_terminal_init)
15690 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15691 declarations.
15692
15693 2014-01-15 Tom Tromey <tromey@redhat.com>
15694
15695 * target.h (async_callback_ftype): New typedef.
15696 (struct target_ops) <to_async>: Use it.
15697
15698 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15699
15700 * python/py-value.c (get_field_type): Remove unnecessary curly
15701 braces for single-statement if block.
15702
15703 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15704
15705 * python/py-type.c (convert_field): Add missing empty line
15706 after declarations.
15707
15708 2014-01-14 Doug Evans <dje@google.com>
15709
15710 * symfile.h (expand_symtabs_matching): Renamed from
15711 expand_partial_symbol_names. Update prototype.
15712 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15713 * symfile.c (expand_symtabs_matching): Renamed from
15714 expand_partial_symbol_names. New args file_matcher, kind.
15715 Rename arg fun to symbol_matcher.
15716 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15717 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15718 ada_expand_partial_symbol_name.
15719 (ada_make_symbol_completion_list): Update to call
15720 expand_symtabs_matching.
15721 (ada_add_global_exceptions): Call expand_symtabs_matching.
15722 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15723 call map_symbol_filenames.
15724 * symtab.c (sources_info): Update to call map_symbol_filenames.
15725 (search_symbols): Call expand_symtabs_matching.
15726 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15727 (default_make_symbol_completion_list_break_on): Update to call
15728 expand_symtabs_matching.
15729 (make_source_files_completion_list): Update to call
15730 map_symbol_filenames.
15731
15732 2014-01-14 Doug Evans <dje@google.com>
15733
15734 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15735 (expand_symtabs_symbol_matcher_ftype): New typedef.
15736 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15737 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15738 * symfile.c (expand_partial_symbol_names): Update to use
15739 expand_symtabs_symbol_matcher_ftype.
15740 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15741 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15742 Arg name_matcher renamed to symbol_matcher.
15743 * psymtab.c (recursively_search_psymtabs): Update to use
15744 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15745 sym_matcher.
15746 (expand_symtabs_matching_via_partial): Update to use
15747 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15748 Arg name_matcher renamed to symbol_matcher.
15749
15750 2014-01-14 Doug Evans <dje@google.com>
15751
15752 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15753 (map_partial_symbol_filenames): Ditto.
15754 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15755 (map_partial_symbol_filenames): Ditto.
15756 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15757 (map_partial_symbol_filenames): Ditto.
15758 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15759 (map_partial_symbol_filenames): Ditto.
15760 * symtab.c: Delete #include "psymtab.h".
15761
15762 2014-01-14 Pedro Alves <palves@redhat.com>
15763 Tom Tromey <tromey@redhat.com>
15764
15765 * infrun.c (use_displaced_stepping): Use find_record_target
15766 instead of RECORD_IS_USED.
15767 (adjust_pc_after_break): Use record_full_is_used instead of
15768 RECORD_IS_USED.
15769 * record-btrace.c (record_btrace_open): Call record_preopen
15770 instead of checking RECORD_IS_USED.
15771 * record-full.c (record_full_shortname)
15772 (record_full_core_shortname): New globals.
15773 (record_full_is_used): New function.
15774 (find_full_open): Call record_preopen instead of checking
15775 RECORD_IS_USED.
15776 (init_record_full_ops): Set the target's shortname to
15777 record_full_shortname.
15778 (init_record_full_core_ops): Set the target's shortname to
15779 record_full_core_shortname.
15780 * record-full.h (record_full_is_used): Declare.
15781 * record.c (find_record_target): Make extern.
15782 (record_preopen): New function.
15783 * record.h (RECORD_IS_USED): Delete macro.
15784 (find_record_target, record_preopen): Declare functions.
15785
15786 2014-01-14 Yao Qi <yao@codesourcery.com>
15787
15788 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15789 'len''s type to ULONGEST.
15790 (core_xfer_shared_libraries_aix): Likewise.
15791 * gdbarch.c, gdbarch.h: Regenerated.
15792 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15793 Change type of 'len' to ULONGEST.
15794 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15795 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15796
15797 2014-01-14 Yao Qi <yao@codesourcery.com>
15798
15799 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15800 type of 'len' to ULONGEST.
15801 (linux_xfer_osdata_processgroups): Likewise.
15802 (linux_xfer_osdata_threads): Likewise.
15803 (linux_xfer_osdata_fds): Likewise.
15804 (linux_xfer_osdata_isockets): Likewise.
15805 (linux_xfer_osdata_shm): Likewise.
15806 (linux_xfer_osdata_sem): Likewise.
15807 (linux_xfer_osdata_msg): Likewise.
15808 (linux_common_xfer_osdata): Likewise.
15809 (struct osdata_type) <getter>: Likewise.
15810 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15811 the declaration.
15812
15813 2014-01-14 Yao Qi <yao@codesourcery.com>
15814
15815 * target.h (target_xfer_partial_ftype): Update.
15816 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15817 ULONGEST.
15818 * aix-thread.c (aix_thread_xfer_partial): Change type of
15819 argument 'len' to ULONGEST.
15820 * auxv.c (procfs_xfer_auxv): Likewise.
15821 (ld_so_xfer_auxv): Likewise.
15822 (memory_xfer_auxv): Likewise.
15823 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15824 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15825 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15826 * corelow.c (core_xfer_partial): Likewise.
15827 * ctf.c (ctf_xfer_partial): Likewise.
15828 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15829 '%u'.
15830 (darwin_read_dyld_info): Likewise.
15831 (darwin_xfer_partial): Likewise.
15832 * exec.c (section_table_xfer_memory_partial): Likewise.
15833 (exec_xfer_partial): Likewise.
15834 * exec.h (section_table_xfer_memory_partial): Update
15835 declaration.
15836 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15837 instead of plongest.
15838 (gnu_xfer_partial): Likewise.
15839 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15840 (ia64_hpux_xfer_solib_got): Likewise.
15841 (ia64_hpux_xfer_partial): Likewise.
15842 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15843 * inf-ptrace.c (inf_ptrace_xfer_partial):
15844 * inf-ttrace.c (inf_ttrace_xfer_partial):
15845 * linux-nat.c (linux_xfer_siginfo): Likewise.
15846 (linux_nat_xfer_partial): Likewise.
15847 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15848 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15849 * monitor.c (monitor_xfer_memory): Likewise.
15850 (monitor_xfer_partial): Likewise.
15851 * procfs.c (procfs_xfer_partial): Likewise.
15852 * record-full.c (record_full_xfer_partial): Likewise.
15853 (record_full_core_xfer_partial): Likewise.
15854 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15855 instead of plongest.
15856 (gdbsim_xfer_partial): Likewise.
15857 * remote.c (remote_xfer_partial): Likewise.
15858 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15859 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15860 declaration.
15861 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15862 (rs6000_xfer_shared_libraries): Likewise.
15863 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15864 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15865 (sparc_xfer_partial): Likewise.
15866 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15867 (spu_xfer_partial): Likewise.
15868 * spu-multiarch.c (spu_xfer_partial): Likewise.
15869 * target.c (target_read_live_memory): Likewise.
15870 (memory_xfer_live_readonly_partial): Likewise.
15871 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15872 (target_xfer_partial, default_xfer_partial): Likewise.
15873 (current_xfer_partial): Likewise.
15874 * tracepoint.c (tfile_xfer_partial): Likewise.
15875 * windows-nat.c (windows_xfer_memory): Likewise. Call
15876 pulongest instead of plongest.
15877 (windows_xfer_partial): Likewise.
15878 (windows_xfer_shared_libraries): Likewise.
15879
15880 2014-01-14 Yao Qi <yao@codesourcery.com>
15881
15882 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15883 target_xfer_partial_ftype.
15884
15885 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15886
15887 PR python/15464
15888 PR python/16113
15889 * valops.c (value_struct_elt_bitpos): New function
15890 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15891 object to 'None' if the field name is an empty string ("").
15892 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15893 attribute to look for a field when 'name' is 'None'.
15894 (get_field_type): New function
15895
15896 2014-01-13 Doug Evans <dje@google.com>
15897
15898 PR symtab/16426
15899 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15900 (try_open_dwop_file): Ditto.
15901 * gdb_bfd.c: #include "vec.h".
15902 (bfdp): New typedef.
15903 (struct gdb_bfd_data): New member included_bfds.
15904 (gdb_bfd_unref): Unref all included bfds.
15905 (gdb_bfd_record_inclusion): New function.
15906 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15907
15908 2014-01-13 Tom Tromey <tromey@redhat.com>
15909
15910 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15911
15912 2014-01-13 Tom Tromey <tromey@redhat.com>
15913
15914 * defs.h (use_windows): Remove.
15915 * gdb.c (main): Update.
15916 * main.c (captured_main, gdb_main): Update.
15917 * main.h (struct captured_main_args) <use_windows>: Remove.
15918 * top.c (use_windows): Remove.
15919
15920 2014-01-13 Tom Tromey <tromey@redhat.com>
15921
15922 * defs.h (deprecated_flush_hook): Remove.
15923
15924 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15925
15926 PR threads/16216
15927 * linux-thread-db.c (try_thread_db_load): Add parameter
15928 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15929 (try_thread_db_load_from_pdir_1): Move it there from here.
15930 (try_thread_db_load_from_sdir): Update caller.
15931 (try_thread_db_load_from_dir): Move it there from here.
15932
15933 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15934
15935 * regformats/regdat.sh: Always rewrite the register file.
15936
15937 2014-01-13 Pedro Alves <palves@redhat.com>
15938
15939 * Makefile.in (CHECK_HEADERS): New variable.
15940 (check-headers:): New rule.
15941
15942 2014-01-13 Tom Tromey <tromey@redhat.com>
15943
15944 * cli/cli-setshow.c (do_set_command): Update.
15945 * defs.h (deprecated_set_hook): Remove.
15946 * top.c (deprecated_set_hook): Remove.
15947
15948 2014-01-13 Pedro Alves <palves@redhat.com>
15949
15950 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15951 the tracepoint if the PC is a pseudo-register.
15952
15953 2014-01-13 Tom Tromey <tromey@redhat.com>
15954
15955 * defs.h (XCALLOC): Remove.
15956 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15957 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15958 * dwarf2loc.c (allocate_piece_closure): Likewise.
15959 * elfread.c (elf_symfile_segments): Likewise.
15960 (elf_symfile_segments): Likewise.
15961 * gdbtypes.c (copy_type_recursive): Likewise.
15962 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15963 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15964 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15965 XCALLOC.
15966 * mt-tdep.c (mt_gdbarch_init): Likewise.
15967 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15968 XCALLOC.
15969 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15970 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15971 * registry.c (registry_alloc_data): Likewise.
15972 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15973 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15974 * serial.c (serial_fdopen_ops): Likewise.
15975 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15976 XCALLOC.
15977 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15978 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15979 not XCALLOC.
15980
15981 2014-01-13 Tom Tromey <tromey@redhat.com>
15982
15983 * defs.h (XMALLOC): Remove.
15984 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15985 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15986 * cli-out.c (struct ui_out *): Likewise.
15987 * cli/cli-dump.c (add_dump_command): Likewise.
15988 (add_dump_command): Likewise.
15989 * complaints.c (get_complaints): Likewise.
15990 (find_complaint): Likewise.
15991 * dwarf2-frame.c (execute_cfa_program): Likewise.
15992 * dwarf2read.c (abbrev_table_read_table): Likewise.
15993 * gdbarch.sh: Likewise.
15994 * gdbarch.c: Rebuild.
15995 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15996 * interps.c (interp_new): Likewise.
15997 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15998 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15999 * mi/mi-console.c (mi_console_file_new): Likewise.
16000 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16001 * mi/mi-out.c (mi_out_new): Likewise.
16002 * mi/mi-parse.c (mi_parse): Likewise.
16003 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16004 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16005 * observer.c (xalloc_observer_list_node): Likewise.
16006 * regcache.c (regcache_xmalloc_1): Likewise.
16007 * reggroups.c (reggroup_new): Likewise.
16008 (_initialize_reggroup): Likewise.
16009 * registry.c (register_data_with_cleanup): Likewise.
16010 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16011 * ser-base.c (serial_ttystate): Likewise.
16012 * ser-mingw.c (make_pipe_state): Likewise.
16013 * ser-pipe.c (pipe_open): Likewise.
16014 * serial.c (serial_open): Likewise.
16015 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16016 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16017 (tui_alloc_win_info): Likewise.
16018 (tui_add_content_elements): Likewise.
16019 * tui/tui-file.c (tui_file_new): Likewise.
16020 * tui/tui-out.c (tui_out_new): Likewise.
16021 * ui-file.c (mem_file_new): Likewise.
16022 * ui-out.c (push_level): Likewise.
16023 (make_cleanup_ui_out_end): Likewise.
16024 (append_header_to_list): Likewise.
16025 (ui_out_new): Likewise.
16026 * user-regs.c (user_reg_add_builtin): Likewise.
16027
16028 2014-01-13 Tom Tromey <tromey@redhat.com>
16029
16030 * defs.h (XZALLOC): Remove.
16031 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16032 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16033 (get_ada_tasks_inferior_data): Likewise.
16034 * auto-load.c (get_auto_load_pspace_data): Likewise.
16035 * auxv.c (get_auxv_inferior_data): Likewise.
16036 * bfd-target.c (target_bfd_reopen): Likewise.
16037 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16038 (deprecated_insert_raw_breakpoint): Likewise.
16039 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16040 * corelow.c (core_open): Likewise.
16041 * darwin-nat.c (darwin_check_new_threads): Likewise.
16042 (darwin_attach_pid): Likewise.
16043 * dummy-frame.c (dummy_frame_push): Likewise.
16044 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16045 * dwarf2loc.c (allocate_piece_closure): Likewise.
16046 * elfread.c (elf_symfile_segments): Likewise.
16047 * eval.c (ptrmath_type_p): Likewise.
16048 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16049 * gdbtypes.c (alloc_type_arch): Likewise.
16050 (alloc_type_instance): Likewise.
16051 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16052 * inf-child.c (inf_child_can_use_agent): Likewise.
16053 * inflow.c (get_inflow_inferior_data): Likewise.
16054 * infrun.c (save_infcall_suspend_state): Likewise.
16055 * jit.c (jit_reader_load): Likewise.
16056 (get_jit_objfile_data): Likewise.
16057 (get_jit_program_space_data): Likewise.
16058 (jit_object_open_impl): Likewise.
16059 (jit_symtab_open_impl): Likewise.
16060 (jit_block_open_impl): Likewise.
16061 (jit_frame_sniffer): Likewise.
16062 * linux-fork.c (add_fork): Likewise.
16063 * maint.c (make_command_stats_cleanup): Likewise.
16064 * objfiles.c (get_objfile_pspace_data): Likewise.
16065 * opencl-lang.c (struct lval_closure): Likewise.
16066 * osdata.c (osdata_start_osdata): Likewise.
16067 * progspace.c (new_address_space): Likewise.
16068 (add_program_space): Likewise.
16069 * remote-sim.c (get_sim_inferior_data): Likewise.
16070 * sh-tdep.c (sh_gdbarch_init): Likewise.
16071 * skip.c (Ignore): Likewise.
16072 (skip_delete_command): Likewise.
16073 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16074 (library_list_start_library): Likewise.
16075 (solib_aix_current_sos): Likewise.
16076 * solib-darwin.c (get_darwin_info): Likewise.
16077 (darwin_current_sos): Likewise.
16078 * solib-dsbt.c (get_dsbt_info): Likewise.
16079 * solib-ia64-hpux.c (new_so_list): Likewise.
16080 (ia64_hpux_get_solib_linkage_addr): Likewise.
16081 * solib-spu.c (append_ocl_sos): Likewise.
16082 (spu_current_sos): Likewise.
16083 * solib-svr4.c (get_svr4_info): Likewise.
16084 (svr4_keep_data_in_core): Likewise.
16085 (library_list_start_library): Likewise.
16086 (svr4_default_sos): Likewise.
16087 (svr4_read_so_list): Likewise.
16088 * solib-target.c (library_list_start_library): Likewise.
16089 (solib_target_current_sos): Likewise.
16090 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16091 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16092 * symfile.c (default_symfile_segments): Likewise.
16093 * target-descriptions.c (tdesc_data_init): Likewise.
16094 (tdesc_create_reg): Likewise.
16095 (struct tdesc_type *): Likewise.
16096 (tdesc_create_vector): Likewise.
16097 (tdesc_set_struct_size): Likewise.
16098 (struct tdesc_type *): Likewise.
16099 (tdesc_free_feature): Likewise.
16100 (tdesc_create_feature): Likewise.
16101 * windows-nat.c (windows_add_thread): Likewise.
16102 (windows_make_so): Likewise.
16103 * xml-support.c (gdb_xml_body_text): Likewise.
16104 (gdb_xml_create_parser_and_cleanup): Likewise.
16105 (xml_process_xincludes): Likewise.
16106 * xml-syscall.c (allocate_syscalls_info): Likewise.
16107 (syscall_create_syscall_desc): Likewise.
16108
16109 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16110
16111 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16112 function, with code from i386_stap_parse_special_token.
16113 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16114 (i386_stap_parse_special_token): Move code to the two functions
16115 above; simplify it.
16116
16117 2014-01-09 Pedro Alves <palves@redhat.com>
16118 Hui Zhu <hui@codesourcery.com>
16119
16120 PR gdb/16101
16121 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16122 bp_err_string. Don't mark the location shlib_disabled if the
16123 error thrown wasn't a generic or memory error. Catch errors
16124 thrown while inserting breakpoints in overlayed code. Output
16125 error message of software breakpoints.
16126 * remote.c (remote_insert_breakpoint): If this breakpoint has
16127 target-side commands but this stub doesn't support Z0 packets,
16128 throw NOT_SUPPORTED_ERROR error.
16129 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16130 * target.h (target_insert_breakpoint): Extend comment.
16131 (target_insert_hw_breakpoint): Add comment.
16132
16133 2014-01-08 Pedro Alves <palves@redhat.com>
16134
16135 * remote.c (remote_add_thread): Add threads silently if starting
16136 up.
16137 (remote_notice_new_inferior): If in all-stop, and starting up,
16138 don't call notice_new_inferior.
16139 (get_current_thread): New function, factored out from ...
16140 (add_current_inferior_and_thread): ... this. Adjust.
16141 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16142 found any thread, then select the remote's current thread as GDB's
16143 current thread too.
16144
16145 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16146
16147 * NEWS: Create a new section for the next release branch.
16148 Rename the section of the current branch, now that it has
16149 been cut.
16150
16151 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16152
16153 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16154 * version.in: Bump version to 7.7.50.DATE-cvs.
16155
16156 2014-01-08 Yao Qi <yao@codesourcery.com>
16157
16158 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16159 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16160 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16161
16162 2014-01-08 Yao Qi <yao@codesourcery.com>
16163
16164 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16165 return value of bfd_get_filename to symbol_file_add_from_bfd.
16166
16167 2014-01-08 Pierre Muller <muller@sourceware.org>
16168
16169 Fix PR16201.
16170 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16171 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16172 to prim_record_mininal_symbol_and_info.
16173 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16174 in call to prim_record_minimal_symbol_and_info.
16175 (read_pe_exported_syms): Set index field of section_data.
16176
16177 2014-01-07 Andrew Pinski <apinski@cavium.com>
16178
16179 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16180 * features/aarch64.c: Regenerate.
16181
16182 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16183
16184 * target.c (return_null): Define.
16185 (update_current_target): Use it instead of return_zero for
16186 functions that return a pointer.
16187
16188 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16189
16190 * source.c (add_path): Fix check for duplicated paths in the previously
16191 included paths.
16192
16193 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16194
16195 * ada-lang.c: Remove duplicated include statements.
16196 * alphabsd-nat.c: Ditto.
16197 * amd64-darwin-tdep.c: Ditto.
16198 * amd64fbsd-nat.c: Ditto.
16199 * auto-load.c: Ditto.
16200 * ax-gdb.c: Ditto.
16201 * breakpoint.c: Ditto.
16202 * dbxread.c: Ditto.
16203 * fork-child.c: Ditto.
16204 * gdb_usleep.c: Ditto.
16205 * i386-darwin-tdep.c: Ditto.
16206 * i386fbsd-nat.c: Ditto.
16207 * infcmd.c: Ditto.
16208 * inferior.c: Ditto.
16209 * jv-lang.c: Ditto.
16210 * linux-nat.c: Ditto.
16211 * linux-tdep.c: Ditto.
16212 * m68kbsd-nat.c: Ditto.
16213 * m68klinux-nat.c: Ditto.
16214 * microblaze-tdep.c: Ditto.
16215 * mips-linux-tdep.c: Ditto.
16216 * mn10300-tdep.c: Ditto.
16217 * nto-tdep.c: Ditto.
16218 * opencl-lang.c: Ditto.
16219 * osdata.c: Ditto.
16220 * printcmd.c: Ditto.
16221 * regcache.c: Ditto.
16222 * remote-m32r-sdi.c: Ditto.
16223 * remote.c: Ditto.
16224 * symfile.c: Ditto.
16225 * symtab.c: Ditto.
16226 * tilegx-linux-nat.c: Ditto.
16227 * tilegx-tdep.c: Ditto.
16228 * tracepoint.c: Ditto.
16229 * valops.c: Ditto.
16230 * vaxbsd-nat.c: Ditto.
16231 * windows-nat.c: Ditto.
16232 * xtensa-tdep.c: Ditto.
16233
16234 2014-01-07 Yao Qi <yao@codesourcery.com>
16235
16236 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16237
16238 2014-01-07 Yao Qi <yao@codesourcery.com>
16239 Joel Brobecker <brobecker@adacore.com>
16240
16241 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16242 (pdc_write_regs): Likewise.
16243 (fetch_regs_kernel_thread): Likewise.
16244 (store_regs_kernel_thread): Likewise.
16245
16246 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16247
16248 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16249 tagged type objects to their actual type.
16250
16251 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16252
16253 * ada-valprint.c (print_field_values): Add "language" parameter.
16254 Update calls to print_field_values and print_variant_part.
16255 Pass new parameter "language" in call to val_print instead
16256 of "current_language". Replace call to ada_val_print by call
16257 to val_print.
16258 (print_variant_part): Add "language" parameter.
16259 (ada_val_print_struct_union): Update call to print_field_values.
16260
16261 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16262
16263 * ada-valprint.c (ui_memcpy): Delete.
16264 (ada_print_floating): Update documentation. Add empty line
16265 between between function documentation and implementation.
16266 Delete variable "buffer". Use ui_file_xstrdup in place of
16267 ui_file_put. Minor adjustments following this change.
16268
16269 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16270
16271 * ada-valprint.c (ada_val_print_string): New function,
16272 extracted from ada_val_print_array.
16273 (ada_val_print_array): Replace extracted code by call
16274 to ada_val_print_string followed by a return. Move
16275 "else" branch to the function's top block.
16276
16277 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16278
16279 * ada-valprint.c (ada_val_print_array): Move implementation
16280 down. Rename parameter "offset" and "val" into "offset_aligned"
16281 and "original_value" respectively. Add parameter "offset".
16282
16283 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16284
16285 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16286 re-organizing the code. Change the "???" message printed
16287 when target type is a TYPE_CODE_UNDEF into
16288 "<ref to undefined type>".
16289
16290 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16291
16292 * ada-valprint.c (print_record): Delete, implementation inlined...
16293 (ada_val_print_struct_union): ... here. Remove call to
16294 ada_check_typedef in inlined implementation.
16295
16296 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16297
16298 * ada-valprint.c (ada_val_print_gnat_array): New function,
16299 extracted from ada_val_print_1;
16300 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16301 (ada_val_print_flt, ada_val_print_struct_union)
16302 (ada_val_print_ref): Likewise.
16303 (ada_val_print_1): Delete variables i and elttype.
16304 Replace extracted-out code by call to corresponding
16305 new functions.
16306
16307 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16308
16309 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16310
16311 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16312
16313 * ada-valprint.c (ada_val_print_1): Replace calls to
16314 ada_val_print_1 by calls to val_print.
16315
16316 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16317
16318 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16319 Update calls to self accordingly. Replace calls to c_val_print
16320 by calls to val_print.
16321
16322 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16323
16324 * ada-valprint.c (print_record): Delete declaration.
16325 (adjust_type_signedness, ada_val_print_1): Likewise.
16326 (ada_val_print): Move function implementation down.
16327 (print_variant_part, print_field_values, print_record):
16328 Move function implementation up.
16329
16330 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16331
16332 * python/py-type.c (typy_get_name): New function.
16333 (type_object_getset): Add entry for attribute "name".
16334 * NEWS: Add entry mentioning this new attribute.
16335
16336 2014-01-07 Yao Qi <yao@codesourcery.com>
16337
16338 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16339 statement.
16340
16341 2014-01-07 Yao Qi <yao@codesourcery.com>
16342
16343 * gnu-nat.c (info_port_rights): Add qualifier const to
16344 argument args.
16345
16346 2014-01-07 Yao Qi <yao@codesourcery.com>
16347
16348 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16349
16350 2014-01-07 Yao Qi <yao@codesourcery.com>
16351
16352 * gnu-nat.c (make_inf) Update declaration.
16353 (make_inf): Make it static.
16354 (inf_set_traced): Likewise.
16355 (inf_port_to_thread, inf_task_died_status): Likewise.
16356
16357 2014-01-07 Yao Qi <yao@codesourcery.com>
16358
16359 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16360
16361 2014-01-07 Yao Qi <yao@codesourcery.com>
16362
16363 * gnu-nat.c (_initialize_gnu_nat): Declare.
16364
16365 2014-01-07 Yao Qi <yao@codesourcery.com>
16366
16367 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16368 'enum bfd_endian'.
16369 (struct gdbarch_info) <byte_order>: Change type to
16370 'enum bfd_endian'.
16371 <byte_order_for_code>: Likewise.
16372 * gdbarch.c, gdbarch.h: Regenerated.
16373
16374 2014-01-06 Sasha Smundak <asmundak@google.com>
16375
16376 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16377
16378 2014-01-06 Tom Tromey <tromey@redhat.com>
16379
16380 * doublest.c (convert_doublest_to_floatformat): Use const, not
16381 CONST.
16382 * somread.c (som_symtab_read): Likewise.
16383
16384 2014-01-07 Hui Zhu <hui@codesourcery.com>
16385
16386 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16387 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16388 (gdb_bfd_fopen): Ditto.
16389 (gdb_bfd_openr): Ditto.
16390 (gdb_bfd_openw): Ditto.
16391 (gdb_bfd_openr_iovec): Ditto.
16392 (gdb_bfd_fdopenr): Ditto.
16393 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16394 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16395 with xstrdup.
16396 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16397 with xstrdup.
16398 * symfile-mem.c (symbol_file_add_from_memory): Removed
16399 gdb_bfd_stash_filename.
16400
16401 2014-01-03 Doug Evans <dje@google.com>
16402
16403 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16404 output.
16405
16406 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16407
16408 Update year range in copyright notice of all files.
16409
16410 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16411
16412 * top.c (print_gdb_version): Set copyright year to 2014.
16413
16414 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16415
16416 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16417
16418 For older changes see ChangeLog-2013.
16419 \f
16420 Local Variables:
16421 mode: change-log
16422 left-margin: 8
16423 fill-column: 74
16424 version-control: never
16425 coding: utf-8
16426 End:
This page took 0.385648 seconds and 4 git commands to generate.