cp-namespace.c (cp_lookup_nested_symbol_1): New function.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-22 Doug Evans <xdje42@gmail.com>
2
3 * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
4 (cp_basic_lookup_symbol): Renamed from lookup_symbol_file. Delete
5 arg "search". All callers updated.
6 (cp_lookup_bare_symbol): New function.
7 (cp_search_static_and_baseclasses): New function.
8 (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
9 (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
10 (cp_lookup_nested_symbol): Ditto.
11
12 2014-12-22 Doug Evans <xdje42@gmail.com>
13
14 * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
15
16 2014-12-22 Doug Evans <xdje42@gmail.com>
17
18 * cp-namespace.c: Whitespace cleanup.
19
20 2014-12-20 Keith Seitz <keiths@redhat.com>
21 Mihail-Marian Nistor <mihail.nistor@freescale.com>
22
23 PR gdb/17394
24 * linespec.c (struct collect_minsyms): Add new member `symtab'.
25 (add_minsym): Handle cases where info.symtab is non-NULL.
26 (search_minsyms_for_name): Add new parameter `symtab'.
27 Handle limiting searches to a specific symtab.
28 (add_matching_symtabs_to_info): Search through minimal symbols
29 for language_asm files for which no new symbols are found.
30
31 2014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
32 Nigel Stephens <nigel@mips.com>
33 Chris Dearman <chris@mips.com>
34 Luis Machado <lgustavo@codesourcery.com>
35
36 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
37 (ALLDEPFILES): Add mips-sde-tdep.c.
38 * mips-sde-tdep.c: New file containg SDE specific code.
39 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
40 gdb_target_obs.
41 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
42 * osabi.c (gdb_osabi_names): Add SDE.
43 * NEWS: Mention the change.
44
45 2014-12-18 Simon Marchi <simon.marchi@ericsson.com>
46
47 * elfread.c (elf_symfile_init): Remove stale comment.
48 (elf_symfile_read): Same.
49 * symfile.h (struct sym_fns): Same.
50
51 2014-12-18 Nigel Stephens <nigel@mips.com>
52 Maciej W. Rozycki <macro@codesourcery.com>
53
54 * mips-tdep.c (print_fpu_flags): New function.
55 (mips_print_float_info): Likewise.
56 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
57 print_float_info routine.
58
59 2014-12-18 Yao Qi <yao@codesourcery.com>
60
61 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
62 * gdbarch.c: Re-generated.
63 * gdbarch.h: Likewise.
64 * infcmd.c (default_print_float_info): New function.
65 (print_float_info): Removed. Move code to
66 default_print_float_info.
67 (float_info): Adjust to call gdbarch_print_float_info.
68 * inferior.h (default_print_float_info): Declare it.
69
70 2014-12-18 Yao Qi <yao@codesourcery.com>
71
72 * h8300-tdep.c (h8300_print_float_info): Remove.
73 (h8300_gdbarch_init): Remove the call to
74 set_gdbarch_print_float_info.
75
76 2014-12-18 Doug Evans <xdje42@gmail.com>
77
78 * infcmd.c (jump_command): Minor simplification.
79
80 2014-12-18 Doug Evans <xdje42@gmail.com>
81
82 * language.c (language_lookup_primitive_type): Renamed from
83 language_lookup_primitive_type_by_name. All callers updated.
84
85 2014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
86
87 Fix MinGW compilation.
88 * compile/compile.c (get_compile_file_tempdir): Call error if
89 !HAVE_MKDTEMP.
90 * config.in: Regenerate.
91 * configure: Regenerate.
92 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
93
94 2014-12-17 Doug Evans <xdje42@gmail.com>
95
96 * valops.c (value_maybe_namespace_elt): Remove redundant call to
97 lookup_static_symbol.
98
99 2014-12-17 Doug Evans <xdje42@gmail.com>
100
101 New parameter "debug symbol-lookup".
102 * NEWS: Mention it.
103 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
104 output.
105 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
106 (cp_lookup_nested_symbol): Ditto.
107 * language.c (language_lookup_primitive_type_by_name): Add debug
108 output.
109 * minsyms.c (lookup_minimal_symbol): Add debug output.
110 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
111 * symfile-debug.c (debug_objfile_name): ... from here. All callers
112 updated.
113 * objfiles.h (objfile_debug_name): Declare.
114 * symtab.h (symbol_lookup_debug): Declare.
115 * symtab.c (symbol_lookup_debug): New global.
116 (lookup_language_this): Add debug output.
117 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
118 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
119 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
120 (_initialize_symtab): Add new parameter "debug symbol-lookup".
121
122 2014-12-16 Doug Evans <xdje42@gmail.com>
123
124 * buildsym.c: Add comments describing how the buildsym machinery
125 is used by the various file formats.
126 (really_free_pendings): Enhance function comment.
127 See pending_macros to NULL. Simplify resetting pending_addrmap.
128 Call free_buildsym_compunit.
129 (free_buildsym_compunit): Set current_subfile to NULL.
130 (prepare_for_building): New function.
131 (start_symtab): Call it. Remove call to set_last_source_file.
132 (restart_symtab): New arg "cust". All callers updated.
133 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
134 (reset_symtab_globals): Enhance function comment.
135 Set local_symbols, file_symbols, global_symbols to NULL.
136 Set pending_macros to NULL. Simplify resetting pending_addrmap.
137 Call free_buildysym_compunit.
138 (end_symtab_without_blockvector): Delete. All callers updated.
139 (end_symtab_with_blockvector): Remove redundant call to
140 free_buildsym_compunit.
141 (augment_type_symtab): Remove arg "cust". All callers updated.
142 (buildsym_init): Remove resetting of free_pendings, file_symbols,
143 global_symbols, pending_blocks, pending_macros. Instead make
144 handling consistent with pending_addrmap: Assert value was reset
145 at end of previous symtab building. Initialize context_stack here.
146
147 2014-12-16 Doug Evans <xdje42@gmail.com>
148
149 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
150 cp_lookup_symbol_imports. All callers updated.
151
152 2014-12-16 Doug Evans <xdje42@gmail.com>
153
154 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
155 find_type_baseclass_by_name. All callers updated.
156
157 2014-12-16 Doug Evans <xdje42@gmail.com>
158
159 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
160 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
161 (print_symbol_info): Delete arg symtab. All callers updated.
162 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
163
164 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
165
166 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
167 "Name" columns. Assure that the output is always indented.
168
169 2014-12-16 Joel Brobecker <brobecker@adacore.com>
170
171 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
172 already defined.
173 (linux_enable_event_reporting): Add parameter "attached".
174 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
175 declaration. New function.
176 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
177 (linux_enable_event_reporting): Add new parameter "attached".
178 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
179 nonzero.
180 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
181 Use it. Update function description.
182 (linux_child_post_attach, linux_child_post_startup_inferior):
183 Update call to linux_enable_event_reporting.
184
185 2014-12-16 Yao Qi <yao@codesourcery.com>
186
187 * NEWS: Move some entries to "Changes since GDB 7.8" section.
188
189 2014-12-16 Yao Qi <yao@codesourcery.com>
190
191 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
192 ARG_LAST.
193
194 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
195
196 * inferior.c (find_inferior_ptid): New function.
197 * inferior.h (find_inferior_ptid): New declaration.
198 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
199 * corelow.c (core_pid_to_str): Same.
200 * darwin-nat.c (darwin_resume): Same.
201 * infrun.c (fetch_inferior_event): Same.
202 (get_inferior_stop_soon): Same.
203 (handle_inferior_event): Same.
204 (handle_signal_stop): Same.
205 * linux-nat.c (resume_lwp): Same.
206 (stop_wait_callback): Same.
207 * mi/mi-interp.c (mi_new_thread): Same.
208 (mi_thread_exit): Same.
209 * proc-service.c (ps_pglobal_lookup): Same.
210 * record-btrace.c (record_btrace_step_thread): Same.
211 * remote-sim.c (gdbsim_close_inferior): Same.
212 (gdbsim_resume): Same.
213 (gdbsim_stop): Same.
214 * sol2-tdep.c (sol2_core_pid_to_str): Same.
215 * target.c (memory_xfer_partial_1): Same.
216 (default_thread_address_space): Same.
217 * thread.c (thread_change_ptid): Same.
218 (switch_to_thread): Same.
219 (do_restore_current_thread_cleanup): Same.
220
221 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
222
223 * defs.h (gdb_readline): Constify argument.
224 (gdb_readline_wrapper): Same.
225 (command_line_input): Same.
226 (deprecated_readline_hook): Same.
227 * top.c (deprecated_readline_hook): Same.
228 (gdb_readline): Same.
229 (gdb_readline_wrapper): Same.
230 (command_line_input): Constify argument. Pass prompt_arg to called
231 functions instead of local_prompt, overwriting prompt_arg if necessary.
232 * event-top.h (display_gdb_prompt): Constify argument.
233 * event-top.c (display_gdb_prompt): Same.
234 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
235 if building with Python 3.4 and up.
236
237 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
238
239 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
240 os.getcwdu().
241
242 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
243
244 PR gdb/15684
245 * memattr.c (mem_info_command): Remove "unsigned long" casts.
246
247 2014-12-13 Doug Evans <xdje42@gmail.com>
248
249 * utils.c (make_hex_string): Fix off-by-one error.
250
251 2014-12-13 Joel Brobecker <brobecker@adacore.com>
252
253 * ada-lang.h (ada_ensure_varsize_limit): Declare.
254 * ada-lang.c (check_size): Remove advance declaration.
255 (ada_ensure_varsize_limit): Renames check_size.
256 Replace calls to check_size by calls to ada_ensure_varsize_limit
257 throughout.
258 * ada-valprint.c (ada_val_print_ref): Add call to
259 ada_ensure_varsize_limit. Add comment explaining why.
260
261 2014-12-13 Joel Brobecker <brobecker@adacore.com>
262
263 * utils.c (make_hex_string): Replace use of sprintf by use of
264 xsnprintf.
265
266 2014-12-13 Joel Brobecker <brobecker@adacore.com>
267
268 * compile/compile-object-load.c (link_callbacks_multiple_definition)
269 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
270 newline at end of warning message.
271
272 2014-12-13 Joel Brobecker <brobecker@adacore.com>
273
274 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
275 new "EXTRA-ARGS" parameter.
276 * configure.ac: If large-file support is disabled in GDB,
277 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
278 * configure: Regenerate.
279
280 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
281
282 PR symtab/17642
283 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
284 TYPE if not TYPE_CODE_TYPEDEF.
285
286 2014-12-13 Joel Brobecker <brobecker@adacore.com>
287
288 PR backtrace/16215:
289 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
290 the frame unwinder must either be the dwarf2_frame_unwind
291 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
292 stack_addr is valid before calling get_frame_base. Throw
293 an error if not valid.
294
295 2014-12-12 Doug Evans <xdje42@gmail.com>
296
297 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
298 result != NULL.
299
300 2014-12-12 Doug Evans <xdje42@gmail.com>
301
302 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
303 All callers updated. Rename arg "namespace" to "symbol_name".
304
305 2014-12-12 Doug Evans <xdje42@gmail.com>
306
307 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
308 partial_map_symtabs_matching_filename. All uses updated.
309 (psym_find_pc_sect_compunit_symtab): Renamed from
310 find_pc_sect_compunit_symtab_from_partial. All uses updated.
311 Add function comment.
312 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
313 All uses updated. Add function comment.
314 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
315 Add function comment.
316 (psym_find_last_source_symtab): Renamed from
317 find_last_source_symtab_from_partial. All uses updated.
318 Add function comment.
319 (psym_forget_cached_source_info): Renamed from
320 forget_cached_source_info_partial. All uses updated.
321 Add function comment.
322 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
323 All uses updated. Add function comment.
324 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
325 updated. Add function comment.
326 (psym_expand_symtabs_for_function): Renamed from
327 read_symtabs_for_function. All uses updated. Update function comment.
328 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
329 All uses updated. Add function comment.
330 (psym_expand_symtabs_with_fullname): Renamed from
331 read_psymtabs_with_fullname. All uses updated. Add function comment.
332 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
333 All uses updated. Add function comment.
334 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
335 All uses updated.
336 (psym_expand_symtabs_matching): Renamed from
337 expand_symtabs_matching_via_partial. All uses updated.
338 Add function comment.
339 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
340 Add function comment.
341
342 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
343 Jan Kratochvil <jan.kratochvil@redhat.com>
344 Tom Tromey <tromey@redhat.com>
345
346 * NEWS: Update.
347 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
348 field.
349 * p-lang.c (pascal_language_defn): Update.
350 * opencl-lang.c (opencl_language_defn): Update.
351 * objc-lang.c (objc_language_defn): Update.
352 * m2-lang.c (m2_language_defn): Update.
353 * language.h (struct language_defn) <la_get_compile_instance,
354 la_compute_program>: New fields.
355 * language.c (unknown_language_defn, auto_language_defn)
356 (local_language_defn): Update.
357 * jv-lang.c (java_language_defn): Update.
358 * go-lang.c (go_language_defn): Update.
359 * f-lang.c (f_language_defn): Update.
360 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
361 * dwarf2loc.c (dwarf2_compile_property_to_c)
362 (locexpr_generate_c_location, loclist_generate_c_location): New
363 functions.
364 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
365 * defs.h (enum compile_i_scope_types): New.
366 (enum command_control_type) <compile_control>: New constant.
367 (struct command_line) <control_u>: New field.
368 * d-lang.c (d_language_defn): Update.
369 * compile/compile.c: New file.
370 * compile/compile-c-support.c: New file.
371 * compile/compile-c-symbols.c: New file.
372 * compile/compile-c-types.c: New file.
373 * compile/compile.h: New file.
374 * compile/compile-internal.h: New file.
375 * compile/compile-loc2c.c: New file.
376 * compile/compile-object-load.c: New file.
377 * compile/compile-object-load.h: New file.
378 * compile/compile-object-run.c: New file.
379 * compile/compile-object-run.h: New file.
380 * cli/cli-script.c (multi_line_command_p, print_command_lines)
381 (execute_control_command, process_next_line)
382 (recurse_read_control_structure): Handle compile_control.
383 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
384 * c-lang.c (c_language_defn, cplus_language_defn)
385 (asm_language_defn, minimal_language_defn): Update.
386 * ada-lang.c (ada_language_defn): Update.
387 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
388 New variables.
389 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
390 (HFILES_NO_SRCDIR): Add compile.h.
391 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
392 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
393 (compile.o, compile-c-types.o, compile-c-symbols.o)
394 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
395 (compile-c-support.o): New targets.
396
397 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
398
399 * s390-linux-tdep.c (s390_gcc_target_options): New function.
400 (s390_gdbarch_init): Add it to gdbarch.
401
402 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
403
404 * linux-tdep.c: Include objfiles.h and infcall.h.
405 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
406 function.
407 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
408
409 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
410
411 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
412 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
413 translate_register. Now public.
414 (dwarf2_compile_expr_to_ax): Update.
415
416 2014-12-12 Tom Tromey <tromey@redhat.com>
417 Jan Kratochvil <jan.kratochvil@redhat.com>
418
419 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
420 (dwarf_expr_frame_base): Update caller.
421 (dwarf_expr_frame_base_1): Rename to ...
422 (func_get_frame_base_dwarf_block): ... this and make it public.
423 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
424 callers.
425 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
426
427 2014-12-12 Tom Tromey <tromey@redhat.com>
428
429 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
430 Update.
431 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
432 dwarf2_compile_cfa_to_ax.
433 (dwarf2_compile_cfa_to_ax): Remove.
434 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
435 (dwarf2_compile_cfa_to_ax): Remove.
436
437 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
438
439 * infcall.h (call_function_by_hand_dummy): Declare.
440 * infcall.c (call_function_by_hand): Use
441 call_function_by_hand_dummy.
442 (call_function_by_hand_dummy): Rename from call_function_by_hand.
443 Add arguments. Register a destructor.
444
445 2014-12-12 Tom Tromey <tromey@redhat.com>
446 Jan Kratochvil <jan.kratochvil@redhat.com>
447
448 * osabi.h (osabi_triplet_regexp): Declare.
449 * osabi.c (struct osabi_names): New.
450 (gdb_osabi_names): Change type to struct osabi_names. Update
451 values.
452 (gdbarch_osabi_name): Update.
453 (osabi_triplet_regexp): New function.
454 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
455 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
456 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
457 set_gdbarch_gnu_triplet_regexp.
458 * gdbarch.sh (gnu_triplet_regexp): New method.
459 * gdbarch.c, gdbarch.h: Rebuild.
460 * arch-utils.h (default_gnu_triplet_regexp): Declare.
461 * arch-utils.c (default_gnu_triplet_regexp): New function.
462
463 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
464
465 * arch-utils.c (default_infcall_mmap)
466 (default_gcc_target_options): New functions.
467 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
468 (GDB_MMAP_PROT_EXEC): Define.
469 (default_infcall_mmap, default_gcc_target_options): Declare.
470 * gdbarch.h: Rebuild.
471 * gdbarch.c: Rebuild.
472 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
473
474 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
475
476 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
477 fields.
478 (pop_dummy_frame): Call the destructor if it exists.
479 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
480 functions.
481 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
482 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
483
484 2014-12-12 Tom Tromey <tromey@redhat.com>
485
486 * gdbtypes.h (make_unqualified_type): Declare.
487 * gdbtypes.c (make_unqualified_type): New function.
488
489 2014-12-12 Tom Tromey <tromey@redhat.com>
490
491 * ui-file.h (ui_file_write_for_put): Declare.
492 * ui-file.c (ui_file_write_for_put): New function.
493 * mi/mi-out.c (do_write): Remove.
494 (mi_out_put): Use ui_file_write_for_put.
495
496 2014-12-12 Doug Evans <dje@google.com>
497
498 * NEWS: Mention gdb.lookup_objfile.
499 * python/python.c (GdbMethods): Add lookup_objfile.
500 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
501 * python/py-objfile.c: #include "symtab.h".
502 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
503 (objfpy_lookup_objfile_by_name): New function.
504 (objfpy_lookup_objfile_by_build_id): New function.
505 (gdbpy_lookup_objfile): New function.
506
507 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
508
509 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
510 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
511 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
512 macros.
513 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
514 Likewise.
515
516 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
517
518 * completer.c: Include "target.h", "reggroups.h", and
519 "user-regs.h".
520 (reg_or_group_completer): New.
521 * completer.h (reg_or_group_completer): Declare.
522 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
523 the "info registers" and "info all-registers" commands and the
524 dbx-mode "lr" command.
525
526 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
527
528 * user-regs.c: Include "arch-utils.h", "command.h", and
529 "cli/cli-cmds.h".
530 (maintenance_print_user_registers): New.
531 (_initialize_user_regs): Register new "maint print user-registers"
532 subcommand.
533 * NEWS: Mention new GDB command "maint print user-registers".
534
535 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
536 Maciej W. Rozycki <macro@mips.com>
537 Pedro Alves <pedro@codesourcery.com>
538
539 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
540 remove `predefault' and `invalid_p' initializers.
541 (make_symbol_special): New architecture method.
542 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
543 (objfile, symbol): New declarations.
544 * arch-utils.h (default_elf_make_msymbol_special): Remove
545 prototype.
546 (default_make_symbol_special): New prototype.
547 (default_adjust_dwarf2_addr): Likewise.
548 (default_adjust_dwarf2_line): Likewise.
549 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
550 * arch-utils.c (default_elf_make_msymbol_special): Remove
551 function.
552 (default_make_symbol_special): New function.
553 (default_adjust_dwarf2_addr): Likewise.
554 (default_adjust_dwarf2_line): Likewise.
555 * dwarf2-frame.c (decode_frame_entry_1): Call
556 `gdbarch_adjust_dwarf2_addr'.
557 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
558 * dwarf2read.c (create_addrmap_from_index): Likewise.
559 (process_psymtab_comp_unit_reader): Likewise.
560 (add_partial_symbol): Likewise.
561 (add_partial_subprogram): Likewise.
562 (process_full_comp_unit): Likewise.
563 (read_file_scope): Likewise.
564 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
565 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
566 (read_call_site_scope): Likewise.
567 (dwarf2_ranges_read): Likewise.
568 (dwarf2_record_block_ranges): Likewise.
569 (read_attribute_value): Likewise.
570 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
571 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
572 * elfread.c (elf_symtab_read): Don't call
573 `gdbarch_elf_make_msymbol_special' if unset.
574 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
575 the ISA bit from the PC.
576 * mips-tdep.c (mips_unmake_compact_addr): New function.
577 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
578 address appropriately.
579 (mips_make_symbol_special): New function.
580 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
581 (mips_pc_is_mips16): Likewise.
582 (mips_pc_is_micromips): Likewise.
583 (mips_pc_isa): Likewise.
584 (mips_adjust_dwarf2_addr): New function.
585 (mips_adjust_dwarf2_line): Likewise.
586 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
587 (mips_addr_bits_remove): Likewise.
588 (mips_skip_trampoline_code): Likewise.
589 (mips_write_pc): Don't set the ISA bit.
590 (mips_eabi_push_dummy_call): Likewise.
591 (mips_o64_push_dummy_call): Likewise.
592 (mips_gdbarch_init): Install `mips_make_symbol_special',
593 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
594 handlers.
595 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
596 target-specific symbol address adjustments.
597 * gdbarch.h: Regenerate.
598 * gdbarch.c: Regenerate.
599
600 2014-12-12 Yao Qi <yao@codesourcery.com>
601
602 PR tdep/14261
603 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
604 'skip_pc'. Remove code skipping prologue instructions, use
605 arm_analyze_prologue instead.
606 (arm_analyze_prologue): Stop the scanning for unrecognized
607 instruction when skipping prologue.
608
609 2014-12-12 Yao Qi <yao@codesourcery.com>
610
611 * arm-tdep.c (arm_instruction_restores_sp): New function.
612 (arm_analyze_prologue): Call arm_instruction_restores_sp.
613 (arm_in_function_epilogue_p): Move code to
614 arm_instruction_restores_sp.
615
616 2014-12-11 Doug Evans <xdje42@gmail.com>
617
618 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
619
620 2014-12-11 Doug Evans <xdje42@gmail.com>
621
622 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
623 (symbol *lookup_symbol_via_quick_fns): Ditto.
624 (lookup_symbol_in_objfile): Add forward decl.
625 (lookup_global_symbol_from_objfile): Simplify, call
626 lookup_symbol_in_objfile.
627
628 2014-12-11 Doug Evans <xdje42@gmail.com>
629
630 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
631
632 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
633
634 PR breakpoints/17012
635 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
636 it is marked as persistent.
637
638 2014-12-10 Doug Evans <xdje42@gmail.com>
639
640 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
641 closer to its subroutines.
642
643 2014-12-10 Doug Evans <xdje42@gmail.com>
644
645 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
646
647 2014-12-10 Doug Evans <xdje42@gmail.com>
648
649 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
650 * cp-support.h (cp_lookup_symbol_imports): Delete.
651
652 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
653
654 PR gdb/17627
655 * target.c (cleanup_restore_target_terminal): New function.
656 (make_cleanup_restore_target_terminal): New function.
657 * target.h (make_cleanup_restore_target_terminal): New declaration.
658 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
659
660 2014-12-08 Doug Evans <dje@google.com>
661
662 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
663
664 2014-12-08 Doug Evans <dje@google.com>
665
666 * NEWS: Mention gdb.Objfile.owner.
667 * python/py-objfile.c (objfpy_get_owner): New function.
668 (objfile_getset): Add "owner".
669
670 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
671
672 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
673 (lookup_global_symbol_from_objfile): Call it.
674
675 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
676
677 Remove const from struct objfile *.
678 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
679 symtab.c, symtab.h: In these files.
680
681 2014-12-05 Andreas From <andreas.from@ericsson.com>
682
683 * MAINTAINERS (Write After Approval): Add "Andreas From"
684
685 2014-12-05 Doug Evans <xdje42@gmail.com>
686
687 Revert:
688 PR symtab/17602
689 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
690
691 2014-12-04 Doug Evans <dje@google.com>
692
693 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
694 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
695 (objfile_getset): Add "add_separate_debug_file".
696
697 2014-12-04 Doug Evans <dje@google.com>
698
699 * NEWS: Mention gdb.Objfile.build_id.
700 * build-id.c (build_id_bfd_get): Make non-static.
701 * build-id.h (build_id_bfd_get): Add declaration.
702 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
703 (OBJFPY_REQUIRE_VALID): New macro.
704 (objfpy_get_build_id): New function.
705 (objfile_getset): Add "build_id".
706 * utils.c (make_hex_string): New function.
707 * utils.h (make_hex_string): Add declaration.
708
709 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
710
711 * block.c (block_lookup_symbol_primary): New function.
712 * block.h (block_lookup_symbol_primary): New declaration.
713 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
714 Call block_lookup_symbol_primary.
715
716 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
717
718 * tramp-frame.h (tramp_frame): Add `validate' member.
719 * tramp-frame.c (tramp_frame_start): Validate trampoline before
720 scanning.
721 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
722 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
723 (mips_linux_o32_sigframe): Initialize `validate' member.
724 (mips_linux_o32_rt_sigframe): Likewise.
725 (mips_linux_n32_rt_sigframe): Likewise.
726 (mips_linux_n64_rt_sigframe): Likewise.
727 (micromips_linux_o32_sigframe): New variable.
728 (micromips_linux_o32_rt_sigframe): Likewise.
729 (micromips_linux_n32_rt_sigframe): Likewise.
730 (micromips_linux_n64_rt_sigframe): Likewise.
731 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
732 (mips_linux_n32n64_sigframe_init): Likewise.
733 (mips_linux_sigframe_validate): New function.
734 (micromips_linux_sigframe_validate): Likewise.
735 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
736
737 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
738
739 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
740 * sparc-sol2-tdep.c: Include "regset.h".
741 (sparc32_sol2_supply_core_gregset): New function.
742 (sparc32_sol2_collect_core_gregset): Likewise.
743 (sparc32_sol2_supply_core_fpregset): Likewise.
744 (sparc32_sol2_collect_core_fpregset): Likewise.
745 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
746 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
747 tdep->fpregset/sizeof_fpregset.
748 * sparc64-sol2-tdep.c: Include "regset.h".
749 (sparc64_sol2_supply_core_gregset): New function.
750 (sparc64_sol2_collect_core_gregset): Likewise.
751 (sparc64_sol2_supply_core_fpregset): Likewise.
752 (sparc64_sol2_collect_core_fpregset): Likewise.
753 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
754 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
755 tdep->fpregset/sizeof_fpregset.
756
757 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
758
759 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
760 type.
761
762 2014-12-02 Doug Evans <dje@google.com>
763
764 * symtab.c (symbol_init_cplus_specific): Delete.
765 (symbol_set_demangled_name): Remove special c++ support.
766 (symbol_get_demangled_name, symbol_set_language): Ditto.
767 * symtab.h (struct cplus_specific): Delete.
768 (struct general_symbol_info) <language_specific>: Remove
769 cplus_specific.
770
771 2014-12-02 Doug Evans <dje@google.com>
772
773 PR symtab/17602
774 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
775
776 2014-12-02 Doug Evans <dje@google.com>
777
778 PR symtab/17591
779 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
780 to strip parameters.
781
782 2014-12-02 Doug Evans <dje@google.com>
783
784 * dwarf2read.c (peek_die_abbrev): Improve error message text.
785
786 2014-12-02 Doug Evans <dje@google.com>
787
788 * valops.c (do_search_struct_field): Remove remnant of Chill support.
789 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
790
791 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
792
793 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
794
795 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
796
797 * NEWS: Mention new Python events.
798 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
799 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
800 (py-infevents.o): New rule.
801 * doc/observer.texi (inferior_call_pre, inferior_call_post)
802 (memory_changed, register_changed): New observers.
803 * infcall.c (call_function_by_hand): Notify observer before and
804 after inferior call.
805 * python/py-event.h (inferior_call_kind): New enum.
806 (emit_inferior_call_event): New prototype.
807 (emit_register_changed_event): New prototype.
808 (emit_memory_changed_event): New prototype.
809 * python/py-events.h (events_object): New registries
810 inferior_call, memory_changed and register_changed.
811 * python/py-evts.c (gdbpy_initialize_py_events): Add the
812 inferior_call, memory_changed and register_changed registries.
813 * python/py-infevents.c: New.
814 * python/py-inferior.c (python_on_inferior_call_pre)
815 (python_on_inferior_call_post, python_on_register_change)
816 (python_on_memory_change): New functions.
817 (gdbpy_initialize_inferior): Attach python handler to new
818 observers.
819 * python/py-infthread.c(gdbpy_create_ptid_object): New.
820 (thpy_get_ptid) Use gdbpy_create_ptid_object.
821 * python/python-internal.h:
822 (gdbpy_create_ptid_object)
823 (gdbpy_initialize_inferior_call_pre_event)
824 (gdbpy_initialize_inferior_call_post_event)
825 (gdbpy_initialize_register_changed_event)
826 (gdbpy_initialize_memory_changed_event): New prototypes.
827 * python/python.c (_initialize_python): Initialize new events.
828 * valops.c (value_assign): Notify register_changed observer.
829
830 2014-12-02 Doug Evans <dje@google.com>
831
832 * python/py-infthread.c: Whitespace fixes.
833
834 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
835
836 * features/Makefile (s390-te-linux64-expedite): Replace
837 non-existant r14 and r15 by r14l and r15l, respectively.
838 * regformats/s390-te-linux64.dat: Regenerate.
839
840 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
841
842 * objfiles.c (allocate_objfile): Remove duplicate comment.
843
844 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
845
846 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
847 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
848 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
849 (supply_gregset, supply_fpregset): Remove.
850 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
851 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
852 and sizeof_gregset.
853
854 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
855
856 Add add-auto-load-scripts-directory.
857 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
858 * auto-load.c (add_auto_load_dir): New function.
859 (_initialize_auto_load): Install it.
860
861 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
862
863 Pushed by Joel Brobecker <brobecker@adacore.com>.
864 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
865
866 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
867
868 * eval.c (evaluate_subexp): Check that the thread stack temporaries
869 are not already enabled before enabling them.
870
871 2014-11-29 Yao Qi <yao@codesourcery.com>
872
873 * arm-tdep.c (arm_analyze_prologue): Move local variables
874 'framereg' and 'framesize' to inner block. Move code to
875 inner block too.
876
877 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
878
879 * eval.c: Include gdbthread.h.
880 (evaluate_subexp): Enable thread stack temporaries before
881 evaluating a complete expression and clean them up after the
882 evaluation is complete.
883 * gdbthread.h: Include common/vec.h.
884 (value_ptr): New typedef.
885 (VEC (value_ptr)): New vector type.
886 (value_vec): New typedef.
887 (struct thread_info): Add new fields stack_temporaries_enabled
888 and stack_temporaries.
889 (enable_thread_stack_temporaries)
890 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
891 (get_last_thread_stack_temporary)
892 (value_in_thread_stack_temporaries): Declare.
893 * gdbtypes.c (class_or_union_p): New function.
894 * gdbtypes.h (class_or_union_p): Declare.
895 * infcall.c (call_function_by_hand): Store return values of class
896 type as temporaries on stack.
897 * thread.c (enable_thread_stack_temporaries): New function.
898 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
899 (get_last_thread_stack_temporary): Likewise.
900 (value_in_thread_stack_temporaries): Likewise.
901 * value.c (value_force_lval): New function.
902 * value.h (value_force_lval): Declare.
903
904 2014-11-28 Pierre Muller <muller@sourceware.org>
905
906 Pushed by Joel Brobecker <brobecker@adacore.com>.
907 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
908 registers.
909
910 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
911
912 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
913 * config/sparc/linux.mh (NATDEPFILES): Likewise.
914 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
915 * m68klinux-nat.c (fetch_core_registers): Remove.
916 (linux_elf_core_fns): Remove.
917 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
918
919 2014-11-28 Joel Brobecker <brobecker@adacore.com>
920
921 * utils.c (gdb_realpath): Rework comment about handling on
922 Windows.
923
924 2014-11-28 Yao Qi <yao@codesourcery.com>
925
926 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
927 rename.
928 * gnulib/aclocal.m4: Re-generated.
929 * gnulib/config.in: Re-generated.
930 * gnulib/configure: Re-generated.
931 * gnulib/import/Makefile.am: Re-generated.
932 * gnulib/import/Makefile.in: Re-generated.
933 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
934 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
935 * import/basename-lgpl.c: New file.
936 * import/dirname-lgpl.c: New file.
937 * import/dirname.h: New file.
938 * import/m4/dirname.m4: New file.
939 * import/m4/malloc.m4: New file.
940 * import/m4/rename.m4: New file.
941 * import/m4/rmdir.m4: New file.
942 * import/m4/stdio_h.m4: New file.
943 * import/malloc.c: New file.
944 * import/rename.c: New file.
945 * import/rmdir.c: New file.
946 * import/same-inode.h: New file.
947 * import/stdio.c: New file.
948 * import/stdio.in.h: New file.
949 * import/stripslash.c: New file.
950
951 2014-11-28 Yao Qi <yao@codesourcery.com>
952
953 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
954 and realpath.
955 * config.in: Re-generated.
956 * configure: Re-generated.
957 * utils.c (gdb_realpath): Remove code calling realpath,
958 canonicalize_file_name and pathconf.
959 [!_WIN32]: Call canonicalize_file_name.
960
961 2014-11-28 Yao Qi <yao@codesourcery.com>
962
963 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
964 canonicalize-lgpl.
965 * aclocal.m4: Re-generated.
966 * config.in: Re-generated.
967 * configure: Re-generated.
968 * import/Makefile.am: Re-generated.
969 * import/Makefile.in: Re-generated.
970 * import/m4/gnulib-cache.m4: Re-generated.
971 * import/m4/gnulib-comp.m4: Re-generated.
972 * import/canonicalize-lgpl.c: New file.
973 * import/extra/snippet/_Noreturn.h: New file.
974 * import/m4/canonicalize.m4: New file.
975 * import/m4/double-slash-root.m4: New file.
976 * import/m4/eealloc.m4: New file.
977 * import/m4/malloca.m4: New file.
978 * import/m4/nocrash.m4: New file.
979 * import/m4/stdlib_h.m4: New file.
980 * import/malloca.c: New file.
981 * import/malloca.h: New file.
982 * import/malloca.valgrind: New file.
983
984 2014-11-28 Yao Qi <yao@codesourcery.com>
985
986 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
987 * config.in, configure: Regenerate.
988 * symfile.c (find_separate_debug_file_by_debuglink): Remove
989 code checking HAVE_LSTAT is defined.
990
991 2014-11-28 Yao Qi <yao@codesourcery.com>
992
993 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
994 lstat.
995 * gnulib/aclocal.m4: Re-generated.
996 * gnulib/config.in: Re-generated.
997 * gnulib/configure: Re-generated.
998 * gnulib/import/Makefile.am: Re-generated.
999 * gnulib/import/Makefile.in: Re-generated.
1000 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1001 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1002 * gnulib/import/lstat.c: New file.
1003 * gnulib/import/m4/lstat.m4: New file.
1004
1005 2014-11-28 Yao Qi <yao@codesourcery.com>
1006
1007 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
1008 * config.in, configure: Re-generate.
1009 * inf-child.c (inf_child_fileio_readlink): Don't check
1010 HAVE_READLINK is defined.
1011
1012 2014-11-28 Yao Qi <yao@codesourcery.com>
1013
1014 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1015 * gnulib/aclocal.m4: Re-generated.
1016 * gnulib/config.in: Likewise.
1017 * gnulib/configure: Likewise.
1018 * gnulib/import/Makefile.am: Likewise.
1019 * gnulib/import/Makefile.in: Likewise.
1020 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1021 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1022 * gnulib/import/dosname.h: New file
1023 * gnulib/import/m4/largefile.m4: New file.
1024 * gnulib/import/m4/readlink.m4: New file.
1025 * gnulib/import/m4/stat.m4: New file.
1026 * gnulib/import/readlink.c: New file.
1027 * gnulib/import/stat.c: New file.
1028
1029 2014-11-26 Mark Wielaard <mjw@redhat.com>
1030
1031 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1032 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1033
1034 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1035
1036 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1037 that there can be only one stack adjustment in the prologue
1038 with tests to detect specific disallowed stack adjustments.
1039
1040 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1041
1042 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1043 adjustments.
1044
1045 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1046
1047 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1048 the instruction as well as reading it from memory.
1049 (nios2_match_add): New.
1050 (nios2_match_sub): New.
1051 (nios2_match_addi): New.
1052 (nios2_match_orhi): New.
1053 (nios2_match_stw): New.
1054 (nios2_match_ldw): New.
1055 (nios2_match_rdctl): New.
1056 (enum branch_condition): New.
1057 (nios2_match_branch): New.
1058 (nios2_match_jmpi): New.
1059 (nios2_match_calli): New.
1060 (nios2_match_jmpr): New.
1061 (nios2_match_callr): New.
1062 (nios2_match_break): New.
1063 (nios2_match_trap): New.
1064 (nios2_in_epilogue_p): Rewrite to use new functions.
1065 (nios2_analyze_prologue): Likewise.
1066 (nios2_skip_prologue): Delete unused local limit_pc.
1067 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1068 (nios2_get_next_pc): Rewrite to use new functions.
1069
1070 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1071
1072 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1073
1074 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1075
1076 Pushed by Joel Brobecker <brobecker@adacore.com>
1077 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1078 elements pi_len by the size of the elements before calling
1079 vm_deallocate.
1080 (inf_validate_task_sc): Likewise, and properly deallocate the
1081 noise array.
1082
1083 2014-11-23 Doug Evans <xdje42@gmail.com>
1084
1085 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1086 number and name if present. All callers updated.
1087 (dump_fn_fieldlists): Fix indentation of args.
1088
1089 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1090
1091 * MAINTAINERS (Write After Approval): Add myself.
1092
1093 2014-11-23 Joel Brobecker <brobecker@adacore.com>
1094
1095 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1096 to a bp_call_dummy breakpoint type.
1097
1098 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1099
1100 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1101 registering the signal handler.
1102
1103 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1104
1105 * event-top.h (call_stdin_event_handler_again_p): Declare.
1106 * event-top.c (call_stdin_event_handler_again_p): Define.
1107 (stdin_event_handler): Use it.
1108 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1109 handler again if there is pending input following a
1110 start sequence.
1111
1112 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1113
1114 Pushed by Joel Brobecker <brobecker@adacore.com>
1115 * linux-fork.c (checkpoint_command): Print index of new
1116 checkpoint in response message.
1117
1118 2014-11-23 Yao Qi <yao@codesourcery.com>
1119
1120 * valprint.c (read_string): Move local variables 'found_nul',
1121 'chunksize' and 'limit' to inner scope. Update comments.
1122
1123 2014-11-22 Doug Evans <xdje42@gmail.com>
1124
1125 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1126 function comment.
1127 (search_symbols): Fix comments and whitespace.
1128
1129 2014-11-22 Doug Evans <xdje42@gmail.com>
1130
1131 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1132
1133 2014-11-21 Doug Evans <dje@google.com>
1134
1135 * psymtab.c (psymtab_search_name): Fix whitespace.
1136
1137 2014-11-21 Yao Qi <yao@codesourcery.com>
1138
1139 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1140 errno.
1141 * gnulib/import/Makefile.am: Re-generated.
1142 * gnulib/import/Makefile.in: Likewise.
1143 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1144
1145 2014-11-21 Yao Qi <yao@codesourcery.com>
1146
1147 * gdb_wchar.h: Include wchar.h and wctype.h.
1148 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1149 include wchar.h and wctype.h.
1150 Don't check HAVE_WCHAR_H.
1151
1152 2014-11-21 Yao Qi <yao@codesourcery.com>
1153
1154 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1155 and wctype-h.
1156 * gnulib/import/Makefile.am: Re-generated.
1157 * gnulib/import/Makefile.in: Likewise.
1158 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1159
1160 2014-11-21 Yao Qi <yao@codesourcery.com>
1161
1162 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1163 memchr.
1164 * gnulib/import/Makefile.am: Re-generated.
1165 * gnulib/import/Makefile.in: Likewise.
1166 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1167
1168 2014-11-21 Yao Qi <yao@codesourcery.com>
1169
1170 * common/common-defs.h: Include alloca.h
1171 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1172 * configure: Re-generated.
1173 * defs.h: Remove code handling alloca.
1174 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1175 or not.
1176
1177 2014-11-21 Yao Qi <yao@codesourcery.com>
1178
1179 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1180 alloca.
1181 * gnulib/import/Makefile.am: Re-generated.
1182 * gnulib/import/Makefile.in: Likewise..
1183 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1184
1185 2014-11-21 Yao Qi <yao@codesourcery.com>
1186
1187 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1188 alphabetical order.
1189
1190 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1191
1192 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1193 flag_unsigned if HIGH_BOUND is constant and negative.
1194
1195 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1196
1197 PR breakpoints/10737
1198 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1199 modifier from "struct gdbarch" when compiling without Expat (XML)
1200 support.
1201 (get_syscall_by_number): Likewise.
1202 (get_syscall_by_name): Likewise.
1203 (get_syscall_names): Likewise.
1204
1205 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1206
1207 PR breakpoints/10737
1208 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1209 set_xml_syscall_file_name to provide gdbarch.
1210 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1211 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1212 * breakpoint.c (print_it_catch_syscall): Adjust call to
1213 get_syscall_by_number to provide gdbarch.
1214 (print_one_catch_syscall): Likewise.
1215 (print_mention_catch_syscall): Likewise.
1216 (print_recreate_catch_syscall): Likewise.
1217 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1218 and get_syscall_by_name to provide gdbarch.
1219 (catch_syscall_completer): Adjust call to get_syscall_names to
1220 provide gdbarch.
1221 * gdbarch.c: Regenerate.
1222 * gdbarch.h: Likewise.
1223 * gdbarch.sh: Forward declare "struct syscalls_info".
1224 (xml_syscall_file): New variable.
1225 (syscalls_info): Likewise.
1226 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1227 set_xml_syscall_file_name to provide gdbarch.
1228 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1229 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1230 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1231 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1232 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1233 * xml-syscall.c: Include gdbarch.h.
1234 (set_xml_syscall_file_name): Accept gdbarch parameter.
1235 (get_syscall_by_number): Likewise.
1236 (get_syscall_by_name): Likewise.
1237 (get_syscall_names): Likewise.
1238 (my_gdb_datadir): Delete global variable.
1239 (struct syscalls_info) <my_gdb_datadir>: New variable.
1240 (struct syscalls_info) <sysinfo>: Rename variable to
1241 "syscalls_info".
1242 (sysinfo): Delete global variable.
1243 (have_initialized_sysinfo): Likewise.
1244 (xml_syscall_file): Likewise.
1245 (sysinfo_free_syscalls_desc): Rename to...
1246 (syscalls_info_free_syscalls_desc): ... this.
1247 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1248 code to the new layout of "struct syscalls_info".
1249 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1250 "syscalls_info".
1251 (syscall_create_syscall_desc): Likewise.
1252 (syscall_start_syscall): Likewise.
1253 (syscall_parse_xml): Likewise.
1254 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1255 (init_sysinfo): Rename to...
1256 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1257 Adjust function to deal with gdbarch.
1258 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1259 gdbarch as a parameter. Adjust code.
1260 (xml_get_syscall_name): Likewise.
1261 (xml_list_of_syscalls): Likewise.
1262 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1263 (get_syscall_by_number): Likewise.
1264 (get_syscall_by_name): Likewise.
1265 (get_syscall_names): Likewise.
1266 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1267 (get_syscall_by_number): Likewise.
1268 (get_syscall_by_name): Likewise.
1269 (get_syscall_names): Likewise.
1270
1271 2014-11-20 Doug Evans <xdje42@gmail.com>
1272
1273 Split struct symtab into two: struct symtab and compunit_symtab.
1274 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1275 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1276 to "struct compunit_symtab *". All callers updated.
1277 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1278 "struct symtab *" argument to "struct compunit_symtab *".
1279 All callers updated.
1280 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1281 result to "struct compunit_symtab *". All callers updated.
1282 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1283 Change result to "struct compunit_symtab *". All callers updated.
1284 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1285 hange type to "struct compunit_symtab *". All uses updated.
1286 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1287 Change type to "struct compunit_symtab *". All uses updated.
1288 * buildsym.c (struct buildsym_compunit): New struct.
1289 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1290 (buildsym_compunit): New static global.
1291 (finish_block_internal): Update to fetch objfile from
1292 buildsym_compunit.
1293 (make_blockvector): Delete objfile argument.
1294 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1295 debugformat, producer.
1296 (start_buildsym_compunit): New function.
1297 (free_buildsym_compunit): Renamed from free_subfiles_list.
1298 All callers updated.
1299 (patch_subfile_names): Rewrite to use buildsym_compunit.
1300 (get_compunit_symtab): New function.
1301 (get_macro_table): Delete argument comp_dir. All callers updated.
1302 (start_symtab): Change result to "struct compunit_symtab *".
1303 All callers updated. Create the subfile of the main source file.
1304 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1305 (reset_symtab_globals): Update.
1306 (end_symtab_get_static_block): Update to use buildsym_compunit.
1307 (end_symtab_without_blockvector): Rewrite.
1308 (end_symtab_with_blockvector): Change result to
1309 "struct compunit_symtab *". All callers updated.
1310 Update to use buildsym_compunit. Don't set symtab->dirname,
1311 instead set it in the compunit.
1312 Explicitly make sure main symtab is first in its list.
1313 Set debugformat, producer, blockvector, block_line_section, and
1314 macrotable in the compunit.
1315 (end_symtab_from_static_block): Change result to
1316 "struct compunit_symtab *". All callers updated.
1317 (end_symtab, end_expandable_symtab): Ditto.
1318 (set_missing_symtab): Change symtab argument to
1319 "struct compunit_symtab *". All callers updated.
1320 (augment_type_symtab): Ditto.
1321 (record_debugformat): Update to use buildsym_compunit.
1322 (record_producer): Update to use buildsym_compunit.
1323 * buildsym.h (struct subfile) <dirname>: Delete.
1324 <producer, debugformat>: Delete.
1325 <buildsym_compunit>: New member.
1326 (get_compunit_symtab): Declare.
1327 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1328 from primary_symtab. Change type to "struct compunit_symtab *".
1329 All uses updated.
1330 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1331 All callers updated.
1332 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1333 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1334 symtab. Change type to "struct compunit_symtab *". All uses updated.
1335 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1336 All callers updated.
1337 (dw2_find_last_source_symtab): Ditto.
1338 (dw2_lookup_symbol): Ditto.
1339 (recursively_find_pc_sect_compunit_symtab): Renamed from
1340 recursively_find_pc_sect_symtab. Change result to
1341 "struct compunit_symtab *". All callers updated.
1342 (dw2_find_pc_sect_compunit_symtab): Renamed from
1343 dw2_find_pc_sect_symtab. Change result to
1344 "struct compunit_symtab *". All callers updated.
1345 (get_compunit_symtab): Renamed from get_symtab. Change result to
1346 "struct compunit_symtab *". All callers updated.
1347 (recursively_compute_inclusions): Change type of immediate_parent
1348 argument to "struct compunit_symtab *". All callers updated.
1349 (compute_compunit_symtab_includes): Renamed from
1350 compute_symtab_includes. All callers updated. Rewrite to compute
1351 includes of compunit_symtabs and not symtabs.
1352 (process_full_comp_unit): Update to work with struct compunit_symtab.
1353 (process_full_type_unit): Ditto.
1354 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1355 (dwarf_decode_lines): Remove special case handling of main subfile.
1356 (macro_start_file): Delete argument comp_dir. All callers updated.
1357 (dwarf_decode_macro_bytes): Ditto.
1358 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1359 use struct compunit_symtab.
1360 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1361 * jit.c (finalize_symtab): Build compunit_symtab.
1362 * jv-lang.c (get_java_class_symtab): Change result to
1363 "struct compunit_symtab *". All callers updated.
1364 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1365 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1366 comp_dir. Change type to "struct compunit_symtab *".
1367 All uses updated.
1368 (new_macro_table): Change comp_dir argument to cust,
1369 "struct compunit_symtab *". All callers updated.
1370 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1371 nr_primary_symtabs. All uses updated.
1372 (count_symtabs_and_blocks): Update to handle compunits.
1373 (report_command_stats): Update output, "primary symtabs" renamed to
1374 "compunits".
1375 * mdebugread.c (new_symtab): Change result to
1376 "struct compunit_symtab *". All callers updated.
1377 (parse_procedure): Change type of search_symtab argument to
1378 "struct compunit_symtab *". All callers updated.
1379 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1380 separate loop.
1381 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1382 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1383 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1384 All uses updated.
1385 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1386 All uses updated.
1387 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1388 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1389 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1390 symtab. Change type to "struct compunit_symtab *". All uses updated.
1391 * psymtab.c (psymtab_to_symtab): Change result type to
1392 "struct compunit_symtab *". All callers updated.
1393 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1394 find_pc_sect_symtab_from_partial. Change result type to
1395 "struct compunit_symtab *". All callers updated.
1396 (lookup_symbol_aux_psymtabs): Change result type to
1397 "struct compunit_symtab *". All callers updated.
1398 (find_last_source_symtab_from_partial): Ditto.
1399 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1400 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1401 and macro_table from compunit.
1402 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1403 type to "struct compunit_symtab *". All callers updated.
1404 (debug_qf_lookup_symbol): Ditto.
1405 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1406 debug_qf_find_pc_sect_symtab, change result type to
1407 "struct compunit_symtab *". All callers updated.
1408 * symfile.c (allocate_symtab): Delete objfile argument.
1409 New argument cust.
1410 (allocate_compunit_symtab): New function.
1411 (add_compunit_symtab_to_objfile): New function.
1412 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1413 Change result type to "struct compunit_symtab *". All uses updated.
1414 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1415 Change result type to "struct compunit_symtab *". All uses updated.
1416 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1417 separate loop.
1418 (dump_symtab_1): Update test for primary source symtab.
1419 (maintenance_info_symtabs): Update to handle compunit symtabs.
1420 (maintenance_check_symtabs): Ditto.
1421 * symtab.c (set_primary_symtab): Delete.
1422 (compunit_primary_filetab): New function.
1423 (compunit_language): New function.
1424 (iterate_over_some_symtabs): Change type of arguments "first",
1425 "after_last" to "struct compunit_symtab *". All callers updated.
1426 Update to loop over symtabs in each compunit.
1427 (error_in_psymtab_expansion): Rename symtab argument to cust,
1428 and change type to "struct compunit_symtab *". All callers updated.
1429 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1430 Change result type to "struct compunit_symtab *". All callers updated.
1431 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1432 Change result type to "struct compunit_symtab *". All callers updated.
1433 (find_pc_sect_line): Only loop over symtabs within selected compunit
1434 instead of all symtabs in the objfile.
1435 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1436 <compunit_symtab> New member.
1437 <block_line_section>: Moved to compunit_symtab.
1438 <locations_valid>: Ditto.
1439 <epilogue_unwind_valid>: Ditto.
1440 <macro_table>: Ditto.
1441 <dirname>: Ditto.
1442 <debugformat>: Ditto.
1443 <producer>: Ditto.
1444 <objfile>: Ditto.
1445 <call_site_htab>: Ditto.
1446 <includes>: Ditto.
1447 <user>: Ditto.
1448 <primary>: Delete
1449 (SYMTAB_COMPUNIT): New macro.
1450 (SYMTAB_BLOCKVECTOR): Update definition.
1451 (SYMTAB_OBJFILE): Update definition.
1452 (SYMTAB_DIRNAME): Update definition.
1453 (struct compunit_symtab): New type. Common members among all source
1454 symtabs within a compilation unit moved here. All uses updated.
1455 (COMPUNIT_OBJFILE): New macro.
1456 (COMPUNIT_FILETABS): New macro.
1457 (COMPUNIT_DEBUGFORMAT): New macro.
1458 (COMPUNIT_PRODUCER): New macro.
1459 (COMPUNIT_DIRNAME): New macro.
1460 (COMPUNIT_BLOCKVECTOR): New macro.
1461 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1462 (COMPUNIT_LOCATIONS_VALID): New macro.
1463 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1464 (COMPUNIT_CALL_SITE_HTAB): New macro.
1465 (COMPUNIT_MACRO_TABLE): New macro.
1466 (ALL_COMPUNIT_FILETABS): New macro.
1467 (compunit_symtab_ptr): New typedef.
1468 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1469
1470 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1471
1472 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1473 if the TYPE_CODE of range_type's base type does not match
1474 the TYPE_CODE of encoding_type's base type.
1475
1476 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1477
1478 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1479 it starts with '<'.
1480
1481 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1482
1483 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1484 (ada_is_redundant_index_type_desc): New function.
1485 (to_fixed_array_type): Ignore parallel XA type if redundant.
1486
1487 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1488
1489 * ada-lang.c (constrained_packed_array_type): Set the length
1490 of the return array as if both bounds where zero if that
1491 returned array's index type is dynamic.
1492
1493 2014-11-19 Yao Qi <yao@codesourcery.com>
1494
1495 * config/i386/go32.mh (CC): Remove.
1496
1497 2014-11-18 Doug Evans <xdje42@gmail.com>
1498
1499 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1500 updated.
1501
1502 2014-11-18 Doug Evans <xdje42@gmail.com>
1503
1504 * buildsym.c (buildsym_objfile): New static global.
1505 (buildsym_comp_dir): New static global.
1506 (finish_block_internal): Delete arg objfile. All callers updated.
1507 (finish_block): Delete arg objfile. All callers updated.
1508 (start_subfile): Delete arg dirname. All callers updated.
1509 (patch_subfile_names): Update buildsym_comp_dir.
1510 (get_macro_table): Delete arg objfile. All callers updated.
1511 (start_symtab): New arg objfile. All callers updated.
1512 Rename arg dirname to comp_dir.
1513 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1514 (end_symtab_get_static_block): Delete arg objfile. All callers
1515 updated.
1516 (end_symtab_without_blockvector): Ditto.
1517 (end_symtab_with_blockvector): Ditto.
1518 (end_symtab_from_static_block): Ditto.
1519 (end_symtab): Ditto.
1520 (end_expandable_symtab): Ditto.
1521 (augment_type_symtab): Ditto.
1522 * coffread.c (coff_start_symtab): New arg objfile. All callers
1523 updated.
1524
1525 2014-11-18 Doug Evans <xdje42@gmail.com>
1526
1527 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1528 updated.
1529
1530 2014-11-18 Doug Evans <xdje42@gmail.com>
1531
1532 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1533 symtab.dirname updated to use it.
1534
1535 2014-11-18 Doug Evans <xdje42@gmail.com>
1536
1537 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1538 symtab.objfile updated to use it.
1539
1540 2014-11-18 Doug Evans <xdje42@gmail.com>
1541
1542 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1543
1544 2014-11-18 Doug Evans <xdje42@gmail.com>
1545
1546 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1547 SYMBOL_OBJFILE.
1548 * findvar.c (default_read_var_value): Ditto.
1549 * jv-lang.c (add_class_symtab_symbol): Ditto.
1550 * parse.c (operator_check_standard): Ditto.
1551 * printcmd.c (address_info): Ditto.
1552 * symtab.c (fixup_symbol_section): Ditto.
1553 (skip_prologue_sal): Ditto.
1554 * tracepoint.c (scope_info): Ditto.
1555 * valops.c (find_function_in_inferior): Ditto.
1556 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1557 * python/py-symbol.c (set_symbol): Ditto.
1558
1559 2014-11-18 Doug Evans <xdje42@gmail.com>
1560
1561 * buildsym.c (main_subfile): New static global.
1562 (free_subfiles_list): New function.
1563 (start_symtab): Set main_subfile.
1564 (restart_symtab): Replace init of subfiles, current_subfile with
1565 call to free_subfiles_list.
1566 (watch_main_source_file_lossage): Use main_subfile.
1567 (reset_symtab_globals): Replace init of current_subfile with call
1568 to free_subfiles_list.
1569 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1570 functions, split out from ...
1571 (end_symtab_from_static_block): ... here. Rewrite to call them.
1572
1573 2014-11-18 Doug Evans <xdje42@gmail.com>
1574
1575 The result of symtab expansion is always a primary symtab.
1576 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1577 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1578 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1579 (psymtab_to_symtab): Add comment and assert.
1580 (map_matching_symbols_psymtab): Remove unnecessary test for
1581 non-primary symtab.
1582
1583 2014-11-15 Doug Evans <xdje42@gmail.com>
1584
1585 PR symtab/17559
1586 * symtab.c (find_pc_line_symtab): New function.
1587 * symtab.h (find_pc_line_symtab): Declare.
1588 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1589 find_pc_symtab.
1590 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1591 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1592 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1593 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1594 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1595 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1596
1597 2014-11-15 Doug Evans <xdje42@gmail.com>
1598
1599 * symtab.c (expand_symtab_containing_pc): Renamed from
1600 find_pc_sect_symtab_via_partial. All callers updated.
1601
1602 2014-11-15 Yao Qi <yao@codesourcery.com>
1603
1604 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1605
1606 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1607
1608 * common/common-defs.h: Move <stdarg.h> #include ahead of
1609 <stdio.h> #include.
1610
1611 2014-11-14 Pedro Alves <palves@redhat.com>
1612
1613 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1614 [!PHONY_ICONV] (gdb_iconv): New function.
1615 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1616
1617 2014-11-13 Doug Evans <dje@google.com>
1618
1619 PR symtab/17591
1620 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1621 "(anonymous namespace)".
1622
1623 2014-11-13 Doug Evans <dje@google.com>
1624
1625 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1626 infinite loop.
1627
1628 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1629
1630 * NEWS (maint set target-async): Fix typo.
1631
1632 2014-11-12 Pedro Alves <palves@redhat.com>
1633
1634 * infrun.c (enum infwait_states, infwait_state): Delete.
1635
1636 2014-11-12 Pedro Alves <palves@redhat.com>
1637
1638 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1639 Rewrite stepping over a permanent breakpoint.
1640 (thread_still_needs_step_over, proceed): Don't set
1641 stepping_over_breakpoint for permanent breakpoints.
1642 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1643 single-step breakpoints out of the target on hardware step
1644 targets.
1645 (process_event_stop_test): If stepping a permanent breakpoint
1646 doesn't hit the step-resume breakpoint, delete the step-resume
1647 breakpoint.
1648 (switch_back_to_stepped_thread): Also check if the stepped thread
1649 has advanced already on hardware step targets.
1650 (currently_stepping): Return true if the thread stepped a
1651 breakpoint.
1652
1653 2014-11-12 Pedro Alves <palves@redhat.com>
1654
1655 Mark locations as permanent, not the whole breakpoint.
1656 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1657 (mark_breakpoints_out): Don't mark permanent breakpoints as
1658 uninserted.
1659 (breakpoint_init_inferior): Use mark_breakpoints_out.
1660 (breakpoint_here_p): Adjust.
1661 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1662 of permanent breakpoints.
1663 (make_breakpoint_permanent): Mark each location as permanent,
1664 instead of marking the breakpoint.
1665 (add_location_to_breakpoint): If the location is permanent, mark
1666 it as such, and as inserted.
1667 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1668 (bp_location_compare, update_global_location_list): Adjust.
1669 (update_breakpoint_locations): Don't make the breakpoint permanent
1670 here.
1671 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1672 breakpoints.
1673 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1674 (struct bp_location) <permanent>: New field.
1675 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1676 reference to bp_permanent.
1677
1678 2014-11-12 Pedro Alves <palves@redhat.com>
1679
1680 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1681 * arch-utils.h (default_skip_permanent_breakpoint): New
1682 declaration.
1683 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1684 Install default_skip_permanent_breakpoint as default method.
1685 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1686 (i386_gdbarch_init): Don't install it.
1687 * infrun.c (resume): Assume there's always a
1688 gdbarch_skip_permanent_breakpoint implementation.
1689 * gdbarch.h, gdbarch.c: Regenerate.
1690
1691 2014-11-11 Daniel Colascione <dancol@dancol.org>
1692
1693 Warn about cross-PID-namespace debugging.
1694 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1695 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1696 * linux-thread-db.c (check_pid_namespace_match): New function.
1697 (thread_db_inferior_created): Call it.
1698
1699 2014-11-10 Doug Evans <xdje42@gmail.com>
1700
1701 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1702 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1703
1704 2014-11-10 Doug Evans <xdje42@gmail.com>
1705
1706 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1707
1708 2014-11-10 Doug Evans <xdje42@gmail.com>
1709
1710 PR symtab/17564
1711 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1712 (lookup_static_symbol): Move definition to new location and rewrite.
1713 (lookup_symbol_in_objfile): New function.
1714 (lookup_symbol_global_iterator_cb): Call it.
1715
1716 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1717
1718 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1719
1720 2014-11-07 Pedro Alves <palves@redhat.com>
1721
1722 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1723 check if we did a "nexti" inside a prologue.
1724 * symtab.c (in_prologue): Delete function.
1725 * symtab.h (in_prologue): Delete declaration.
1726
1727 2014-11-06 Doug Evans <xdje42@gmail.com>
1728
1729 * symtab.h (lookup_global_symbol): Improve function comment.
1730
1731 2014-11-06 Doug Evans <xdje42@gmail.com>
1732
1733 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1734 All callers updated.
1735 * symtab.h (lookup_global_symbol): Update decl.
1736 (lookup_static_symbol): Move decl to better location.
1737
1738 2014-11-06 Doug Evans <xdje42@gmail.com>
1739
1740 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1741
1742 2014-11-06 Doug Evans <xdje42@gmail.com>
1743
1744 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1745 All callers updated.
1746 (lookup_symbol_in_all_objfiles): Renamed from
1747 lookup_symbol_aux_symtabs. All callers updated.
1748 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1749 All callers updated.
1750 (lookup_symbol_in_objfile_symtabs): Renamed from
1751 lookup_symbol_aux_objfile. All callers updated.
1752
1753 2014-11-06 Doug Evans <xdje42@gmail.com>
1754
1755 * symtab.c (lookup_symbol_in_block): Renamed from
1756 lookup_symbol_aux_block. All callers updated.
1757
1758 2014-11-06 Doug Evans <xdje42@gmail.com>
1759
1760 * symtab.c (lookup_static_symbol): Renamed from
1761 lookup_static_symbol_aux. All callers updated.
1762 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1763 All callers updated.
1764
1765 2014-11-06 Doug Evans <xdje42@gmail.com>
1766
1767 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1768 * block.c (block_lookup_symbol): Use it.
1769 * cp-support.c (make_symbol_overload_list_block): Use it.
1770 * symtab.c (iterate_over_symbols): Use it.
1771
1772 2014-11-06 Doug Evans <xdje42@gmail.com>
1773
1774 * symtab.c (lookup_block_symbol): Moved to ...
1775 * block.c (block_lookup_symbol): ... here and renamed.
1776 All callers updated.
1777 * block.h (block_lookup_symbol): Declare.
1778 * symtab.h (lookup_block_symbol): Delete.
1779
1780 2014-11-06 Doug Evans <xdje42@gmail.com>
1781
1782 * ada-lang.c (ada_make_symbol_completion_list): Use
1783 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1784 * symtab.c (lookup_objfile_from_block): Ditto.
1785
1786 2014-11-06 Doug Evans <xdje42@gmail.com>
1787
1788 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1789 TYPE_CODE_STRUCT.
1790
1791 2014-11-06 Doug Evans <xdje42@gmail.com>
1792
1793 * objfiles.c (get_objfile_arch): Constify.
1794 * objfiles.h (get_objfile_arch): Update prototype.
1795 * solib.c (solib_global_lookup): Fetch arch from objfile,
1796 not target_gdbarch.
1797
1798 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1799
1800 * nios2-tdep.c (wild_insn): Delete.
1801 (profiler_insn, irqentry_insn): Delete.
1802 (nios2_match_sequence): Delete.
1803 (nios2_analyze_prologue): Update comments. Remove matching
1804 of obsolete profiler_insn and irqentry_insn sequences.
1805
1806 2014-11-05 Alan Modra <amodra@gmail.com>
1807
1808 * charset.c (convert_between_encodings): Shrink obstack using
1809 obstack_blank_fast.
1810 * minsyms.c (install_minimal_symbols): Likewise.
1811 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1812 to char* before doing pointer arithmetic.
1813
1814 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1815
1816 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1817
1818 2014-11-04 Pedro Alves <palves@redhat.com>
1819
1820 * breakpoint.c (breakpoint_thread_match): Delete function.
1821 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1822
1823 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1824
1825 PR c++/17494
1826 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1827 the method args also under EVAL_SKIP when evaluating method
1828 calls under EVAL_SKIP.
1829
1830 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1831
1832 * dwarf2loc.c (read_pieced_value): Do big endian
1833 processing only if gdb_regnum is not -1.
1834 (write_pieced_value): Ditto.
1835
1836 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1837
1838 * arm-linux-tdep.c (arm_linux_init_abi): Use
1839 info.byte_order_for_code to choose endianity of breakpoint
1840 instructions snippets.
1841
1842 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1843
1844 * arm-tdep.c (extract_arm_insn): Use
1845 gdbarch_byte_order_for_code to read arm instruction.
1846
1847 2014-11-02 Doug Evans <xdje42@gmail.com>
1848
1849 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1850
1851 2014-11-02 Doug Evans <xdje42@gmail.com>
1852
1853 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1854 main_subfile before returning.
1855
1856 2014-10-31 Doug Evans <xdje42@gmail.com>
1857
1858 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1859 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1860
1861 2014-10-31 Doug Evans <xdje42@gmail.com>
1862
1863 * valops.c (value_cast_pointers): Fix whitespace.
1864 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1865 Ditto.
1866
1867 2014-10-30 Doug Evans <dje@google.com>
1868
1869 * NEWS: Mention ability add attributes to gdb.Objfile and
1870 gdb.Progspace objects.
1871 * python/py-objfile.c (objfile_object): New member dict.
1872 (objfpy_dealloc): Py_XDECREF dict.
1873 (objfpy_initialize): Initialize dict.
1874 (objfile_getset): Add __dict__.
1875 (objfile_object_type): Set tp_dictoffset member.
1876 * python/py-progspace.c (progspace_object): New member dict.
1877 (pspy_dealloc): Py_XDECREF dict.
1878 (pspy_initialize): Initialize dict.
1879 (pspace_getset): Add __dict__.
1880 (pspace_object_type): Set tp_dictoffset member.
1881
1882 2014-10-30 Yao Qi <yao@codesourcery.com>
1883
1884 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1885 replace '\\' with '\\\\'.
1886
1887 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1888
1889 GDB 7.8.1 released.
1890
1891 2014-10-29 Pedro Alves <palves@redhat.com>
1892
1893 PR gdb/17408
1894 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1895 instead of assuming a thread with a stepping range is always
1896 stepping.
1897
1898 2014-10-29 Pedro Alves <palves@redhat.com>
1899
1900 PR python/17372
1901 * event-top.c (change_line_handler): Call
1902 gdb_rl_callback_handler_remove instead of
1903 rl_callback_handler_remove.
1904 (callback_handler_installed): New global.
1905 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1906 (gdb_rl_callback_handler_reinstall): New functions.
1907 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1908 gdb_rl_callback_handler_install instead of
1909 rl_callback_handler_remove and rl_callback_handler_install.
1910 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1911 instead of rl_callback_handler_remove.
1912 * event-top.h (gdb_rl_callback_handler_remove)
1913 (gdb_rl_callback_handler_install)
1914 (gdb_rl_callback_handler_reinstall): New declarations.
1915 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1916 cleanup function.
1917 (fetch_inferior_event): Install it.
1918 * top.c (gdb_readline_wrapper_line) Call
1919 gdb_rl_callback_handler_remove instead of
1920 rl_callback_handler_remove.
1921 (gdb_readline_wrapper_cleanup): Don't call
1922 rl_callback_handler_install.
1923
1924 2014-10-29 Pedro Alves <palves@redhat.com>
1925
1926 * event-top.c (command_line_handler): Clear the first byte of
1927 linebuffer, when it is first allocated.
1928
1929 2014-10-29 Pedro Alves <palves@redhat.com>
1930
1931 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1932 TRY_CATCH.
1933
1934 2014-10-29 Pedro Alves <palves@redhat.com>
1935
1936 PR tui/16138
1937 PR tui/17519
1938 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1939 (tui_allowed_p): Delete function.
1940 * tui/tui.c: Include "interps.h".
1941 (tui_enable): Don't use tui_allowed_p. Error out here with
1942 detailed error messages if the TUI is the top level interpreter,
1943 or if output is not a terminal. Use newterm instead of initscr,
1944 and error out if initializing the terminal fails. Also error out if
1945 the terminal doesn't support cursor addressing.
1946 * tui/tui.h (tui_allowed_p): Delete declaration.
1947
1948 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1949
1950 * arm-tdep.c (arm_skip_stack_protector): Return early if
1951 address loaded by first "ldr" instruction does not have
1952 a corresponding minimal symbol. Update comment.
1953
1954 2014-10-29 Yao Qi <yao@codesourcery.com>
1955
1956 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1957 loaded address correctly of ldr instruction.
1958
1959 2014-10-28 Pedro Alves <palves@redhat.com>
1960
1961 PR gdb/12623
1962 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1963 field.
1964 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1965 thread's stepped_breakpoint field. Skip if reverse debugging.
1966 Add comment.
1967 (init_thread_stepping_state, handle_signal_stop): Clear the
1968 thread's stepped_breakpoint field.
1969
1970 2014-10-27 Pedro Alves <palves@redhat.com>
1971
1972 * remote.c (remote_thread_alive): New, factored out from ...
1973 (remote_thread_alive): ... this.
1974 (remote_update_thread_list): Bail out before deleting threads if
1975 the target returned an empty list, and, the current thread has a
1976 magic/fake ptid.
1977
1978 2014-10-27 Pedro Alves <palves@redhat.com>
1979
1980 * infrun.c (handle_signal_stop): Also skip handlers when a random
1981 signal arrives while handling a "stepi" or a "nexti". Set the
1982 thread's 'step_after_step_resume_breakpoint' flag.
1983
1984 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1985
1986 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1987 (arm_record_ld_st_imm_offset): Reimplement to cover all
1988 load/store cases for ARM opcode 010.
1989 (arm_record_ld_st_multiple): Reimplement to cover all
1990 load/store cases for ARM opcode 100.
1991
1992 2014-10-26 Doug Evans <xdje42@gmail.com>
1993
1994 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1995
1996 2014-10-26 Doug Evans <xdje42@gmail.com>
1997
1998 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1999 parameter "kind" to "block_index".
2000 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
2001 "block_index".
2002 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
2003
2004 2014-10-26 Doug Evans <xdje42@gmail.com>
2005
2006 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
2007
2008 2014-10-26 Doug Evans <xdje42@gmail.com>
2009
2010 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
2011 obstack_alloc.
2012
2013 2014-10-26 Doug Evans <xdje42@gmail.com>
2014
2015 * parser-defs.h (block_found): Move decl from here ...
2016 * symtab.h (block_found): ... to here.
2017
2018 2014-10-26 Doug Evans <xdje42@gmail.com>
2019
2020 * symtab.h (struct field_of_this_result): Fix typo in comment.
2021 (lookup_symbol_in_language): Move function comment here.
2022 (lookup_symbol): Improve function comment.
2023 (basic_lookup_symbol_nonlocal): Ditto.
2024 (lookup_symbol_static, lookup_symbol_global): Ditto.
2025 (lookup_symbol_aux_block): Ditto.
2026 (lookup_language_this): Add function comment.
2027 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2028 function comment.
2029 (lookup_block_symbol): Improve function comment.
2030 (lookup_struct): Fix capitalization in function comment.
2031 (lookup_transparent_type): Add function comment.
2032 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2033 Improve function comment.
2034 (lookup_objfile_from_block): Add function comment.
2035 * symtab.c (lookup_symbol_in_language): Update function comment.
2036 (lookup_symbol, lookup_language_this): Ditto.
2037 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2038 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2039 (basic_lookup_symbol_nonlocal): Ditto.
2040 (lookup_symbol_static, lookup_symbol_global): Ditto.
2041 (lookup_transparent_type, lookup_block_symbol): Ditto.
2042
2043 2014-10-25 Doug Evans <xdje42@gmail.com>
2044
2045 * symtab.c (types_info): Delete forward decl.
2046 (functions_info, variables_info, sources_info): Ditto.
2047 (_initialize_symtab): Rewrite forward decl to use
2048 initialize_file_ftype.
2049
2050 2014-10-25 Doug Evans <xdje42@gmail.com>
2051
2052 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2053
2054 2014-10-25 Doug Evans <xdje42@gmail.com>
2055
2056 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2057 of local var child_die.
2058
2059 2014-10-24 Don Breazeal <donb@codesourcery.com>
2060
2061 * infrun.c (follow_fork_inferior): Update fork message printing
2062 to use target_terminal_ours_for_output instead of
2063 target_terminal_ours, to use _() for all format strings, to print
2064 "vfork" instead of "fork" for vforks, and to add a detach message.
2065 (handle_vfork_child_exec_or_exit): Update message printing to use
2066 target_terminal_ours_for_output instead of target_terminal_ours, to
2067 use _() for all format strings, and to fix some formatting.
2068
2069 2014-10-24 Pedro Alves <palves@redhat.com>
2070
2071 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2072 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2073 * config/vax/vax.mh: Delete.
2074 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2075 obsolete configurations section.
2076 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2077 * vax-nat.c: Delete file.
2078
2079 2014-10-24 Pedro Alves <palves@redhat.com>
2080
2081 * NEWS (Removed targets): Add OS/arch column.
2082
2083 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2084
2085 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2086 on the arg type of a constructor only if it is of reference type.
2087
2088 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2089
2090 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2091 accessors and constants from nios2 opcodes update.
2092 (nios2_get_next_pc): Likewise.
2093
2094 2014-10-19 Doug Evans <xdje42@gmail.com>
2095
2096 * gdbthread.h (set_running): Fix comment.
2097 (set_executing, finish_thread_state): Fix comment.
2098
2099 2014-10-18 Doug Evans <xdje42@gmail.com>
2100
2101 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2102
2103 2014-10-17 Doug Evans <dje@google.com>
2104
2105 * NEWS: Mention new event gdb.clear_objfiles.
2106 * python/py-event.h (emit_clear_objfiles_event): Clear
2107 * python/py-events.h (events_object): New member clear_objfiles.
2108 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2109 event.
2110 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2111 emit clear_objfiles event.
2112 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2113 function.
2114 (emit_clear_objfiles_event): New function.
2115 (clear_objfiles): New event.
2116 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2117 Declare.
2118 * python/python.c (_initialize_python): Call
2119 gdbpy_initialize_clear_objfiles_event.
2120
2121 2014-10-17 Doug Evans <dje@google.com>
2122
2123 * NEWS: Mention new gdb.Objfile.progspace attribute.
2124 * python/py-objfile.c (objfpy_get_progspace): New function.
2125 (objfile_getset): New entry for "progspace".
2126
2127 2014-10-17 Pedro Alves <palves@redhat.com>
2128
2129 PR gdb/17471
2130 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2131 returns a copy of the input.
2132 (run_command_1, continue_command, step_1, jump_command)
2133 (signal_command, until_command, advance_command, finish_command)
2134 (attach_command): Adjust and install a cleanup to free the
2135 stripped args.
2136
2137 2014-10-17 Pedro Alves <palves@redhat.com>
2138
2139 PR gdb/17300
2140 * infcmd.c (continue_1): If continuing all threads in the
2141 foreground, make sure the inferior's terminal settings are put in
2142 effect.
2143
2144 2014-10-17 Pedro Alves <palves@redhat.com>
2145
2146 PR gdb/17472
2147 * annotate.c (annotate_breakpoints_invalid): Use
2148 target_terminal_our_for_output instead of target_terminal_ours.
2149 Give back the terminal to the target.
2150 (annotate_frames_invalid): Likewise.
2151
2152 2014-10-17 Pedro Alves <palves@redhat.com>
2153
2154 * target.c (enum terminal_state): New enum.
2155 (terminal_state): New global.
2156 (target_terminal_init): New function.
2157 (target_terminal_inferior): Skip if inferior already owns the
2158 terminal.
2159 (target_terminal_ours, target_terminal_ours_for_output): New
2160 functions.
2161 * target.h (target_terminal_init): Convert to function prototype.
2162 (target_terminal_ours_for_output): Convert to function prototype
2163 and tweak comment.
2164 (target_terminal_ours): Convert to function prototype and tweak
2165 comment.
2166 * windows-nat.c (do_initial_windows_stuff): Call
2167 target_terminal_init instead of child_terminal_init_with_pgrp.
2168
2169 2014-10-17 Pedro Alves <palves@redhat.com>
2170
2171 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2172 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2173 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2174 solib-osf.c.
2175 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2176 * ada-lang.h [__alpha__ && __osf__]
2177 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2178 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2179 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2180 GDB_OSABI_OSF1.
2181 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2182 files.
2183 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2184 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2185 * configure: Regenerate.
2186 * configure.ac: Remove references to osf.
2187 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2188 section. Remove all other references to osf.
2189 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2190 Remove all other references to osf.
2191 * dec-thread.c: Delete file.
2192 * defs.h (GDB_OSABI_OSF1): Delete.
2193 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2194 defined.
2195 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2196 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2197 Delete code.
2198 (unconditionally_kill_inferior)
2199 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2200 * solib-osf.c: Delete file.
2201
2202 2014-10-17 Pedro Alves <palves@redhat.com>
2203
2204 * remote.c (clear_threads_listing_context): Move higher up, out of
2205 the HAVE_LIBEXPAT guard.
2206
2207 2014-10-16 Tristan Gingold <gingold@adacore.com>
2208
2209 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2210 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2211 on amd64.
2212
2213 2014-10-15 Pedro Alves <palves@redhat.com>
2214
2215 * dec-thread.c (dec_thread_count_gdb_threads)
2216 (dec_thread_add_gdb_thread): Delete.
2217 (dec_thread_update_thread_list): Delete.
2218 (dec_thread_find_new_threads): Rename to ...
2219 (dec_thread_update_thread_list): ... this. Delete GDB-size
2220 threads that are no longer found in dec_thread_list.
2221 (resync_thread_list): Delete.
2222 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2223 resync_thread_list.
2224
2225 2014-10-15 Pedro Alves <palves@redhat.com>
2226
2227 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2228 * remote.c (remote_update_thread_list): Skip calling prune_threads
2229 if any thread listing method is supported, and instead walk over
2230 the set of remote threads listed, deleting those that are not
2231 found in GDB's thread list.
2232
2233 2014-10-15 Pedro Alves <palves@redhat.com>
2234
2235 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2236 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2237 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2238 (bsd_uthread_target): Adjust.
2239 * corelow.c (core_open): Adjust.
2240 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2241 (dec_thread_update_thread_list): New function.
2242 (init_dec_thread_ops): Adjust.
2243 * gdbthread.h (prune_threads): New declaration.
2244 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2245 (thread_db_update_thread_list): ... this. Call prune_threads.
2246 (init_thread_db_ops): Adjust.
2247 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2248 (procfs_update_thread_list): ... this. Call prune_threads.
2249 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2250 Adjust.
2251 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2252 (obsd_update_thread_list): ... this. Call prune_threads.
2253 (obsd_add_target): Adjust.
2254 * procfs.c (procfs_target): Adjust.
2255 (procfs_notice_thread): Update comment.
2256 (procfs_find_new_threads): Rename to ...
2257 (procfs_update_thread_list): ... this. Call prune_threads.
2258 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2259 comment.
2260 (ravenscar_wait): Adjust.
2261 (ravenscar_find_new_threads): Rename to ...
2262 (ravenscar_update_thread_list): ... this. Call prune_threads.
2263 (init_ravenscar_thread_ops): Adjust.
2264 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2265 (record_btrace_update_thread_list): ... this. Adjust comment.
2266 (init_record_btrace_ops): Adjust.
2267 * remote.c (remote_threads_info): Rename to ...
2268 (remote_update_thread_list): ... this. Call prune_threads.
2269 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2270 Adjust.
2271 * sol-thread.c (check_for_thread_db): Adjust.
2272 (sol_find_new_threads_callback): Rename to ...
2273 (sol_update_thread_list_callback): ... this.
2274 (sol_find_new_threads): Rename to ...
2275 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2276 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2277 * target-delegates.c: Regenerate.
2278 * target.c (target_find_new_threads): Rename to ...
2279 (target_update_thread_list): ... this.
2280 * target.h (struct target_ops): Rename to_find_new_threads field
2281 to to_update_thread_list.
2282 (target_find_new_threads): Rename to ...
2283 (target_update_thread_list): ... this.
2284 * thread.c (prune_threads): Make extern.
2285 (update_thread_list): Adjust.
2286
2287 2014-10-15 Pedro Alves <palves@redhat.com>
2288
2289 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2290 Add describing comment. Return -1 if the qL packet is not
2291 supported.
2292 (struct thread_item, thread_item_t): Move higher up in
2293 the file. Add comments.
2294 (struct threads_parsing_context): Move higher up in
2295 the file, add comments, and remote to ...
2296 (struct threads_listing_context): ... this.
2297 (remote_newthread_step): Don't add the thread to GDB's thread
2298 database here. Instead push it to the thread_listing_context
2299 list.
2300 (remote_find_new_threads): Rename to ...
2301 (remote_get_threads_with_ql): ... this. Add target_ops and
2302 targets_listing_context parameters. Pass down context.
2303 (start_thread): Adjust.
2304 (clear_threads_parsing_context): Rename to ...
2305 (clear_threads_listing_context): ... this.
2306 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2307 remote_threads_info.
2308 (remote_get_threads_with_qthreadinfo): Ditto.
2309 (remote_threads_info): Reimplement.
2310
2311 2014-10-15 Pedro Alves <palves@redhat.com>
2312
2313 * infrun.c (resume): Don't force displaced-stepping for all
2314 single-steps on software single-stepping archs.
2315
2316 2014-10-15 Pedro Alves <palves@redhat.com>
2317
2318 * breakpoint.c (single_step_breakpoints): Delete global.
2319 (insert_single_step_breakpoint): Adjust to store the breakpoint
2320 pointer in the current thread.
2321 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2322 (cancel_single_step_breakpoints): Delete functions.
2323 (breakpoint_has_location_inserted_here): Make extern.
2324 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2325 breakpoint list.
2326 * breakpoint.h (breakpoint_has_location_inserted_here): New
2327 declaration.
2328 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2329 (cancel_single_step_breakpoints): Remove declarations.
2330 * gdbthread.h (struct thread_control_state)
2331 <single_step_breakpoints>: New field.
2332 (delete_single_step_breakpoints)
2333 (thread_has_single_step_breakpoints_set)
2334 (thread_has_single_step_breakpoint_here): New declarations.
2335 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2336 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2337 (singlestep_pc): Delete globals.
2338 (infrun_thread_ptid_changed): Remove references to removed
2339 globals.
2340 (resume_cleanups): Delete the current thread's single-step
2341 breakpoints.
2342 (maybe_software_singlestep): Remove references to removed globals.
2343 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2344 delete_single_step_breakpoints.
2345 (init_wait_for_inferior): Remove references to removed globals.
2346 (delete_thread_infrun_breakpoints): Delete the thread's
2347 single-step breakpoints too.
2348 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2349 single-step breakpoints here.
2350 (delete_stopped_threads_single_step_breakpoints): New function.
2351 (adjust_pc_after_break): Adjust to use
2352 thread_has_single_step_breakpoints_set.
2353 (handle_inferior_event): Remove references to removed globals.
2354 Use delete_stopped_threads_single_step_breakpoints.
2355 (handle_signal_stop): Adjust to per-thread single-step
2356 breakpoints. Swap test order to do cheaper tests first.
2357 (switch_back_to_stepped_thread): Extend debug output. Remove
2358 references to removed globals.
2359 * record-full.c (record_full_wait_1): Adjust to per-thread
2360 single-step breakpoints.
2361 * thread.c (delete_single_step_breakpoints)
2362 (thread_has_single_step_breakpoints_set)
2363 (thread_has_single_step_breakpoint_here): New functions.
2364 (clear_thread_inferior_resources): Also delete the thread's
2365 single-step breakpoints.
2366
2367 2014-10-15 Pedro Alves <palves@redhat.com>
2368
2369 * thread.c (delete_thread_breakpoint): New function.
2370 (delete_step_resume_breakpoint)
2371 (delete_exception_resume_breakpoint): Use it.
2372 (delete_at_next_stop): New function.
2373 (clear_thread_inferior_resources): Use delete_at_next_stop.
2374
2375 2014-10-15 Pedro Alves <palves@redhat.com>
2376
2377 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2378 (breakpoint_inserted_here_p): ... here. Remove special case for
2379 software single-step breakpoints.
2380 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2381 (software_breakpoint_inserted_here_p): ... here. Remove special
2382 case for software single-step breakpoints.
2383 (bp_target_info_copy_insertion_state)
2384 (deprecated_insert_raw_breakpoint)
2385 (deprecated_remove_raw_breakpoint): Delete functions.
2386 * breakpoint.h (deprecated_insert_raw_breakpoint)
2387 (deprecated_remove_raw_breakpoint): Remove declarations.
2388
2389 2014-10-15 Pedro Alves <palves@redhat.com>
2390
2391 PR breakpoints/9649
2392 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2393 Delete array globals.
2394 (single_step_breakpoints): New global.
2395 (breakpoint_xfer_memory): Remove special handling for single-step
2396 breakpoints.
2397 (update_breakpoints_after_exec): Delete bp_single_step
2398 breakpoints.
2399 (detach_breakpoints): Remove special handling for single-step
2400 breakpoints.
2401 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2402 (bpstat_stop_status): Add comment.
2403 (bpstat_what, bptype_string, print_one_breakpoint_location)
2404 (adjust_breakpoint_address, init_bp_location): Handle
2405 bp_single_step.
2406 (new_single_step_breakpoint): New function.
2407 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2408 handling for single-step breakpoints.
2409 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2410 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2411 Rewrite.
2412 (detach_single_step_breakpoints, find_single_step_breakpoint):
2413 Delete functions.
2414 (breakpoint_has_location_inserted_here): New function.
2415 (single_step_breakpoint_inserted_here_p): Rewrite.
2416 * breakpoint.h: Remove FIXME.
2417 (enum bptype) <bp_single_step>: New enum value.
2418 (insert_single_step_breakpoint): Update comment.
2419 * infrun.c (resume_cleanups)
2420 (delete_step_thread_step_resume_breakpoint): Remove single-step
2421 breakpoints.
2422 (fetch_inferior_event): Install a cleanup that removes infrun
2423 breakpoints.
2424 (switch_back_to_stepped_thread) <expect thread advanced also>:
2425 Clear step-over info.
2426
2427 2014-10-15 Pedro Alves <palves@redhat.com>
2428
2429 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2430 (delete_thread_infrun_breakpoints): New function, with parts
2431 salvaged from delete_step_resume_breakpoint_callback.
2432 (delete_step_thread_step_resume_breakpoint): Delete.
2433 (for_each_just_stopped_thread_callback_func): New typedef.
2434 (for_each_just_stopped_thread): New function.
2435 (delete_just_stopped_threads_infrun_breakpoints): New function.
2436 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2437 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2438 ... this. Adjust.
2439 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2440
2441 2014-10-15 Pedro Alves <palves@redhat.com>
2442
2443 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2444 trying to step past a non-steppable watchpoint.
2445 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2446 field.
2447 * infrun.c (struct step_over_info): Add new field
2448 'nonsteppable_watchpoint_p' and adjust comments.
2449 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2450 Adjust.
2451 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2452 (stepping_past_nonsteppable_watchpoint): New function.
2453 (step_over_info_valid_p): Also return true if stepping past a
2454 nonsteppable watchpoint.
2455 (proceed): Adjust call to set_step_over_info. Remove reference to
2456 init_infwait_state.
2457 (init_wait_for_inferior): Remove reference to init_infwait_state.
2458 (waiton_ptid): Delete global.
2459 (struct execution_control_state)
2460 <stepped_after_stopped_by_watchpoint>: Delete field.
2461 (wait_for_inferior, fetch_inferior_event): Always pass
2462 minus_one_ptid to target_wait.
2463 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2464 field.
2465 (init_infwait_state): Delete function.
2466 (handle_inferior_event): Remove infwait_state handling.
2467 (handle_signal_stop) <watchpoints handling>: Adjust after
2468 stepped_after_stopped_by_watchpoint removal. Don't remove
2469 breakpoints here nor set infwait_state. Set the thread's
2470 stepping_over_watchpoint flag, and call keep_going instead.
2471 (keep_going): Handle stepping_over_watchpoint. Adjust
2472 set_step_over_info calls.
2473 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2474 function.
2475
2476 2014-10-15 Pedro Alves <palves@redhat.com>
2477
2478 * infrun.c (step_over_info_valid_p): New function.
2479 (resume): Use step_over_info_valid_p instead of checking the
2480 threads's trap_expected flag.
2481
2482 2014-10-15 Doug Evans <dje@google.com>
2483 Walfred Tedeschi <walfred.tedeschi@intel.com>
2484
2485 PR python/17364
2486 * python/lib/gdb/__init__.py (packages): Add "printer".
2487 * python/lib/gdb/command/bound_registers.py: Moved to ...
2488 * python/lib/gdb/printer/bound_registers.py: ... here.
2489 Add printer to global set of builtin printers. Rename printer from
2490 "bound" to "mpx_bound128".
2491 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2492 registered as global "builtin" printer.
2493 (add_builtin_pretty_printer): New function.
2494 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2495 gdb/printer/__init__.py.
2496
2497 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2498
2499 * Makefile.in (SFILES): Remove d-support.c.
2500 (COMMON_OBS): Remove d-support.o.
2501 * d-lang.h (d_parse_symbol): Remove declaration.
2502 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2503 * d-support.c: Remove file.
2504
2505 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2506
2507 * gdb/infrun.c (process_event_stop_test): Apply
2508 gdbarch_addr_bits_remove to longjmp resume address.
2509
2510 2014-10-15 Pedro Alves <palves@redhat.com>
2511
2512 * regformats/microblaze.dat: Delete file.
2513
2514 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2515
2516 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2517 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2518
2519 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2520
2521 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2522 as non-trivial.
2523
2524 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2525
2526 PR c++/13403
2527 PR c++/15154
2528 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2529 with qualified args.
2530
2531 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2532
2533 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2534 of the case where the second operand is a pointer.
2535 <BINOP_SUB>: Likewise.
2536
2537 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2538
2539 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2540 only if it is not NULL.
2541 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2542 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2543 (struct probe_ops) <clear_semaphore>: Likewise.
2544 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2545 not NULL.
2546 (stop_tracing): Likewise, for clear_semaphore.
2547
2548 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2549
2550 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2551 using language_c, instead of current_language.
2552
2553 2014-10-13 Doug Evans <dje@google.com>
2554
2555 * python/py-objfile.c (objfpy_initialize): New function.
2556 (objfpy_new, objfile_to_objfile_object): Call it.
2557 * python/py-progspace.c (pspy_initialize): New function.
2558 (pspy_new, pspace_to_pspace_object): Call it.
2559
2560 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2561 Jan Kratochvil <jan.kratochvil@redhat.com>
2562
2563 Fix "save breakpoints" for "catch" command.
2564 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2565 newline.
2566
2567 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2568
2569 Fix "save breakpoints" for "disable $bpnum" command.
2570 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2571
2572 2014-10-10 Pedro Alves <palves@redhat.com>
2573
2574 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2575 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2576 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2577 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2578 and been removed.
2579 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2580 * configure.ac: Remove references to IRIX.
2581 * configure.host: Add *-*-irix* to the obsolete hosts section.
2582 Remove all other references to irix.
2583 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2584 Delete files.
2585
2586 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2587
2588 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2589 isn't valid, release the tdesc arch data and return NULL.
2590
2591 2014-10-10 Pedro Alves <palves@redhat.com>
2592
2593 * linux-tdep.c: Include observer.h.
2594 (linux_inferior_data): New global.
2595 (struct linux_info): New structure.
2596 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2597 (get_linux_inferior_data): New functions.
2598 (linux_vsyscall_range): Rename to ...
2599 (linux_vsyscall_range_raw): ... this.
2600 (linux_vsyscall_range): New function; handles caching.
2601 (_initialize_linux_tdep): Register linux_inferior_data. Install
2602 inferior_exit and inferior_appeared observers.
2603
2604 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2605 Pedro Alves <palves@redhat.com>
2606
2607 PR symtab/14466
2608 * solib-svr4.c (svr4_read_so_list): Rename to ...
2609 (svr4_current_sos_1): ... this and change the function comment.
2610 (svr4_current_sos): New function.
2611
2612 2014-10-10 Pedro Alves <palves@redhat.com>
2613
2614 * arch-utils.c (default_vsyscall_range): New function.
2615 * arch-utils.h (default_vsyscall_range): New declaration.
2616 * gdbarch.sh (vsyscall_range): New hook.
2617 * gdbarch.h, gdbarch.c: Regenerate.
2618 * linux-tdep.c (linux_vsyscall_range): New function.
2619 (linux_init_abi): Install linux_vsyscall_range as
2620 vsyscall_range gdbarch hook.
2621 * memrange.c (address_in_mem_range): New function.
2622 * memrange.h (address_in_mem_range): New declaration.
2623 * symfile-mem.c (find_vdso_size): Delete function.
2624 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2625
2626 2014-10-10 Pedro Alves <palves@redhat.com>
2627
2628 * infrun.c (normal_stop): Fix typo in comment.
2629
2630 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2631
2632 PR tdep/9390
2633 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2634 typo when using logical AND to determine instruction type.
2635
2636 2014-10-09 Yao Qi <yao@codesourcery.com>
2637
2638 * infrun.c (handle_signal_stop): Remove local variable
2639 'printed'.
2640
2641 2014-10-08 Stan Shebs <stan@codesourcery.com>
2642
2643 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2644
2645 2014-10-08 Gary Benson <gbenson@redhat.com>
2646
2647 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2648
2649 2014-10-08 Gary Benson <gbenson@redhat.com>
2650
2651 * common/common-defs.h: Include common-exceptions.h.
2652 * exceptions.h: Do not include common-exceptions.h.
2653
2654 2014-10-08 Gary Benson <gbenson@redhat.com>
2655
2656 * common/common-defs.h: Include cleanups.h.
2657 * common/common-exceptions.c: Do not include cleanups.h.
2658 * utils.h: Likewise.
2659
2660 2014-10-08 Gary Benson <gbenson@redhat.com>
2661
2662 * ada-lang.c: Do not include exceptions.h.
2663 * ada-valprint.c: Likewise.
2664 * amd64-tdep.c: Likewise.
2665 * auto-load.c: Likewise.
2666 * block.c: Likewise.
2667 * break-catch-throw.c: Likewise.
2668 * breakpoint.c: Likewise.
2669 * btrace.c: Likewise.
2670 * c-lang.c: Likewise.
2671 * cli/cli-cmds.c: Likewise.
2672 * cli/cli-interp.c: Likewise.
2673 * cli/cli-script.c: Likewise.
2674 * completer.c: Likewise.
2675 * corefile.c: Likewise.
2676 * corelow.c: Likewise.
2677 * cp-abi.c: Likewise.
2678 * cp-support.c: Likewise.
2679 * cp-valprint.c: Likewise.
2680 * darwin-nat.c: Likewise.
2681 * dwarf2-frame-tailcall.c: Likewise.
2682 * dwarf2-frame.c: Likewise.
2683 * dwarf2loc.c: Likewise.
2684 * dwarf2read.c: Likewise.
2685 * eval.c: Likewise.
2686 * event-loop.c: Likewise.
2687 * event-top.c: Likewise.
2688 * f-valprint.c: Likewise.
2689 * frame-unwind.c: Likewise.
2690 * frame.c: Likewise.
2691 * gdbtypes.c: Likewise.
2692 * gnu-v2-abi.c: Likewise.
2693 * gnu-v3-abi.c: Likewise.
2694 * guile/scm-auto-load.c: Likewise.
2695 * guile/scm-breakpoint.c: Likewise.
2696 * guile/scm-cmd.c: Likewise.
2697 * guile/scm-frame.c: Likewise.
2698 * guile/scm-lazy-string.c: Likewise.
2699 * guile/scm-param.c: Likewise.
2700 * guile/scm-symbol.c: Likewise.
2701 * guile/scm-type.c: Likewise.
2702 * hppa-hpux-tdep.c: Likewise.
2703 * i386-tdep.c: Likewise.
2704 * inf-loop.c: Likewise.
2705 * infcall.c: Likewise.
2706 * infcmd.c: Likewise.
2707 * infrun.c: Likewise.
2708 * interps.c: Likewise.
2709 * interps.h: Likewise.
2710 * jit.c: Likewise.
2711 * linespec.c: Likewise.
2712 * linux-nat.c: Likewise.
2713 * linux-thread-db.c: Likewise.
2714 * m32r-rom.c: Likewise.
2715 * main.c: Likewise.
2716 * memory-map.c: Likewise.
2717 * mi/mi-cmd-break.c: Likewise.
2718 * mi/mi-cmd-stack.c: Likewise.
2719 * mi/mi-interp.c: Likewise.
2720 * mi/mi-main.c: Likewise.
2721 * monitor.c: Likewise.
2722 * nto-procfs.c: Likewise.
2723 * objc-lang.c: Likewise.
2724 * p-valprint.c: Likewise.
2725 * parse.c: Likewise.
2726 * ppc-linux-tdep.c: Likewise.
2727 * printcmd.c: Likewise.
2728 * probe.c: Likewise.
2729 * python/py-auto-load.c: Likewise.
2730 * python/py-breakpoint.c: Likewise.
2731 * python/py-cmd.c: Likewise.
2732 * python/py-finishbreakpoint.c: Likewise.
2733 * python/py-frame.c: Likewise.
2734 * python/py-framefilter.c: Likewise.
2735 * python/py-function.c: Likewise.
2736 * python/py-gdb-readline.c: Likewise.
2737 * python/py-inferior.c: Likewise.
2738 * python/py-infthread.c: Likewise.
2739 * python/py-lazy-string.c: Likewise.
2740 * python/py-linetable.c: Likewise.
2741 * python/py-param.c: Likewise.
2742 * python/py-prettyprint.c: Likewise.
2743 * python/py-symbol.c: Likewise.
2744 * python/py-type.c: Likewise.
2745 * python/py-value.c: Likewise.
2746 * python/python-internal.h: Likewise.
2747 * python/python.c: Likewise.
2748 * record-btrace.c: Likewise.
2749 * record-full.c: Likewise.
2750 * regcache.c: Likewise.
2751 * remote-fileio.c: Likewise.
2752 * remote-mips.c: Likewise.
2753 * remote.c: Likewise.
2754 * rs6000-aix-tdep.c: Likewise.
2755 * rs6000-nat.c: Likewise.
2756 * skip.c: Likewise.
2757 * solib-darwin.c: Likewise.
2758 * solib-dsbt.c: Likewise.
2759 * solib-frv.c: Likewise.
2760 * solib-ia64-hpux.c: Likewise.
2761 * solib-spu.c: Likewise.
2762 * solib-svr4.c: Likewise.
2763 * solib.c: Likewise.
2764 * spu-tdep.c: Likewise.
2765 * stack.c: Likewise.
2766 * stap-probe.c: Likewise.
2767 * symfile-mem.c: Likewise.
2768 * symmisc.c: Likewise.
2769 * target.c: Likewise.
2770 * thread.c: Likewise.
2771 * top.c: Likewise.
2772 * tracepoint.c: Likewise.
2773 * tui/tui-interp.c: Likewise.
2774 * typeprint.c: Likewise.
2775 * utils.c: Likewise.
2776 * valarith.c: Likewise.
2777 * valops.c: Likewise.
2778 * valprint.c: Likewise.
2779 * value.c: Likewise.
2780 * varobj.c: Likewise.
2781 * windows-nat.c: Likewise.
2782 * xml-support.c: Likewise.
2783
2784 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2785
2786 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2787 name implies.
2788 (extended_mips16_next_pc): Update accordingly.
2789
2790 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2791
2792 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2793 function.
2794 (micromips_instruction_is_compact_branch): Likewise.
2795 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2796 or a compact jump, reaching a jump delay slot, or seeing a
2797 second non-prologue instruction.
2798 (micromips_scan_prologue): Also terminate scanning upon seeing a
2799 compact branch or jump, or reaching a branch or jump delay slot.
2800 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2801 or jump delay slot, or seeing a second non-prologue instruction.
2802 (mips32_instruction_has_delay_slot): Retain instruction
2803 examination code only, update arguments accordingly and move
2804 instruction fetch pieces to...
2805 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2806 (micromips_instruction_has_delay_slot): Likewise and to...
2807 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2808 (mips16_instruction_has_delay_slot): Likewise and to...
2809 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2810 (mips_single_step_through_delay): Update accordingly.
2811 (mips_adjust_breakpoint_address): Likewise.
2812
2813 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2814
2815 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2816 !mustbe32 also return 1 for 32-bit instructions.
2817 (mips16_instruction_has_delay_slot): Likewise. Add an
2818 explanatory comment.
2819
2820 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2821
2822 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2823 symbols special.
2824
2825 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2826
2827 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2828 update comments.
2829 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2830 for the breakpoint's address. Don't preinitialize `placed_size'.
2831 (insert_bp_location): Set `reqstd_address' rather than
2832 `placed_address'.
2833 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2834 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2835 address.
2836 (bkpt_remove_location): Likewise.
2837 (deprecated_insert_raw_breakpoint): Likewise.
2838 (deprecated_remove_raw_breakpoint): Likewise.
2839 (find_single_step_breakpoint): Likewise.
2840 * mem-break.c (default_memory_insert_breakpoint): Use
2841 `reqstd_address' for the breakpoint's address. Don't set
2842 `placed_address' or `placed_size' if breakpoint contents couldn't
2843 have been determined.
2844 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2845 the breakpoint's address.
2846 (remote_insert_hw_breakpoint): Likewise. Don't set
2847 `placed_address' or `placed_size' if breakpoint couldn't have been
2848 set.
2849 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2850 `reqstd_address' for the breakpoint's address.
2851 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2852 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2853 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2854 * microblaze-linux-tdep.c
2855 (microblaze_linux_memory_remove_breakpoint): Likewise.
2856 * monitor.c (monitor_insert_breakpoint): Likewise.
2857 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2858 (procfs_insert_hw_breakpoint): Likewise.
2859 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2860 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2861 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2862 * remote-mips.c (mips_insert_breakpoint): Likewise.
2863 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2864
2865 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2866
2867 * valops.c (value_assign): Check for bit field assignments
2868 before calling architecture-specific register value
2869 conversion functions.
2870
2871 2014-10-03 Pierre Muller <muller@sourceware.org>
2872
2873 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2874
2875 2014-10-02 Pedro Alves <palves@redhat.com>
2876
2877 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2878 threads_are_executing.
2879 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2880 describing comment.
2881 * gdbthread.h (threads_are_executing): Declare.
2882 (handle_signal_stop) <random signals>: Don't print about the
2883 signal here if stopping.
2884 (end_stepping_range): Don't notify observers here.
2885 (normal_stop): Update the thread list. If stopped by a random
2886 signal or a stepping range ended, notify observers.
2887 * thread.c (threads_executing): New global.
2888 (init_thread_list): Clear 'threads_executing'.
2889 (set_executing): Set or clear 'threads_executing'.
2890 (threads_are_executing): New function.
2891 (update_threads_executing): New function.
2892 (update_thread_list): Use it.
2893
2894 2014-10-02 Pedro Alves <palves@redhat.com>
2895
2896 PR breakpoints/17431
2897 * breakpoint.c (update_breakpoints_after_exec): Don't create
2898 overlay, longjmp, std terminate nor exception breakpoints here.
2899
2900 2014-10-02 Pedro Alves <palves@redhat.com>
2901
2902 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2903 Adjust comments.
2904 * inferior.c (find_inferior_for_program_space): Give preference to
2905 the current inferior.
2906 * inferior.h (find_inferior_for_program_space): Update comment.
2907 * progspace.c (switch_to_program_space_and_thread): Prefer the
2908 current inferior if it's bound to the program space requested. If
2909 the inferior found doesn't have a PID yet, don't bother looking up
2910 a thread.
2911 * progspace.h (switch_to_program_space_and_thread): Adjust
2912 comment.
2913 * thread.c (any_thread_of_process, any_live_thread_of_process):
2914 Give preference to the current thread.
2915
2916 2014-10-01 Pedro Alves <palves@redhat.com>
2917
2918 * breakpoint.c (insert_bp_location): Error out if inserting a
2919 software breakpoint at a read-only address.
2920 * target.c (memory_xfer_check_region): New function, factored out
2921 from ...
2922 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2923 ULONGEST.
2924 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2925 against the memory region attributes.
2926
2927 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2928
2929 * NEWS: Announce new exit-code field in -list-thread-groups
2930 output.
2931 * inferior.c (exit_inferior_1): Don't clear exit code.
2932 (inferior_appeared): Clear exit code.
2933 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2934 code.
2935
2936 2014-10-01 Pedro Alves <palves@redhat.com>
2937
2938 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2939 GENERATED" along with emacs/vi read-only markers.
2940 * regformats/aarch64.dat: Regenerate.
2941 * regformats/arm-with-iwmmxt.dat: Regenerate.
2942 * regformats/arm-with-neon.dat: Regenerate.
2943 * regformats/arm-with-vfpv2.dat: Regenerate.
2944 * regformats/arm-with-vfpv3.dat: Regenerate.
2945 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2946 * regformats/i386/amd64-avx.dat: Regenerate.
2947 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2948 * regformats/i386/amd64-avx512.dat: Regenerate.
2949 * regformats/i386/amd64-linux.dat: Regenerate.
2950 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2951 * regformats/i386/amd64-mpx.dat: Regenerate.
2952 * regformats/i386/amd64.dat: Regenerate.
2953 * regformats/i386/i386-avx-linux.dat: Regenerate.
2954 * regformats/i386/i386-avx.dat: Regenerate.
2955 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2956 * regformats/i386/i386-avx512.dat: Regenerate.
2957 * regformats/i386/i386-linux.dat: Regenerate.
2958 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2959 * regformats/i386/i386-mmx.dat: Regenerate.
2960 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2961 * regformats/i386/i386-mpx.dat: Regenerate.
2962 * regformats/i386/i386.dat: Regenerate.
2963 * regformats/i386/x32-avx-linux.dat: Regenerate.
2964 * regformats/i386/x32-avx.dat: Regenerate.
2965 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2966 * regformats/i386/x32-avx512.dat: Regenerate.
2967 * regformats/i386/x32-linux.dat: Regenerate.
2968 * regformats/i386/x32.dat: Regenerate.
2969 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2970 * regformats/mips-dsp-linux.dat: Regenerate.
2971 * regformats/mips-linux.dat: Regenerate.
2972 * regformats/mips64-dsp-linux.dat: Regenerate.
2973 * regformats/mips64-linux.dat: Regenerate.
2974 * regformats/nios2-linux.dat: Regenerate.
2975 * regformats/rs6000/powerpc-32.dat: Regenerate.
2976 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2977 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2978 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2979 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2980 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2981 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2982 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2983 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2984 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2985 * regformats/s390-linux32.dat: Regenerate.
2986 * regformats/s390-linux32v1.dat: Regenerate.
2987 * regformats/s390-linux32v2.dat: Regenerate.
2988 * regformats/s390-linux64.dat: Regenerate.
2989 * regformats/s390-linux64v1.dat: Regenerate.
2990 * regformats/s390-linux64v2.dat: Regenerate.
2991 * regformats/s390-te-linux64.dat: Regenerate.
2992 * regformats/s390x-linux64.dat: Regenerate.
2993 * regformats/s390x-linux64v1.dat: Regenerate.
2994 * regformats/s390x-linux64v2.dat: Regenerate.
2995 * regformats/s390x-te-linux64.dat: Regenerate.
2996 * regformats/tic6x-c62x-linux.dat: Regenerate.
2997 * regformats/tic6x-c62x.dat: Regenerate.
2998 * regformats/tic6x-c64x-linux.dat: Regenerate.
2999 * regformats/tic6x-c64x.dat: Regenerate.
3000 * regformats/tic6x-c64xp-linux.dat: Regenerate.
3001 * regformats/tic6x-c64xp.dat: Regenerate.
3002
3003 2014-10-01 Pedro Alves <palves@redhat.com>
3004
3005 * features/Makefile: Update comments.
3006 (XMLTOC): List all xml files we build C files from.
3007 (clean-cfiles): New rule.
3008
3009 2014-10-01 Pedro Alves <palves@redhat.com>
3010
3011 * features/i386/amd64-avx512-linux.c: Regenerate.
3012 * features/i386/amd64-avx512.c: Regenerate.
3013 * features/i386/x32-avx512-linux.c: Regenerate.
3014 * features/i386/x32-avx512.c: Regenerate.
3015
3016 2014-10-01 Pedro Alves <palves@redhat.com>
3017
3018 * features/Makefile (WHICH): Remove arm-with-m,
3019 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3020
3021 2014-10-01 Pedro Alves <palves@redhat.com>
3022
3023 * features/Makefile (clean): New rule.
3024
3025 2014-10-01 Pedro Alves <palves@redhat.com>
3026
3027 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3028 (zmm14h): Add missing end quotes.
3029
3030 2014-10-01 Pedro Alves <palves@redhat.com>
3031
3032 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3033 * features/aarch64.c: Regenerate.
3034
3035 2014-09-30 Don Breazeal <donb@codesourcery.com>
3036
3037 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3038 code so as to work with follow_fork_inferior.
3039 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3040 (inf_ttrace_create_inferior): Remove reference to
3041 inf_ttrace_vfork_ppid.
3042 (inf_ttrace_attach): Ditto.
3043 (inf_ttrace_detach): Ditto.
3044 (inf_ttrace_kill): Use current_inferior instead of
3045 inf_ttrace_vfork_ppid.
3046 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3047 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3048 inferior away from the parent.
3049 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3050 target_follow_fork.
3051 (follow_fork_inferior): New function.
3052 (follow_inferior_reset_breakpoints): Make function static.
3053 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3054 * linux-nat.c (linux_child_follow_fork): Move target-independent
3055 code to infrun.c:follow_fork_inferior.
3056
3057 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3058
3059 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3060 * gdbarch.c: Regenerate.
3061 * gdbarch.h: Likewise.
3062 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3063 gdbarch method 'regset_from_core_section'.
3064 (get_core_register_section): Remove handling for the case that
3065 regset == NULL and regset_from_core_section is defined.
3066 (get_core_registers): Drop check for deleted method.
3067 * procfs.c (procfs_do_thread_registers): Adjust comment.
3068
3069 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3070
3071 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3072 (linux_nat_make_corefile_notes): Remove.
3073 (linux_target_install_ops): Do not set target method
3074 'make_corefile_notes'.
3075 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3076 Remove field.
3077 (linux_corefile_thread_callback): Instead of args->collect, call
3078 linux_collect_thread_registers.
3079 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3080 NULL unless there is a regset iterator.
3081 (linux_make_corefile_notes_1): Remove.
3082 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3083 by linux_make_corefile_notes.
3084 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3085
3086 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3087
3088 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3089 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3090 Remove.
3091 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3092
3093 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3094
3095 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3096 (xtensa_iterate_over_regset_sections): New.
3097 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3098
3099 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3100
3101 * vax-tdep.c (vax_regset_from_core_section): Remove.
3102 (vax_iterate_over_regset_sections): New.
3103 (vax_gdbarch_init): Adjust gdbarch initialization.
3104
3105 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3106
3107 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3108 (tilegx_regset_from_core_section): Remove.
3109 (tilegx_iterate_over_regset_sections): New.
3110 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3111
3112 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3113
3114 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3115 (sparc_iterate_over_regset_sections): New.
3116 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3117 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3118 targets.
3119 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3120 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3121 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3122 target method 'make_corefile_notes'.
3123
3124 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3125
3126 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3127 'sizeof_gregset' and 'sizeof_fpregset'.
3128 * sh-tdep.c (sh_regset_from_core_section): Remove.
3129 (sh_iterate_over_regset_sections): New.
3130 (sh_gdbarch_init): Adjust gdbarch initialization.
3131 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3132 sizeof_fpregset.
3133 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3134 'sizeof_gregset'.
3135
3136 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3137
3138 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3139 (score7_linux_iterate_over_regset_sections): New.
3140 (score_gdbarch_init): Adjust gdbarch initialization.
3141
3142 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3143
3144 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3145 FreeBSD targets.
3146 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3147 method 'make_corefile_notes'.
3148 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3149 (ppcfbsd_regset_from_core_section): Remove.
3150 (ppcfbsd_iterate_over_regset_sections): New.
3151 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3152 initialization.
3153 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3154 (ppcnbsd_iterate_over_regset_sections): New.
3155 (ppcnbsd_init_abi): Adjust.
3156 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3157 (ppcobsd_iterate_over_regset_sections): New.
3158 (ppcobsd_init_abi): Adjust.
3159 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3160 (rs6000_aix_iterate_over_regset_sections): New.
3161 (rs6000_aix_init_osabi): Adjust.
3162
3163 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3164
3165 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3166 (nios2_regset_from_core_section): Remove.
3167 (nios2_iterate_over_regset_sections): New.
3168 (nios2_linux_init_abi): Adjust gdbarch initialization.
3169
3170 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3171
3172 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3173 (am33_iterate_over_regset_sections): New.
3174 (am33_linux_init_osabi): Adjust gdbarch initialization.
3175
3176 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3177
3178 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3179 (mips_linux_iterate_over_regset_sections): New.
3180 (mips_linux_init_abi): Adjust gdbarch initialization.
3181 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3182 (mips64obsd_iterate_over_regset_sections): New.
3183 (mips64obsd_init_abi): Adjust.
3184 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3185 (mipsnbsd_iterate_over_regset_sections): New.
3186 (mipsnbsd_init_abi): Adjust.
3187
3188 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3189
3190 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3191 (m88k_iterate_over_regset_sections): New.
3192 (m88k_gdbarch_init): Adjust gdbarch initialization.
3193
3194 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3195
3196 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3197 (ia64_linux_iterate_over_regset_sections): New.
3198 (ia64_linux_init_abi): Adjust gdbarch initialization.
3199
3200 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3201
3202 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3203 (m68kbsd_iterate_over_regset_sections): New.
3204 (m68kbsd_init_abi): Adjust gdbarch initialization.
3205 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3206 (m68k_linux_iterate_over_regset_sections): New.
3207 (m68k_linux_init_abi): Adjust gdbarch initialization.
3208
3209 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3210
3211 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3212 (m32r_linux_regset_from_core_section): Remove.
3213 (m32r_linux_iterate_over_regset_sections): New.
3214 (m32r_linux_init_abi): Adjust gdbarch initialization.
3215
3216 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3217
3218 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3219 (amd64obsd_iterate_over_regset_sections): New.
3220 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3221 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3222 Remove.
3223 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3224 regset_from_core_section initialization.
3225 * i386-tdep.c (i386_regset_from_core_section): Remove.
3226 (i386_iterate_over_regset_sections): New.
3227 (i386_gdbarch_init): Adjust gdbarch initialization.
3228 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3229 (i386_iterate_over_regset_sections): New prototype.
3230 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3231 Remove.
3232 (i386obsd_aout_iterate_over_regset_sections): New.
3233 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3234 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3235 targets.
3236 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3237 (amd64fbsd_init_abi): Call fbsd_init_abi.
3238 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3239 (i386fbsd4_init_abi): Call fbsd_init_abi.
3240 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3241 target method 'make_corefile_notes'.
3242 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3243
3244 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3245
3246 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3247 (hppa_hpux_iterate_over_regset_sections): New.
3248 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3249 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3250 (hppa_linux_iterate_over_regset_sections): New.
3251 (hppa_linux_init_abi): Adjust.
3252 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3253 (hppanbsd_iterate_over_regset_sections): New.
3254 (hppanbsd_init_abi): Adjust.
3255 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3256 (hppaobsd_iterate_over_regset_sections): New.
3257 (hppaobsd_init_abi): Adjust.
3258
3259 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3260
3261 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3262 (frv_linux_iterate_over_regset_sections): New.
3263 (frv_linux_init_abi): Adjust gdbarch initialization.
3264
3265 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3266
3267 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3268 (armbsd_iterate_over_regset_sections): New prototype.
3269 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3270 (armbsd_iterate_over_regset_sections): New.
3271 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3272 initialization.
3273
3274 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3275
3276 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3277 (alpha_linux_iterate_over_regset_sections): New.
3278 (alpha_linux_init_abi): Adjust gdbarch initialization.
3279 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3280 prototype.
3281 (alphanbsd_iterate_over_regset_sections): New prototype.
3282
3283 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3284
3285 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3286 Remove.
3287 (aarch64_linux_iterate_over_regset_sections): New.
3288 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3289
3290 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3291
3292 * fbsd-tdep.c: New file.
3293 * fbsd-tdep.h: New file.
3294 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3295 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3296 (ALLDEPFILES): Add fbsd-tdep.c.
3297
3298 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3299
3300 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3301 parameter.
3302 * gdbarch.h: Regenerate.
3303 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3304 iterator.
3305 (get_core_register_section): Add parameter 'regset' and use it, if
3306 set. Add parameter 'min_size' and verify the bfd section size
3307 against it.
3308 (get_core_registers_cb): Add parameter 'regset' and pass it to
3309 get_core_register section. For the "standard" register sections
3310 ".reg" and ".reg2", set an appropriate default for human_name.
3311 (get_core_registers): Don't abort when the gdbarch has an iterator
3312 but no regset_from_core_section. Add NULL/0 for parameters
3313 'regset'/'min_size' in calls to get_core_register_section.
3314 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3315 'regset' and use it instead of calling the
3316 regset_from_core_section gdbarch method.
3317 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3318 * i386-tdep.c (i386_supply_xstateregset)
3319 (i386_collect_xstateregset, i386_xstateregset): Moved to
3320 i386-linux-tdep.c.
3321 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3322 .reg-xstate.
3323 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3324 core file support only if the regset iterator hasn't been set.
3325 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3326 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3327 Moved from i386-tdep.c and renamed to *_linux*.
3328 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3329 each callback invocation. Allow any .reg-xstate size when reading
3330 from a core file.
3331 * amd64-tdep.c (amd64_supply_xstateregset)
3332 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3333 amd64-linux-tdep.c.
3334 (amd64_regset_from_core_section): Remove.
3335 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3336 install an amd64-specific regset_from_core_section gdbarch method.
3337 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3338 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3339 Moved from amd64-tdep.c and renamed to *_linux*.
3340 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3341 to each callback invocation. Allow any .reg-xstate size when
3342 reading from a core file.
3343 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3344 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3345 each callback invocation.
3346 (arm_linux_init_abi): No longer set the regset_from_core_section
3347 gdbarch method.
3348 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3349 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3350 each callback invocation.
3351 (ppc_linux_init_abi): No longer set the regset_from_core_section
3352 gdbarch method.
3353 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3354 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3355 (s390_regset_from_core_section): Remove.
3356 (s390_iterate_over_regset_sections): Add regset parameter to each
3357 callback invocation.
3358 (s390_gdbarch_init): No longer set the regset_from_core_section
3359 gdbarch method. Drop initialization of deleted tdep fields.
3360
3361 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3362
3363 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3364 (amd64_linux_iterate_over_regset_sections): New.
3365 (amd64_linux_init_abi_common): Don't install the regset section
3366 list, but the new iterator in gdbarch.
3367 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3368 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3369 (arm_linux_iterate_over_regset_sections): ...here. New function.
3370 (arm_linux_init_abi): Set iterator instead of section list.
3371 * corelow.c (get_core_registers_cb): New function, logic moved
3372 from...
3373 (get_core_registers): ...loop body here. Use new iterator method
3374 instead of walking through the regset section list.
3375 * gdbarch.sh: Remove 'core_regset_sections'. New method
3376 'iterate_over_regset_sections'. New typedef
3377 'iterate_over_regset_sections_cb'.
3378 * gdbarch.c: Regenerate.
3379 * gdbarch.h: Likewise.
3380 * i386-linux-tdep.c (i386_linux_regset_sections)
3381 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3382 Remove.
3383 (i386_linux_iterate_over_regset_sections): New.
3384 (i386_linux_init_abi): Don't choose a regset section list, but
3385 install new iterator in gdbarch.
3386 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3387 (linux_collect_regset_section_cb): New function, logic moved
3388 from...
3389 (linux_collect_thread_registers): ...loop body here. Use iterator
3390 method instead of walking through list.
3391 (linux_make_corefile_notes_1): Check for presence of iterator
3392 method instead of regset section list.
3393 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3394 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3395 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3396 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3397 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3398 (ppc_linux_init_abi): Don't choose from above regset section
3399 lists, but install new iterator in gdbarch.
3400 * regset.h (struct core_regset_section): Remove.
3401 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3402 have_linux_v1, have_linux_v2, and have_tdb.
3403 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3404 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3405 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3406 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3407 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3408 (s390_iterate_over_regset_sections): ...here. New function. Use
3409 new tdep fields.
3410 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3411 regset section lists, but install new iterator.
3412
3413 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3414
3415 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3416
3417 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3418
3419 * progspace.c (print_program_space): Don't prune program spaces
3420 before printing them.
3421
3422 2014-09-25 Pedro Alves <palves@redhat.com>
3423
3424 * infrun.c (user_visible_resume_ptid): Don't check
3425 singlestep_breakpoints_inserted_p.
3426
3427 2014-09-25 Pedro Alves <palves@redhat.com>
3428
3429 * breakpoint.c (should_be_inserted): Add debug output.
3430
3431 2014-09-25 Pedro Alves <palves@redhat.com>
3432
3433 * infrun.c (stepping_past_instruction_at)
3434 (clear_exit_convenience_vars): Point at infrun.h instead of
3435 inferior.h.
3436 (handle_signal_stop): Fix typo.
3437
3438 2014-09-24 Yao Qi <yao@codesourcery.com>
3439
3440 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3441 bitmask.
3442
3443 2014-09-22 Gary Benson <gbenson@redhat.com>
3444
3445 * target.c (target_stop): Updated comment.
3446
3447 2014-09-22 Gary Benson <gbenson@redhat.com>
3448
3449 * target/target.h (target_stop_ptid): Renamed as...
3450 (target_stop_and_wait): New function. Updated comment.
3451 All uses updated.
3452 (target_continue_ptid): Renamed as...
3453 (target_continue_no_signal): New function. Updated comment.
3454 All uses updated.
3455
3456 2014-09-22 Pedro Alves <palves@redhat.com>
3457
3458 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3459 and "auto" merged.
3460 * breakpoint.c (enum ugll_insert_mode): New enum.
3461 (always_inserted_mode): Now a plain boolean.
3462 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3463 (breakpoints_always_inserted_mode): Delete.
3464 (breakpoints_should_be_inserted_now): New function.
3465 (insert_breakpoints): Pass UGLL_INSERT to
3466 update_global_location_list instead of calling
3467 insert_breakpoint_locations manually.
3468 (create_solib_event_breakpoint_1): New, factored out from ...
3469 (create_solib_event_breakpoint): ... this.
3470 (create_and_insert_solib_event_breakpoint): Use
3471 create_solib_event_breakpoint_1 instead of calling
3472 insert_breakpoint_locations manually.
3473 (update_global_location_list): Change parameter type from boolean
3474 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3475 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3476 (update_global_location_list_nothrow): Change parameter type from
3477 boolean to enum ugll_insert_mode.
3478 (_initialize_breakpoint): "breakpoint always-inserted" option is
3479 now a boolean command. Update help text.
3480 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3481 (breakpoints_should_be_inserted_now): New declaration.
3482 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3483 Remove breakpoints_always_inserted_mode check.
3484 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3485 * remote.c (remote_start_remote): Likewise.
3486
3487 2014-09-22 Pedro Alves <palves@redhat.com>
3488
3489 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3490 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3491 Instead, pass UGLL_INSERT to update_global_location_list.
3492 (update_global_location_list): Change parameter type from boolean
3493 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3494 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3495 (create_solib_event_breakpoint_1): New, factored out from ...
3496 (create_solib_event_breakpoint): ... this.
3497 (create_and_insert_solib_event_breakpoint): Use
3498 create_solib_event_breakpoint_1 instead of calling
3499 insert_breakpoint_locations manually.
3500 (update_global_location_list): Handle UGLL_INSERT.
3501
3502 2014-09-22 Pedro Alves <palves@redhat.com>
3503
3504 * breakpoint.c (enum ugll_insert_mode): New enum.
3505 (update_global_location_list)
3506 (update_global_location_list_nothrow): Change parameter type from
3507 boolean to enum ugll_insert_mode. All callers adjusted.
3508
3509 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3510
3511 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3512 SystemTap support in GDB.
3513
3514 2014-09-19 Don Breazeal <donb@codesourcery.com>
3515
3516 * linux-nat.c (linux_handle_extended_wait): Call
3517 linux_ptrace_get_extended_event.
3518 (wait_lwp): Call linux_is_extended_waitstatus.
3519 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3520 and linux_is_extended_waitstatus.
3521 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3522 linux_ptrace_get_extended_event.
3523 (linux_ptrace_get_extended_event): New function.
3524 (linux_is_extended_waitstatus): New function.
3525 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3526 (linux_is_extended_waitstatus): New declarations.
3527
3528 2014-09-19 Yao Qi <yao@codesourcery.com>
3529
3530 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3531 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3532 comments. Callers update.
3533 (dwarf_decode_lines): Likewise.
3534 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3535 comments. Skip the line table if 'lowpc' is greater than
3536 'address'. Don't check
3537 dwarf2_per_objfile->has_section_at_zero.
3538
3539 2014-09-18 Doug Evans <dje@google.com>
3540
3541 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3542 * python/py-symtab.c (stpy_get_producer): New function.
3543 (symtab_object_getset): Add "producer" attribute.
3544
3545 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3546
3547 PR gdb/17384
3548 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3549 (do_captured_read_memory_integer): Remove.
3550 (safe_read_memory_integer): Use target_read_memory directly instead
3551 of catching errors in do_captured_read_memory_integer.
3552
3553 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3554
3555 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3556 not gdb/doc.
3557
3558 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3559
3560 * objc-lang.c (find_implementation_from_class): Remove dead code.
3561
3562 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3563
3564 PR cli/7233
3565 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3566 "fprintf_unfiltered (gdb_stdlog...)".
3567
3568 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3569
3570 PR breakpoints/12526
3571 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3572 val_bitsize.
3573 * breakpoint.c (watch_command_1): Use these fields to retain
3574 bitfield information.
3575 (extract_bitfield_from_watchpoint_value): New function.
3576 (watchpoint_check): Use it.
3577 (update_watchpoint): Use it. Optimize the address and length of a
3578 HW watchpoint pointing to a bitfield.
3579 * value.h (unpack_value_bitfield): New prototype.
3580 * value.c (unpack_value_bitfield): Make extern.
3581
3582 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3583
3584 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3585 x86-dregs.o.
3586 * gnu-nat.c (inf_threads): New function.
3587 * gnu-nat.h (inf_threads_ftype): New typedef.
3588 (inf_threads): New declaration.
3589 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3590 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3591 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3592 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3593 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3594 (i386_gnu_dr_get_control): New functions.
3595 (reg_addr): New structure.
3596 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3597 i386 debugging register hooks.
3598 * NEWS: Mention this.
3599
3600 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3601
3602 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3603 vector data transfer instructions.
3604 (arm_record_coproc_data_proc): Updated.
3605
3606 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3607
3608 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3609 arm_record_exreg_ld_st_insn.
3610 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3611 load/store insns.
3612
3613 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3614
3615 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3616 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3617 processing instructions.
3618
3619 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3620
3621 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3622 for advance SIMD struct ld/st insn.
3623 (thumb2_record_decode_insn_handler): Replace stub handler with
3624 thumb2_record_asimd_struct_ld_st.
3625
3626 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3627
3628 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3629 for asimd, vfp and coprocessor insns.
3630 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3631 and coprocessor insns.
3632 (thumb2_record_coproc_insn): New function.
3633 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3634 handlers.
3635 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3636 opcode 110 insns.
3637
3638 2014-09-13 Doug Evans <xdje42@gmail.com>
3639
3640 * NEWS: Mention new "queue-signal" command.
3641 * infcmd.c (queue_signal_command): New function.
3642 (_initialize_infcmd): Add new queue-signal command.
3643
3644 2014-09-13 Doug Evans <xdje42@gmail.com>
3645
3646 * linux-nat.c (wait_lwp): Add debugging printf.
3647 (linux_nat_wait_1): Ditto.
3648
3649 2014-09-12 Pedro Alves <palves@redhat.com>
3650
3651 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3652 (create_and_insert_solib_event_breakpoint): New functions.
3653 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3654 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3655 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3656 (remove_dbx_link_breakpoint): Delete function.
3657 (insert_dbx_link_bpt_in_file): Use
3658 create_and_insert_solib_event_breakpoint instead of
3659 deprecated_insert_raw_breakpoint.
3660 (procfs_wait): Don't check whether we hit __dbx_link here.
3661 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3662 here.
3663 * solib-irix.c (base_breakpoint): Delete global.
3664 (disable_break): Delete function.
3665 (enable_break): Use create_solib_event_breakpoint
3666 instead of deprecated_insert_raw_breakpoint.
3667 (irix_solib_handle_event): New function.
3668 (irix_solib_create_inferior_hook): Don't run the target or disable
3669 the mapping-complete breakpoint here.
3670 (_initialize_irix_solib): Install irix_solib_handle_event as
3671 so_ops->handle_event hook.
3672
3673 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3674 Ulrich Weigand  <uweigand@de.ibm.com>
3675
3676 PR tdep/17379
3677 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3678 instead of read_memory_unsigned_integer.
3679
3680 2014-09-12 Gary Benson <gbenson@redhat.com>
3681
3682 * nat/linux-waitpid.c: Include common-defs.h.
3683 [GDBSERVER]: Add FIXME comment.
3684 [!GDBSERVER]: Don't include defs.h or signal.h.
3685 (linux_debug) [!GDBSERVER]: Remove empty block.
3686
3687 2014-09-12 Gary Benson <gbenson@redhat.com>
3688
3689 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3690 Don't include defs.h or server.h.
3691
3692 2014-09-12 Gary Benson <gbenson@redhat.com>
3693
3694 * nat/linux-btrace.c: Include common-defs.h.
3695 Don't include defs.h, server.h or gdbthread.h.
3696 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3697
3698 2014-09-12 Gary Benson <gbenson@redhat.com>
3699
3700 * common/agent.c: Include common-defs.h.
3701 Don't include defs.h or server.h.
3702 * common/buffer.c: Likewise.
3703 * common/common-debug.c: Likewise.
3704 * common/common-utils.c: Likewise.
3705 * common/errors.c: Likewise.
3706 * common/filestuff.c: Likewise.
3707 * common/format.c: Likewise.
3708 * common/gdb_vecs.c: Likewise.
3709 * common/print-utils.c: Likewise.
3710 * common/ptid.c: Likewise.
3711 * common/rsp-low.c: Likewise.
3712 * common/signals.c: Likewise.
3713 * common/vec.c: Likewise.
3714 * common/xml-utils.c: Likewise.
3715 * nat/linux-osdata.c: Likewise.
3716 * nat/linux-procfs.c: Likewise.
3717 * nat/linux-ptrace.c: Likewise.
3718 * nat/mips-linux-watch.c: Likewise.
3719 * target/waitstatus.c: Likewise.
3720
3721 2014-09-12 Tom Tromey <tromey@redhat.com>
3722 Gary Benson <gbenson@redhat.com>
3723
3724 * common/common-regcache.h: New file.
3725 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3726 * regcache.h: Include common-regcache.h.
3727 (regcache_read_pc): Don't declare.
3728 * regcache.c (get_thread_regcache_for_ptid): New function.
3729 * nat/linux-btrace.c: Don't include regcache.h.
3730 Include common-regcache.h.
3731 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3732
3733 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3734
3735 * regcache.h (struct regset): Declare.
3736
3737 2014-09-11 Pedro Alves <palves@redhat.com>
3738
3739 PR gdb/17347
3740 * main.c: Include "infrun.h".
3741 (catch_command_errors, catch_command_errors_const): Wait for the
3742 foreground command to complete.
3743 * top.c (maybe_wait_sync_command_done): New function, factored out
3744 from ...
3745 (maybe_wait_sync_command_done): ... here.
3746 * top.h (maybe_wait_sync_command_done): New declaration.
3747
3748 2014-09-11 Tom Tromey <tromey@redhat.com>
3749 Gary Benson <gbenson@redhat.com>
3750
3751 * common/symbol.h: New file.
3752 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3753 * minsyms.c (find_minimal_symbol_address): New function.
3754 * common/agent.c: Include common/symbol.h.
3755 [!GDBSERVER]: Don't include objfiles.h.
3756 (agent_look_up_symbols): Use find_minimal_symbol_address.
3757
3758 2014-09-11 Gary Benson <gbenson@redhat.com>
3759
3760 * target/target.h (target_stop_ptid, target_continue_ptid):
3761 Declare.
3762 * target.c (target_stop_ptid, target_continue_ptid): New
3763 functions.
3764 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3765 (agent_run_command): Always use target_stop_ptid and
3766 target_continue_ptid.
3767
3768 2014-09-11 Tom Tromey <tromey@redhat.com>
3769 Gary Benson <gbenson@redhat.com>
3770
3771 * target/target.h: New file.
3772 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3773 * target.h: Include target/target.h.
3774 (target_read_memory, target_write_memory): Don't declare.
3775 * target.c (target_read_uint32): New function.
3776 * common/agent.c: Include target/target.h.
3777 [!GDBSERVER]: Don't include target.h.
3778 (helper_thread_id): Type changed to uint32_t.
3779 (agent_get_helper_thread_id): Use target_read_uint32.
3780 (agent_run_command): Always use target_read_memory and
3781 target_write_memory.
3782 (agent_capability): Type changed to uint32_t.
3783 (agent_capability_check): Use target_read_uint32.
3784
3785 2014-09-11 Gary Benson <gbenson@redhat.com>
3786
3787 * common/common-debug.h (show_debug_regs): Declare.
3788 * common/common-debug.c (show_debug_regs): Define.
3789 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3790 all uses with show_debug_regs. Replace all uses that considered
3791 debug_hw_points as a multi-value integer with straight boolean
3792 uses.
3793 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3794 with show_debug_regs.
3795 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3796 all uses with show_debug_regs.
3797 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3798 uses with show_debug_regs.
3799
3800 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3801
3802 * findvar.c (address_from_register): Handle targets requiring
3803 a special conversion routine even for plain pointer types.
3804
3805 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3806
3807 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3808 (store_register): Do not call exec_one_dummy_insn.
3809
3810 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3811
3812 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3813 dereference it first. Use value_enclosing_type instead of
3814 value_type.
3815 (ada_array_length): Likewise.
3816
3817 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3818
3819 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3820 Adjust function implementation and documentation accordingly.
3821 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3822 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3823 Update call to ada_value_ptr_subscript.
3824
3825 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3826
3827 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3828 instead of VAL's type.
3829
3830 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3831
3832 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3833
3834 2014-09-09 Doug Evans <xdje42@gmail.com>
3835
3836 PR guile/17367
3837 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3838 last parameter to pkg-config, not first.
3839 * configure.ac: Pass --with-guile provided pkg-config path to
3840 GDB_GUILE_PROGRAM_NAMES.
3841 * configure: Regenerate.
3842
3843 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3844
3845 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3846 Bertazi".
3847
3848 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3849
3850 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3851 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3852 the list of sections determining GDB_OSABI_IRIX.
3853
3854 2014-09-09 James Hogan <james.hogan@imgtec.com>
3855
3856 * MAINTAINERS (Write After Approval): Add "James Hogan".
3857
3858 2014-09-09 James Hogan <james.hogan@imgtec.com>
3859
3860 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3861
3862 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3863
3864 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3865
3866 2014-09-08 Doug Evans <xdje42@gmail.com>
3867
3868 PR 17247
3869 * guile.c: #include <signal.h>.
3870 (_initialize_guile): Block SIGCHLD while initializing Guile.
3871
3872 Replaces the following, which is reverted.
3873
3874 2014-07-26 Doug Evans <xdje42@gmail.com>
3875
3876 PR 17185
3877 * configure.ac: Add check for header gc/gc.h.
3878 Add check for function setenv.
3879 * configure: Regenerate.
3880 * config.in: Regenerate.
3881 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3882
3883 2014-09-08 Doug Evans <xdje42@gmail.com>
3884
3885 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3886 with named constant. Fix style of pointer comparison.
3887 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3888
3889 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3890
3891 PR gdb/17035
3892 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3893 decide whether we display the command on "show user".
3894 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3895 printing command name.
3896 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3897 * cli/cli-decode.c (cli_user_command_p): Create helper function
3898 to verify whether cmd_list_element is a user-defined command.
3899
3900 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3901
3902 PR python/17355
3903 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3904 Fix goto out of TRY_CATCH.
3905
3906 2014-09-06 Doug Evans <xdje42@gmail.com>
3907 Tom Tromey <tromey@redhat.com>
3908
3909 PR 15276
3910 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3911 $_any_caller_matches.
3912 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3913 * python/lib/gdb/function/caller_is.py: New file.
3914
3915 2014-09-06 Doug Evans <xdje42@gmail.com>
3916
3917 * infcmd.c (program_info): Fix typo.
3918
3919 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3920
3921 PR gdb/17235
3922 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3923 'number'. New variable 'has_digit'. Rewrite code to deal with
3924 subexpressions on SDT probes.
3925
3926 2014-09-04 Pedro Alves <palves@redhat.com>
3927
3928 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3929 the input is only one character long.
3930
3931 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3932
3933 PR fortran/17237
3934 * f-valprint.c (f_val_print): Specify the correct print option to
3935 use when printing integer values.
3936
3937 2014-09-04 Gary Benson <gbenson@redhat.com>
3938
3939 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3940 Remove code to cope with LWPs wrapped as PIDs.
3941 Add assertions to ensure no wrapped LWPs are passed.
3942
3943 2014-09-04 Pedro Alves <palves@redhat.com>
3944
3945 * value.c (value_ranges_copy_adjusted): New function, factored out
3946 from ...
3947 (value_contents_copy_raw): ... here.
3948 (unpack_value_bits_as_long_1): Rename back to ...
3949 (unpack_bits_as_long): ... this. Remove 'original_value' and
3950 'result' parameters. Change return type to LONGEST.
3951 (unpack_value_bits_as_long): Delete.
3952 (unpack_value_field_as_long_1): Delete.
3953 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3954 (unpack_value_bitfield): New function.
3955 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3956 (value_fetch_lazy): Use unpack_value_bitfield.
3957 * value.h (unpack_value_bits_as_long): Delete declaration.
3958
3959 2014-09-03 Sasha Smundak <asmundak@google.com>
3960
3961 * python/py-frame.c (frapy_read_register): New function.
3962
3963 2014-09-03 James Hogan <james.hogan@imgtec.com>
3964
3965 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3966 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3967
3968 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3969
3970 PR python/16699
3971 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3972 function.
3973 (add_cmd): Set "completer_handle_brkchars" to NULL.
3974 * cli/cli-decode.h (struct cmd_list_element)
3975 <completer_handle_brkchars>: New field.
3976 * command.h (completer_ftype_void): New typedef.
3977 (set_cmd_completer_handle_brkchars): New prototype.
3978 * completer.c (set_gdb_completion_word_break_characters): New
3979 function.
3980 (complete_line_internal): Call "completer_handle_brkchars"
3981 callback from command.
3982 * completer.h: Include "command.h".
3983 (set_gdb_completion_word_break_characters): New prototype.
3984 * python/py-cmd.c (cmdpy_completer_helper): New function.
3985 (cmdpy_completer_handle_brkchars): New function.
3986 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3987 (cmdpy_init): Set completer_handle_brkchars to
3988 cmdpy_completer_handle_brkchars.
3989
3990 2014-09-03 Gary Benson <gbenson@redhat.com>
3991
3992 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3993 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3994 Loop conditions changed to equivalent form.
3995 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3996 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3997 ALL_DEBUG_ADDRESS_REGISTERS.
3998
3999 2014-09-03 Joel Brobecker <brobecker@adacore.com>
4000
4001 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4002 description fix.
4003
4004 2014-09-02 Doug Evans <dje@google.com>
4005
4006 * typeprint.c (find_global_typedef): Fix comment.
4007
4008 2014-09-02 Gary Benson <gbenson@redhat.com>
4009
4010 * i386-nat.h: Renamed as...
4011 * x86-nat.h: New file. All type, function and variable name
4012 prefixes changed from "i386_" to "x86_". All references updated.
4013 * i386-nat.c: Renamed as...
4014 * x86-nat.c: New file. All type, function and variable name
4015 prefixes changed from "i386_" to "x86_". All references updated.
4016 * common/i386-xstate.h: Renamed as...
4017 * common/x86-xstate.h: New file. All type, function and variable
4018 name prefixes changed from "i386_" to "x86_". All references
4019 updated.
4020 * nat/i386-cpuid.h: Renamed as...
4021 * nat/x86-cpuid.h: New file. All type, function and variable name
4022 prefixes changed from "i386_" to "x86_". All references updated.
4023 * nat/i386-gcc-cpuid.h: Renamed as...
4024 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4025 name prefixes changed from "i386_" to "x86_". All references
4026 updated.
4027 * nat/i386-dregs.h: Renamed as...
4028 * nat/x86-dregs.h: New file. All type, function and variable name
4029 prefixes changed from "i386_" to "x86_". All references updated.
4030 * nat/i386-dregs.c: Renamed as...
4031 * nat/x86-dregs.c: New file. All type, function and variable name
4032 prefixes changed from "i386_" to "x86_". All references updated.
4033
4034 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4035
4036 * varobj.c (_initialize_varobj): Move to the end of file.
4037
4038 2014-08-29 Gary Benson <gbenson@redhat.com>
4039
4040 * common/common-exceptions.h: New file.
4041 * common/common-exceptions.c: Likewise.
4042 * Makefile.in (SFILES): Add common/common-exceptions.c.
4043 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4044 (COMMON_OBS): Add common-exceptions.o.
4045 (common-exceptions.o): New rule.
4046 * exceptions.h (common-exceptions.h): Include.
4047 (gdb_setjmp.h): Do not include.
4048 (return_reason): Moved to common-exceptions.h.
4049 (enum return_reason): Likewise.
4050 (RETURN_MASK): Likewise.
4051 (typedef return_mask): Likewise.
4052 (enum errors): Likewise.
4053 (struct gdb_exception): Likewise.
4054 (exceptions_state_mc_init): Likewise.
4055 (exceptions_state_mc_action_iter): Likewise.
4056 (exceptions_state_mc_action_iter_1): Likewise.
4057 (TRY_CATCH): Likewise.
4058 (throw_exception): Likewise.
4059 (throw_verror): Likewise.
4060 (throw_vquit): Likewise.
4061 (throw_error): Likewise.
4062 (throw_quit): Likewise.
4063 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4064 (enum catcher_action): Likewise.
4065 (struct catcher): Likewise.
4066 (current_catcher): Likewise.
4067 (catcher_list_size): Likewise.
4068 (exceptions_state_mc_init): Likewise.
4069 (catcher_pop): Likewise.
4070 (exceptions_state_mc): Likewise.
4071 (exceptions_state_mc_action_iter): Likewise.
4072 (exceptions_state_mc_action_iter_1): Likewise.
4073 (throw_exception): Likewise.
4074 (exception_messages): Likewise.
4075 (exception_messages_size): Likewise.
4076 (throw_it): Likewise.
4077 (throw_verror): Likewise.
4078 (throw_vquit): Likewise.
4079 (throw_error): Likewise.
4080 (throw_quit): Likewise.
4081 (prepare_to_throw_exception): New function.
4082
4083 2014-08-29 Gary Benson <gbenson@redhat.com>
4084
4085 * common/gdb_setjmp.h: New file.
4086 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4087 * configure.ac: Move sigsetjmp check...
4088 * common/common.m4: ...here.
4089 * configure: Regenerate.
4090 * cp-support.c (SIGJMP_BUF): Delete.
4091 (SIGSETJMP): Likewise.
4092 (SIGLONGJMP): Likewise.
4093 * exceptions.h (gdb_setjmp.h): Include.
4094 (setjmp.h): Do not include.
4095 (EXCEPTIONS_SIGJMP_BUF): Delete.
4096 (EXCEPTIONS_SIGSETJMP): Likewise.
4097 (EXCEPTIONS_SIGLONGJMP): Likewise.
4098 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4099 from gdb_setjmp.h.
4100 * exceptions.c: Likewise.
4101
4102 2014-08-29 Gary Benson <gbenson@redhat.com>
4103
4104 * cleanups.h: Moved to...
4105 * common/cleanups.h: New file.
4106 * cleanups.c: Moved to...
4107 * common/cleanups.c: New file. Include common-defs.h and
4108 cleanups.h. Do not include defs.h.
4109 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4110 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4111 (cleanups.o): New rule.
4112
4113 2014-08-29 Gary Benson <gbenson@redhat.com>
4114
4115 * common/errors.h (internal_warning): New declaration.
4116 (internal_vwarning): Likewise.
4117 * common/errors.c (internal_warning): New function.
4118 * utils.h (internal_warning): Don't declare.
4119 (internal_vwarning): Likewise.
4120 * utils.c (internal_warning): Removed.
4121
4122 2014-08-29 Gary Benson <gbenson@redhat.com>
4123
4124 * main.c (captured_main): Use warning during startup.
4125 Prefix startup warning messages with command name.
4126
4127 2014-08-29 Gary Benson <gbenson@redhat.com>
4128
4129 * main.c (captured_main): Handle usage errors with error.
4130
4131 2014-08-29 Gary Benson <gbenson@redhat.com>
4132
4133 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4134 exit pair with a call to error. Wrap the message with _().
4135
4136 2014-08-29 Gary Benson <gbenson@redhat.com>
4137
4138 * main.c (captured_main): Replace a fprintf/exit
4139 pair with a call to error. Wrap the message with _().
4140
4141 2014-08-29 Gary Benson <gbenson@redhat.com>
4142
4143 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4144 pairs with calls to error. Wrap the message with _().
4145
4146 2014-08-29 Gary Benson <gbenson@redhat.com>
4147
4148 * utils.c (vwarning): Protect calls to target_terminal_ours
4149 and wrap_here.
4150
4151 2014-08-29 Gary Benson <gbenson@redhat.com>
4152
4153 * exceptions.c (print_flush): Protect calls to
4154 target_terminal_ours and wrap_here.
4155
4156 2014-08-29 Gary Benson <gbenson@redhat.com>
4157
4158 * utils.h (filtered_printing_initialized): New declaration.
4159 * utils.c (abort_with_message): New function.
4160 (internal_vproblem): Use abort_with_message for first level
4161 recursive internal problems, and if gdb_stderr is not set up.
4162 Protect calls to target_terminal_ours, begin_line and query.
4163
4164 2014-08-28 Doug Evans <dje@google.com>
4165
4166 * symtab.c (in_prologue): Move definition to better spot.
4167 (skip_prologue_using_sal): Ditto.
4168
4169 2014-08-28 Doug Evans <dje@google.com>
4170
4171 * symtab.c (find_function_start_sal): Move definition to better spot.
4172
4173 2014-08-28 Yao Qi <yao@codesourcery.com>
4174
4175 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4176 found_stack_adjust in forward scan. Remove condition check
4177 on found_stack_adjust which is always true. Indent the code.
4178
4179 2014-08-28 Yao Qi <yao@codesourcery.com>
4180
4181 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4182 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4183 (dwarf_decode_lines): Remove argument
4184 want_line_info. Remove condition check on want_line_info.
4185 Callers update.
4186
4187 2014-08-27 Doug Evans <dje@google.com>
4188
4189 * dwarf2read.c (dwarf_record_line): Fix typo.
4190
4191 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4192
4193 * target.h (struct target_ops::to_terminal_save_ours): Remove
4194 declaration.
4195 (target_terminal_save_ours): Remove macro.
4196 * target-delegates.c: Regenerate.
4197 * inf-child.c (inf_child_target): Don't set the nonexistent
4198 field to_terminal_save_ours.
4199 * inferior.h (child_terminal_save_ours): Remove declaration.
4200 * terminal.h (gdb_save_tty_state): New declaration.
4201 * inflow.c (child_terminal_save_ours): Rename to ...
4202 (gdb_save_tty_state): ... this.
4203 * tui/tui.c: Include terminal.h.
4204 (tui_enable): Use gdb_save_tty_state instead of
4205 target_terminal_save_ours.
4206 (tui_disable): Likewise.
4207
4208 2014-08-25 Doug Evans <dje@google.com>
4209
4210 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4211 Pass NULL instead of 0 for context pointer.
4212
4213 2014-08-25 Yao Qi <yao@codesourcery.com>
4214
4215 * dwarf2read.c: Fix grammatical error.
4216
4217 2014-08-24 Yao Qi <yao@codesourcery.com>
4218
4219 * dwarf2read.c (scan_partial_symbols): Update comments.
4220 Rename argument 'need_pc' with 'set_addrmap'.
4221 (add_partial_namespace): Rename argument 'need_pc' with
4222 'set_addrmap'.
4223 (add_partial_module): Likewise.
4224 (add_partial_subprogram): Likewise. Update comments.
4225 (dwarf2_name): Fix typo.
4226
4227 2014-08-22 Doug Evans <dje@google.com>
4228
4229 PR 17276
4230 * dwarf2read.c (dwarf_record_line_p): New function.
4231 (dwarf_decode_lines_1): Ignore subsequent line number entries
4232 for the same line if any entry had a non-zero discriminator.
4233
4234 2014-08-22 Doug Evans <dje@google.com>
4235
4236 * buildsym.h (record_line_ftype): New typedef.
4237 (record_line): Use it.
4238 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4239 (dwarf_decode_lines_1): Call them.
4240
4241 2014-08-22 Yao Qi <yao@codesourcery.com>
4242
4243 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4244 (ctf_end): Remove code.
4245
4246 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4247
4248 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4249 (linux_make_corefile_notes): call update_thread_list, protected against
4250 exceptions.
4251
4252 2014-08-21 Pedro Alves <palves@redhat.com>
4253
4254 * infcmd.c (attach_command): Remove comment.
4255
4256 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4257
4258 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4259 unsigned LONGEST to ULONGEST.
4260
4261 2014-08-20 Pedro Alves <palves@redhat.com>
4262
4263 * Makefile.in (check-read1): New rule.
4264
4265 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4266
4267 * value.c (value_from_contents_and_address): Strip resolved_type's
4268 typedef layers before checking its TYPE_DATA_LOCATION.
4269
4270 2014-08-20 Pedro Alves <palves@redhat.com>
4271
4272 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4273
4274 2014-08-20 Yao Qi <yao@codesourcery.com>
4275
4276 * amd64-tdep.c (amd64_classify): Add a blank line after the
4277 example. Move "*/" to a new line.
4278 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4279 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4280 * dwarf2read.c (psymtab_include_file_name): Likewise.
4281
4282 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4283 Pedro Alves <palves@redhat.com>
4284
4285 PR symtab/14604
4286 PR symtab/14605
4287 * ada-lang.c (coerce_unspec_val_to_type): Use
4288 value_contents_copy_raw.
4289 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4290 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4291 * cp-valprint.c (cp_print_value_fields): Let the common printing
4292 code handle optimized out values.
4293 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4294 * d-valprint.c (dynamic_array_type): Use
4295 value_bits_any_optimized_out.
4296 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4297 check_any_valid fields.
4298 (check_pieced_value_bits): Delete and inline ...
4299 (check_pieced_synthetic_pointer): ... here.
4300 (check_pieced_value_validity): Delete.
4301 (check_pieced_value_invalid): Delete.
4302 (pieced_value_funcs): Remove check_validity and check_any_valid
4303 fields.
4304 (read_pieced_value): Use mark_value_bits_optimized_out.
4305 (write_pieced_value): Switch to use
4306 mark_value_bytes_optimized_out.
4307 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4308 of assuming the whole value is optimized out.
4309 * findvar.c (read_frame_register_value): Remove special handling
4310 of optimized out registers.
4311 (value_from_register): Use mark_value_bytes_optimized_out.
4312 * frame-unwind.c (frame_unwind_got_optimized): Use
4313 mark_value_bytes_optimized_out.
4314 * jv-valprint.c (java_value_print): Adjust.
4315 (java_print_value_fields): Let the common printing code handle
4316 optimized out values.
4317 * mips-tdep.c (mips_print_register): Remove special handling of
4318 optimized out registers.
4319 * opencl-lang.c (lval_func_check_validity): Delete.
4320 (lval_func_check_any_valid): Delete.
4321 (opencl_value_funcs): Remove check_validity and check_any_valid
4322 fields.
4323 * p-valprint.c (pascal_object_print_value_fields): Let the common
4324 printing code handle optimized out values.
4325 * stack.c (read_frame_arg): Remove special handling of optimized
4326 out values. Fetch both VAL and ENTRYVAL before comparing
4327 contents. Adjust to value_available_contents_eq rename.
4328 * valprint.c (valprint_check_validity)
4329 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4330 (val_print_array_elements): Adjust.
4331 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4332 (value_bits_any_optimized_out): New function.
4333 (value_entirely_covered_by_range_vector): New function, factored
4334 out from value_entirely_unavailable.
4335 (value_entirely_unavailable): Reimplement.
4336 (value_entirely_optimized_out): New function.
4337 (insert_into_bit_range_vector): New function, factored out from
4338 mark_value_bits_unavailable.
4339 (mark_value_bits_unavailable): Reimplement.
4340 (struct ranges_and_idx): New struct.
4341 (find_first_range_overlap_and_match): New function, factored out
4342 from value_available_contents_bits_eq.
4343 (value_available_contents_bits_eq): Rename to ...
4344 (value_contents_bits_eq): ... this. Check both unavailable
4345 contents and optimized out contents.
4346 (value_available_contents_eq): Rename to ...
4347 (value_contents_eq): ... this.
4348 (allocate_value_lazy): Remove reference to the old optimized_out
4349 boolean.
4350 (allocate_optimized_out_value): Use
4351 mark_value_bytes_optimized_out.
4352 (require_not_optimized_out): Adjust to check whether the
4353 optimized_out vec is empty.
4354 (ranges_copy_adjusted): New function, factored out from
4355 value_contents_copy_raw.
4356 (value_contents_copy_raw): Also copy the optimized out ranges.
4357 Assert the destination ranges aren't optimized out.
4358 (value_contents_copy): Update comment, remove call to
4359 require_not_optimized_out.
4360 (value_contents_equal): Adjust to check whether the optimized_out
4361 vec is empty.
4362 (set_value_optimized_out, value_optimized_out_const): Delete.
4363 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4364 New functions.
4365 (value_entirely_optimized_out, value_bits_valid): Delete.
4366 (value_copy): Take a VEC copy of the 'optimized_out' field.
4367 (value_primitive_field): Remove special handling of optimized out.
4368 (value_fetch_lazy): Assert that lazy values have no unavailable
4369 regions. Use value_bits_any_optimized_out. Remove some special
4370 handling for optimized out values.
4371 * value.h: Add intro comment about <optimized out> and
4372 <unavailable>.
4373 (struct lval_funcs): Remove check_validity and check_any_valid
4374 fields.
4375 (set_value_optimized_out, value_optimized_out_const): Remove.
4376 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4377 New declarations.
4378 (value_bits_any_optimized_out): New declaration.
4379 (value_bits_valid): Delete declaration.
4380 (value_available_contents_eq): Rename to ...
4381 (value_contents_eq): ... this, and extend comments.
4382
4383 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4384
4385 Fix -fsanitize=address on unreadable inferior strings.
4386 * valprint.c (val_print_string): Fix access before BUFFER.
4387
4388 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4389
4390 * target.c (target_struct_size): Remove.
4391 (target_struct_allocsize): Remove.
4392 (DEFAULT_ALLOCSIZE): Remove.
4393 (target_ops_p): New typedef.
4394 (DEF_VEC_P (target_ops_p)): New vector type.
4395 (target_structs): Change type to VEC (target_ops_p).
4396 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4397 (find_default_run_target): Rewrite for loop following changes to
4398 target_structs.
4399
4400 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4401
4402 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4403 Adjust code accordingly. Adjust function description comment.
4404
4405 2014-08-19 Yao Qi <yao@codesourcery.com>
4406
4407 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4408 types.
4409
4410 2014-08-19 Alan Modra <amodra@gmail.com>
4411
4412 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4413 * config.in: Regenerate.
4414 * configure: Regenerate.
4415
4416 2014-08-19 Tom Tromey <tromey@redhat.com>
4417 Gary Benson <gbenson@redhat.com>
4418
4419 * common/common-debug.h: New file.
4420 * common/common-debug.c: Likewise.
4421 * debug.c: Likewise.
4422 * Makefile.in (SFILES): Add common/common-debug.c.
4423 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4424 (COMMON_OBS): Add common-debug.o and debug.o.
4425 (common-debug.o): New rule.
4426 * common/common-defs.h: Include common-debug.h.
4427 * common/agent.c (debug_agent_printf): New function.
4428 (DEBUG_AGENT): Redefine.
4429 * nat/i386-dregs.c (debug_printf): Undefine.
4430
4431 2014-08-19 Gary Benson <gbenson@redhat.com>
4432
4433 * common/common-defs.h: Include print-utils.h.
4434 * utils.h: Do not include print-utils.h.
4435
4436 2014-08-19 Tom Tromey <tromey@redhat.com>
4437 Gary Benson <gbenson@redhat.com>
4438
4439 * common/common-types.h: New file.
4440 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4441 * common/common-defs.h: Include common-types.h.
4442 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4443 (ULONGEST): Remove.
4444
4445 2014-08-19 Tom Tromey <tromey@redhat.com>
4446 Gary Benson <gbenson@redhat.com>
4447
4448 * common/errors.h: New file.
4449 * common/errors.c: Likewise.
4450 * Makefile.in (SFILES): Add common/errors.c.
4451 (HFILES_NO_SRCDIR): Add common/errors.h.
4452 (COMMON_OBS): Add errors.o.
4453 (errors.o): New rule.
4454 * common/common-defs.h: Include errors.h.
4455 * utils.h (perror_with_name, error, verror, warning, vwarning):
4456 Don't declare.
4457 * common/common-utils.h: (malloc_failure, internal_error):
4458 Likewise.
4459
4460 2014-08-19 Gary Benson <gbenson@redhat.com>
4461
4462 * utils.c (internal_vproblem): Always print the message.
4463
4464 2014-08-18 Doug Evans <dje@google.com>
4465
4466 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4467
4468 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4469
4470 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4471 Return 0 if TYPE is dynamic.
4472 (print_range): Add handling of dynamic ranges.
4473
4474 2014-08-18 Keven Boell <keven.boell@intel.com>
4475 Joel Brobecker <brobecker@adacore.com>
4476
4477 * gdbtypes.h (struct main_type): Add field "data_location".
4478 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4479 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4480 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4481 a dynamic data location.
4482 (resolve_dynamic_type): Add DW_AT_data_location handling.
4483 (copy_recursive, copy_type): Copy the data_location information
4484 when present.
4485 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4486 * value.c (value_from_contents_and_address): Add
4487 DW_AT_data_location handling.
4488
4489 2014-08-18 Keven Boell <keven.boell@intel.com>
4490 Joel Brobecker <brobecker@adacore.com>
4491
4492 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4493 field "get_object_address".
4494 * dwarf2expr.c (execute_stack_op): Add handling for
4495 DW_OP_push_object_address.
4496 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4497 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4498 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4499 (dwarf_expr_get_obj_addr): New function.
4500 (dwarf_expr_ctx_funcs): Add get_object_address field.
4501 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4502 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4503 (dwarf2_evaluate_property): Add parameter "address". Use it.
4504 (needs_get_obj_addr): New function.
4505 (needs_frame_ctx_funcs): Add get_object_address field.
4506 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4507 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4508 (resolve_dynamic_array): Likewise.
4509
4510 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4511
4512 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4513 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4514 fixed value for records and unions for which some GNAT encodings
4515 are present.
4516
4517 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4518
4519 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4520 rewrite to avoid "else if" and "else" constructs. Should be
4521 a no-op in practice.
4522
4523 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4524
4525 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4526 of lexical block.
4527
4528 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4529
4530 PR c++/17132
4531 * eval.c: Update all calls to find_overload_match.
4532 * valarith.c: Likewise.
4533 (value_user_defined_cpp_op, value_user_defined_op): New
4534 argument NOSIDE. Update all callers.
4535 * valops.c (find_overload_match): New argument NOSIDE.
4536 * value.h (find_overload_match): Update signature.
4537
4538 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4539
4540 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4541 'items' methods instead of 'iteritems' method on dictionaries.
4542
4543 2014-08-15 Doug Evans <dje@google.com>
4544
4545 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4546 closer to use.
4547
4548 2014-08-15 Doug Evans <dje@google.com>
4549
4550 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4551
4552 2014-08-15 Doug Evans <dje@google.com>
4553
4554 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4555
4556 2014-08-15 Doug Evans <dje@google.com>
4557
4558 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4559 unused.
4560
4561 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4562
4563 * dcache.h: Include target.h, to avoid compile time warnings.
4564
4565 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4566
4567 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4568 frame_info" partial declaration.
4569 * gdbarch.h: Regenerate.
4570
4571 2014-08-15 Yao Qi <yao@codesourcery.com>
4572
4573 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4574 Add parameter 'decode_for_pst_p'. Callers update.
4575
4576 2014-08-13 Yao Qi <yao@codesourcery.com>
4577
4578 PR build/17104
4579 * configure.ac: Use local variable 'pos'.
4580 * configure: Regenerated.
4581
4582 2014-08-11 Doug Evans <dje@google.com>
4583
4584 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4585 message, it is redundant with "Reading symbols from ..." message.
4586
4587 2014-08-10 Doug Evans <xdje42@gmail.com>
4588
4589 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4590
4591 2014-08-09 Yao Qi <yao@codesourcery.com>
4592
4593 PR remote/9053
4594 * remote.c (remote_xfer_partial): Remove dead code.
4595
4596 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4597
4598 * ia64-linux-tdep.c: Include "regset.h".
4599 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4600 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4601 (ia64_linux_supply_fpregset): New function.
4602 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4603 (ia64_linux_regset_from_core_section): New function.
4604 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4605 method.
4606
4607 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4608
4609 * m68klinux-tdep.c: Include "regset.h".
4610 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4611 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4612 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4613 (m68k_linux_regset_from_core_section): New function.
4614 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4615 method.
4616
4617 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4618
4619 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4620 function. Move logic to...
4621 (tilegx_linux_regmap): ... this new register map.
4622 (tilegx_linux_regset): Refer to register map, replace supply
4623 method by regcache_supply_regset, and add collect method.
4624 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4625 TILEGX_FIRST_EASY_REGNUM.
4626
4627 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4628
4629 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4630 that calls regcache_supply_regset and handles the EPC register
4631 separately. Move main logic to...
4632 (score7_linux_gregmap): ... this new register map.
4633 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4634 (score7_linux_gregset): Refer to register map. Add collect method.
4635 (score7_linux_regset_from_core_section): Replace
4636 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4637 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4638 (struct regset): Delete unused forward declaraction.
4639 (struct pt_regs): Delete structure definition.
4640 (elf_gregset_t): Delete typedef.
4641
4642 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4643
4644 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4645 (nios2_core_regset): Add collect method.
4646
4647 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4648
4649 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4650 platform-independent and don't write to read-only input buffer.
4651 (m32r_linux_collect_gregset): New function.
4652 (m32r_linux_gregset): Add collect method.
4653
4654 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4655
4656 * hppa-linux-tdep.c (greg_map): Rename to...
4657 (hppa_linux_gregmap): ... this. Also convert to
4658 regcache_map_entry format.
4659 (hppa_linux_supply_regset): Delete function.
4660 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4661 (hppa_linux_fpregmap): ... this new register map.
4662 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4663 register map, replace supply method by regcache_supply_regset, and
4664 add collect method regcache_collect_regset.
4665
4666 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4667
4668 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4669 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4670 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4671 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4672 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4673 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4674 (frv_linux_supply_gregset): Replace main logic by call to
4675 regcache_supply_regset, but keep clearing gr32-gr63.
4676 (frv_linux_supply_fpregset): Delete function.
4677 (frv_linux_gregset): Refer to appropriate register map and add
4678 regcache_collect_regset as the collect method.
4679 (frv_linux_fpregset): Likewise. Also exchange the supply method
4680 by regcache_supply_regset.
4681
4682 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4683
4684 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4685 by call to alpha_supply_int_regs.
4686 (alpha_linux_collect_gregset): New function.
4687 (alpha_linux_supply_fpregset): Replace logic by call to
4688 alpha_supply_fp_regs.
4689 (alpha_linux_collect_fpregset): New function.
4690 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4691
4692 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4693
4694 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4695 by call to regcache_collect_regset.
4696 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4697 instead of aarch64_linux_supply_gregset/_fpregset.
4698 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4699 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4700 header file instead.
4701 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4702 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4703 functions. Move logic to ...
4704 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4705 register maps.
4706 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4707 refer to new register maps, replace *_regset_from_core by
4708 regcache_supply_regset, and also use regcache_collect_regset.
4709 * aarch64-linux-tdep.h: Include "regset.h".
4710 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4711 Delete prototypes.
4712 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4713 macros, moved from C source file.
4714 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4715 variable declarations.
4716
4717 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4718
4719 * s390-linux-nat.c: Include "regset.h".
4720 (regmap_gregset): Delete macro.
4721 (s390_64_regmap_gregset): New register map for
4722 regcache_supply/_collect_regset.
4723 (s390_64_gregset): New regset.
4724 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4725 (regmap_fpregset): Delete macro.
4726 (s390_native_supply, s390_native_collect): Delete functions.
4727 (supply_gregset, fill_gregset): Replace s390-specific regmap
4728 handling by a call to regcache_supply/_collect_regset.
4729 (supply_fpregset, fill_fpregset): Call regcache_supply/
4730 _collect_regset instead of s390_native_supply/_collect.
4731 (fetch_regset, store_regset): Likewise. Also change the last
4732 parameter to a regset instead of a regmap.
4733 (s390_linux_fetch_inferior_registers)
4734 (390_linux_store_inferior_registers): Adjust last parameter in
4735 calls to fetch_regset and store_regset.
4736 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4737 (s390_gregmap): ... this. Also make static const and convert to
4738 regcache_map_entry format.
4739 (s390x_regmap_gregset): Delete.
4740 (s390_regmap_fpregset): Rename to...
4741 (s390_fpregmap): ... this. Make static const and convert to
4742 regcache_map_entry format.
4743 (s390_regmap_upper, s390_regmap_last_break)
4744 (s390x_regmap_last_break, s390_regmap_system_call)
4745 (s390_regmap_tdb): Likewise.
4746 (s390_supply_regset, s390_collect_regset): Remove functions.
4747 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4748 s390_supply_regset.
4749 (s390_gregset, s390_fpregset, s390_upper_regset)
4750 (s390_last_break_regset, s390x_last_break_regset)
4751 (s390_system_call_regset, s390_tdb_regset): Make global and
4752 replace s390_supply/_collect_regset by regcache_supply/
4753 _collect_regset.
4754 (s390x_gregset): Delete.
4755 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4756 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4757 (s390_regmap_fpregset, s390_regmap_last_break)
4758 (s390x_regmap_last_break, s390_regmap_system_call)
4759 (s390_regmap_tdb): Delete global variable declarations.
4760 (s390_gregset, s390_fpregset, s390_last_break_regset)
4761 (s390x_last_break_regset, s390_system_call_regset)
4762 (s390_tdb_regset): New global variable declarations.
4763
4764 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4765
4766 * regcache.c: Include "regset.h".
4767 (regcache_transfer_regset): New local function.
4768 (regcache_supply_regset, regcache_collect_regset): New functions.
4769 * regcache.h (struct regcache_map_entry): New structure.
4770 (REGCACHE_MAP_SKIP): New enum value.
4771 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4772
4773 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4774
4775 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4776 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4777 (ppc_linux_collect_gregset ): Likewise.
4778 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4779 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4780 (ppc_collect_vrregset): Likewise.
4781 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4782 Likewise.
4783
4784 2014-08-07 Yao Qi <yao@codesourcery.com>
4785
4786 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4787 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4788 * remote.c (remote_read_bytes): Likewise.
4789
4790 2014-08-07 Yao Qi <yao@codesourcery.com>
4791
4792 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4793
4794 2014-08-07 Yao Qi <yao@codesourcery.com>
4795
4796 PR remote/17230
4797 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4798 TARGET_XFER_OK instead of 0.
4799
4800 2014-08-07 Gary Benson <gbenson@redhat.com>
4801
4802 * common/common-defs.h: Include errno.h.
4803 * defs.h: Do not include errno.h.
4804 * ada-typeprint.c: Likewise.
4805 * c-typeprint.c: Likewise.
4806 * core-regset.c: Likewise.
4807 * corefile.c: Likewise.
4808 * corelow.c: Likewise.
4809 * event-loop.c: Likewise.
4810 * f-typeprint.c: Likewise.
4811 * gnu-nat.c: Likewise.
4812 * go32-nat.c: Likewise.
4813 * i386gnu-nat.c: Likewise.
4814 * m2-typeprint.c: Likewise.
4815 * nat/linux-btrace.c: Likewise.
4816 * p-typeprint.c: Likewise.
4817 * procfs.c: Likewise.
4818 * remote-sim.c: Likewise.
4819 * rs6000-nat.c: Likewise.
4820 * target.c: Likewise.
4821 * typeprint.c: Likewise.
4822 * ui-file.c: Likewise.
4823 * valops.c: Likewise.
4824 * valprint.c: Likewise.
4825
4826 2014-08-07 Gary Benson <gbenson@redhat.com>
4827
4828 * common/common-defs.h: Include string.h.
4829 * aarch64-tdep.c: Do not include string.h.
4830 * ada-exp.y: Likewise.
4831 * ada-lang.c: Likewise.
4832 * ada-lex.l: Likewise.
4833 * ada-typeprint.c: Likewise.
4834 * ada-valprint.c: Likewise.
4835 * aix-thread.c: Likewise.
4836 * alpha-linux-tdep.c: Likewise.
4837 * alpha-mdebug-tdep.c: Likewise.
4838 * alpha-nat.c: Likewise.
4839 * alpha-osf1-tdep.c: Likewise.
4840 * alpha-tdep.c: Likewise.
4841 * alphanbsd-tdep.c: Likewise.
4842 * amd64-dicos-tdep.c: Likewise.
4843 * amd64-linux-tdep.c: Likewise.
4844 * amd64-nat.c: Likewise.
4845 * amd64-sol2-tdep.c: Likewise.
4846 * amd64fbsd-tdep.c: Likewise.
4847 * amd64obsd-tdep.c: Likewise.
4848 * arch-utils.c: Likewise.
4849 * arm-linux-nat.c: Likewise.
4850 * arm-linux-tdep.c: Likewise.
4851 * arm-tdep.c: Likewise.
4852 * arm-wince-tdep.c: Likewise.
4853 * armbsd-tdep.c: Likewise.
4854 * armnbsd-nat.c: Likewise.
4855 * armnbsd-tdep.c: Likewise.
4856 * armobsd-tdep.c: Likewise.
4857 * avr-tdep.c: Likewise.
4858 * ax-gdb.c: Likewise.
4859 * ax-general.c: Likewise.
4860 * bcache.c: Likewise.
4861 * bfin-tdep.c: Likewise.
4862 * breakpoint.c: Likewise.
4863 * build-id.c: Likewise.
4864 * buildsym.c: Likewise.
4865 * c-exp.y: Likewise.
4866 * c-lang.c: Likewise.
4867 * c-typeprint.c: Likewise.
4868 * c-valprint.c: Likewise.
4869 * charset.c: Likewise.
4870 * cli-out.c: Likewise.
4871 * cli/cli-cmds.c: Likewise.
4872 * cli/cli-decode.c: Likewise.
4873 * cli/cli-dump.c: Likewise.
4874 * cli/cli-interp.c: Likewise.
4875 * cli/cli-logging.c: Likewise.
4876 * cli/cli-script.c: Likewise.
4877 * cli/cli-setshow.c: Likewise.
4878 * cli/cli-utils.c: Likewise.
4879 * coffread.c: Likewise.
4880 * common/agent.c: Likewise.
4881 * common/buffer.c: Likewise.
4882 * common/buffer.h: Likewise.
4883 * common/common-utils.c: Likewise.
4884 * common/filestuff.c: Likewise.
4885 * common/filestuff.c: Likewise.
4886 * common/format.c: Likewise.
4887 * common/print-utils.c: Likewise.
4888 * common/rsp-low.c: Likewise.
4889 * common/signals.c: Likewise.
4890 * common/vec.h: Likewise.
4891 * common/xml-utils.c: Likewise.
4892 * core-regset.c: Likewise.
4893 * corefile.c: Likewise.
4894 * corelow.c: Likewise.
4895 * cp-abi.c: Likewise.
4896 * cp-name-parser.y: Likewise.
4897 * cp-support.c: Likewise.
4898 * cp-valprint.c: Likewise.
4899 * cris-tdep.c: Likewise.
4900 * d-exp.y: Likewise.
4901 * darwin-nat.c: Likewise.
4902 * dbxread.c: Likewise.
4903 * dcache.c: Likewise.
4904 * demangle.c: Likewise.
4905 * dicos-tdep.c: Likewise.
4906 * disasm.c: Likewise.
4907 * doublest.c: Likewise.
4908 * dsrec.c: Likewise.
4909 * dummy-frame.c: Likewise.
4910 * dwarf2-frame.c: Likewise.
4911 * dwarf2loc.c: Likewise.
4912 * dwarf2read.c: Likewise.
4913 * elfread.c: Likewise.
4914 * environ.c: Likewise.
4915 * eval.c: Likewise.
4916 * event-loop.c: Likewise.
4917 * exceptions.c: Likewise.
4918 * exec.c: Likewise.
4919 * expprint.c: Likewise.
4920 * f-exp.y: Likewise.
4921 * f-lang.c: Likewise.
4922 * f-typeprint.c: Likewise.
4923 * f-valprint.c: Likewise.
4924 * fbsd-nat.c: Likewise.
4925 * findcmd.c: Likewise.
4926 * findvar.c: Likewise.
4927 * fork-child.c: Likewise.
4928 * frame.c: Likewise.
4929 * frv-linux-tdep.c: Likewise.
4930 * frv-tdep.c: Likewise.
4931 * gdb.c: Likewise.
4932 * gdb_bfd.c: Likewise.
4933 * gdbarch.c: Likewise.
4934 * gdbarch.sh: Likewise.
4935 * gdbtypes.c: Likewise.
4936 * gnu-nat.c: Likewise.
4937 * gnu-v2-abi.c: Likewise.
4938 * gnu-v3-abi.c: Likewise.
4939 * go-exp.y: Likewise.
4940 * go-lang.c: Likewise.
4941 * go32-nat.c: Likewise.
4942 * guile/guile.c: Likewise.
4943 * guile/scm-auto-load.c: Likewise.
4944 * hppa-hpux-tdep.c: Likewise.
4945 * hppa-linux-nat.c: Likewise.
4946 * hppanbsd-tdep.c: Likewise.
4947 * hppaobsd-tdep.c: Likewise.
4948 * i386-cygwin-tdep.c: Likewise.
4949 * i386-dicos-tdep.c: Likewise.
4950 * i386-linux-tdep.c: Likewise.
4951 * i386-nto-tdep.c: Likewise.
4952 * i386-sol2-tdep.c: Likewise.
4953 * i386-tdep.c: Likewise.
4954 * i386bsd-tdep.c: Likewise.
4955 * i386gnu-nat.c: Likewise.
4956 * i386nbsd-tdep.c: Likewise.
4957 * i386obsd-tdep.c: Likewise.
4958 * i387-tdep.c: Likewise.
4959 * ia64-libunwind-tdep.c: Likewise.
4960 * ia64-linux-nat.c: Likewise.
4961 * inf-child.c: Likewise.
4962 * inf-ptrace.c: Likewise.
4963 * inf-ttrace.c: Likewise.
4964 * infcall.c: Likewise.
4965 * infcmd.c: Likewise.
4966 * inflow.c: Likewise.
4967 * infrun.c: Likewise.
4968 * interps.c: Likewise.
4969 * iq2000-tdep.c: Likewise.
4970 * irix5-nat.c: Likewise.
4971 * jv-exp.y: Likewise.
4972 * jv-lang.c: Likewise.
4973 * jv-typeprint.c: Likewise.
4974 * jv-valprint.c: Likewise.
4975 * language.c: Likewise.
4976 * linux-fork.c: Likewise.
4977 * linux-nat.c: Likewise.
4978 * lm32-tdep.c: Likewise.
4979 * m2-exp.y: Likewise.
4980 * m2-typeprint.c: Likewise.
4981 * m32c-tdep.c: Likewise.
4982 * m32r-linux-nat.c: Likewise.
4983 * m32r-linux-tdep.c: Likewise.
4984 * m32r-rom.c: Likewise.
4985 * m32r-tdep.c: Likewise.
4986 * m68hc11-tdep.c: Likewise.
4987 * m68k-tdep.c: Likewise.
4988 * m68kbsd-tdep.c: Likewise.
4989 * m68klinux-nat.c: Likewise.
4990 * m68klinux-tdep.c: Likewise.
4991 * m88k-tdep.c: Likewise.
4992 * machoread.c: Likewise.
4993 * macrocmd.c: Likewise.
4994 * main.c: Likewise.
4995 * mdebugread.c: Likewise.
4996 * mem-break.c: Likewise.
4997 * memattr.c: Likewise.
4998 * memory-map.c: Likewise.
4999 * mep-tdep.c: Likewise.
5000 * mi/mi-cmd-break.c: Likewise.
5001 * mi/mi-cmd-disas.c: Likewise.
5002 * mi/mi-cmd-env.c: Likewise.
5003 * mi/mi-cmd-stack.c: Likewise.
5004 * mi/mi-cmd-var.c: Likewise.
5005 * mi/mi-cmds.c: Likewise.
5006 * mi/mi-console.c: Likewise.
5007 * mi/mi-getopt.c: Likewise.
5008 * mi/mi-interp.c: Likewise.
5009 * mi/mi-main.c: Likewise.
5010 * mi/mi-parse.c: Likewise.
5011 * microblaze-rom.c: Likewise.
5012 * microblaze-tdep.c: Likewise.
5013 * mingw-hdep.c: Likewise.
5014 * minidebug.c: Likewise.
5015 * minsyms.c: Likewise.
5016 * mips-irix-tdep.c: Likewise.
5017 * mips-linux-tdep.c: Likewise.
5018 * mips-tdep.c: Likewise.
5019 * mips64obsd-tdep.c: Likewise.
5020 * mipsnbsd-tdep.c: Likewise.
5021 * mipsread.c: Likewise.
5022 * mn10300-linux-tdep.c: Likewise.
5023 * mn10300-tdep.c: Likewise.
5024 * monitor.c: Likewise.
5025 * moxie-tdep.c: Likewise.
5026 * mt-tdep.c: Likewise.
5027 * nat/linux-btrace.c: Likewise.
5028 * nat/linux-osdata.c: Likewise.
5029 * nat/linux-procfs.c: Likewise.
5030 * nat/linux-ptrace.c: Likewise.
5031 * nat/linux-waitpid.c: Likewise.
5032 * nbsd-tdep.c: Likewise.
5033 * nios2-linux-tdep.c: Likewise.
5034 * nto-procfs.c: Likewise.
5035 * nto-tdep.c: Likewise.
5036 * objc-lang.c: Likewise.
5037 * objfiles.c: Likewise.
5038 * opencl-lang.c: Likewise.
5039 * osabi.c: Likewise.
5040 * osdata.c: Likewise.
5041 * p-exp.y: Likewise.
5042 * p-lang.c: Likewise.
5043 * p-typeprint.c: Likewise.
5044 * parse.c: Likewise.
5045 * posix-hdep.c: Likewise.
5046 * ppc-linux-nat.c: Likewise.
5047 * ppc-sysv-tdep.c: Likewise.
5048 * ppcfbsd-tdep.c: Likewise.
5049 * ppcnbsd-tdep.c: Likewise.
5050 * ppcobsd-tdep.c: Likewise.
5051 * printcmd.c: Likewise.
5052 * procfs.c: Likewise.
5053 * prologue-value.c: Likewise.
5054 * python/py-auto-load.c: Likewise.
5055 * python/py-gdb-readline.c: Likewise.
5056 * ravenscar-thread.c: Likewise.
5057 * regcache.c: Likewise.
5058 * registry.c: Likewise.
5059 * remote-fileio.c: Likewise.
5060 * remote-m32r-sdi.c: Likewise.
5061 * remote-mips.c: Likewise.
5062 * remote-notif.c: Likewise.
5063 * remote-sim.c: Likewise.
5064 * remote.c: Likewise.
5065 * reverse.c: Likewise.
5066 * rs6000-aix-tdep.c: Likewise.
5067 * ser-base.c: Likewise.
5068 * ser-go32.c: Likewise.
5069 * ser-mingw.c: Likewise.
5070 * ser-pipe.c: Likewise.
5071 * ser-tcp.c: Likewise.
5072 * ser-unix.c: Likewise.
5073 * serial.c: Likewise.
5074 * sh-tdep.c: Likewise.
5075 * sh64-tdep.c: Likewise.
5076 * shnbsd-tdep.c: Likewise.
5077 * skip.c: Likewise.
5078 * sol-thread.c: Likewise.
5079 * solib-dsbt.c: Likewise.
5080 * solib-frv.c: Likewise.
5081 * solib-osf.c: Likewise.
5082 * solib-som.c: Likewise.
5083 * solib-spu.c: Likewise.
5084 * solib-target.c: Likewise.
5085 * solib.c: Likewise.
5086 * somread.c: Likewise.
5087 * source.c: Likewise.
5088 * sparc-nat.c: Likewise.
5089 * sparc-sol2-tdep.c: Likewise.
5090 * sparc-tdep.c: Likewise.
5091 * sparc64-tdep.c: Likewise.
5092 * sparc64fbsd-tdep.c: Likewise.
5093 * sparc64nbsd-tdep.c: Likewise.
5094 * sparcnbsd-tdep.c: Likewise.
5095 * spu-linux-nat.c: Likewise.
5096 * spu-multiarch.c: Likewise.
5097 * spu-tdep.c: Likewise.
5098 * stabsread.c: Likewise.
5099 * stack.c: Likewise.
5100 * std-regs.c: Likewise.
5101 * symfile.c: Likewise.
5102 * symmisc.c: Likewise.
5103 * symtab.c: Likewise.
5104 * target.c: Likewise.
5105 * thread.c: Likewise.
5106 * tilegx-linux-nat.c: Likewise.
5107 * tilegx-tdep.c: Likewise.
5108 * top.c: Likewise.
5109 * tracepoint.c: Likewise.
5110 * tui/tui-command.c: Likewise.
5111 * tui/tui-data.c: Likewise.
5112 * tui/tui-disasm.c: Likewise.
5113 * tui/tui-file.c: Likewise.
5114 * tui/tui-layout.c: Likewise.
5115 * tui/tui-out.c: Likewise.
5116 * tui/tui-regs.c: Likewise.
5117 * tui/tui-source.c: Likewise.
5118 * tui/tui-stack.c: Likewise.
5119 * tui/tui-win.c: Likewise.
5120 * tui/tui-windata.c: Likewise.
5121 * tui/tui-winsource.c: Likewise.
5122 * typeprint.c: Likewise.
5123 * ui-file.c: Likewise.
5124 * ui-out.c: Likewise.
5125 * user-regs.c: Likewise.
5126 * utils.c: Likewise.
5127 * v850-tdep.c: Likewise.
5128 * valarith.c: Likewise.
5129 * valops.c: Likewise.
5130 * valprint.c: Likewise.
5131 * value.c: Likewise.
5132 * varobj.c: Likewise.
5133 * vax-tdep.c: Likewise.
5134 * vaxnbsd-tdep.c: Likewise.
5135 * vaxobsd-tdep.c: Likewise.
5136 * windows-nat.c: Likewise.
5137 * xcoffread.c: Likewise.
5138 * xml-support.c: Likewise.
5139 * xstormy16-tdep.c: Likewise.
5140 * xtensa-linux-nat.c: Likewise.
5141
5142 2014-08-07 Gary Benson <gbenson@redhat.com>
5143
5144 * common/common-defs.h: Include gdb_assert.h.
5145 * aarch64-tdep.c: Do not include gdb_assert.h.
5146 * addrmap.c: Likewise.
5147 * aix-thread.c: Likewise.
5148 * alpha-linux-tdep.c: Likewise.
5149 * alpha-mdebug-tdep.c: Likewise.
5150 * alphanbsd-tdep.c: Likewise.
5151 * amd64-nat.c: Likewise.
5152 * amd64-tdep.c: Likewise.
5153 * amd64bsd-nat.c: Likewise.
5154 * amd64fbsd-nat.c: Likewise.
5155 * amd64fbsd-tdep.c: Likewise.
5156 * amd64nbsd-nat.c: Likewise.
5157 * amd64nbsd-tdep.c: Likewise.
5158 * amd64obsd-nat.c: Likewise.
5159 * amd64obsd-tdep.c: Likewise.
5160 * arch-utils.c: Likewise.
5161 * arm-tdep.c: Likewise.
5162 * armbsd-tdep.c: Likewise.
5163 * auxv.c: Likewise.
5164 * bcache.c: Likewise.
5165 * bfin-tdep.c: Likewise.
5166 * blockframe.c: Likewise.
5167 * breakpoint.c: Likewise.
5168 * bsd-kvm.c: Likewise.
5169 * bsd-uthread.c: Likewise.
5170 * buildsym.c: Likewise.
5171 * c-exp.y: Likewise.
5172 * c-lang.c: Likewise.
5173 * charset.c: Likewise.
5174 * cleanups.c: Likewise.
5175 * cli-out.c: Likewise.
5176 * cli/cli-decode.c: Likewise.
5177 * cli/cli-dump.c: Likewise.
5178 * cli/cli-logging.c: Likewise.
5179 * cli/cli-script.c: Likewise.
5180 * cli/cli-utils.c: Likewise.
5181 * coffread.c: Likewise.
5182 * common/common-utils.c: Likewise.
5183 * common/queue.h: Likewise.
5184 * common/signals.c: Likewise.
5185 * common/vec.h: Likewise.
5186 * complaints.c: Likewise.
5187 * completer.c: Likewise.
5188 * corelow.c: Likewise.
5189 * cp-abi.c: Likewise.
5190 * cp-name-parser.y: Likewise.
5191 * cp-namespace.c: Likewise.
5192 * cp-support.c: Likewise.
5193 * cris-tdep.c: Likewise.
5194 * dbxread.c: Likewise.
5195 * dictionary.c: Likewise.
5196 * doublest.c: Likewise.
5197 * dsrec.c: Likewise.
5198 * dummy-frame.c: Likewise.
5199 * dwarf2-frame-tailcall.c: Likewise.
5200 * dwarf2-frame.c: Likewise.
5201 * dwarf2expr.c: Likewise.
5202 * dwarf2loc.c: Likewise.
5203 * dwarf2read.c: Likewise.
5204 * eval.c: Likewise.
5205 * event-loop.c: Likewise.
5206 * exceptions.c: Likewise.
5207 * expprint.c: Likewise.
5208 * f-valprint.c: Likewise.
5209 * fbsd-nat.c: Likewise.
5210 * findvar.c: Likewise.
5211 * frame-unwind.c: Likewise.
5212 * frame.c: Likewise.
5213 * frv-tdep.c: Likewise.
5214 * gcore.c: Likewise.
5215 * gdb-dlfcn.c: Likewise.
5216 * gdb_bfd.c: Likewise.
5217 * gdbarch.c: Likewise.
5218 * gdbarch.sh: Likewise.
5219 * gdbtypes.c: Likewise.
5220 * gnu-nat.c: Likewise.
5221 * gnu-v3-abi.c: Likewise.
5222 * go-lang.c: Likewise.
5223 * guile/scm-exception.c: Likewise.
5224 * guile/scm-gsmob.c: Likewise.
5225 * guile/scm-lazy-string.c: Likewise.
5226 * guile/scm-math.c: Likewise.
5227 * guile/scm-pretty-print.c: Likewise.
5228 * guile/scm-safe-call.c: Likewise.
5229 * guile/scm-utils.c: Likewise.
5230 * guile/scm-value.c: Likewise.
5231 * h8300-tdep.c: Likewise.
5232 * hppa-hpux-nat.c: Likewise.
5233 * hppa-tdep.c: Likewise.
5234 * hppanbsd-tdep.c: Likewise.
5235 * hppaobsd-tdep.c: Likewise.
5236 * i386-darwin-nat.c: Likewise.
5237 * i386-darwin-tdep.c: Likewise.
5238 * i386-nto-tdep.c: Likewise.
5239 * i386-tdep.c: Likewise.
5240 * i386bsd-nat.c: Likewise.
5241 * i386fbsd-tdep.c: Likewise.
5242 * i386gnu-nat.c: Likewise.
5243 * i386nbsd-tdep.c: Likewise.
5244 * i386obsd-tdep.c: Likewise.
5245 * i387-tdep.c: Likewise.
5246 * ia64-libunwind-tdep.c: Likewise.
5247 * ia64-tdep.c: Likewise.
5248 * inf-ptrace.c: Likewise.
5249 * inf-ttrace.c: Likewise.
5250 * infcall.c: Likewise.
5251 * infcmd.c: Likewise.
5252 * infrun.c: Likewise.
5253 * inline-frame.c: Likewise.
5254 * interps.c: Likewise.
5255 * jv-lang.c: Likewise.
5256 * jv-typeprint.c: Likewise.
5257 * linux-fork.c: Likewise.
5258 * linux-nat.c: Likewise.
5259 * linux-thread-db.c: Likewise.
5260 * m32c-tdep.c: Likewise.
5261 * m32r-linux-nat.c: Likewise.
5262 * m32r-tdep.c: Likewise.
5263 * m68k-tdep.c: Likewise.
5264 * m68kbsd-nat.c: Likewise.
5265 * m68kbsd-tdep.c: Likewise.
5266 * m88k-tdep.c: Likewise.
5267 * machoread.c: Likewise.
5268 * macroexp.c: Likewise.
5269 * macrotab.c: Likewise.
5270 * maint.c: Likewise.
5271 * mdebugread.c: Likewise.
5272 * memory-map.c: Likewise.
5273 * mep-tdep.c: Likewise.
5274 * mi/mi-common.c: Likewise.
5275 * microblaze-tdep.c: Likewise.
5276 * mingw-hdep.c: Likewise.
5277 * mips-linux-nat.c: Likewise.
5278 * mips-linux-tdep.c: Likewise.
5279 * mips-tdep.c: Likewise.
5280 * mips64obsd-tdep.c: Likewise.
5281 * mipsnbsd-tdep.c: Likewise.
5282 * mn10300-linux-tdep.c: Likewise.
5283 * mn10300-tdep.c: Likewise.
5284 * moxie-tdep.c: Likewise.
5285 * mt-tdep.c: Likewise.
5286 * nat/linux-btrace.c: Likewise.
5287 * nat/linux-osdata.c: Likewise.
5288 * nat/linux-ptrace.c: Likewise.
5289 * nat/mips-linux-watch.c: Likewise.
5290 * nios2-linux-tdep.c: Likewise.
5291 * nios2-tdep.c: Likewise.
5292 * objc-lang.c: Likewise.
5293 * objfiles.c: Likewise.
5294 * obsd-nat.c: Likewise.
5295 * opencl-lang.c: Likewise.
5296 * osabi.c: Likewise.
5297 * parse.c: Likewise.
5298 * ppc-linux-nat.c: Likewise.
5299 * ppc-sysv-tdep.c: Likewise.
5300 * ppcfbsd-nat.c: Likewise.
5301 * ppcfbsd-tdep.c: Likewise.
5302 * ppcnbsd-nat.c: Likewise.
5303 * ppcnbsd-tdep.c: Likewise.
5304 * ppcobsd-nat.c: Likewise.
5305 * ppcobsd-tdep.c: Likewise.
5306 * printcmd.c: Likewise.
5307 * procfs.c: Likewise.
5308 * prologue-value.c: Likewise.
5309 * psymtab.c: Likewise.
5310 * python/py-lazy-string.c: Likewise.
5311 * python/py-value.c: Likewise.
5312 * regcache.c: Likewise.
5313 * reggroups.c: Likewise.
5314 * registry.c: Likewise.
5315 * remote-sim.c: Likewise.
5316 * remote.c: Likewise.
5317 * rs6000-aix-tdep.c: Likewise.
5318 * rs6000-tdep.c: Likewise.
5319 * s390-linux-tdep.c: Likewise.
5320 * score-tdep.c: Likewise.
5321 * ser-base.c: Likewise.
5322 * ser-mingw.c: Likewise.
5323 * sh-tdep.c: Likewise.
5324 * sh64-tdep.c: Likewise.
5325 * solib-darwin.c: Likewise.
5326 * solib-spu.c: Likewise.
5327 * solib-svr4.c: Likewise.
5328 * source.c: Likewise.
5329 * sparc-nat.c: Likewise.
5330 * sparc-sol2-tdep.c: Likewise.
5331 * sparc-tdep.c: Likewise.
5332 * sparc64-sol2-tdep.c: Likewise.
5333 * sparc64-tdep.c: Likewise.
5334 * sparc64fbsd-tdep.c: Likewise.
5335 * sparc64nbsd-tdep.c: Likewise.
5336 * sparc64obsd-tdep.c: Likewise.
5337 * sparcnbsd-tdep.c: Likewise.
5338 * sparcobsd-tdep.c: Likewise.
5339 * spu-multiarch.c: Likewise.
5340 * spu-tdep.c: Likewise.
5341 * stabsread.c: Likewise.
5342 * stack.c: Likewise.
5343 * symfile.c: Likewise.
5344 * symtab.c: Likewise.
5345 * target-descriptions.c: Likewise.
5346 * target-memory.c: Likewise.
5347 * target.c: Likewise.
5348 * tic6x-linux-tdep.c: Likewise.
5349 * tic6x-tdep.c: Likewise.
5350 * tilegx-linux-nat.c: Likewise.
5351 * tilegx-tdep.c: Likewise.
5352 * top.c: Likewise.
5353 * tramp-frame.c: Likewise.
5354 * tui/tui-out.c: Likewise.
5355 * tui/tui-winsource.c: Likewise.
5356 * ui-out.c: Likewise.
5357 * user-regs.c: Likewise.
5358 * utils.c: Likewise.
5359 * v850-tdep.c: Likewise.
5360 * valops.c: Likewise.
5361 * value.c: Likewise.
5362 * varobj.c: Likewise.
5363 * vax-nat.c: Likewise.
5364 * xml-syscall.c: Likewise.
5365 * xml-tdesc.c: Likewise.
5366 * xstormy16-tdep.c: Likewise.
5367 * xtensa-linux-nat.c: Likewise.
5368 * xtensa-tdep.c: Likewise.
5369
5370 2014-08-07 Gary Benson <gbenson@redhat.com>
5371
5372 * common/common-defs.h: Include common-utils.h.
5373 * defs.h: Do not include common-utils.h.
5374 * common/gdb_assert.h: Likewise.
5375 * darwin-nat.h: Likewise.
5376 * nat/linux-btrace.c: Likewise.
5377 * target/waitstatus.h: Likewise.
5378
5379 2014-08-07 Gary Benson <gbenson@redhat.com>
5380
5381 * common/common-defs.h: Include ptid.h.
5382 * defs.h: Do not include ptid.h.
5383 * inferior.h: Likewise.
5384 * infrun.h: Likewise.
5385 * nat/linux-btrace.h: Likewise.
5386 * nat/linux-osdata.h: Likewise.
5387 * target/waitstatus.h: Likewise.
5388
5389 2014-08-07 Gary Benson <gbenson@redhat.com>
5390
5391 * common/common-defs.h: Include gdb_locale.h.
5392 * defs.h: Do not include gdb_locale.h.
5393
5394 2014-08-07 Gary Benson <gbenson@redhat.com>
5395
5396 * common/common-defs.h: Include gdb/signals.h.
5397 * defs.h: Do not include gdb/signals.h.
5398
5399 2014-08-07 Gary Benson <gbenson@redhat.com>
5400
5401 * common/common-defs.h: Include pathmax.h.
5402 * defs.h: Do not include pathmax.h.
5403
5404 2014-08-07 Gary Benson <gbenson@redhat.com>
5405
5406 * common/common-defs.h: Include libiberty.h.
5407 * defs.h: Do not include libiberty.h.
5408 * common/queue.h: Likewise.
5409 * cp-name-parser.y: Likewise.
5410 * mi/mi-cmd-catch.c: Likewise.
5411 * python/python.c: Likewise.
5412
5413 2014-08-07 Gary Benson <gbenson@redhat.com>
5414
5415 * common/common-defs.h: Include ansidecl.h.
5416 * defs.h: Do not include ansidecl.h.
5417 * common/buffer.h: Likewise.
5418 * common/common-utils.h: Likewise.
5419
5420 2014-08-07 Gary Benson <gbenson@redhat.com>
5421
5422 * common/common-defs.h: Include stddef.h.
5423 * defs.h: Do not include stddef.h.
5424 * common/common-utils.h: Likewise.
5425 * amd64fbsd-nat.c: Likewise.
5426 * bcache.c: Likewise.
5427 * charset.c: Likewise.
5428 * common/buffer.h: Likewise.
5429 * common/vec.h: Likewise.
5430 * i386bsd-nat.c: Likewise.
5431 * nat/linux-btrace.h: Likewise.
5432 * ppcfbsd-nat.c: Likewise.
5433 * ppcnbsd-tdep.h: Likewise.
5434 * ppcobsd-nat.c: Likewise.
5435 * ppcobsd-tdep.h: Likewise.
5436 * python/py-gdb-readline.c: Likewise.
5437
5438 2014-08-07 Gary Benson <gbenson@redhat.com>
5439
5440 * common/common-defs.h: Include stdarg.h.
5441 * defs.h: Do not include stdarg.h.
5442 * ada-lang.c: Likewise.
5443 * common/common-utils.h: Likewise.
5444 * guile/scm-string.c: Likewise.
5445 * guile/scm-utils.c: Likewise.
5446 * m32c-tdep.c: Likewise.
5447
5448 2014-08-07 Gary Benson <gbenson@redhat.com>
5449
5450 * common/common-defs.h: Include stdlib.h.
5451 * defs.h: Do not include stdlib.h.
5452 * addrmap.c: Likewise.
5453 * bcache.c: Likewise.
5454 * common/buffer.c: Likewise.
5455 * common/common-utils.c: Likewise.
5456 * cp-name-parser.y: Likewise.
5457 * go32-nat.c: Likewise.
5458 * mn10300-linux-tdep.c: Likewise.
5459 * nat/linux-osdata.c: Likewise.
5460 * tui/tui.c: Likewise.
5461 * windows-nat.c: Likewise.
5462
5463 2014-08-07 Gary Benson <gbenson@redhat.com>
5464
5465 * common/common-defs.h: Include stdio.h.
5466 * defs.h: Do not include stdio.h.
5467 * ada-lang.c: Likewise.
5468 * common/buffer.c: Likewise.
5469 * common/common-utils.c: Likewise.
5470 * cp-name-parser.y: Likewise.
5471 * gnu-nat.c: Likewise.
5472 * go32-nat.c: Likewise.
5473 * i386gnu-nat.c: Likewise.
5474 * proc-api.c: Likewise.
5475 * proc-events.c: Likewise.
5476 * proc-flags.c: Likewise.
5477 * proc-why.c: Likewise.
5478 * python/python-internal.h: Likewise.
5479 * target-memory.c: Likewise.
5480 * tui/tui-io.c: Likewise.
5481 * tui/tui.c: Likewise.
5482
5483 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5484
5485 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5486 (scan_dyntag_auxv): Same.
5487
5488 2014-08-06 Yao Qi <yao@codesourcery.com>
5489
5490 * amd64-linux-nat.c: Remove duplicated include
5491 "x86-linux-nat.h".
5492 * i386-linux-nat.c: Likewise.
5493
5494 2014-08-06 Yao Qi <yao@codesourcery.com>
5495
5496 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5497 operand" with "Special opcode" in comments.
5498
5499 2014-08-05 Gary Benson <gbenson@redhat.com>
5500
5501 * interps.c (initialize_interps): Remove prototype.
5502 (interpreter_initialized): Remove static global.
5503 (interp_add): Do not call initialize_interps.
5504 (initialize_interps): Remove function.
5505
5506 2014-08-05 Gary Benson <gbenson@redhat.com>
5507
5508 * utils.c (vwarning): Remove spurious va_end.
5509
5510 2014-08-05 Alan Modra <amodra@gmail.com>
5511
5512 * charset.c (convert_between_encodings): Cast result of obstack_base.
5513 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5514 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5515 (read_unwind_info): Use size_t for some locals.
5516 * jit.c (finalize_symtab): Likewise.
5517 * utils.c (hashtab_obstack_allocate): Likewise.
5518 * symmisc.c (print_objfile_statistics): Update format strings.
5519
5520 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5521
5522 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5523 (Changes in GDB 7.8): ... here.
5524
5525 2014-08-04 Tom Tromey <tromey@redhat.com>
5526
5527 * target.c (set_targetdebug): New function.
5528 (initialize_targets): Pass set_targetdebug when creating "set
5529 debug target".
5530
5531 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5532
5533 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5534 if detecting a variable-sized field that is not the last field.
5535 Fix struct type length computation.
5536
5537 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5538
5539 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5540 Add debug trace.
5541
5542 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5543
5544 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5545 Remove "+ 8" offset in computation of CHAIN_VMA.
5546
5547 2014-07-31 Doug Evans <dje@google.com>
5548
5549 * inflow.c (child_terminal_inferior): Add comment.
5550 (child_terminal_ours_for_output): Add comment.
5551 (child_terminal_ours): Add comment.
5552 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5553 (linux_nat_terminal_ours): Add comment.
5554
5555 2014-07-31 Gary Benson <gbenson@redhat.com>
5556
5557 * common/btrace-common.h: Do not include defs.h or server.h.
5558 * nat/mips-linux-watch.h: Likewise.
5559 * gdb-dlfcn.h: Do not include defs.h.
5560 * tracefile.h: Likewise.
5561
5562 2014-07-30 Roland McGrath <mcgrathr@google.com>
5563
5564 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5565
5566 2014-07-30 Tom Tromey <tromey@redhat.com>
5567
5568 * bsd-kvm.c (bsd_kvm_open): Constify.
5569 * corelow.c (core_open): Constify.
5570 * ctf.c (ctf_open): Constify.
5571 * dbug-rom.c (dbug_open): Constify.
5572 * exec.c (exec_open): Constify.
5573 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5574 * microblaze-rom.c (picobug_open): Constify.
5575 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5576 Constify.
5577 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5578 * record-btrace.c (record_btrace_open): Constify.
5579 * record-full.c (record_full_core_open_1, record_full_open_1)
5580 (record_full_open): Constify.
5581 * remote-m32r-sdi.c (m32r_open): Constify.
5582 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5583 (rockhopper_open, lsi_open): Constify.
5584 * remote-sim.c (gdbsim_open): Constify.
5585 * remote.c (remote_open, extended_remote_open, remote_open_1):
5586 Constify.
5587 * target.h (struct target_ops) <to_open>: Make "arg" const.
5588 * tracefile-tfile.c (tfile_open): Constify.
5589
5590 2014-07-30 Tom Tromey <tromey@redhat.com>
5591
5592 * breakpoint.c (map_breakpoint_numbers): Update.
5593 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5594 (get_number_const): New function.
5595 (get_number): Rewrite using get_number_const.
5596 (init_number_or_range): Make "string" const.
5597 (number_is_in_list): Make "list" const.
5598 * cli/cli-utils.h (get_number_const): Declare.
5599 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5600 (init_number_or_range, number_is_in_list): Update.
5601 * printcmd.c (map_display_numbers): Update.
5602 * value.c (value_from_history_ref): Constify.
5603 * value.h (value_from_history_ref): Update.
5604
5605 2014-07-30 Tom Tromey <tromey@redhat.com>
5606
5607 * corefile.c (hook_type, call_extra_exec_file_hooks)
5608 (specify_exec_file_hook): Constify.
5609 * exec.c (exec_file_attach): Make "filename" const.
5610 * gdbcore.h (deprecated_exec_file_display_hook)
5611 (specify_exec_file_hook, exec_file_attach): Constify.
5612 * main.c (captured_main): Use catch_command_errors_const.
5613
5614 2014-07-30 Tom Tromey <tromey@redhat.com>
5615
5616 * target.c (open_target): New function.
5617 (add_target_with_completer, add_deprecated_target_alias): Use
5618 set_cmd_sfunc, set_cmd_context.
5619 (debug_to_open): Remove.
5620 (setup_target_debug): Update.
5621
5622 2014-07-30 Yao Qi <yao@codesourcery.com>
5623
5624 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5625 comments.
5626 * parse.c (exp_iterate): Update comments.
5627
5628 2014-07-30 Gary Benson <gbenson@redhat.com>
5629
5630 * common/common-defs.h: New file.
5631 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5632 * defs.h: Include common-defs.h.
5633 Do not include config.h or build-gnulib/config.h.
5634
5635 2014-07-30 Gary Benson <gbenson@redhat.com>
5636
5637 * common/common-utils.h: Do not include config.h.
5638 * nat/linux-btrace.h: Likewise.
5639
5640 2014-07-30 Gary Benson <gbenson@redhat.com>
5641
5642 * btrace.c: Include defs.h.
5643 * common/ptid.c: Include defs.h or server.h as appropriate.
5644 * nat/mips-linux-watch.c: Likewise.
5645
5646 2014-07-29 Tom Tromey <tromey@redhat.com>
5647
5648 * target.c (target_is_pushed): Simplify.
5649
5650 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5651
5652 GDB 7.8 released.
5653
5654 2014-07-29 Yao Qi <yao@codesourcery.com>
5655
5656 PR gdb/17206
5657 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5658
5659 2014-07-28 Doug Evans <xdje42@gmail.com>
5660
5661 PR guile/17203
5662 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5663 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5664 parameters.
5665
5666 2014-07-28 Will Newton <will.newton@linaro.org>
5667
5668 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5669 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5670 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5671 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5672 (THUMB2_EABI_SYSCALL): Likewise.
5673 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5674 struct tramp_frame.
5675 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5676 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5677
5678 2014-07-27 Doug Evans <xdje42@gmail.com>
5679
5680 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5681
5682 2014-07-27 Doug Evans <xdje42@gmail.com>
5683
5684 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5685
5686 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5687 Doug Evans <xdje42@gmail.com>
5688
5689 PR guile/17146
5690 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5691 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5692 * configure.ac: Try to use guild to compile an scm file, if it fails
5693 then disable guile support.
5694 * configure: Regenerate.
5695 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5696 GUILE_FILE_LIST.
5697 (GUILE_COMPILED_FILES): New variable.
5698 (GUILE_FILES) Update.
5699 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5700 (stamp-guile): Compile scm files.
5701 * guile/guile.c (boot_guile_support): New function.
5702 (standard_throw_args_p): New function.
5703 (print_standard_throw_error, print_throw_error): New functions.
5704 (handle_boot_error): New function.
5705 (initialize_scheme_side): Rewrite to call boot_guile_support.
5706 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5707 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5708
5709 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5710 Doug Evans <xdje42@gmail.com>
5711
5712 PR guile/17146
5713 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5714 * guile/lib/gdb/support.scm: New file.
5715 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5716 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5717 All uses updated.
5718 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5719 All uses updated.
5720 (%assert-type): Ditto, and renamed to assert-type.
5721 (%exception-print-style): Delete.
5722
5723 2014-07-26 Doug Evans <xdje42@gmail.com>
5724
5725 PR build/17105
5726 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5727 * configure: Regenerate.
5728 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5729 PYTHON_FILES.
5730 (PYTHON_FILES): New variable.
5731 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5732 (GUILE_FILES): New variable.
5733 (stamp-python, install-python, uninstall-python): Handle empty
5734 file list.
5735 (stamp-guile, install-guile, uninstall-guile): Ditto.
5736
5737 2014-07-26 Doug Evans <xdje42@gmail.com>
5738
5739 PR guile/17177
5740 * guile/lib/gdb.scm (pretty-printers): Export.
5741 (set-pretty-printers!): Export.
5742 * guile/lib/gdb/printing.scm (gdb module): Update.
5743 (prepend-pretty-printer!, append-pretty-printer!): Update.
5744 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5745 (pretty_printer_list_var): Delete.
5746 (pretty_printer_list): New static global.
5747 (gdbscm_pretty_printers): New function.
5748 (gdbscm_set_pretty_printers_x): New function.
5749 (ppscm_find_pretty_printer_from_gdb): Update.
5750 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5751 (gdbscm_initialize_pretty_printers): Update.
5752
5753 2014-07-26 Doug Evans <xdje42@gmail.com>
5754
5755 PR 17185
5756 * configure.ac: Add check for header gc/gc.h.
5757 Add check for function setenv.
5758 * configure: Regenerate.
5759 * config.in: Regenerate.
5760 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5761
5762 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5763
5764 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5765 variation in gdbarch matching.
5766
5767 2014-07-25 Tom Tromey <tromey@redhat.com>
5768
5769 * exec.c (using_exec_ops): Remove.
5770 (exec_close_1): Update. Remove extraneous block, reindent.
5771 (add_target_sections): Use target_is_pushed.
5772
5773 2014-07-25 Pedro Alves <palves@redhat.com>
5774
5775 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5776 * monitor.c (monitor_create_inferior): Likewise.
5777 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5778 * remote-sim.c (gdbsim_create_inferior): Likewise.
5779 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5780 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5781 * windows-nat.c (do_initial_windows_stuff): Likewise.
5782
5783 2014-07-25 Pedro Alves <palves@redhat.com>
5784
5785 * NEWS: Mention signal passing and "signal" command changes.
5786 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5787 comment.
5788 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5789 call.
5790 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5791 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5792 (jump_command): Adjust clear_proceed_status call.
5793 (signal_command): Warn if other thread that are resumed have
5794 signals that will be delivered. Adjust clear_proceed_status call.
5795 (until_next_command, finish_command)
5796 (proceed_after_attach_callback, attach_command_post_wait)
5797 (attach_command): Adjust clear_proceed_status call.
5798 * infrun.c (proceed_after_vfork_done): Likewise.
5799 (proceed_after_attach_callback): Adjust comment.
5800 (clear_proceed_status_thread): Clear stop_signal if not in pass
5801 state.
5802 (clear_proceed_status_callback): Delete.
5803 (clear_proceed_status): New 'step' parameter. Only clear the
5804 proceed status of threads the command being prepared is about to
5805 resume.
5806 (proceed): If passed in an explicit signal, override stop_signal
5807 with it. Don't pass the last stop signal to the thread we're
5808 resuming.
5809 (init_wait_for_inferior): Adjust clear_proceed_status call.
5810 (switch_back_to_stepped_thread): Clear the signal if it should not
5811 be passed.
5812 * infrun.h (clear_proceed_status): New 'step' parameter.
5813 (user_visible_resume_ptid): Add comment.
5814 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5815 signal is in pass state.
5816 * remote.c (append_pending_thread_resumptions): Likewise.
5817 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5818
5819 2014-07-25 Tom Tromey <tromey@redhat.com>
5820
5821 * target.h (target_stopped_data_address)
5822 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5823 parentheses.
5824
5825 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5826
5827 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5828 comments.
5829 (avr_pointer_to_address): Likewise.
5830
5831 2014-07-24 Tom Tromey <tromey@redhat.com>
5832
5833 * monitor.c (compile_pattern): Update.
5834 * target.h (struct target_ops) <to_shortname, to_longname,
5835 to_doc>: Now const.
5836
5837 2014-07-24 Tom Tromey <tromey@redhat.com>
5838
5839 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5840 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5841 (add_info_alias, add_com): Make "doc" const.
5842 (print_doc_line): Make "str" const.
5843 (delete_cmd): Update.
5844 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5845 (print_doc_line): Update.
5846 * cli/cli-script.c (document_command): Update.
5847 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5848 (add_com, add_info, add_info_alias): Update.
5849 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5850 * python/py-cmd.c (cmdpy_destroyer): Update.
5851
5852 2014-07-24 Tom Tromey <tromey@redhat.com>
5853
5854 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5855 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5856 (help_cmd_list): Constify.
5857 (lookup_cmd): Update.
5858 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5859 const.
5860 (help_cmd_list, apropos_cmd): Update.
5861 * cli/cli-script.c (show_user): Update.
5862 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5863 * cli/cli-setshow.h (cmd_show_list): Update.
5864 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5865 (cmd_show_list): Update.
5866 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5867 * python/py-cmd.c (cmdpy_destroyer): Update.
5868
5869 2014-07-24 Tom Tromey <tromey@redhat.com>
5870
5871 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5872 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5873 const.
5874 * command.h (deprecate_cmd): Update.
5875 * maint.c (maintenance_do_deprecate): Add casts.
5876
5877 2014-07-24 Tom Tromey <tromey@redhat.com>
5878
5879 * cli/cli-decode.c (help_cmd): Make parameter "const".
5880 * cli/cli-decode.h (help_cmd): Update.
5881
5882 2014-07-24 Tom Tromey <tromey@redhat.com>
5883
5884 * stack.c (up_silently_base, down_silently_base): Make argument
5885 const.
5886
5887 2014-07-24 Tom Tromey <tromey@redhat.com>
5888
5889 * solib.c (solib_add): Make "pattern" const.
5890 * solib.h (solib_add): Update.
5891
5892 2014-07-24 Tom Tromey <tromey@redhat.com>
5893
5894 * remote.c (remote_serial_open, print_packet, putpkt)
5895 (putpkt_binary): Constify.
5896 * remote.h (putpkt): Update.
5897
5898 2014-07-24 Tom Tromey <tromey@redhat.com>
5899
5900 * monitor.c (monitor_open): Make "args" const.
5901 * monitor.h (monitor_open): Update.
5902
5903 2014-07-24 Tom Tromey <tromey@redhat.com>
5904
5905 * maint.c (match_bfd_flags): Make "string" const.
5906 (print_bfd_section_info): Remove casts.
5907 (print_objfile_section_info): Make "string" const.
5908
5909 2014-07-24 Tom Tromey <tromey@redhat.com>
5910
5911 * inf-child.c (inf_child_open_target): Make "arg" const.
5912 * inf-child.h (inf_child_open_target): Update.
5913
5914 2014-07-24 Tom Tromey <tromey@redhat.com>
5915
5916 * environ.c (unset_in_environ): Make "var" const.
5917 * environ.h (unset_in_environ): Update.
5918
5919 2014-07-24 Tom Tromey <tromey@redhat.com>
5920
5921 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5922 Make "cmd" const.
5923 (scan_filename_with_cleanup): Likewise.
5924 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5925 Make arguments const.
5926 (restore_command): Update.
5927
5928 2014-07-24 Pedro Alves <palves@redhat.com>
5929
5930 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5931
5932 2014-07-24 Tom Tromey <tromey@redhat.com>
5933 Gary Benson <gbenson@redhat.com>
5934
5935 * nat/linux-ptrace.c (additional_flags): New global.
5936 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5937 additional_flags; don't check GDBSERVER.
5938 (linux_ptrace_set_additional_flags): New function.
5939 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5940 Declare.
5941 * linux-nat.c (_initialize_linux_nat): Call
5942 linux_ptrace_set_additional_flags.
5943
5944 2014-07-24 Tom Tromey <tromey@redhat.com>
5945
5946 * make-target-delegates (munge_type, write_debugmethod): New
5947 functions.
5948 (debug_names): New global.
5949 ($TARGET_DEBUG_PRINTER): New global.
5950 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5951 name.
5952 Write debug methods. Generate init_debug_target.
5953 * target-debug.h: New file.
5954 * target-delegates.c: Rebuild.
5955 * target.c: Include target-debug.h.
5956 (debug_target): Hoist definition.
5957 (target_kill, target_get_section_table, target_memory_map)
5958 (target_flash_erase, target_flash_done, target_detach)
5959 (target_disconnect, target_wait, target_resume)
5960 (target_pass_signals, target_program_signals, target_follow_fork)
5961 (target_mourn_inferior, target_search_memory)
5962 (target_thread_address_space, target_close)
5963 (target_find_new_threads, target_core_of_thread)
5964 (target_verify_memory, target_insert_mask_watchpoint)
5965 (target_remove_mask_watchpoint): Remove targetdebug code.
5966 (debug_to_post_attach, debug_to_prepare_to_store)
5967 (debug_to_files_info, debug_to_insert_breakpoint)
5968 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5969 (debug_to_region_ok_for_hw_watchpoint)
5970 (debug_to_can_accel_watchpoint_condition)
5971 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5972 (debug_to_watchpoint_addr_within_range)
5973 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5974 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5975 (debug_to_terminal_init, debug_to_terminal_inferior)
5976 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5977 (debug_to_terminal_save_ours, debug_to_terminal_info)
5978 (debug_to_load, debug_to_post_startup_inferior)
5979 (debug_to_insert_fork_catchpoint)
5980 (debug_to_remove_fork_catchpoint)
5981 (debug_to_insert_vfork_catchpoint)
5982 (debug_to_remove_vfork_catchpoint)
5983 (debug_to_insert_exec_catchpoint)
5984 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5985 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5986 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5987 (setup_target_debug): Call init_debug_target.
5988 * target.h (TARGET_DEBUG_PRINTER): New macro.
5989 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5990 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5991
5992 2014-07-24 Gary Benson <gbenson@redhat.com>
5993
5994 * exceptions.h (throw_vfatal): Renamed to...
5995 (throw_vquit): New declaration.
5996 (throw_quit): Likewise.
5997 * exceptions.c (throw_vfatal): Renamed to...
5998 (throw_vquit): New function.
5999 (throw_quit): Likewise.
6000 (throw_error): Call throw_verror rather than throw_it.
6001 * utils.h (vfatal): Removed.
6002 (fatal): Likewise.
6003 * utils.c (vfatal): Removed.
6004 (fatal): Likewise.
6005 (internal_verror): Replaced call to fatal with call to throw_quit.
6006 (quit): Replaced calls to fatal with calls to throw_quit.
6007
6008 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
6009
6010 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6011 target_read_code.
6012
6013 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
6014
6015 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6016 less than zero in conditional expression.
6017
6018 2014-07-23 Tom Tromey <tromey@redhat.com>
6019
6020 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6021 ($INTRO_PART): Don't match whitespace.
6022 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6023 argument matching.
6024 ($METHOD): Add $METHOD_TRAILER.
6025 (trim): Rewrite.
6026 (scan_target_h): New sub.
6027 Change main loop not to collect state.
6028 * target-delegates.c: Rebuild.
6029
6030 2014-07-23 Gary Benson <gbenson@redhat.com>
6031
6032 * cp-support.c (gdb_demangle): Fix build on systems without
6033 sigaltstack.
6034
6035 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6036
6037 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6038 for reference entry value target data value.
6039
6040 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6041
6042 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6043 value_available_contents_eq.
6044
6045 2014-07-22 Pedro Alves <palves@redhat.com>
6046
6047 * value.c (allocate_optimized_out_value): Don't mark value as
6048 non-lazy.
6049
6050 2014-07-22 Jiong Wang <jiong.wang@arm.com>
6051
6052 * MAINTAINERS (Write After Approval): Update my email address.
6053
6054 2014-07-20 Doug Evans <dje@google.com>
6055
6056 PR server/17147
6057 * remote.c (putpkt_binary): Add text to error message.
6058
6059 2014-07-20 Yao Qi <yao@codesourcery.com>
6060
6061 * eval.c: Remove "Chill" from comments.
6062 * gdbtypes.h: Likewise.
6063 * symtab.h: Likewise.
6064
6065 2014-07-20 Yao Qi <yao@codesourcery.com>
6066
6067 * std-operator.def: Update comments to TERNOP_SLICE.
6068
6069 2014-07-20 Yao Qi <yao@codesourcery.com>
6070
6071 * std-operator.def: Remove BINOP_RANGE.
6072 * breakpoint.c (watchpoint_exp_is_const): Update.
6073 * expprint.c (dump_subexp_body_standard): Likewise.
6074 * eval.c (init_array_element): Remove dead code.
6075 (evaluate_subexp_standard): Likewise.
6076
6077 2014-07-20 Yao Qi <yao@codesourcery.com>
6078
6079 * std-operator.def: Remove BINOP_IN.
6080 * breakpoint.c (watchpoint_exp_is_const): Update.
6081 * eval.c (evaluate_subexp_standard): Likewise.
6082 * expprint.c (dump_subexp_body_standard): Likewise.
6083
6084 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6085
6086 * microblaze-tdep.c (microblaze_register_names): Add
6087 the rshr and rslr register names.
6088 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6089 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6090 Use of tdesc_numbered_register. Use of
6091 microblaze_register_g_packet_guesses. Use of
6092 tdesc_use_registers. Use of set_gdbarch_register_type.
6093 (microblaze_register_g_packet_guesses): New.
6094 * microblaze-tdep.h (microblaze_reg_num): Add
6095 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6096 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6097 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6098 * features/microblaze-core.xml: New file.
6099 * features/microblaze-stack-protect.xml: New file.
6100 * features/microblaze-with-stack-protect.c: New file.
6101 * features/microblaze-with-stack-protect.xml: New file.
6102 * features/microblaze.xml: New file.
6103 * features/microblaze.c: New file.
6104 * features/Makefile (microblaze-with-stack-protect): Add
6105 microblaze-with-stack-protect microblaze and microblaze-expedite.
6106 * regformats/microblaze-with-stack-protect.dat: New file.
6107 * regformats/microblaze.dat: New file.
6108 * doc/gdb.texinfo (MicroBlaze Features): Added.
6109
6110 2014-07-18 Tom Tromey <tromey@redhat.com>
6111
6112 * exec.c (exec_ops): Now static.
6113 * exec.h (exec_ops): Don't declare.
6114
6115 2014-07-18 Tom Tromey <tromey@redhat.com>
6116
6117 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6118 to find_target_beneath.
6119 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6120 find_target_beneath.
6121 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6122
6123 2014-07-18 Tom Tromey <tromey@redhat.com>
6124
6125 PR gdb/17130:
6126 * utils.c (quit): Use target_supports_terminal_ours.
6127 * target.h (target_supports_terminal_ours): Declare.
6128 * target.c (target_supports_delete_record): Don't check
6129 to_delete_record against NULL.
6130 (target_supports_terminal_ours): New function.
6131
6132 2014-07-18 Tom Tromey <tromey@redhat.com>
6133
6134 PR gdb/17130:
6135 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6136 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6137 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6138 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6139 * windows-nat.c (windows_xfer_partial): Always delegate.
6140 * record-btrace.c (record_btrace_xfer_partial): Simplify
6141 delegation.
6142 (record_btrace_fetch_registers, record_btrace_store_registers)
6143 (record_btrace_prepare_to_store, record_btrace_resume)
6144 (record_btrace_wait, record_btrace_find_new_threads)
6145 (record_btrace_thread_alive): Likewise.
6146 * procfs.c (procfs_xfer_partial): Always delegate.
6147 * corelow.c (core_xfer_partial): Always delegate.
6148 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6149
6150 2014-07-18 Tom Tromey <tromey@redhat.com>
6151
6152 * exec.c (exec_make_note_section): Move earlier.
6153
6154 2014-07-17 Doug Evans <dje@google.com>
6155
6156 PR gdb/17170
6157 * maint.c (count_symtabs_and_blocks): Handle NULL
6158 current_program_space.
6159 (report_command_stats): Check global enabled flag in addition to
6160 recorded enabled flag.
6161 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6162
6163 2014-07-16 Pedro Alves <palves@redhat.com>
6164
6165 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6166
6167 2014-07-16 Tom Tromey <tromey@redhat.com>
6168
6169 * target.h (struct target_ops) <to_delete_record>: Reformat
6170 comment.
6171
6172 2014-07-16 Tom Tromey <tromey@redhat.com>
6173
6174 * target-delegates.c: Rebuild.
6175
6176 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6177
6178 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6179 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6180 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6181 (avr_pointer_to_address): Likewise.
6182 (avr_address_class_type_flags): New function.
6183 (avr_address_class_type_flags_to_name): Likewise.
6184 (avr_address_class_name_to_type_flags): Likewise.
6185 (avr_gdbarch_init): Set address_class_type_flags,
6186 address_class_type_flags_to_name and
6187 address_class_name_to_type_flags.
6188
6189 2014-07-15 Pedro Alves <palves@redhat.com>
6190
6191 * linux-nat.c (kill_callback): Save errno and work with saved
6192 copy.
6193
6194 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6195
6196 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6197
6198 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6199
6200 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6201 breakpoint support correctly.
6202
6203 2014-07-14 Pedro Alves <palves@redhat.com>
6204
6205 * utils.c (prompt_for_continue): Call target_terminal_ours.
6206
6207 2014-07-14 Pedro Alves <palves@redhat.com>
6208
6209 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6210 catch_errors. Don't re-enable stdin or notify observers where,
6211 and rethrow error.
6212 (fetch_inferior_event_wrapper): Delete.
6213
6214 2014-07-14 Pedro Alves <palves@redhat.com>
6215
6216 PR gdb/17072
6217 * top.c: Include "inf-loop.h".
6218 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6219 field.
6220 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6221 was async before.
6222 (gdb_readline_wrapper): Store whether the target is async, and
6223 make it sync.
6224
6225 2014-07-14 Pedro Alves <palves@redhat.com>
6226
6227 PR gdb/17072
6228 * top.c (gdb_readline_wrapper_line): Tweak comment.
6229 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6230 the input handler callback.
6231
6232 2014-07-14 Pedro Alves <palves@redhat.com>
6233
6234 PR gdb/17072
6235 * main.c: Include event-top.h.
6236 (handle_command_errors): New function.
6237 (catch_command_errors, catch_command_errors_const): Use it.
6238
6239 2014-07-14 Pedro Alves <palves@redhat.com>
6240
6241 * exceptions.c (catch_command_errors, catch_command_errors_const):
6242 Moved to main.c.
6243 * exceptions.h (catch_command_errors_ftype)
6244 (catch_command_errors_const_ftype): Moved to main.c.
6245 (catch_command_errors, catch_command_errors_const): Delete
6246 declarations.
6247 * main.c (catch_command_errors_ftype)
6248 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6249 (catch_command_errors, catch_command_errors_const)): Moved here
6250 from exceptions.c and make static.
6251
6252 2014-07-14 Pedro Alves <palves@redhat.com>
6253
6254 * exceptions.c (print_any_exception): Delete.
6255 (catch_exceptions_with_msg): Use exception_print instead of
6256 print_any_exception.
6257 (catch_errors): Use exception_fprintf instead of
6258 print_any_exception.
6259 (catch_command_errors, catch_command_errors_const): Use
6260 exception_print instead of print_any_exception.
6261
6262 2014-07-14 Pedro Alves <palves@redhat.com>
6263
6264 * infcall.c (run_inferior_call): Set 'sync_execution' while
6265 running the inferior call.
6266
6267 2014-07-14 Pedro Alves <palves@redhat.com>
6268
6269 * value.c (value_contents_equal): Delete function.
6270 * value.h (value_contents_equal): Delete declaration.
6271
6272 2014-07-14 Tom Tromey <tromey@redhat.com>
6273
6274 PR exp/17106:
6275 * gdbtypes.c (is_dynamic_type_internal): New function, from
6276 is_dynamic_type.
6277 (is_dynamic_type): Rewrite.
6278 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6279 (resolve_dynamic_struct): Likewise.
6280 (resolve_dynamic_type_internal): New function, from
6281 resolve_dynamic_type.
6282 (resolve_dynamic_type): Rewrite.
6283
6284 2014-07-14 Tom Tromey <tromey@redhat.com>
6285
6286 * target.c (target_require_runnable): Also check record_stratum.
6287 Update comment.
6288
6289 2014-07-11 Yao Qi <yao@codesourcery.com>
6290
6291 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6292 thumb_instruction_restores_sp return true.
6293
6294 2014-07-11 Yao Qi <yao@codesourcery.com>
6295
6296 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6297 (thumb_in_function_epilogue_p): Call
6298 thumb_instruction_restores_sp.
6299
6300 2014-07-11 Yao Qi <yao@codesourcery.com>
6301
6302 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6303 'add sp, #imm'.
6304 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6305
6306 2014-07-11 Gary Benson <gbenson@redhat.com>
6307
6308 * amd64-linux-nat.c (gdbcore.h): Remove include.
6309 (regset.h): Likewise.
6310 (nat/linux-btrace.h): Likewise.
6311 (btrace.h): Likewise.
6312 (gdb_assert.h): Likewise.
6313 (string.h): Likewise.
6314 (sys/uio.h): Likewise.
6315 (sys/debugreg.h): Likewise.
6316 (sys/syscall.h): Likewise.
6317 (sys/procfs.h): Likewise.
6318 (sys/user.h): Likewise.
6319 (asm/ptrace.h): Likewise.
6320 (i386-nat.h): Likewise.
6321 * i386-linux-nat.c (i386-nat.h): Likewise.
6322 (regset.h): Likewise.
6323 (target.h): Likewise.
6324 (linux-nat.h): Likewise.
6325 (nat/linux-btrace.h): Likewise.
6326 (btrace.h): Likewise.
6327 (gdb_assert.h): Likewise.
6328 (string.h): Likewise.
6329 (sys/uio.h): Likewise.
6330 (sys/user.h): Likewise.
6331 (sys/procfs.h): Likewise.
6332 (sys/reg.h): Likewise.
6333 (sys/debugreg.h): Likewise.
6334 (ORIG_EAX): Remove definition.
6335
6336 2014-07-11 Gary Benson <gbenson@redhat.com>
6337
6338 * i386-linux-nat.h: New file.
6339 * x86-linux-nat.h: Likewise.
6340 * x86-linux-nat.c: Likewise.
6341 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6342 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6343 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6344 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6345 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6346 (PTRACE_SETREGSET): Likewise.
6347 (arch_lwp_info): Now in x86-linux-nat.c.
6348 (have_ptrace_getregset): Now in x86-linux-nat.h.
6349 (x86_linux_dr_get): Now in x86-linux-nat.c.
6350 (x86_linux_dr_set): Likewise.
6351 (x86_linux_dr_get_addr): Likewise.
6352 (x86_linux_dr_get_control): Likewise.
6353 (x86_linux_dr_get_status): Likewise.
6354 (update_debug_registers_callback): Likewise.
6355 (x86_linux_dr_set_control): Likewise.
6356 (x86_linux_dr_set_addr): Likewise.
6357 (x86_linux_prepare_to_resume): Likewise.
6358 (x86_linux_new_thread): Likewise.
6359 (x86_linux_new_fork): Likewise.
6360 (x86_linux_get_thread_area): Likewise.
6361 (super_post_startup_inferior): Likewise.
6362 (x86_linux_child_post_startup_inferior): Likewise.
6363 (AMD64_LINUX_USER64_CS): Likewise.
6364 (AMD64_LINUX_X32_DS): Likewise.
6365 (x86_linux_read_description): Likewise.
6366 (x86_linux_enable_btrace): Likewise.
6367 (x86_linux_disable_btrace): Likewise.
6368 (x86_linux_teardown_btrace): Likewise.
6369 (x86_linux_read_btrace): Likewise.
6370 (x86_linux_create_target): Likewise.
6371 (x86_linux_add_target): Likewise.
6372 * i386-linux-nat.c (x86-linux-nat.h): New include.
6373 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6374 (PTRACE_SETREGSET): Likewise.
6375 (arch_lwp_info): Now in x86-linux-nat.c.
6376 (have_ptrace_getregset): Now in x86-linux-nat.h.
6377 (x86_linux_dr_get): Now in x86-linux-nat.c.
6378 (x86_linux_dr_set): Likewise.
6379 (x86_linux_dr_get_addr): Likewise.
6380 (x86_linux_dr_get_control): Likewise.
6381 (x86_linux_dr_get_status): Likewise.
6382 (update_debug_registers_callback): Likewise.
6383 (x86_linux_dr_set_control): Likewise.
6384 (x86_linux_dr_set_addr): Likewise.
6385 (x86_linux_prepare_to_resume): Likewise.
6386 (x86_linux_new_thread): Likewise.
6387 (x86_linux_new_fork): Likewise.
6388 (x86_linux_get_thread_area): Likewise.
6389 (super_post_startup_inferior): Likewise.
6390 (x86_linux_child_post_startup_inferior): Likewise.
6391 (AMD64_LINUX_USER64_CS): Likewise.
6392 (AMD64_LINUX_X32_DS): Likewise.
6393 (x86_linux_read_description): Likewise.
6394 (x86_linux_enable_btrace): Likewise.
6395 (x86_linux_disable_btrace): Likewise.
6396 (x86_linux_teardown_btrace): Likewise.
6397 (x86_linux_read_btrace): Likewise.
6398 (x86_linux_create_target): Likewise.
6399 (x86_linux_add_target): Likewise.
6400
6401 2014-07-11 Gary Benson <gbenson@redhat.com>
6402
6403 * amd64-linux-nat.c: Comment and whitespace changes.
6404 * i386-linux-nat.c: Comment and whitespace changes.
6405
6406 2014-07-11 Gary Benson <gbenson@redhat.com>
6407
6408 * amd64-linux-nat.c (x86_linux_create_target): New function.
6409 (x86_linux_add_target): Likewise.
6410 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6411 * i386-linux-nat.c (x86_linux_create_target): New function.
6412 (x86_linux_add_target): Likewise.
6413 (_initialize_i386_linux_nat): Delegate to the above new functions.
6414
6415 2014-07-11 Gary Benson <gbenson@redhat.com>
6416
6417 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6418 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6419 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6420 (ps_get_thread_area): Delegate to the above.
6421
6422 2014-07-11 Gary Benson <gbenson@redhat.com>
6423
6424 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6425 x86_linux_read_description. All uses updated. amd64-specific
6426 code conditionalized. Conditionalized i386-specific code added.
6427 Redundant cast removed.
6428 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6429 x86_linux_read_description. All uses updated. i386-specific
6430 code conditionalized. Conditionalized amd64-specific code added.
6431 One sizeof replaced with the actual type it is describing.
6432
6433 2014-07-11 Gary Benson <gbenson@redhat.com>
6434
6435 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6436 x86_linux_dr_get. All uses updated.
6437 (amd64_linux_dr_set): Renamed to
6438 x86_linux_dr_set. All uses updated.
6439 (amd64_linux_dr_get_addr): Renamed to
6440 x86_linux_dr_get_addr. All uses updated.
6441 (amd64_linux_dr_get_control): Renamed to
6442 x86_linux_dr_get_control. All uses updated.
6443 (amd64_linux_dr_get_status): Renamed to
6444 x86_linux_dr_get_status. All uses updated.
6445 (amd64_linux_dr_set_control): Renamed to
6446 x86_linux_dr_set_control. All uses updated.
6447 (amd64_linux_dr_set_addr): Renamed to
6448 x86_linux_dr_set_addr. All uses updated.
6449 (amd64_linux_prepare_to_resume): Renamed to
6450 x86_linux_prepare_to_resume. All uses updated.
6451 (amd64_linux_new_thread): Renamed to
6452 x86_linux_new_thread. All uses updated.
6453 (amd64_linux_new_fork): Renamed to
6454 x86_linux_new_fork. All uses updated.
6455 (amd64_linux_child_post_startup_inferior): Renamed to
6456 x86_linux_child_post_startup_inferior. All uses updated.
6457 (amd64_linux_enable_btrace): Renamed to
6458 x86_linux_enable_btrace. All uses updated.
6459 (amd64_linux_disable_btrace): Renamed to
6460 x86_linux_disable_btrace. All uses updated.
6461 (amd64_linux_teardown_btrace): Renamed to
6462 x86_linux_teardown_btrace. All uses updated.
6463 (amd64_linux_read_btrace): Renamed to
6464 x86_linux_read_btrace. All uses updated.
6465 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6466 x86_linux_dr_get. All uses updated.
6467 (i386_linux_dr_set): Renamed to
6468 x86_linux_dr_set. All uses updated.
6469 (i386_linux_dr_get_addr): Renamed to
6470 x86_linux_dr_get_addr. All uses updated.
6471 (i386_linux_dr_get_control): Renamed to
6472 x86_linux_dr_get_control. All uses updated.
6473 (i386_linux_dr_get_status): Renamed to
6474 x86_linux_dr_get_status. All uses updated.
6475 (i386_linux_dr_set_control): Renamed to
6476 x86_linux_dr_set_control. All uses updated.
6477 (i386_linux_dr_set_addr): Renamed to
6478 x86_linux_dr_set_addr. All uses updated.
6479 (i386_linux_prepare_to_resume): Renamed to
6480 x86_linux_prepare_to_resume. All uses updated.
6481 (i386_linux_new_thread): Renamed to
6482 x86_linux_new_thread. All uses updated.
6483 (i386_linux_new_fork): Renamed to
6484 x86_linux_new_fork. All uses updated.
6485 (i386_linux_child_post_startup_inferior): Renamed to
6486 x86_linux_child_post_startup_inferior. All uses updated.
6487 (i386_linux_enable_btrace): Renamed to
6488 x86_linux_enable_btrace. All uses updated.
6489 (i386_linux_disable_btrace): Renamed to
6490 x86_linux_disable_btrace. All uses updated.
6491 (i386_linux_teardown_btrace): Renamed to
6492 x86_linux_teardown_btrace. All uses updated.
6493 (i386_linux_read_btrace): Renamed to
6494 x86_linux_read_btrace. All uses updated.
6495
6496 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6497
6498 * remote.c (extended_remote_post_attach): New function.
6499 (init_extended_remote_ops): Install it as to_post_attach method.
6500
6501 2014-07-09 Pedro Alves <palves@redhat.com>
6502
6503 * infcmd.c (attach_command_post_wait): Don't call
6504 target_terminal_inferior here.
6505 (attach_command): Call it here instead.
6506
6507 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6508
6509 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6510 field.
6511 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6512 from varobj.c, with additional checks.
6513 (c_varobj_ops): Fill in is_path_expr_parent field.
6514 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6515 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6516 field.
6517 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6518 ops method.
6519 (varobj_default_is_path_expr_parent): New function.
6520 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6521 (varobj_default_is_path_expr_parent): Declare new function.
6522
6523 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6524
6525 * infcmd.c (finish_backward): Turn internal error into normal error.
6526
6527 2014-07-07 Pedro Alves <palves@redhat.com>
6528
6529 PR gdb/17096
6530 * remote.c (async_handle_remote_sigint)
6531 (async_handle_remote_sigint_twice): Call
6532 gdb_call_async_signal_handler instead of
6533 mark_async_signal_handler.
6534
6535 2014-07-07 Tom Tromey <tromey@redhat.com>
6536
6537 * target-delegates.c: Rebuild.
6538 * target.c (target_info_record): Remove.
6539 * record.c (info_record_command): Unconditionally call
6540 to_info_record.
6541 * target.h (struct target_ops) <to_info_record>: Use
6542 TARGET_DEFAULT_IGNORE.
6543 (target_info_record): Remove.
6544
6545 2014-07-07 Tom Tromey <tromey@redhat.com>
6546
6547 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6548 TARGET_DEFAULT_NORETURN.
6549 * target.c (generic_tls_error): New function.
6550 (target_translate_tls_address): Don't search target stack.
6551 * target-delegates.c: Rebuild.
6552 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6553 stack.
6554 * linux-thread-db.c (thread_db_get_thread_local_address):
6555 Unconditionally call beneath target.
6556
6557 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6558
6559 * cli/cli-logging.c (pop_output_files): Assign targerr to
6560 gdb_stdtargerr.
6561
6562 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6563
6564 * MAINTAINERS (Write After Approval): Update my email address.
6565
6566 2014-07-02 Gary Benson <gbenson@redhat.com>
6567
6568 * proc-service.c (ps_xfer_memory): Update comment.
6569 (ps_pstop): Remove unused function.
6570 (ps_pcontinue): Likewise.
6571 (ps_lstop): Likewise.
6572 (ps_lcontinue): Likewise.
6573 (ps_lgetxregsize): Likewise.
6574 (ps_lgetxregs): Likewise.
6575 (ps_lsetxregs): Likewise.
6576 (ps_plog): Likewise.
6577 (ps_ptread): Likewise.
6578 (ps_ptwrite): Likewise.
6579
6580 2014-07-01 Mark Wielaard <mjw@redhat.com>
6581
6582 * dwarf2read.c (add_array_cv_type): New function.
6583 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6584 (read_tag_volatile_type): Likewise.
6585
6586 2014-07-01 Tom Tromey <tromey@redhat.com>
6587
6588 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6589 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6590 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6591 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6592 * command.h (cmd_cfunc_ftype): Move earlier.
6593 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6594 (add_com, add_info): Use cmd_cfunc_ftype.
6595
6596 2014-06-30 Tom Tromey <tromey@redhat.com>
6597
6598 * symtab.c (operator_chars): Make parameters and return type
6599 const.
6600 (file_matches): Make "files" const.
6601 (struct search_symbols_data) <files>: Now const.
6602 (search_symbols): Make "regexp" and "files" parameters const.
6603 Update.
6604 (symtab_symbol_info): Remove cast.
6605 (rbreak_command): Update.
6606 * symtab.h (search_symbols): Update.
6607
6608 2014-06-27 Yao Qi <yao@codesourcery.com>
6609
6610 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6611 Change parameter type to 'struct thread_info *'. Caller
6612 updated.
6613 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6614 Update declaration.
6615 * dummy-frame.c (struct dummy_frame_id): New.
6616 (dummy_frame_id_eq): New function.
6617 (struct dummy_frame) <id>: Change its type to 'struct
6618 dummy_frame_id'.
6619 (dummy_frame_push): Add parameter ptid and save it in
6620 dummy_frame_id.
6621 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6622 inferior_ptid.
6623 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6624 to inferior_ptid.
6625 (lookup_dummy_frame): Change parameter type to 'struct
6626 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6627 instead of frame_id_eq.
6628 (dummy_frame_pop): Add parameter ptid. Callers updated.
6629 Update comments. Compose dummy_frame_id and pass it to
6630 lookup_dummy_frame.
6631 (dummy_frame_discard): Add parameter ptid.
6632 (dummy_frame_sniffer): Compose dummy_frame_id and call
6633 dummy_frame_id_eq instead of frame_id_eq.
6634 (fprint_dummy_frames): Print ptid.
6635 * dummy-frame.h: Remove comments.
6636 (dummy_frame_push): Add ptid in declaration.
6637 (dummy_frame_pop, dummy_frame_discard): Likewise.
6638
6639 2014-06-26 Tom Tromey <tromey@redhat.com>
6640
6641 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6642 * command.h (error_no_arg): Update.
6643
6644 2014-06-26 Tom Tromey <tromey@redhat.com>
6645
6646 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6647 (do_show_command): Make "arg" const.
6648 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6649
6650 2014-06-26 Tom Tromey <tromey@redhat.com>
6651
6652 * record-full.c (record_full_get_bookmark): Make "args" const.
6653 (record_full_goto_bookmark): Make "raw_bookmark" const.
6654 * record.c (record_goto): New function.
6655 (cmd_record_goto): Use it. Now static.
6656 * record.h (record_goto): Declare.
6657 (cmd_record_goto): Remove declaration.
6658 * target-delegates.c: Rebuild.
6659 * target.h (struct target_ops) <to_get_bookmark,
6660 to_goto_bookmark>: Make parameter const.
6661
6662 2014-06-26 Tom Tromey <tromey@redhat.com>
6663
6664 * defs.h (generic_load): Update.
6665 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6666 * monitor.c (monitor_load): Make "args" const.
6667 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6668 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6669 const.
6670 (mips_load): Make "file" const.
6671 * remote-sim.c (gdbsim_load): Make "args" const.
6672 * remote.c (remote_load): Make "name" const.
6673 * symfile.c (generic_load): Make "args" const.
6674 * target-delegates.c: Rebuild.
6675 * target.c (target_load): Make "arg" const.
6676 (debug_to_load): Make "args" const.
6677 * target.h (struct target_ops) <to_load>: Make parameter const.
6678 (target_load): Update.
6679
6680 2014-06-26 Tom Tromey <tromey@redhat.com>
6681
6682 PR symtab/16902:
6683 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6684 (dwarf2_physname, read_partial_die)
6685 (guess_partial_die_structure_name, fixup_partial_die)
6686 (guess_full_die_structure_name, anonymous_struct_prefix)
6687 (dwarf2_name): Use per-BFD obstack.
6688
6689 2014-06-26 Yao Qi <yao@codesourcery.com>
6690
6691 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6692 dummyframe and this_id into inner block below.
6693
6694 2014-06-26 Yao Qi <yao@codesourcery.com>
6695
6696 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6697 with "signal_pass[0]" in the initialization of signal_pass.
6698
6699 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6700
6701 * record-btrace.c (record_btrace_generating_corefile)
6702 (record_btrace_prepare_to_generate_core)
6703 (record_btrace_done_generating_core): New.
6704 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6705 (record_btrace_store_registers, record_btrace_prepare_to_store):
6706 Forward request when generating a core file.
6707 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6708 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6709 to_done_generating_core.
6710
6711 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6712
6713 * target.h (target_ops) <to_prepare_to_generate_core>
6714 <to_done_generating_core>: New.
6715 (target_prepare_to_generate_core, target_done_generating_core): New.
6716 * target.c (target_prepare_to_generate_core)
6717 (target_done_generating_core): New.
6718 * target-delegates.c: Regenerate.
6719 * gcore.c: (write_gcore_file): Rename to ...
6720 (write_gcore_file_1): ...this.
6721 (write_gcore_file): Call target_prepare_to_generate_core
6722 and target_done_generating_core.
6723
6724 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6725
6726 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6727 * gcore.c (write_gcore_file): Free memory returned from
6728 make_corefile_notes.
6729 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6730 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6731
6732 2014-06-24 Yao Qi <yao@codesourcery.com>
6733
6734 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6735 (arm_linux_init_abi): Set skip_trampoline_code with
6736 gdbarch_skip_trampoline_code instead of
6737 find_solib_trampoline_target.
6738
6739 2014-06-24 Yao Qi <yao@codesourcery.com>
6740
6741 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6742 arm_skip_bx_reg returns non-zero.
6743
6744 2014-06-24 Yao Qi <yao@codesourcery.com>
6745
6746 * arm-tdep.c (arm_skip_bx_reg): New function.
6747 (arm_skip_stub): Call arm_skip_bx_reg.
6748
6749 2014-06-23 Don Breazeal <donb@codesourcery.com>
6750
6751 * MAINTAINERS: Add myself as write-after-approval maintainer.
6752
6753 2014-06-23 Pedro Alves <palves@redhat.com>
6754
6755 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6756 DR_CONTROL before setting DR0..DR3.
6757 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6758 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6759 bits of DR_CONTROL related to the debug register slot being
6760 disabled. If all slots are vacant, clear local slowdown as well,
6761 and assert DR_CONTROL is 0.
6762
6763 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6764
6765 * python/lib/gdb/command/xmethods.py
6766 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6767 current progspace only if the string "progspace" matches LOCUS_RE.
6768
6769 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6770
6771 Fix --with-system-readline with readline-6.3 patch 5.
6772 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6773 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6774 types.
6775
6776 2014-06-20 Tom Tromey <tromey@redhat.com>
6777
6778 * dwarf2read.c (dw2_get_real_path): Use correct type in
6779 OBSTACK_CALLOC.
6780 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6781
6782 2014-06-20 Gary Benson <gbenson@redhat.com>
6783
6784 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6785 * common/glibc_thread_db.h: Likewise.
6786 * common/i386-cpuid.h: Likewise.
6787 * common/i386-gcc-cpuid.h: Likewise.
6788 * common/linux-btrace.h: Likewise.
6789 * common/linux-osdata.h: Likewise.
6790 * common/linux-procfs.h: Likewise.
6791 * common/linux-ptrace.h: Likewise.
6792 * common/mips-linux-watch.h: Likewise.
6793 * common/linux-btrace.c: Moved to nat.
6794 * common/linux-osdata.c: Likewise.
6795 * common/linux-procfs.c: Likewise.
6796 * common/linux-ptrace.c: Likewise.
6797 * common/mips-linux-watch.c: Likewise.
6798 * nat/gdb_thread_db.h: Moved from common.
6799 * nat/glibc_thread_db.h: Likewise.
6800 * nat/i386-cpuid.h: Likewise.
6801 * nat/i386-gcc-cpuid.h: Likewise.
6802 * nat/linux-btrace.c: Likewise.
6803 * nat/linux-btrace.h: Likewise.
6804 * nat/linux-osdata.c: Likewise.
6805 * nat/linux-osdata.h: Likewise.
6806 * nat/linux-procfs.c: Likewise.
6807 * nat/linux-procfs.h: Likewise.
6808 * nat/linux-ptrace.c: Likewise.
6809 * nat/linux-ptrace.h: Likewise.
6810 * nat/mips-linux-watch.c: Likewise.
6811 * nat/mips-linux-watch.h: Likewise.
6812 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6813 (object file files): Reordered.
6814 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6815 of glibc_thread_db.h.
6816
6817 2014-06-20 Gary Benson <gbenson@redhat.com>
6818
6819 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6820 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6821 (i386_dr_low): Likewise.
6822 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6823 (i386_dr_low_set_addr): Likewise.
6824 (i386_dr_low_get_addr): Likewise.
6825 (i386_dr_low_can_set_control): Likewise.
6826 (i386_dr_low_set_control): Likewise.
6827 (i386_dr_low_get_control): Likewise.
6828 (i386_dr_low_get_status): Likewise.
6829 (i386_get_debug_register_length): Likewise.
6830 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6831 (i386_dr_low): Likewise.
6832 * nat/i386-dregs.c (i386-low.h): Remove include.
6833 (i386-nat.h): Likewise.
6834 (nat/i386-dregs.h): New include.
6835 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6836 (i386_dr_low_set_addr): Likewise.
6837 (i386_dr_low_get_addr): Likewise.
6838 (i386_dr_low_can_set_control): Likewise.
6839 (i386_dr_low_set_control): Likewise.
6840 (i386_dr_low_get_control): Likewise.
6841 (i386_dr_low_get_status): Likewise.
6842 (i386_get_debug_register_length): Likewise.
6843 (debug_hw_points): Likewise.
6844
6845 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6846
6847 * Makefile.in (SFILES): Add d-exp.y.
6848 (YYFILES): Add d-exp.c.
6849 (YYOBJ): Add d-exp.o.
6850 (local-maintainer-clean): Delete d-exp.c.
6851 * d-exp.y: New file.
6852 * d-lang.h (d_parse): New declaration.
6853 (d_error): New declaration.
6854 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6855 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6856 PREC_ORDER operators.
6857 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6858
6859 2014-06-19 Yao Qi <yao@codesourcery.com>
6860
6861 * gdbthread.h (any_running): Remove the declaration.
6862 * thread.c (any_running): Remove.
6863
6864 2014-06-19 Yao Qi <yao@codesourcery.com>
6865
6866 * gdbthread.h (struct thread_info) <state>: Change its type to
6867 'enum thread_state'. Update comments.
6868
6869 2014-06-19 Pedro Alves <palves@redhat.com>
6870
6871 * gdbthread.h (ALL_THREADS): Delete.
6872 (ALL_NON_EXITED_THREADS): New macro.
6873 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6874 instead of ALL_THREADS.
6875 * infrun.c (find_thread_needs_step_over)
6876 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6877 instead of ALL_THREADS.
6878 * record-btrace.c (record_btrace_open)
6879 (record_btrace_stop_recording, record_btrace_close)
6880 (record_btrace_is_replaying, record_btrace_resume)
6881 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6882 * remote.c (append_pending_thread_resumptions): Likewise.
6883 * thread.c (thread_apply_all_command): Likewise.
6884
6885 2014-06-19 Gary Benson <gbenson@redhat.com>
6886
6887 * i386-nat.c (i386_stopped_by_watchpoint):
6888 Use i386_dr_stopped_by_watchpoint.
6889 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6890 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6891
6892 2014-06-19 Gary Benson <gbenson@redhat.com>
6893
6894 * nat/i386-dregs.c: New file.
6895 * Makefile.in (i386-dregs.o): New rule.
6896 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6897 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6898 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6899 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6900 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6901 * config/i386/go32.mh (NATDEPFILES): Likewise.
6902 * config/i386/linux.mh (NATDEPFILES): Likewise.
6903 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6904 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6905 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6906 * i386-nat.h (debug_hw_points): New declaration.
6907 * i386-nat.c (breakpoint.h): Remove include.
6908 (command.h): Likewise.
6909 (target.h): Likewise.
6910 (gdb_assert.h): Likewise.
6911 (debug_hw_points): Made nonstatic.
6912 (debug_printf): Now in i386-dregs.c.
6913 (TARGET_HAS_DR_LEN_8): Likewise.
6914 (DR_CONTROL_SHIFT): Likewise.
6915 (DR_CONTROL_SIZE): Likewise.
6916 (DR_RW_EXECUTE): Likewise.
6917 (DR_RW_WRITE): Likewise.
6918 (DR_RW_READ): Likewise.
6919 (DR_RW_IORW): Likewise.
6920 (DR_LEN_1): Likewise.
6921 (DR_LEN_2): Likewise.
6922 (DR_LEN_4): Likewise.
6923 (DR_LEN_8): Likewise.
6924 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6925 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6926 (DR_ENABLE_SIZE): Likewise.
6927 (DR_LOCAL_SLOWDOWN): Likewise.
6928 (DR_GLOBAL_SLOWDOWN): Likewise.
6929 (DR_CONTROL_RESERVED): Likewise.
6930 (I386_DR_CONTROL_MASK): Likewise.
6931 (I386_DR_VACANT): Likewise.
6932 (I386_DR_LOCAL_ENABLE): Likewise.
6933 (I386_DR_GLOBAL_ENABLE): Likewise.
6934 (I386_DR_DISABLE): Likewise.
6935 (I386_DR_SET_RW_LEN): Likewise.
6936 (I386_DR_GET_RW_LEN): Likewise.
6937 (I386_DR_WATCH_HIT): Likewise.
6938 (i386_wp_op_t): Likewise.
6939 (i386_show_dr): Likewise.
6940 (i386_length_and_rw_bits): Likewise.
6941 (i386_insert_aligned_watchpoint): Likewise.
6942 (i386_remove_aligned_watchpoint): Likewise.
6943 (i386_handle_nonaligned_watchpoint): Likewise.
6944 (i386_update_inferior_debug_regs): Likewise.
6945 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6946 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6947 (i386_region_ok_for_watchpoint):
6948 Use i386_dr_region_ok_for_watchpoint.
6949 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6950
6951 2014-06-19 Gary Benson <gbenson@redhat.com>
6952
6953 * i386-nat.c (i386_insert_hw_breakpoint): Use
6954 i386_insert_watchpoint.
6955 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6956
6957 2014-06-19 Gary Benson <gbenson@redhat.com>
6958
6959 * i386-nat.c (i386_dr_show): Renamed to
6960 i386_show_dr and made static. All uses updated.
6961 (i386_dr_length_and_rw_bits): Renamed to
6962 i386_length_and_rw_bits and made static.
6963 All uses updated.
6964 (i386_dr_insert_aligned_watchpoint): Renamed to
6965 i386_insert_aligned_watchpoint and made static.
6966 All uses updated.
6967 (i386_dr_remove_aligned_watchpoint): Renamed to
6968 i386_remove_aligned_watchpoint and made static.
6969 All uses updated.
6970 (i386_dr_update_inferior_debug_regs): Renamed to
6971 i386_update_inferior_debug_regs and made static.
6972 All uses updated.
6973 * nat/i386-dregs.h (i386_dr_show): Removed.
6974 (i386_dr_length_and_rw_bits): Likewise.
6975 (i386_dr_insert_aligned_watchpoint): Likewise.
6976 (i386_dr_remove_aligned_watchpoint): Likewise.
6977 (i386_dr_update_inferior_debug_regs): Likewise.
6978
6979 2014-06-19 Gary Benson <gbenson@redhat.com>
6980
6981 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6982 * configure: Regenerate.
6983 * config.in: Likewise.
6984 * main.c (signal.h): New include.
6985 (setup_alternate_signal_stack): New function.
6986 (captured_main): Call the above.
6987 * cp-support.c (signal.h): New include.
6988 (catch_demangler_crashes): New flag.
6989 (SIGJMP_BUF): New define.
6990 (SIGSETJMP): Likewise.
6991 (SIGLONGJMP): Likewise.
6992 (gdb_demangle_jmp_buf): New static global.
6993 (gdb_demangle_attempt_core_dump): Likewise.
6994 (gdb_demangle_signal_handler): New function.
6995 (gdb_demangle): If catch_demangler_crashes is set, install the
6996 above signal handler before calling bfd_demangle, and restore
6997 the original signal handler afterwards. Display the offending
6998 symbol and call demangler_warning the first time a segmentation
6999 fault is caught.
7000 (_initialize_cp_support): New maint set/show command.
7001
7002 2014-06-19 Gary Benson <gbenson@redhat.com>
7003
7004 * utils.h (resource_limit_kind): New enum.
7005 (can_dump_core): New declaration.
7006 (warn_cant_dump_core): Likewise.
7007 (dump_core): Likewise.
7008 * utils.c (dump_core): Made nonstatic. Added new
7009 parameter "limit_kind".
7010 (can_dump_core): Made nonstatic. Moved printing code to...
7011 (warn_cant_dump_core): New function.
7012 (can_dump_core_warn): Likewise.
7013 (internal_vproblem): Replace calls to can_dump_core with
7014 calls to can_dump_core_warn. Supply new argument to each.
7015
7016 2014-06-19 Gary Benson <gbenson@redhat.com>
7017
7018 * utils.h (demangler_vwarning): New declaration.
7019 (demangler_warning): Likewise.
7020 * utils.c (struct internal_problem)
7021 <user_settable_should_quit>: New field.
7022 <user_settable_should_dump_core>: Likewise
7023 (internal_error_problem): Add values for above new fields.
7024 (internal_warning_problem): Likewise.
7025 (demangler_warning_problem): New static global.
7026 (demangler_vwarning): New function.
7027 (demangler_warning): Likewise.
7028 (add_internal_problem_command): Selectively add commands.
7029 (_initialize_utils): New internal problem command.
7030 * maint.c (maintenance_demangler_warning): New function.
7031 (_initialize_maint_cmds): New command.
7032
7033 2014-06-18 Tom Tromey <tromey@redhat.com>
7034
7035 * f-valprint.c (info_common_command_for_block): Update.
7036 * symtab.h (struct general_symbol_info) <common_block>: Now
7037 const.
7038
7039 2014-06-18 Tom Tromey <tromey@redhat.com>
7040
7041 * symtab.h (struct symtab) <blockvector>: Now const.
7042 * ada-lang.c (ada_add_global_exceptions): Update.
7043 * buildsym.c (augment_type_symtab): Update.
7044 * dwarf2read.c (dw2_lookup_symbol): Update.
7045 * jit.c (finalize_symtab): Update.
7046 * jv-lang.c (add_class_symtab_symbol): Update.
7047 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7048 Update.
7049 * objfiles.c (objfile_relocate1): Update.
7050 * psymtab.c (lookup_symbol_aux_psymtabs)
7051 (maintenance_check_psymtabs): Update.
7052 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7053 Update.
7054 * spu-tdep.c (spu_catch_start): Update.
7055 * symmisc.c (dump_symtab_1): Update.
7056 * symtab.c (lookup_global_symbol_from_objfile)
7057 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7058 (basic_lookup_transparent_type_quick)
7059 (basic_lookup_transparent_type, find_pc_sect_symtab)
7060 (find_pc_sect_line, search_symbols): Update.
7061 * block.c (find_block_in_blockvector): Make "bl" const.
7062 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7063 const.
7064 (blockvector_contains_pc): Make "bv" const.
7065 (block_for_pc_sect): Update.
7066 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7067 (blockvector_contains_pc): Update.
7068 * breakpoint.c (resolve_sal_pc): Update.
7069 * inline-frame.c (block_starting_point_at): Update.
7070
7071 2014-06-18 Tom Tromey <tromey@redhat.com>
7072
7073 * completer.c (complete_line): Make "line_buffer" const.
7074 * completer.h (complete_line): Update.
7075
7076 2014-06-18 Tom Tromey <tromey@redhat.com>
7077
7078 * symtab.c (add_macro_name): Remove unneeded cast.
7079
7080 2014-06-18 Tom Tromey <tromey@redhat.com>
7081
7082 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7083 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7084
7085 2014-06-18 Tom Tromey <tromey@redhat.com>
7086
7087 * probe.c (info_probes_for_ops): Make "arg" const.
7088 * probe.h (info_probes_for_ops): Update.
7089
7090 2014-06-18 Tom Tromey <tromey@redhat.com>
7091
7092 * varobj.c (varobj_create): Update.
7093 * valops.c (value_of_this): Update.
7094 * tracepoint.c (add_local_symbols, scope_info): Update.
7095 * symtab.h (struct general_symbol_info) <block>: Now const.
7096 * symtab.c (skip_prologue_sal)
7097 (default_make_symbol_completion_list_break_on)
7098 (skip_prologue_using_sal): Update.
7099 * stack.h (iterate_over_block_locals)
7100 (iterate_over_block_local_vars): Update.
7101 * stack.c (print_frame_args): Update.
7102 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7103 parameter const.
7104 (get_selected_block): Make return type const.
7105 * python/py-frame.c (frapy_block): Update.
7106 * python/py-block.c (gdbpy_block_for_pc): Update.
7107 * p-exp.y (%union) <bval>: Now const.
7108 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7109 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7110 * m2-exp.y (%union) <bval>: Now const.
7111 * linespec.c (get_current_search_block): Make return type const.
7112 (create_sals_line_offset, find_label_symbols): Update.
7113 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7114 Update.
7115 (block_starting_point_at): Make "block" const.
7116 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7117 (check_exception_resume): Update.
7118 * guile/scm-frame.c (gdbscm_frame_block): Update.
7119 * guile/scm-block.c (gdbscm_lookup_block): Update.
7120 * frame.h (get_frame_block): Update.
7121 (get_selected_block): Make return type const.
7122 * frame.c (frame_id_inner): Update.
7123 * f-valprint.c (info_common_command_for_block)
7124 (info_common_command): Update.
7125 * dwarf2loc.c (dwarf2_find_location_expression)
7126 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7127 (locexpr_describe_location_piece): Update.
7128 * c-exp.y (%union) <bval>: Now const.
7129 * breakpoint.c (resolve_sal_pc): Update.
7130 * blockframe.c (get_frame_block):Make return type const.
7131 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7132 (block_innermost_frame): Update.
7133 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7134 (block_for_pc, block_for_pc_sect): Update.
7135 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7136 'pblock' const.
7137 (block_for_pc_sect, block_for_pc): Make return type const.
7138 * ax-gdb.c (gen_expr): Update.
7139 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7140 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7141 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7142 (ada_read_var_value): Update.
7143 * ada-exp.y (struct name_info) <block>: Now const.
7144 (%union): Likewise.
7145 (block_lookup): Constify.
7146
7147 2014-06-18 Gary Benson <gbenson@redhat.com>
7148
7149 * nat/i386-dregs.h: New file.
7150 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7151 * i386-nat.h (i386-dregs.h): New include.
7152 (DR_FIRSTADDR): Now in i386-dregs.h.
7153 (DR_LASTADDR): Likewise.
7154 (DR_NADDR): Likewise.
7155 (DR_STATUS): Likewise.
7156 (DR_CONTROL): Likewise.
7157 (i386_debug_reg_state): Likewise.
7158 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7159
7160 2014-06-18 Don Breazeal <donb@codesourcery.com>
7161
7162 * breakpoint.c (set_longjmp_breakpoint): Call
7163 momentary_breakpoint_from_master with additional argument.
7164 (set_longjmp_breakpoint_for_call_dummy): Call
7165 momentary_breakpoint_from_master with additional argument.
7166 (set_std_terminate_breakpoint): Call
7167 momentary_breakpoint_from_master with additional argument.
7168 (momentary_breakpoint_from_master): Add argument to function
7169 definition and use it to initialize structure member flag.
7170 (clone_momentary_breakpoint): Call
7171 momentary_breakpoint_from_master with additional argument.
7172 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7173 member flags set in momentary_breakpoint_from_master.
7174
7175 2014-06-18 Gary Benson <gbenson@redhat.com>
7176
7177 * i386-nat.c (i386_show_dr): Renamed to
7178 i386_dr_show and made nonstatic. All uses updated.
7179 (i386_length_and_rw_bits): Renamed to
7180 i386_dr_length_and_rw_bits and made nonstatic.
7181 All uses updated.
7182 (i386_insert_aligned_watchpoint): Renamed to
7183 i386_dr_insert_aligned_watchpoint and made nonstatic.
7184 All uses updated.
7185 (i386_remove_aligned_watchpoint): Renamed to
7186 i386_dr_remove_aligned_watchpoint and made nonstatic.
7187 All uses updated.
7188 (i386_update_inferior_debug_regs): Renamed to
7189 i386_dr_update_inferior_debug_regs and made nonstatic.
7190 All uses updated.
7191
7192 2014-06-18 Gary Benson <gbenson@redhat.com>
7193
7194 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7195 (i386_dr_low_can_set_control): Likewise.
7196 (i386_dr_low_set_addr): Likewise.
7197 (i386_dr_low_set_control): Likewise.
7198 (i386_dr_low_get_addr): Likewise.
7199 (i386_dr_low_get_status): Likewise.
7200 (i386_dr_low_get_control): Likewise.
7201 (i386_insert_aligned_watchpoint): Use new macros.
7202 (i386_update_inferior_debug_regs): Likewise.
7203 (i386_stopped_data_address): Likewise.
7204
7205 2014-06-18 Gary Benson <gbenson@redhat.com>
7206
7207 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7208 New parameter. All uses updated.
7209
7210 2014-06-18 Gary Benson <gbenson@redhat.com>
7211
7212 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7213 All uses updated.
7214
7215 2014-06-18 Gary Benson <gbenson@redhat.com>
7216
7217 * i386-nat.c (debug_printf): New macro.
7218 (i386_get_debug_register_length): Likewise.
7219 (TARGET_HAS_DR_LEN_8): Use above macro.
7220 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7221 and printf_unfiltered. Use phex to format values.
7222
7223 2014-06-18 Gary Benson <gbenson@redhat.com>
7224
7225 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7226 Make const.
7227
7228 2014-06-18 Gary Benson <gbenson@redhat.com>
7229
7230 * i386-nat.c: Comment changes.
7231
7232 2014-06-18 Gary Benson <gbenson@redhat.com>
7233
7234 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7235
7236 2014-06-18 Gary Benson <gbenson@redhat.com>
7237
7238 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7239 (i386_insert_aligned_watchpoint): Likewise.
7240 (i386_remove_aligned_watchpoint): Likewise.
7241 (i386_handle_nonaligned_watchpoint): Likewise.
7242
7243 2014-06-18 Gary Benson <gbenson@redhat.com>
7244
7245 * i386-nat.c: Whitespace changes.
7246
7247 2014-06-17 Samuel Bronson <naesten@gmail.com>
7248
7249 * MAINTAINERS: Update Roland McGrath's email address.
7250 Thanks to Sergio Durigan Junior for pointing out that he left
7251 Red Hat a while ago, and giving me a current address.
7252
7253 2014-06-17 Tom Tromey <tromey@redhat.com>
7254
7255 * utils.h (savestring): Remove declaration.
7256
7257 2014-06-17 Tom Tromey <tromey@redhat.com>
7258
7259 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7260
7261 2014-06-16 Keith Seitz <keiths@redhat.com>
7262
7263 PR mi/15863
7264 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7265 to update the varobj if inferior_ptid is null_ptid.
7266
7267 2014-06-16 Tom Tromey <tromey@redhat.com>
7268
7269 * target.h (struct target_ops) <to_info_proc>: Make parameter
7270 const.
7271 (target_info_proc): Update.
7272 * target.c (target_info_proc): Make "args" const.
7273 * procfs.c (procfs_info_proc): Update.
7274 * linux-tdep.c (linux_info_proc): Update.
7275 (linux_core_info_proc_mappings): Make "args" const.
7276 (linux_core_info_proc): Update.
7277 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7278 * gdbarch.c: Rebuild.
7279 * gdbarch.h: Rebuild.
7280 * corelow.c (core_info_proc): Update.
7281
7282 2014-06-16 Tom Tromey <tromey@redhat.com>
7283
7284 * target.h (struct target_ops) <to_disconnect>: Make parameter
7285 const.
7286 (target_disconnect): Update.
7287 * target.c (target_disconnect): Make "args" const.
7288 * target-delegates.c: Rebuild.
7289 * remote.c (remote_disconnect): Update.
7290 * record.h (record_disconnect): Update.
7291 * record.c (record_disconnect): Update.
7292 * inf-child.c (inf_child_disconnect): Update.
7293
7294 2014-06-16 Tom Tromey <tromey@redhat.com>
7295
7296 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7297 * target.c (debug_to_rcmd, default_rcmd): Update.
7298 * target-delegates.c: Rebuild.
7299 * remote.c (remote_rcmd): Update.
7300 * monitor.c (monitor_rcmd): Update.
7301
7302 2014-06-16 Pedro Alves <palves@redhat.com>
7303
7304 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7305 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7306 have OBJF_SHARED set.
7307 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7308 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7309 instead of OBJF_USERLOADED.
7310 * objfiles.h (OBJF_SHARED): Update comment.
7311 (userloaded_objfile_contains_address_p): Rename to ...
7312 (shared_objfile_contains_address_p): ... this, and update
7313 comments.
7314 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7315 new objfile.
7316 (remove_symbol_file_command): Skip objfiles that don't have
7317 OBJF_SHARED set.
7318
7319 2014-06-16 Tom Tromey <tromey@redhat.com>
7320
7321 * minsyms.h (prim_record_minimal_symbol)
7322 (prim_record_minimal_symbol_and_info): Update comments.
7323
7324 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7325
7326 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7327 or --without-guile, according to how GDB was built.
7328
7329 2014-06-13 Tom Tromey <tromey@redhat.com>
7330
7331 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7332 to help_list.
7333 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7334 to help_list.
7335 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7336 help_list.
7337 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7338 help_list.Pass all_commands, not -1, to help_list.
7339 * cli/cli-dump.c (dump_command, append_command)
7340 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7341 (binary_dump_command, binary_append_command): Pass all_commands,
7342 not -1, to help_list.
7343 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7344 -1, to help_list.
7345 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7346 -1, to help_list.
7347 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7348 help_list.
7349 * top.c (set_history): Pass all_commands, not -1, to help_list.
7350 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7351 all_commands, not -1, to help_list.
7352 * symfile.c (overlay_command): Pass all_commands, not -1, to
7353 help_list.
7354 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7355 help_list.
7356 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7357 help_list.
7358 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7359 -1, to help_list.
7360 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7361 not -1, to help_list.
7362 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7363 not -1, to help_list.
7364 * maint.c (maintenance_command, maintenance_info_command)
7365 (maintenance_print_command, maintenance_set_cmd): Pass
7366 all_commands, not -1, to help_list.
7367 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7368 help_list.
7369 * language.c (set_check): Pass all_commands, not -1, to help_list.
7370 * infcmd.c (unset_command): Pass all_commands, not -1, to
7371 help_list.
7372 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7373 help_list.
7374 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7375 help_list.
7376 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7377 help_list.
7378 * breakpoint.c (save_command): Pass all_commands, not -1, to
7379 help_list.
7380 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7381 all_commands, not -1, to help_list.
7382
7383 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7384
7385 * regcache.c (struct register_to_invalidate): New structure.
7386 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7387 functions.
7388 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7389
7390 2014-06-12 Yao Qi <yao@codesourcery.com>
7391
7392 * varobj.c (varobj_get_num_children): Call
7393 varobj_is_dynamic_p.
7394 (varobj_list_children): Likewise.
7395 (varobj_update): Likewise. Update comments.
7396
7397 2014-06-12 Yao Qi <yao@codesourcery.com>
7398
7399 * varobj.c (varobj_pretty_printed_p): Rename to ...
7400 (varobj_is_dynamic_p): ... this. New function.
7401 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7402 (varobj_is_dynamic_p): Declare.
7403 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7404 (mi_print_value_p, varobj_update_one): Likewise.
7405
7406 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7407 Yao Qi <yao@codesourcery.com>
7408
7409 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7410 (varobj_get_iterator): Wrap up code for pretty-printer by
7411 "#if HAVE_PYTHON" and "#endif".
7412 (update_dynamic_varobj_children): Likewise.
7413
7414 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7415 Yao Qi <yao@codesourcery.com>
7416
7417 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7418 gdb_python_initialized is false. Move some code from varobj.c.
7419 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7420 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7421 (struct varobj_item): Moved to varobj-iter.h".
7422 (varobj_clear_saved_item): New function.
7423 (update_dynamic_varobj_children): Move python-related code to
7424 py-varobj.c.
7425 (free_variable): Call varobj_clear_saved_item and
7426 varobj_iter_delete.
7427
7428 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7429 Yao Qi <yao@codesourcery.com>
7430
7431 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7432 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7433 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7434 (py-varobj.o): New rule.
7435 * python/py-varobj.c: New file.
7436 * python/python-internal.h (py_varobj_get_iterator): Declare.
7437 * varobj-iter.h: New file.
7438 * varobj.c: Include "varobj-iter.h"
7439 (struct varobj) <child_iter>: Change its type from "PyObject *"
7440 to "struct varobj_iter *".
7441 <saved_item>: Likewise.
7442 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7443 [HAVE_PYTHON] (varobj_get_iterator): New function.
7444 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7445 python-specific code to python/py-varobj.c.
7446 (install_visualizer): Call varobj_iter_delete instead of
7447 Py_XDECREF.
7448 * varobj.h (varobj_ensure_python_env): Declare.
7449
7450 2014-06-12 Yao Qi <yao@codesourcery.com>
7451
7452 * varobj.c (struct varobj_item): New structure.
7453 (create_child_with_value): Update declaration.
7454 (varobj_add_child): Replace arguments 'name' and 'value' with
7455 'item'. All callers updated.
7456 (install_dynamic_child): Likewise.
7457 (update_dynamic_varobj_children): Likewise.
7458 (varobj_add_child): Likewise.
7459 (create_child_with_value): Likewise.
7460
7461 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7462
7463 * NEWS: Create a new section for the next release branch.
7464 Rename the section of the current branch, now that it has
7465 been cut.
7466
7467 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7468
7469 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7470 * version.in: Bump version to 7.8.50.DATE-cvs.
7471
7472 2014-06-11 Pedro Alves <palves@redhat.com>
7473
7474 PR remote/17028
7475 * ser-mingw.c (net_windows_socket_check_pending): New function.
7476 (net_windows_select_thread): Ignore spurious wakeups. Use
7477 net_windows_socket_check_pending.
7478 (net_windows_wait_handle): Check for pending events with
7479 ioctlsocket, through net_windows_socket_check_pending, instead of
7480 checking the socket's event.
7481
7482 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7483
7484 * python/python-internal.h (gdb_PyObject_GetAttrString)
7485 (gdb_PyObject_HasAttrString): New inline function definitions.
7486 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7487 char * of the second argument to PyObject_GetAttrString.
7488
7489 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7490
7491 * serial.c (serial_write): Fix index of character to be printed
7492 in call to serial_logchar when serial debug traces are enabled.
7493
7494 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7495
7496 * gdbtypes (resolve_dynamic_range): Add function description.
7497
7498 2014-06-09 Pedro Alves <palves@redhat.com>
7499
7500 * linux-nat.c (linux_child_follow_fork): Initialize status with
7501 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7502 inner block. Only pass the signal to PTRACE_DETACH if in pass
7503 state.
7504
7505 2014-06-09 Gary Benson <gbenson@redhat.com>
7506
7507 * common/signals.c (gdb_signal_from_host): Reorder to separate
7508 the always-available ANSI-standard signals from the signals that
7509 require checking.
7510 (do_gdb_signal_to_host): Likewise.
7511 * proc-events.c (signal_table): Likewise.
7512
7513 2014-06-08 Hui Zhu <hui@codesourcery.com>
7514
7515 * common/linux-ptrace.c (linux_disable_event_reporting): New
7516 function.
7517 * common/linux-ptrace.h (linux_disable_event_reporting): New
7518 declaration.
7519 * linux-nat.c (linux_child_follow_fork): Do a single step before
7520 detach.
7521
7522 2014-06-07 Keith Seitz <keiths@redhat.com>
7523
7524 Revert:
7525 PR c++/16253
7526 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7527 from symbol_matches_domain in symtab.c. All local callers
7528 of symbol_matches_domain updated.
7529 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7530 search STRUCT_DOMAIN.
7531 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7532 independently. standard_lookup will do that automatically.
7533 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7534 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7535 (cp_lookup_symbol_in_namespace): Likewise.
7536 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7537 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7538 may return a STRUCT_DOMAIN match.
7539 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7540 * cp-support.c: Include language.h.
7541 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7542 VAR_DOMAIN.
7543 * psymtab.c (match_partial_symbol): Compare the requested
7544 domain with the symbol's domain directly.
7545 (lookup_partial_symbol): Likewise.
7546 * symtab.c (lookup_symbol_in_language): Explain when/why
7547 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7548 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7549 appropriate languages.
7550 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7551 and moved to ada-lang.c
7552 (lookup_block_symbol): Explain that this function only returns
7553 symbol matching the requested DOMAIN.
7554 Compare the requested domain with the symbol's domain directly.
7555 (iterate_over_symbols): Compare the requested domain with the
7556 symbol's domain directly.
7557 * symtab.h (symbol_matches_domain): Remove.
7558
7559 2014-06-06 Doug Evans <xdje42@gmail.com>
7560
7561 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7562 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7563 (gdbscm_guile_version_is_at_least): Declare.
7564 (gdbscm_scm_string_to_int): Declare.
7565 * guile/guile.c (gdbscm_guile_major_version): New global.
7566 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7567 (guile_datadir): New static global.
7568 (gdbscm_guile_data_directory): New function.
7569 (initialize_scheme_side): Update.
7570 (misc_guile_functions): Add guile-data-directory.
7571 (initialize_gdb_module): Fetch guile version number.
7572 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7573 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7574 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7575 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7576 comments.
7577 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7578 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7579 * guile/scm-value.c (gdbscm_value_to_string): Only call
7580 scm_port_conversion_strategy if Guile version >= 2.0.6.
7581
7582 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7583
7584 * main.c (print_gdb_help): Add -q and --silent.
7585
7586 2014-06-06 Gary Benson <gbenson@redhat.com>
7587
7588 * common/signals.c: Remove preprocessor conditionals for
7589 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7590 SIGSEGV and SIGTERM.
7591 * proc-events.c: Likewise.
7592
7593 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7594
7595 * symfile.c (symfile_free_objfile): Remove restriction to
7596 OBJF_USERLOADED.
7597 * symfile-mem.c (symbol_file_add_from_memory): Call
7598 add_target_sections_of_objfile.
7599
7600 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7601
7602 * guile/scm-value.c (gdbscm_history_append_x): Use
7603 'vlscm_get_value_smob_arg_unsafe' instead of
7604 'vlscm_scm_to_value'.
7605
7606 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7607
7608 PR mi/15806
7609 * utils.c (printchar): Don't escape at all if quoter is NUL.
7610 Update function documentation to clarify effect of parameter
7611 QUOTER.
7612 * remote.c (escape_buffer): Pass '\\' as the quoter to
7613 fputstrn_unfiltered.
7614 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7615 generate the output.
7616 (mi_solib_unloaded): Same.
7617
7618 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7619
7620 * development.sh: Delete.
7621 * Makefile.in (config.status): Adjust dependency on development.sh.
7622 * configure.ac: Adjust development.sh source call.
7623 * configure: Regenerate.
7624
7625 2014-06-04 Doug Evans <xdje42@gmail.com>
7626
7627 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7628 is_scheme_bkpt, spec.
7629 (bpscm_make_breakpoint_smob): Initialize new members.
7630 (gdbscm_create_breakpoint_x): Split into two ...
7631 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7632 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7633 (scheme_function breakpoint_functions): Update.
7634 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7635 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7636 register-breakpoint!.
7637
7638 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7639
7640 PR server/17023
7641 * mem-break.c (z_type_supported): Return zero if
7642 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7643
7644 2014-06-04 Tom Tromey <tromey@redhat.com>
7645
7646 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7647 value_from_contents_and_address_unresolved.
7648 (ada_template_to_fixed_record_type_1): Likewise.
7649 (ada_which_variant_applies): Likewise.
7650 * value.h (value_from_contents_and_address_unresolved): Declare.
7651 * value.c (value_from_contents_and_address_unresolved): New
7652 function.
7653 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7654 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7655 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7656
7657 2014-06-04 Tom Tromey <tromey@redhat.com>
7658
7659 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7660
7661 2014-06-04 Tom Tromey <tromey@redhat.com>
7662
7663 * procfs.c (procfs_attach): Make "args" const.
7664 * windows-nat.c (windows_attach): Make "args" const.
7665 * nto-procfs.c (procfs_attach): Make "args" const.
7666 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7667 * go32-nat.c (go32_attach): Make "args" const.
7668 * gnu-nat.c (gnu_attach): Make "args" const.
7669 * darwin-nat.c (darwin_attach): Make "args" const.
7670 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7671 * linux-nat.c (linux_nat_attach): Make "args" const.
7672 * remote.c (extended_remote_attach_1, extended_remote_attach):
7673 Make "args" const.
7674 * target.h (struct target_ops) <to_attach>: Make "args" const.
7675 (find_default_attach): Likewise.
7676 * utils.c (parse_pid_to_attach): Make "args" const.
7677 * utils.h (parse_pid_to_attach): Update.
7678
7679 2014-06-04 Tom Tromey <tromey@redhat.com>
7680
7681 * target-delegates.c: Rebuild.
7682 * target.c (default_thread_address_space): New function.
7683 (target_thread_address_space): Simplify.
7684 * target.h (struct target_ops) <to_thread_address_space>: Add
7685 TARGET_DEFAULT_FUNC.
7686
7687 2014-06-04 Doug Evans <xdje42@gmail.com>
7688
7689 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7690
7691 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7692
7693 * record-btrace.c: Include event-loop.h and inf-loop.h.
7694 (record_btrace_resume_exec_dir)
7695 (record_btrace_async_inferior_event_handler)
7696 (record_btrace_handle_async_inferior_event): New.
7697 (record_btrace_open): Create async event handler.
7698 (record_btrace_close): Delete async event handler.
7699 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7700 Mark async event handler.
7701 (record_btrace_execution_direction): New.
7702 (init_record_btrace_ops): Initialize to_execution_direction.
7703
7704 2014-06-03 Doug Evans <xdje42@gmail.com>
7705
7706 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7707 (gdbscm_make_parameter): Ditto.
7708
7709 2014-06-03 Doug Evans <dje@google.com>
7710
7711 * exec.c (exec_close_1): Call clear_section_table instead of
7712 resize_section_table.
7713 (clear_section_table): New function.
7714 (resize_section_table): Make static. Rename arg num_added to
7715 adjustment.
7716 * exec.h (clear_section_table): Declare.
7717 (resize_section_table): Delete.
7718 * progspace.c (release_program_space): Call clear_section_table
7719 instead of resize_section_table.
7720
7721 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7722
7723 * NEWS (Python Scripting): Add entry about the new xmethods
7724 feature.
7725
7726 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7727
7728 * python/py-xmethods.c: New file.
7729 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7730 (objfpy_dealloc): XDECREF on the new xmethods field.
7731 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7732 field.
7733 (objfpy_get_xmethods): New function.
7734 (objfile_getset): New entry 'xmethods'.
7735 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7736 (pspy_dealloc): XDECREF on the new xmethods field.
7737 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7738 field.
7739 (pspy_get_xmethods): New function.
7740 (pspace_getset): New entry 'xmethods'.
7741 * python/python-internal.h: Add declarations for new functions.
7742 * python/python.c (_initialize_python): Invoke
7743 gdbpy_initialize_xmethods.
7744 * python/lib/gdb/__init__.py (xmethods): New
7745 attribute.
7746 * python/lib/gdb/xmethod.py: New file.
7747 * python/lib/gdb/command/xmethods.py: New file.
7748
7749 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7750
7751 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7752 best match method returned by find_overload_match is an xmethod.
7753 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7754 the best matching operator returned by find_overload_match is an
7755 xmethod.
7756 * valops.c: #include "extension.h".
7757 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7758 Return void. The list of matching source methods is returned in
7759 "fn_list" and a vector of matching debug method workers is
7760 returned in "xm_worker_vec". Update all callers.
7761 (value_find_oload_method_list): Likewise.
7762 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7763 non-NULL, then the index of the best matching method in this
7764 vector is returned. Update all callers.
7765 (find_overload_match): Include xmethods while performing overload
7766 resolution.
7767
7768 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7769
7770 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7771 * extension-priv.h (struct extension_language_ops): Add the
7772 xmethod interface.
7773 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7774 get_matching_xmethod_workers, get_xmethod_argtypes,
7775 invoke_xmethod, free_xmethod_worker,
7776 free_xmethod_worker_vec): New functions.
7777 * extension.h: #include "common/vec.h".
7778 New function declarations.
7779 (struct xmethod_worker): New struct.
7780 (VEC (xmethod_worker_ptr)): New vector type.
7781 (xmethod_worker_ptr): New typedef.
7782 (xmethod_worker_vec): Likewise.
7783 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7784 builtin_type.
7785 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7786 (struct builtin_type): New field "xmethod".
7787 * valarith.c (value_ptradd): Assert that the value argument is not
7788 lval_xcallable.
7789 * valops.c (value_must_coerce_to_target): Return 0 for
7790 lval_xcallable values.
7791 * value.c (struct value): New field XM_WORKER in the field
7792 LOCATION.
7793 (value_address, value_raw_address): Return 0 for lval_xcallable
7794 values.
7795 (set_value_address): Assert that the value is not an
7796 lval_xcallable.
7797 (value_free): Free the associated xmethod worker when freeing
7798 lval_xcallable values.
7799 (set_value_component_location): Assert that the WHOLE value is not
7800 lval_xcallable.
7801 (value_of_xmethod, call_xmethod): New functions.
7802 * value.h: Declare "struct xmethod_worker".
7803 Declare new functions value_of_xmethod, call_xmethod.
7804
7805 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7806 Pedro Alves <palves@redhat.com>
7807
7808 PR breakpoints/17000
7809 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7810 New function, extracted from software_breakpoint_inserted_here_p.
7811 (software_breakpoint_inserted_here_p): Replace factored out code
7812 by call to find_non_raw_software_breakpoint_inserted_here.
7813 (bp_target_info_copy_insertion_state): New function.
7814 (bkpt_insert_location): Handle the case of a single-step
7815 breakpoint already inserted at the same address.
7816 (bkpt_remove_location): Handle the case of a single-step
7817 breakpoint still inserted at the same address.
7818 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7819 breakpoint already inserted at the same address.
7820 (deprecated_remove_raw_breakpoint): Handle the case of a
7821 non-raw breakpoint still inserted at the same address.
7822 (find_single_step_breakpoint): New function, extracted from
7823 single_step_breakpoint_inserted_here_p.
7824 (find_single_step_breakpoint): New function,
7825 factored out from single_step_breakpoint_inserted_here_p.
7826 (single_step_breakpoint_inserted_here_p): Reimplement.
7827
7828 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7829
7830 Pushed by Joel Brobecker <brobecker@adacore.com>
7831 * source.c (show_substitute_path_command): Fix display of matching
7832 substitution rules.
7833
7834 2014-06-03 Gary Benson <gbenson@redhat.com>
7835
7836 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7837
7838 2014-06-02 Doug Evans <xdje42@gmail.com>
7839
7840 Add parameter support for Guile.
7841 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7842 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7843 (scm-param.o): New rule.
7844 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7845 (gdbscm_misc_error): Declare.
7846 (gdbscm_canonicalize_command_name): Declare.
7847 (gdbscm_scm_to_host_string): Declare.
7848 (gdbscm_scm_from_host_string): Declare.
7849 (gdbscm_initialize_parameters): Declare.
7850 * guile/guile.c (initialize_gdb_module): Call
7851 gdbscm_initialize_parameters.
7852 * guile/lib/gdb.scm: Export parameter symbols.
7853 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7854 cmdscm_canonicalize_name and made public. All callers updated.
7855 * guile/scm-exception.c (gdbscm_misc_error): New function.
7856 * guile/scm-param.c: New file.
7857 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7858 (gdbscm_scm_to_host_string): New function.
7859 (gdbscm_scm_from_host_string): New function.
7860 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7861
7862 2014-06-02 Doug Evans <xdje42@gmail.com>
7863
7864 Add command support for Guile.
7865 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7866 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7867 (scm-cmd.o): New rule.
7868 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7869 (gdbscm_user_error_p): Declare.
7870 (gdbscm_parse_command_name): Declare.
7871 (gdbscm_valid_command_class_p): Declare.
7872 (gdbscm_initialize_commands): Declare.
7873 * guile/guile.c (initialize_gdb_module): Call
7874 gdbscm_initialize_commands.
7875 * guile/lib/gdb.scm: Export command symbols.
7876 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7877 (throw-user-error): New function.
7878 * guile/scm-cmd.c: New file.
7879 * guile/scm-exception.c (user_error_symbol): New static global.
7880 (gdbscm_user_error_p): New function.
7881 (gdbscm_initialize_exceptions): Set user_error_symbol.
7882 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7883
7884 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7885
7886 * top.c (command_loop): Handle comments here...
7887 (command_line_input): ... not here.
7888
7889 2014-06-02 Doug Evans <xdje42@gmail.com>
7890
7891 Add progspace support for Guile.
7892 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7893 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7894 (scm-progspace.o): New rule.
7895 * guile/guile-internal.h (pspace_smob): New typedef.
7896 (psscm_pspace_smob_pretty_printers): Declare.
7897 (psscm_pspace_smob_from_pspace): Declare.
7898 (psscm_scm_from_pspace): Declare.
7899 * guile/guile.c (initialize_gdb_module): Call
7900 gdbscm_initialize_pspaces.
7901 * guile/lib/gdb.scm: Export progspace symbols.
7902 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7903 support.
7904 (append-pretty-printer!): Ditto.
7905 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7906 Implement.
7907 * guile/scm-progspace.c: New file.
7908
7909 2014-06-03 Alan Modra <amodra@gmail.com>
7910
7911 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7912 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7913
7914 2014-06-02 Doug Evans <dje@google.com>
7915
7916 Add support for skeletonless type units.
7917 * dwarf2read.c (struct dwarf2_per_objfile): New member
7918 n_allocated_type_units.
7919 (struct dwarf2_per_objfile) <tu_stats>: New member
7920 nr_all_type_units_reallocs.
7921 (create_signatured_type_table_from_index): Initialize
7922 n_allocated_type_units
7923 (create_all_type_units): Ditto.
7924 (add_type_unit): Move up in file. New arg slot.
7925 All callers updated. Increase space for all_type_units more
7926 efficiently.
7927 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7928 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7929 (lookup_dwp_signatured_type): Ditto.
7930 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7931 All callers updated.
7932 (build_type_psymtabs_1): Leave type_unit_groups as
7933 NULL if no TUs present.
7934 (print_tu_stats): New function.
7935 (process_skeletonless_type_unit): New function.
7936 (process_dwo_file_for_skeletonless_type_units): New
7937 function.
7938 (process_skeletonless_type_units): New function.
7939 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7940 Call print tu_stats if debugging enabled.
7941
7942 2014-06-02 Pedro Alves <palves@redhat.com>
7943
7944 * breakpoint.c (build_target_command_list): Don't build a command
7945 list if we have any duplicate location that isn't a dprintf.
7946
7947 2014-06-02 Pedro Alves <palves@redhat.com>
7948
7949 * breakpoint.c (dprintf_breakpoint_hit): New function.
7950 (initialize_breakpoint_ops): Install it as dprintf's
7951 breakpoint_hit method.
7952
7953 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7954
7955 * source.c (substitute_path_rule_matches): Simplify using
7956 filename_ncmp instead of FILENAME_CMP.
7957
7958 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7959
7960 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7961
7962 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7963
7964 * configure.ac: When Guile is available, check for the
7965 availability of 'scm_new_smob'.
7966 * configure, config.h.in: Regenerate.
7967 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7968 function.
7969
7970 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7971
7972 * frame.c (struct frame_info): Add stop_string field.
7973 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7974 (get_prev_frame_always): Old content moved into
7975 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7976 TRY_CATCH, handle MEMORY_ERROR exceptions.
7977 (frame_stop_reason_string): New function definition.
7978 * frame.h (unwind_stop_reason_to_string): Extend comment to
7979 mention frame_stop_reason_string.
7980 (frame_stop_reason_string): New function declaration.
7981 * stack.c (frame_info): Switch to frame_stop_reason_string.
7982 (backtrace_command_1): Switch to frame_stop_reason_string.
7983 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7984 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7985 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7986
7987 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7988
7989 * frame.c (frame_stop_reason_string): Rename to ...
7990 (unwind_stop_reason_to_string): this.
7991 * frame.h (frame_stop_reason_string): Rename to ...
7992 (unwind_stop_reason_to_string): this.
7993 * stack.c (frame_info): Update call to frame_stop_reason_string.
7994 (backtrace_command_1): Likewise.
7995 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7996 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7997
7998 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7999
8000 * frame.c (remove_prev_frame): New function.
8001 (get_prev_frame_if_no_cycle): Create / discard cleanup using
8002 remove_prev_frame.
8003
8004 2014-05-29 Pedro Alves <palves@redhat.com>
8005
8006 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
8007 and make it const. When a single-step decays to a continue,
8008 clear 'step', not 'hw_step'. Pass whether the caller wanted
8009 to step to user_visible_resume_ptid, not what we ask the
8010 target to do.
8011
8012 2014-05-29 Pedro Alves <palves@redhat.com>
8013
8014 * infrun.c (process_event_stop_test, handle_step_into_function)
8015 (handle_step_into_function_backward): Adjust.
8016 Don't set the even thread's stop_step and call stop_waiting before
8017 calling end_stepping_range. Instead do that ...
8018 (end_stepping_range): ... here. Take an ecs pointer parameter.
8019
8020 2014-05-29 Pedro Alves <palves@redhat.com>
8021
8022 * infrun.c (stop_stepping): Rename to ...
8023 (stop_waiting): ... this.
8024 (proceed): Update comment.
8025 (process_event_stop_test, handle_inferior_event)
8026 (handle_signal_stop, handle_step_into_function)
8027 (handle_step_into_function_backward): Update.
8028
8029 2014-05-29 Pedro Alves <palves@redhat.com>
8030
8031 * infcall.c (run_inferior_call): Don't check whether the current
8032 thread is running after the proceed call.
8033
8034 2014-05-29 Pedro Alves <palves@redhat.com>
8035 Tom Tromey <tromey@redhat.com>
8036
8037 * NEWS: Mention "maint set target-async", "set mi-async", and that
8038 background execution commands are now always available.
8039 * target.h (target_async_permitted): Update comment.
8040 * target.c (target_async_permitted, target_async_permitted_1):
8041 Default to 1.
8042 (set_target_async_command): Rename to ...
8043 (maint_set_target_async_command): ... this.
8044 (show_target_async_command): Rename to ...
8045 (maint_show_target_async_command): ... this.
8046 (_initialize_target): Adjust.
8047 * infcmd.c (prepare_execution_command): Make extern.
8048 * inferior.h (prepare_execution_command): Declare.
8049 * infrun.c (set_observer_mode): Leave target async alone.
8050 * mi/mi-interp.c (mi_interpreter_init): Install
8051 mi_on_sync_execution_done as sync_execution_done observer.
8052 (mi_on_sync_execution_done): New function.
8053 (mi_execute_command_input_handler): Don't print the prompt if we
8054 just started a synchronous command with an async target.
8055 (mi_on_resume): Check sync_execution before printing prompt.
8056 * mi/mi-main.h (mi_async_p): Declare.
8057 * mi/mi-main.c: Include gdbcmd.h.
8058 (mi_async_p): New function.
8059 (mi_async, mi_async_1): New globals.
8060 (set_mi_async_command, show_mi_async_command, mi_async): New
8061 functions.
8062 (exec_continue): Call prepare_execution_command.
8063 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8064 (mi_execute_async_cli_command): Use mi_async_p.
8065 (_initialize_mi_main): Install "set mi-async". Make
8066 "target-async" a deprecated alias.
8067
8068 2014-05-29 Pedro Alves <palves@redhat.com>
8069
8070 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8071 (_initialize_cli_interp): Adjust.
8072 * event-loop.c: Include "observer.h".
8073 (start_event_loop): Notify 'command_error' observers instead of
8074 calling display_gdb_prompt. Remove FIXME comment.
8075 * event-top.c (display_gdb_prompt): Remove call into the
8076 interpreters.
8077 * inf-loop.c: Include "observer.h".
8078 (inferior_event_handler): Notify 'command_error' observers instead
8079 of calling display_gdb_prompt.
8080 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8081 observers instead of calling display_gdb_prompt.
8082 * interps.c (interp_set): Don't call display_gdb_prompt.
8083 (current_interp_display_prompt_p): Delete.
8084 * interps.h (interp_prompt_p): Delete declaration.
8085 (interp_prompt_p_ftype): Delete.
8086 (struct interp_procs) <prompt_proc_p>: Delete field.
8087 (current_interp_display_prompt_p): Delete declaration.
8088 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8089 (_initialize_mi_interp): Adjust.
8090 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8091 'command_error' observers.
8092 (tui_on_sync_execution_done, tui_on_command_error): New
8093 functions.
8094 (tui_display_prompt_p): Delete.
8095 (_initialize_tui_interp): Adjust.
8096
8097 2014-05-29 Pedro Alves <palves@redhat.com>
8098
8099 PR gdb/13860
8100 * cli/cli-interp.c: Include infrun.h and observer.h.
8101 (cli_uiout, cli_interp): New globals.
8102 (cli_on_signal_received, cli_on_end_stepping_range)
8103 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8104 functions.
8105 (cli_interpreter_init): Install them as 'end_stepping_range',
8106 'signal_received' 'signal_exited', 'exited' and 'no_history'
8107 observers.
8108 (_initialize_cli_interp): Remove cli_interp local.
8109 * infrun.c (handle_inferior_event): Call the several stop reason
8110 observers instead of printing the stop reason directly.
8111 (end_stepping_range): New function.
8112 (print_end_stepping_range_reason, print_signal_exited_reason)
8113 (print_exited_reason, print_signal_received_reason)
8114 (print_no_history_reason): Make static, and add an uiout
8115 parameter. Print to that instead of to CURRENT_UIOUT.
8116 * infrun.h (print_end_stepping_range_reason)
8117 (print_signal_exited_reason, print_exited_reason)
8118 (print_signal_received_reason print_no_history_reason): New
8119 declarations.
8120 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8121 'mi_uiout'.
8122 <cli_uiout>: New field.
8123 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8124 uiout for CLI output. Install 'signal_received',
8125 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8126 observers.
8127 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8128 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8129 (mi_on_no_history): New functions.
8130 (ui_out_free_cleanup): Delete function.
8131 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8132 instead use the one already stored in the MI interpreter data.
8133 (mi_ui_out): Adjust.
8134 * tui/tui-interp.c: Include infrun.h and observer.h.
8135 (tui_interp): New global.
8136 (tui_on_signal_received, tui_on_end_stepping_range)
8137 (tui_on_signal_exited, tui_on_exited)
8138 (tui_on_no_history): New functions.
8139 (tui_init): Install them as 'end_stepping_range',
8140 'signal_received' 'signal_exited', 'exited' and 'no_history'
8141 observers.
8142 (_initialize_tui_interp): Delete tui_interp local.
8143
8144 2014-05-29 Pedro Alves <palves@redhat.com>
8145
8146 PR gdb/15713
8147 * linux-nat.c (linux_nat_resume_callback): Rename the second
8148 parameter to 'except'. Skip LP if it points to EXCEPT.
8149 (linux_nat_resume): Don't mark the event lwp as not stopped
8150 before resuming sibling lwps. Instead ask
8151 linux_nat_resume_callback to skip the event lwp. Mark it as not
8152 stopped after actually resuming it.
8153 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8154 resuming it.
8155 (wait_lwp): Mark the lwp as stopped here.
8156 (stop_wait_callback): Mark the lwp as not stopped right after
8157 resuming it. Don't mark lwps as stopped here.
8158 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8159 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8160
8161 2014-05-29 Pedro Alves <palves@redhat.com>
8162
8163 PR PR15693
8164 * infrun.c (resume): Determine how much to resume depending on
8165 whether the caller wanted a step, not whether we can hardware step
8166 the target. Mark all threads that we intend to run as running,
8167 unless we're calling an inferior function.
8168 (normal_stop): If the thread is running an infcall, don't finish
8169 thread state.
8170 * target.c (target_resume): Don't mark threads as running here.
8171
8172 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8173
8174 * serial.c (_initialize_serial): Remove support for
8175 the "set remotebaud" and "show remotebaud" commands.
8176 * NEWS: Add entry documenting the removal of that command.
8177
8178 2014-05-28 Yao Qi <yao@codesourcery.com>
8179
8180 * charset.c: Fix typo in comments.
8181
8182 2014-05-27 Gary Benson <gbenson@redhat.com>
8183
8184 * utils.c (internal_vproblem): Prompt for a bug report.
8185
8186 2014-05-26 Andy Wingo <wingo@igalia.com>
8187
8188 * guile/scm-arch.c (arscm_mark_arch_smob):
8189 * guile/scm-block.c (bkscm_mark_block_smob)
8190 (bkscm_mark_block_syms_progress_smob):
8191 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8192 * guile/scm-exception.c (exscm_mark_exception_smob):
8193 * guile/scm-frame.c (frscm_mark_frame_smob):
8194 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8195 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8196 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8197 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8198 (ppscm_mark_pretty_printer_worker_smob):
8199 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8200 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8201 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8202 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8203 mark functions.
8204 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8205 function.
8206
8207 2014-05-26 Andy Wingo <wingo@igalia.com>
8208 Doug Evans <xdje42@gmail.com>
8209
8210 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8211 empty_base_class. All uses updated.
8212 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8213 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8214 Adapt all callers.
8215 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8216 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8217 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8218 (gdbscm_gsmob_has_property_p, add_property_name)
8219 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8220 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8221 (gdb-object-has-property?, gdb-object-properties): Remove.
8222 (gdb-object-kind): Renamed from gsmob-kind.
8223
8224 2014-05-26 Andy Wingo <wingo@igalia.com>
8225
8226 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8227 * configure: Regenerate.
8228
8229 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8230
8231 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8232
8233 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8234
8235 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8236 (replay_memory_access_read_only, replay_memory_access_read_write)
8237 (replay_memory_access_types, replay_memory_access)
8238 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8239 (cmd_set_record_btrace, cmd_show_record_btrace)
8240 (cmd_show_replay_memory_access): New.
8241 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8242 (record_btrace_remove_breakpoint): Replace
8243 record_btrace_allow_memory_access with replay_memory_access.
8244 (_initialize_record_btrace): Add commands.
8245 * NEWS: Announce it.
8246
8247 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8248
8249 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8250
8251 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8252
8253 * MAINTAINERS (Write After Approval): Move self back from
8254 paper trail.
8255
8256 2014-05-22 Pedro Alves <palves@redhat.com>
8257
8258 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8259 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8260 (disable_randomization, enum exec_direction_kind)
8261 (execution_direction, stop_registers, start_remote)
8262 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8263 (wait_for_inferior, normal_stop, get_last_target_status)
8264 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8265 (insert_step_resume_breakpoint_at_sal)
8266 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8267 (set_step_info, print_stop_event, signal_stop_state)
8268 (signal_print_state, signal_pass_state, signal_stop_update)
8269 (signal_print_update, signal_pass_update)
8270 (update_signals_program_target, clear_exit_convenience_vars)
8271 (displaced_step_dump_bytes, update_observer_mode)
8272 (signal_catch_update, gdb_signal_from_command): Move
8273 declarations ...
8274 * infrun.h: ... to this new file.
8275 * amd64-tdep.c: Include infrun.h.
8276 * annotate.c: Include infrun.h.
8277 * arch-utils.c: Include infrun.h.
8278 * arm-linux-tdep.c: Include infrun.h.
8279 * arm-tdep.c: Include infrun.h.
8280 * break-catch-sig.c: Include infrun.h.
8281 * breakpoint.c: Include infrun.h.
8282 * common/agent.c: Include infrun.h instead of inferior.h.
8283 * corelow.c: Include infrun.h.
8284 * event-top.c: Include infrun.h.
8285 * go32-nat.c: Include infrun.h.
8286 * i386-tdep.c: Include infrun.h.
8287 * inf-loop.c: Include infrun.h.
8288 * infcall.c: Include infrun.h.
8289 * infcmd.c: Include infrun.h.
8290 * infrun.c: Include infrun.h.
8291 * linux-fork.c: Include infrun.h.
8292 * linux-nat.c: Include infrun.h.
8293 * linux-thread-db.c: Include infrun.h.
8294 * monitor.c: Include infrun.h.
8295 * nto-tdep.c: Include infrun.h.
8296 * procfs.c: Include infrun.h.
8297 * record-btrace.c: Include infrun.h.
8298 * record-full.c: Include infrun.h.
8299 * remote-m32r-sdi.c: Include infrun.h.
8300 * remote-mips.c: Include infrun.h.
8301 * remote-notif.c: Include infrun.h.
8302 * remote-sim.c: Include infrun.h.
8303 * remote.c: Include infrun.h.
8304 * reverse.c: Include infrun.h.
8305 * rs6000-tdep.c: Include infrun.h.
8306 * s390-linux-tdep.c: Include infrun.h.
8307 * solib-irix.c: Include infrun.h.
8308 * solib-osf.c: Include infrun.h.
8309 * solib-svr4.c: Include infrun.h.
8310 * target.c: Include infrun.h.
8311 * top.c: Include infrun.h.
8312 * windows-nat.c: Include infrun.h.
8313 * mi/mi-interp.c: Include infrun.h.
8314 * mi/mi-main.c: Include infrun.h.
8315 * python/py-threadevent.c: Include infrun.h.
8316
8317 2014-05-22 Pedro Alves <palves@redhat.com>
8318
8319 * infrun.c (handle_inferior_event): Store the exit code for
8320 --return-child-result here, instead of ...
8321 (print_exited_reason): ... here.
8322
8323 2014-05-21 Pedro Alves <palves@redhat.com>
8324
8325 PR gdb/13860
8326 * gdbthread.h (struct thread_control_state): New field
8327 `command_interp'.
8328 * infrun.c (follow_fork): Copy the new thread control field to the
8329 child fork thread.
8330 (clear_proceed_status_thread): Clear the new thread control field.
8331 (proceed): Set the new thread control field.
8332 * interps.h (command_interp): Declare.
8333 * interps.c (command_interpreter): New global.
8334 (command_interp): New function.
8335 (interp_exec): Set `command_interpreter' while here.
8336 * cli-out.c (cli_uiout_dtor): New function.
8337 (cli_ui_out_impl): Install it.
8338 * mi/mi-interp.c: Include cli-out.h.
8339 (mi_cmd_interpreter_exec): Add comment.
8340 (restore_current_uiout_cleanup): New function.
8341 (ui_out_free_cleanup): New function.
8342 (mi_on_normal_stop): If finishing an execution command started by
8343 a CLI command, or any kind of breakpoint-like event triggered,
8344 print the stop event to the output (CLI) stream.
8345 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8346
8347 2014-05-21 Pedro Alves <palves@redhat.com>
8348
8349 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8350 current source line having changed.
8351 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8352 * infrun.c (normal_stop): Adjust call to
8353 set_current_sal_from_frame.
8354 * source.c (clear_lines_listed_range): New function.
8355 (set_current_source_symtab_and_line, identify_source_line): Clear
8356 the lines listed range.
8357 (line_info): Handle the first "info line" after the current source
8358 line having changed.
8359 * stack.c (print_stack_frame): Remove center handling.
8360 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8361 center sal.line.
8362
8363 2014-05-21 Pedro Alves <palves@redhat.com>
8364
8365 * inf-child.c (inf_child_mourn_inferior): New function.
8366 * inf-child.h (inf_child_mourn_inferior): New declaration.
8367 * darwin-nat.c (darwin_mourn_inferior): Use
8368 inf_child_mourn_inferior.
8369 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8370 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8371 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8372 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8373 * windows-nat.c (windows_mourn_inferior): Likewise.
8374
8375 2014-05-21 Doug Evans <xdje42@gmail.com>
8376
8377 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8378
8379 2014-05-21 Doug Evans <xdje42@gmail.com>
8380
8381 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8382 (gdbscm_out_of_range_error): Ditto.
8383 (gdbscm_memory_error): Ditto.
8384 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8385 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8386 (gdbscm_out_of_range_error): Update.
8387 (gdbscm_memory_error): Update.
8388 (gdbscm_scm_to_target_string_unsafe): Delete.
8389
8390 2014-05-21 Pedro Alves <palves@redhat.com>
8391
8392 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8393 globals.
8394 (inf_child_open_target): New function.
8395 (inf_child_open): Use inf_child_open_target to push the target
8396 instead of erroring out.
8397 (inf_child_disconnect, inf_child_close)
8398 (inf_child_maybe_unpush_target): New functions.
8399 (inf_child_target): Install inf_child_disconnect and
8400 inf_child_close. Store a pointer to the returned object.
8401 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8402 declarations.
8403 * target.c (auto_connect_native_target): New global.
8404 (show_default_run_target): New function.
8405 (find_default_run_target): Return NULL if automatically connecting
8406 to the native target is disabled.
8407 (_initialize_target): Install set/show auto-connect-native-target.
8408 * NEWS: Mention "set auto-connect-native-target", and "target
8409 native".
8410 * linux-nat.c (super_close): New global.
8411 (linux_nat_close): Call super_close.
8412 (linux_nat_add_target): Store a pointer to the base class's
8413 to_close method.
8414 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8415 inf_child_maybe_unpush.
8416 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8417 already pushed.
8418 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8419 the inferior. Use inf_child_maybe_unpush_target.
8420 (inf_ttrace_attach): Don't push the target if it is already
8421 pushed.
8422 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8423 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8424 after mourning the inferior. Use inf_child_maybe_unpush_target.
8425 (darwin_attach_pid): Don't push the target if it is already
8426 pushed.
8427 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8428 mourning the inferior. Use inf_child_maybe_unpush_target.
8429 (gnu_detach): Use inf_child_maybe_unpush_target.
8430 * go32-nat.c (go32_create_inferior): Don't push the target if it
8431 is already pushed.
8432 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8433 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8434 (procfs_open): Rename to ...
8435 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8436 comments. Can target_preopen before changing node. Call
8437 inf_child_open_target to push the target explicitly.
8438 (procfs_attach): Don't push the target if it is already pushed.
8439 (procfs_detach): Use inf_child_maybe_unpush_target.
8440 (procfs_create_inferior): Don't push the target if it is already
8441 pushed.
8442 (nto_native_ops): New global.
8443 (procfs_open): Reimplement.
8444 (procfs_native_open): New function.
8445 (init_procfs_targets): Install procfs_native_open as to_open of
8446 "target native". Store a pointer to the "native" target in
8447 nto_native_ops.
8448 * procfs.c (procfs_attach): Don't push the target if it is already
8449 pushed.
8450 (procfs_detach): Use inf_child_maybe_unpush_target.
8451 (procfs_mourn_inferior): Only unpush the target after mourning the
8452 inferior. Use inf_child_maybe_unpush_target.
8453 (procfs_init_inferior): Don't push the target if it is already
8454 pushed.
8455 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8456 if it is already pushed.
8457
8458 2014-05-21 Pedro Alves <palves@redhat.com>
8459
8460 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8461 and "procfs" targets are now called "native" instead.
8462
8463 2014-05-21 Pedro Alves <palves@redhat.com>
8464
8465 * go32-nat.c (go32_open): Delete.
8466 (go32_target): Don't override the to_open method.
8467
8468 2014-05-21 Pedro Alves <palves@redhat.com>
8469
8470 * nto-procfs.c (procfs_can_run): New function.
8471 (nto_procfs_ops): New global.
8472 (init_procfs_targets): New, based on procfs_target. Install
8473 "target native" in addition to "target procfs".
8474 (_initialize_procfs): Call init_procfs_targets instead of adding
8475 the target here.
8476
8477 2014-05-21 Pedro Alves <palves@redhat.com>
8478
8479 * windows-nat.c (windows_target): Don't override to_shortname,
8480 to_longname or to_doc.
8481
8482 2014-05-21 Pedro Alves <palves@redhat.com>
8483
8484 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8485 to_doc.
8486
8487 2014-05-21 Pedro Alves <palves@redhat.com>
8488
8489 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8490 to_shortname, to_longname or to_doc.
8491
8492 2014-05-21 Pedro Alves <palves@redhat.com>
8493
8494 * go32-nat.c (go32_target): Don't override to_shortname,
8495 to_longname or to_doc.
8496
8497 2014-05-21 Pedro Alves <palves@redhat.com>
8498
8499 * inf-child.c (inf_child_open): Remove mention of "child".
8500 (inf_child_target): Rename target to "native" instead of "child".
8501
8502 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8503
8504 * Makefile.in (SFILES): Delete "regset.c".
8505 (COMMON_OBS): Delete "regset.o".
8506 * regset.c: Remove.
8507 * regset.h (regset_alloc): Delete prototype.
8508
8509 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8510
8511 * sparc-linux-tdep.c (sparc32_linux_gregset)
8512 (sparc32_linux_fpregset): New static regset structures.
8513 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8514 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8515 'fpregset' fields.
8516 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8517 (sparc64_linux_fpregset): New static regset structures.
8518 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8519 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8520 New static regset structures.
8521 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8522 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8523 New static regset structures.
8524 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8525 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8526 New static regset structures.
8527 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8528 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8529 New static regset structures.
8530 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8531
8532 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8533
8534 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8535 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8536 register maps ("regmaps") from "*regset" to "*regmap". Do this
8537 for all regmap types and variables.
8538 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8539 (sparc32_linux_supply_core_gregset)
8540 (sparc32_linux_collect_core_gregset)
8541 (sparc32_linux_supply_core_fpregset)
8542 (sparc32_linux_collect_core_fpregset): Likewise.
8543 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8544 (sparc_gregmap, sparc_fpregmap): ... these.
8545 (sparc_supply_gregset, sparc_collect_gregset)
8546 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8547 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8548 (_initialize_sparc_nat): Rename regmaps.
8549 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8550 (sparc_gregmap, sparc_fpregmap): ... these.
8551 (sparc_supply_gregset, sparc_collect_gregset)
8552 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8553 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8554 Rename macros to...
8555 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8556 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8557 Likewise.
8558 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8559 Rename to...
8560 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8561 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8562 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8563 regmaps.
8564 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8565 (sparc32_bsd_fpregset): Rename to...
8566 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8567 (sparc32_bsd_fpregmap): ... these.
8568 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8569 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8570 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8571 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8572 (struct sparc_gregmap, struct sparc_fpregmap)
8573 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8574 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8575 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8576 (sparc32_supply_regset, sparc32_collect_gregset)
8577 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8578 prototypes.
8579 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8580 (sparc64_linux_ptrace_gregmap): ... this.
8581 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8582 (_initialize_sparc64_linux_nat): Rename regmaps.
8583 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8584 (sparc64_linux_core_gregmap): ... this.
8585 (sparc64_linux_supply_core_gregset)
8586 (sparc64_linux_collect_core_gregset)
8587 (sparc64_linux_supply_core_fpregset)
8588 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8589 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8590 (sparc64_sol2_fpregset): Rename to...
8591 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8592 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8593 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8594 regmaps.
8595 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8596 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8597 (sparc64_bsd_fpregset): Rename to...
8598 (struct sparc_gregmap, sparc64_sol2_gregmap)
8599 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8600 (sparc64_bsd_fpregmap): ... these.
8601 (sparc64_supply_gregset, sparc64_collect_gregset)
8602 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8603 prototypes.
8604 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8605 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8606 (sparc64fbsd_gregmap): ... this.
8607 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8608 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8609 Rename regmaps.
8610 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8611 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8612 (sparc64nbsd_collect_fpregset): Likewise.
8613 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8614 (sparc64nbsd_gregmap): ... this.
8615 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8616 regmaps.
8617 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8618 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8619 (sparc64obsd_gregmap): ... this.
8620 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8621 regmaps.
8622 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8623 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8624 (sparc32nbsd_gregmap): ... this.
8625 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8626 regmaps.
8627
8628 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8629
8630 * score-tdep.c (score7_linux_gregset): New static regset
8631 structure.
8632 (score7_linux_regset_from_core_section): Remove dynamic regset
8633 allocation.
8634 (score_gdbarch_init): Drop allocation of tdep structure.
8635 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8636
8637 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8638
8639 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8640 regset structures.
8641 (am33_regset_from_core_section): Remove dynamic regset
8642 allocations.
8643
8644 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8645
8646 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8647 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8648 structures.
8649 (mips_linux_regset_from_core_section): Remove dynamic regset
8650 allocations.
8651 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8652 'gregset64', 'fpregset', and 'fpregset64'.
8653 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8654 deleted tdep fields.
8655
8656 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8657
8658 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8659 regset structures.
8660 (amd64_regset_from_core_section): Remove dynamic regset
8661 allocations.
8662 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8663 structure.
8664 (amd64obsd_regset_from_core_section): Remove dynamic regset
8665 allocation.
8666 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8667 Likewise.
8668 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8669 x86-common regset supply function.
8670 * i386-tdep.c (i386_collect_gregset): Make static.
8671 (i386_gregset): New global regset structure.
8672 (i386_fpregset, i386_xstateregset): New static regset structures.
8673 (i386_regset_from_core_section): Remove dynamic regset
8674 allocations.
8675 (i386_gdbarch_init): Remove initialization of tdep fields
8676 'gregset', 'fpregset', and 'xstateregset'.
8677 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8678 'fpregset', and 'xstateregset'.
8679 (i386_collect_gregset): Remove prototype.
8680 (i386_gregset): New declaration.
8681 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8682 structure.
8683 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8684 allocation.
8685
8686 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8687
8688 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8689 (arm_linux_vfpregset): New static regset structures.
8690 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8691 regset structures.
8692 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8693 and 'vfpregset' fields.
8694
8695 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8696
8697 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8698 (aarch64_linux_fpregset): New static regset structures.
8699 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8700 of regset structures.
8701 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8702 'fpregset' fields.
8703
8704 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8705
8706 * regset.h (struct regset): Remove gdbarch field.
8707 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8708 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8709 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8710 Likewise.
8711 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8712 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8713 (ppc32_linux_vsxregset): Likewise.
8714 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8715 via the regcache instead of the regset.
8716 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8717 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8718 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8719 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8720 Likewise.
8721
8722 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8723
8724 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8725 Constify structures.
8726 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8727 (alphanbsd_aout_gregset): Likewise.
8728 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8729 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8730 Likewise.
8731 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8732 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8733 Likewise.
8734 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8735 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8736 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8737 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8738 * m88k-tdep.c (m88k_gregset): Likewise.
8739 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8740 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8741 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8742 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8743 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8744 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8745 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8746 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8747 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8748 Likewise.
8749 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8750 * sh-tdep.h (sh_corefile_gregset): Likewise.
8751 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8752 * vax-tdep.c (vax_gregset): Likewise.
8753
8754 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8755
8756 Fix TLS access for -static -pthread.
8757 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8758 (try_thread_db_load_1): Initialize it.
8759 (thread_db_get_thread_local_address): Call it if LM is zero.
8760 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8761 * target.h (struct target_ops) (to_get_thread_local_address): Add
8762 load_module_addr comment.
8763
8764 2014-05-21 Pedro Alves <palves@redhat.com>
8765
8766 * dcache.c (dcache_read_memory_partial): If reading the cache line
8767 fails, fallback to reading just the memory the caller wanted.
8768
8769 2014-05-20 Doug Evans <dje@google.com>
8770
8771 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8772 instead of get_current_arch.
8773
8774 2014-05-20 Pedro Alves <palves@redhat.com>
8775
8776 * NEWS: Mention that compare-sections now works with all targets.
8777
8778 * remote.c (PACKET_qCRC): New enum value.
8779 (remote_verify_memory): Don't send qCRC if the target has no
8780 execution. Use packet_support/packet_ok. If the target doesn't
8781 support the qCRC packet, fallback to a deep memory copy.
8782 (compare_sections_command): Say "target image" instead of "remote
8783 executable".
8784 (_initialize_remote): Add PACKET_qCRC to the list of config
8785 packets that have no associated command. Extend comment.
8786 * target.c (simple_verify_memory, default_verify_memory): New
8787 function.
8788 * target.h (struct target_ops) <to_verify_memory>: Default to
8789 default_verify_memory.
8790 (simple_verify_memory): New declaration.
8791 * target-delegates.c: Regenerate.
8792
8793 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8794
8795 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8796
8797 2014-05-20 Hui Zhu <hui@codesourcery.com>
8798 Yao Qi <yao@codesourcery.com>
8799
8800 PR backtrace/16558
8801 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8802 and change address of sp and pc.
8803
8804 2014-05-19 Tom Tromey <tromey@redhat.com>
8805
8806 * gdbtypes.c (rank_function): Use XNEWVEC.
8807 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8808
8809 2014-05-19 Doug Evans <dje@google.com>
8810
8811 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8812 build_type_unit_groups and moved closer to only caller. Remove
8813 arguments. All references updated. Remove outdated .gdb_index
8814 comment.
8815 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8816 build_type_psymtabs_1.
8817
8818 2014-05-19 Doug Evans <dje@google.com>
8819
8820 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8821 n_type_unit_groups, all_type_unit_groups. All uses removed.
8822 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8823 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8824 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8825 (add_type_unit_group_to_table): Delete.
8826
8827 2014-05-19 Doug Evans <dje@google.com>
8828
8829 * eval.c (evaluate_subexp_standard): Add some comments.
8830
8831 2014-05-17 Doug Evans <xdje42@gmail.com>
8832
8833 * progspace.c (remove_program_space): Delete, unused.
8834 * progspace.h (remove_program_space): Ditto.
8835
8836 2014-05-17 Doug Evans <xdje42@gmail.com>
8837
8838 * inferior.c (prune_inferiors): Fix comment.
8839 (remove_inferior_command): Call prune_program_spaces.
8840
8841 2014-05-16 Doug Evans <dje@google.com>
8842
8843 New command line option -D.
8844 * NEWS: Mention it.
8845 * main.c (set_gdb_data_directory): New function.
8846 (captured_main): Recognize -D. Flag error for --data-directory "".
8847 Call set_gdb_data_directory.
8848 (print_gdb_help): Print --data-directory, -D.
8849 * main.h (set_gdb_data_directory): Declare.
8850 * top.c (staged_gdb_datadir): New static global.
8851 (set_gdb_datadir): Call set_gdb_data_directory
8852 (show_gdb_datadir): New function.
8853 (init_main): Update init of data-directory parameter.
8854
8855 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8856
8857 Import the "dirfd" gnulib module.
8858 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8859 * gnulib/aclocal.m4: Update.
8860 * gnulib/config.in: Update.
8861 * gnulib/configure: Update.
8862 * gnulib/import/Makefile.am: Update.
8863 * gnulib/import/Makefile.in: Update.
8864 * gnulib/import/dirfd.c: New.
8865 * gnulib/import/m4/dirfd.m4: New.
8866 * gnulib/import/m4/gnulib-cache.m4: Update.
8867 * gnulib/import/m4/gnulib-comp.m4: Update.
8868
8869 2014-05-16 Pierre Muller <muller@sourceware.org>
8870 Yao Qi <yao@codesourcery.com>
8871
8872 * valprint.c (print_wchar): Move the code on checking whether
8873 W is a printable wide char to the default branch of switch
8874 statement below. Call wchar_printable instead of gdb_iswprint.
8875
8876 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8877
8878 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8879 ldr.w and ldrd instructions.
8880
8881 2014-05-15 Doug Evans <dje@google.com>
8882
8883 * dwarf2read.c (read_structure_type): Delete outdated comments.
8884
8885 2014-05-14 Tom Tromey <tromey@redhat.com>
8886
8887 * macrocmd.c (print_macro_definition): Reindent.
8888
8889 2014-05-13 Doug Evans <xdje42@gmail.com>
8890
8891 * python/py-cmd.c (cmdpy_completer): Add comment.
8892 (completers): Make const.
8893
8894 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8895
8896 * infrun.c (resume): Remove should_resume (unused). Move up
8897 declaration of resume_ptid.
8898
8899 2014-05-13 Tom Tromey <tromey@redhat.com>
8900
8901 * language.h (unop_type_check): Remove.
8902 (binop_type_check): Don't declare.
8903
8904 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8905
8906 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8907 call to regcache_raw_collect.
8908
8909 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8910
8911 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8912 mi_console->quote as the quoting character.
8913
8914 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8915
8916 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8917
8918 2014-04-29 Tom Tromey <tromey@redhat.com>
8919
8920 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8921 "show debug varobj".
8922
8923 2014-05-07 Kyle McMartin <kyle@redhat.com>
8924
8925 Pushed by Joel Brobecker <brobecker@adacore.com>.
8926 * aarch64-tdep.c (aarch64_software_single_step): New function.
8927 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8928 with aarch64_software_single_step.
8929
8930 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8931
8932 GDB 7.7.1 released.
8933
8934 2014-05-05 Keith Seitz <keiths@redhat.com>
8935
8936 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8937 variable or history value is successfully parsed.
8938
8939 2014-05-05 Yao Qi <yao@codesourcery.com>
8940 Pedro Alves <palves@redhat.com>
8941
8942 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8943 address of blocks that intersects the requested range. Trim
8944 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8945 sections.
8946 * ctf.c (ctf_xfer_partial): Likewise.
8947
8948 2014-05-05 Yao Qi <yao@codesourcery.com>
8949
8950 * printcmd.c (display_command): Remove the check to
8951 target_has_execution.
8952
8953 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8954
8955 * ppcobsd-nat.c: Include "obsd-nat.h".
8956 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8957 add_target.
8958 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8959
8960 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8961
8962 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8963 and 16-bit signed and unsigned arguments. Update comment.
8964 (stap_parse_probe_arguments): Extend code to handle such
8965 arguments. Use warning instead of complaint to notify about
8966 unrecognized bitness.
8967
8968 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8969
8970 PR breakpoints/16889
8971 * stap-probe.c (stap_parse_probe_arguments): Simplify
8972 check for non-prefixed probes (i.e., probes whose
8973 arguments do not start with "N@"). Always set the
8974 argument type to a sane value.
8975
8976 2014-05-01 David Taylor <dtaylor@emc.com>
8977
8978 * remote.c (compare_sections_command): Add -r option to compare
8979 all loadable read-only sections.
8980
8981 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8982
8983 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8984 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8985 Update all callers.
8986 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8987 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8988 Remove unused CORE_ADDR argument. Update all callers.
8989
8990 2014-04-29 Pedro Alves <palves@redhat.com>
8991
8992 * remote.c (struct packet_config) <detect>: Extend comment.
8993 (add_packet_config_cmd): Don't set the config's detect or support
8994 fields here.
8995 (init_all_packet_configs): Also initialize the config's 'detect'
8996 field.
8997 (reset_all_packet_configs_support): New function.
8998 (remote_open_1): Call reset_all_packet_configs_support instead of
8999 init_all_packet_configs.
9000 (_initialize_remote): Initialize all packet configs. Assert that
9001 all packets have an associated command, except a few known
9002 outliers.
9003
9004 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9005
9006 * dwarf2read.c (read_subrange_type): Handle dynamic
9007 DW_AT_lower_bound attributes.
9008
9009 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9010
9011 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
9012 dynamic bounds before computing its upper bound.
9013 (ada_discrete_type_low_bound): Same as above with the lower bound.
9014
9015 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9016
9017 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9018 range types. Adjust the array handling implementation to
9019 take advantage of this change.
9020 (resolve_dynamic_range): New function, mostly extracted from
9021 resolve_dynamic_bounds.
9022 (resolve_dynamic_array): New function, mostly extracted from
9023 resolve_dynamic_bounds.
9024 (resolve_dynamic_bounds): Delete.
9025 (resolve_dynamic_type): Reimplement. Add handling of
9026 TYPE_CODE_RANGE types.
9027
9028 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9029
9030 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9031 handling of parallel ___XA types.
9032
9033 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9034
9035 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9036 unnecessary second call to static_unwrap_type.
9037
9038 2014-04-27 Hui Zhu <hui@codesourcery.com>
9039
9040 * stack.c (print_frame_info): Call do_gdb_disassembly with
9041 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9042
9043 2014-04-26 Doug Evans <xdje42@gmail.com>
9044
9045 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9046
9047 2014-04-25 Pedro Alves <palves@redhat.com>
9048
9049 PR server/16255
9050 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9051 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9052 and newline from built string.
9053 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9054 (linux_ptrace_attach_fail_reason): ... this.
9055 * linux-nat.c (linux_nat_attach): Adjust to use
9056 linux_ptrace_attach_fail_reason.
9057
9058 2014-04-25 Pedro Alves <palves@redhat.com>
9059
9060 * remote.c (struct remote_state): Remove multi_process_aware,
9061 non_stop_aware, cond_tracepoints, cond_breakpoints,
9062 breakpoint_commands, fast_tracepoints, static_tracepoints,
9063 install_in_trace, disconnected_tracing,
9064 enable_disable_tracepoints, string_tracing, and
9065 augmented_libraries_svr4_read fields.
9066 (remote_multi_process_p): Move further below in the file.
9067 (struct packet_config): Add comments.
9068 (update_packet_config): Delete function.
9069 (show_packet_config_cmd): Use packet_config_support.
9070 (add_packet_config_cmd): Use NULL as set callback.
9071 (packet_ok): "set remote foo-packet"-style commands no longer
9072 change config->supported -- adjust.
9073 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9074 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9075 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9076 (PACKET_QNonStop, PACKET_multiprocess_feature)
9077 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9078 (PACKET_DisconnectedTracing_feature)
9079 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9080 (set_remote_protocol_packet_cmd): Delete function.
9081 (packet_config_support, packet_support): New functions.
9082 (set_remote_protocol_Z_packet_cmd): Don't call
9083 update_packet_config.
9084 (remote_query_attached, remote_pass_signals)
9085 (remote_program_signals, remote_threads_info)
9086 (remote_threads_extra_info, remote_start_remote): Use
9087 packet_support.
9088 (remote_start_remote): Use packet_config_support and
9089 packet_support.
9090 (init_all_packet_configs): Set all packets to unknown support,
9091 instead of calling update_packet_config.
9092 (remote_check_symbols): Use packet_support.
9093 (remote_supported_packet): Unconditionally set the packet config's
9094 support status.
9095 (remote_multi_process_feature, remote_non_stop_feature)
9096 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9097 (remote_breakpoint_commands_feature)
9098 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9099 (remote_install_in_trace_feature)
9100 (remote_disconnected_tracing_feature)
9101 (remote_enable_disable_tracepoint_feature)
9102 (remote_string_tracing_feature)
9103 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9104 (remote_protocol_features): Adjust to use remote_supported_packet
9105 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9106 "ConditionalTracepoints", "ConditionalBreakpoints",
9107 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9108 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9109 "EnableDisableTracepoints", and "tracenz".
9110 (remote_query_supported): Use packet_support.
9111 (remote_open_1): Adjust.
9112 (extended_remote_attach_1): Use packet_support. Switch on the
9113 result of packet_ok instead of checking whether the packet ended
9114 up disabled.
9115 (remote_vcont_resume): Use packet_support.
9116 (remote_resume, remote_stop_ns, fetch_register_using_p)
9117 (remote_prepare_to_store, store_register_using_P)
9118 (check_binary_download, remote_write_bytes): Use packet_support.
9119 (remote_vkill): Use packet_support. Switch on the result of
9120 packet_ok instead of checking whether the packet ended up
9121 disabled.
9122 (extended_remote_supports_disable_randomization): Use
9123 packet_support.
9124 (extended_remote_run): Switch on the result of packet_ok instead
9125 of checking whether the packet ended up disabled.
9126 (remote_insert_breakpoint, remote_remove_breakpoint)
9127 (remote_insert_watchpoint, remote_remove_watchpoint)
9128 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9129 packet_support.
9130 (remote_search_memory): Use packet_config_support.
9131 (remote_get_thread_local_address, remote_get_tib_address)
9132 (remote_hostio_send_command, remote_can_execute_reverse): Use
9133 packet_support.
9134 (remote_supports_cond_tracepoints)
9135 (remote_supports_cond_breakpoints)
9136 (remote_supports_fast_tracepoints)
9137 (remote_supports_static_tracepoints)
9138 (remote_supports_install_in_trace)
9139 (remote_supports_enable_disable_tracepoint)
9140 (remote_supports_string_tracing)
9141 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9142 the packet config says the feature is enabled or disabled.
9143 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9144 (remote_get_trace_status): Use packet_support.
9145 (remote_set_disconnected_tracing): Adjust to check whether the
9146 feature is enabled with packet_support.
9147 (remote_set_trace_buffer_size, remote_use_agent)
9148 (remote_can_use_agent, remote_supports_btrace): Use
9149 packet_support.
9150 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9151 Use packet_config_support.
9152 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9153 the packet config says the feature is enabled or disabled.
9154 (set_range_stepping): Use packet_support.
9155
9156 2014-04-25 Tom Tromey <tromey@redhat.com>
9157
9158 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9159 argument.
9160
9161 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9162
9163 * NEWS: Mention support for C99 variable length arrays.
9164
9165 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9166
9167 * ada-lang.c (standard_exc): Expand introductory comment.
9168
9169 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9170 Walfred Tedeschi <walfred.tedeschi@intel.com>
9171
9172 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9173 AVX512 registers.
9174 (amd64_linux_read_description): Add code to handle AVX512 xstate
9175 mask and return respective tdesc.
9176 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9177 and features/i386/x32-avx512-linux.c.
9178 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9179 (amd64_linux_core_read_description): Add code to handle AVX512
9180 xstate mask and return respective tdesc.
9181 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9182 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9183 calculation.
9184 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9185 (tdesc_amd64_avx512_linux): New prototype.
9186 (tdesc_x32_avx512_linux): Likewise.
9187 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9188 features/i386/x32-avx512.c.
9189 (amd64_ymm_avx512_names): New register names for pseudo
9190 registers YMM16-31.
9191 (amd64_ymmh_avx512_names): New register names for raw registers
9192 YMMH16-31.
9193 (amd64_k_names): New register names for K registers.
9194 (amd64_zmmh_names): New register names for ZMM raw registers.
9195 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9196 (amd64_xmm_avx512_names): New register names for XMM16-31
9197 registers.
9198 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9199 registers.
9200 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9201 if feature is present.
9202 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9203 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9204 (AMD64_NUM_REGS): Adjust to new number of registers.
9205 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9206 registers supplied via XSTATE by AVX512 registers.
9207 (i386_linux_read_description): Add case for AVX512.
9208 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9209 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9210 (i386_linux_core_read_description): Add case for AVX512.
9211 (i386_linux_init_abi): Install supported register note section
9212 for AVX512.
9213 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9214 AVX512.
9215 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9216 registers to be number of zmm7h + 1.
9217 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9218 * i386-tdep.c: Include features/i386/i386-avx512.c.
9219 (i386_zmm_names): Add ZMM pseudo register names array.
9220 (i386_zmmh_names): Add ZMM raw register names array.
9221 (i386_k_names): Add K raw register names array.
9222 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9223 registers. AVX512 has 16 more ZMM registers than there are YMM
9224 registers.
9225 (i386_zmmh_regnum_p): Add function to look up register number of
9226 ZMM raw registers.
9227 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9228 (i386_k_regnum_p): Likewise for K raw registers.
9229 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9230 registers added by AVX512.
9231 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9232 registers added by AVX512.
9233 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9234 added by AVX512.
9235 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9236 (i386_pseudo_register_name): Add ZMM pseudo registers.
9237 (i386_zmm_type): Construct and return vector registers type for ZMM
9238 registers.
9239 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9240 ZMM0-31 pseudo registers and K registers.
9241 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9242 and YMM16-31 registers from register cache.
9243 (i386_pseudo_register_write): Add code to write K, ZMM and
9244 YMM16-31 registers.
9245 (i386_register_reggroup_p): Add code to include/exclude AVX512
9246 registers in/from respective register groups.
9247 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9248 registers if feature is present in xcr0.
9249 (i386_gdbarch_init): Add code to initialize AVX512 feature
9250 variables in tdep structure, wire in pseudo registers and call
9251 initialize_tdesc_i386_avx512.
9252 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9253 variables.
9254 (i386_regnum): Add AVX512 registers.
9255 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9256 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9257 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9258 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9259 512 bits wide.
9260 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9261 (i386_ymm_avx512_regnum_p): Likewise.
9262 (i386_k_regnum_p): Likewise.
9263 (i386_zmm_regnum_p): Likewise.
9264 (i386_zmmh_regnum_p): Likewise.
9265 * i387-tdep.c : Update year in copyright notice.
9266 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9267 XSAVE buffer.
9268 (XSAVE_YMM_AVX512_ADDR): New macro.
9269 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9270 XSAVE buffer.
9271 (XSAVE_XMM_AVX512_ADDR): New macro.
9272 (xsave_avx512_k_offset): New table for K register offsets in
9273 XSAVE buffer.
9274 (XSAVE_AVX512_K_ADDR): New macro.
9275 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9276 in XSAVE buffer.
9277 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9278 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9279 buffer.
9280 (i387_collect_xsave): Add code to collect AVX512 registers from
9281 XSAVE buffer.
9282 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9283 of XMM16-31 registers.
9284 (I387_NUM_K_REGS): New define for number of K registers.
9285 (I387_K0_REGNUM): New define for K0 register number.
9286 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9287 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9288 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9289 registers.
9290 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9291 (I387_XMM16_REGNUM): New define for XMM16 register number.
9292 (I387_YMM0_REGNUM): New define for YMM0 register number.
9293 (I387_KEND_REGNUM): New define for last K register number.
9294 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9295 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9296 number.
9297 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9298 number.
9299 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9300 size.
9301 * features/Makefile: Add AVX512 related files.
9302 * features/i386/32bit-avx512.xml: New file.
9303 * features/i386/64bit-avx512.xml: Likewise.
9304 * features/i386/amd64-avx512-linux.c: Likewise.
9305 * features/i386/amd64-avx512-linux.xml: Likewise.
9306 * features/i386/amd64-avx512.c: Likewise.
9307 * features/i386/amd64-avx512.xml: Likewise.
9308 * features/i386/i386-avx512-linux.c: Likewise.
9309 * features/i386/i386-avx512-linux.xml: Likewise.
9310 * features/i386/i386-avx512.c: Likewise.
9311 * features/i386/i386-avx512.xml: Likewise.
9312 * features/i386/x32-avx512-linux.c: Likewise.
9313 * features/i386/x32-avx512-linux.xml: Likewise.
9314 * features/i386/x32-avx512.c: Likewise.
9315 * features/i386/x32-avx512.xml: Likewise.
9316 * regformats/i386/amd64-avx512-linux.dat: New file.
9317 * regformats/i386/amd64-avx512.dat: Likewise.
9318 * regformats/i386/i386-avx512-linux.dat: Likewise.
9319 * regformats/i386/i386-avx512.dat: Likewise.
9320 * regformats/i386/x32-avx512-linux.dat: Likewise.
9321 * regformats/i386/x32-avx512.dat: Likewise.
9322 * NEWS: Add note about new support for AVX512.
9323
9324
9325 2014-04-23 Pedro Alves <palves@redhat.com>
9326
9327 * breakpoint.c (insert_bp_location): Tolerate errors if the
9328 breakpoint is set in a user-loaded objfile.
9329 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9330 location is marked shlib_disabled. If the breakpoint is set in a
9331 user-loaded objfile is a GDB-side memory breakpoint, validate it
9332 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9333 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9334 flag.
9335 * mem-break.c (memory_validate_breakpoint): New function.
9336 * objfiles.c (userloaded_objfile_contains_address_p): New
9337 function.
9338 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9339 * target.h (memory_validate_breakpoint): New declaration.
9340
9341 2014-04-23 Pedro Alves <palves@redhat.com>
9342
9343 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9344 the breakpoint is set in a shared library, only suppress
9345 errors for software breakpoints, not hardware breakpoints.
9346
9347 2014-04-22 Pedro Alves <palves@redhat.com>
9348
9349 * infrun.c (schedlock_applies): New function, factored out from
9350 find_thread_needs_step_over.
9351 (find_thread_needs_step_over): Use it.
9352 (switch_back_to_stepped_thread): Always clear trap_expected if the
9353 step over is finished. Return early if scheduler locking applies.
9354 Look for the stepping thread and a potential step-over thread with
9355 a single loop.
9356 (currently_stepping_or_nexting_callback): Delete.
9357
9358 2014-04-22 Nick Clifton <nickc@redhat.com>
9359
9360 * NEWS: Mention that ARM sim now supports tracing.
9361
9362 2014-04-22 Yao Qi <yao@codesourcery.com>
9363
9364 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9365 to ...
9366 * tracefile.c (tracefile_fetch_registers): ... it. New
9367 function.
9368 * tracefile.h (tracefile_fetch_registers): Declare.
9369 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9370 tracefile_fetch_registers.
9371
9372 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9373
9374 PR gdb/14018
9375 * windows-nat.c (thread_rec): Don't display a warning when
9376 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9377 fails for any reason, set th->suspended to -1, so that we don't
9378 try to resume such a thread. Also, don't return NULL in these
9379 cases, to avoid completely ruin the session due to "PC register is
9380 not available" error.
9381 (do_windows_fetch_inferior_registers): Check errors in
9382 GetThreadContext call.
9383 (windows_continue): Accept an additional argument KILLED; if not
9384 zero, ignore errors in the SetThreadContext call, since the
9385 inferior was killed and is shutting down.
9386 (windows_resume, get_windows_debug_event)
9387 (windows_create_inferior, windows_mourn_inferior)
9388 (windows_kill_inferior): All callers of windows_continue changed
9389 to adjust to its new calling sequence.
9390
9391 2014-04-19 Yao Qi <yao@codesourcery.com>
9392
9393 * ctf.c (ctf_open): Call post_create_inferior.
9394
9395 2014-04-19 Yao Qi <yao@codesourcery.com>
9396
9397 * ctf.c (handle_id): New static variable.
9398 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9399 value. Get the declaration of event "register" and get length
9400 of field "contents".
9401
9402 2014-04-19 Yao Qi <yao@codesourcery.com>
9403
9404 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9405
9406 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9407
9408 * valops.c (oload_method_static): Remove unnecessary argument
9409 METHOD. Update all callers.
9410
9411 2014-04-18 Pedro alves <palves@redhat.com>
9412 Tom Tromey <tromey@redhat.com>
9413
9414 PR backtrace/15558
9415 * frame.c (get_prev_frame_1): Rename to ...
9416 (get_prev_frame_always): ... this, and make extern. Adjust.
9417 (skip_artificial_frames): Use get_prev_frame_always.
9418 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9419 (get_frame_unwind_stop_reason): Adjust to rename.
9420 * frame.h (get_prev_frame_always): Declare.
9421 * inline-frame.c: Include frame.h.
9422 (inline_frame_this_id): Use get_prev_frame_always.
9423
9424 2014-04-18 Tristan Gingold <gingold@adacore.com>
9425
9426 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9427 code by using bfd_mach_o_get_base_address.
9428
9429 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9430
9431 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9432 (spu_ax_pseudo_register_collect): New function.
9433 (spu_ax_pseudo_register_push_stack): Likewise.
9434 (spu_dwarf_reg_to_regnum): Likewise.
9435 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9436
9437 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9438
9439 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9440 Replace FRAME argument with FRAME_ID.
9441 * gdbarch.c, gdbarch.h: Regenerate.
9442 * findvar.c (default_value_from_register): Add GDBARCH argument;
9443 replace FRAME by FRAME_ID. No longer call get_frame_id.
9444 (value_from_register): Update call to gdbarch_value_from_register.
9445 * value.h (default_value_from_register): Update prototype.
9446 * s390-linux-tdep.c (s390_value_from_register): Update interface
9447 and call to default_value_from_register.
9448 * spu-tdep.c (spu_value_from_register): Likewise.
9449
9450 * findvar.c (address_from_register): Remove TYPE argument.
9451 Do not call value_from_register; use gdbarch_value_from_register
9452 with null_frame_id instead.
9453 * value.h (address_from_register): Update prototype.
9454 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9455 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9456 address_from_register interface change.
9457
9458 2014-04-17 Yao Qi <yao@codesourcery.com>
9459
9460 * gdbtypes.h: Update comments to link to types and macros'
9461 definitions.
9462
9463 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9464
9465 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9466
9467 2014-04-16 Keith Seitz <keiths@redhat.com>
9468
9469 PR gdb/15827
9470 * dwarf2read.c (skip_one_die): Check that all relative-offset
9471 sibling DIEs fall within range of the current reader's buffer.
9472 (read_partial_die): Likewise.
9473
9474 2014-04-16 Keith Seitz <keiths@redhat.com>
9475
9476 PR c++/16597
9477 * cp-namespace.c (lookup_symbol_file): If the type name of
9478 `this' is NULL, return immediately.
9479
9480 2014-04-14 Keith Seitz <keiths@redhat.com>
9481
9482 PR c++/16253
9483 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9484 from symbol_matches_domain in symtab.c. All local callers
9485 of symbol_matches_domain updated.
9486 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9487 search STRUCT_DOMAIN.
9488 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9489 independently. standard_lookup will do that automatically.
9490 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9491 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9492 (cp_lookup_symbol_in_namespace): Likewise.
9493 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9494 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9495 may return a STRUCT_DOMAIN match.
9496 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9497 * cp-support.c: Include language.h.
9498 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9499 VAR_DOMAIN.
9500 * psymtab.c (match_partial_symbol): Compare the requested
9501 domain with the symbol's domain directly.
9502 (lookup_partial_symbol): Likewise.
9503 * symtab.c (lookup_symbol_in_language): Explain when/why
9504 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9505 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9506 appropriate languages.
9507 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9508 and moved to ada-lang.c
9509 (lookup_block_symbol): Explain that this function only returns
9510 symbol matching the requested DOMAIN.
9511 Compare the requested domain with the symbol's domain directly.
9512 (iterate_over_symbols): Compare the requested domain with the
9513 symbol's domain directly.
9514 * symtab.h (symbol_matches_domain): Remove.
9515
9516 2014-04-14 Tom Tromey <tromey@redhat.com>
9517
9518 PR c++/15246:
9519 * c-exp.y (type_aggregate_p): New function.
9520 (qualified_name, classify_inner_name): Use it.
9521 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9522 and TYPE_TARGET_TYPE of an enum type.
9523 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9524 an enum type.
9525 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9526 handle TYPE_DECLARED_CLASS.
9527 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9528 types.
9529 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9530 * valops.c (enum_constant_from_type): New function.
9531 (value_aggregate_elt): Use it.
9532 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9533 TYPE_CODE_ENUM.
9534
9535 2014-04-14 Tom Tromey <tromey@redhat.com>
9536
9537 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9538 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9539 const.
9540 * value.h (value_aggregate_elt): Update.
9541
9542 2014-04-14 Tom Tromey <tromey@redhat.com>
9543
9544 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9545
9546 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9547
9548 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9549 (evaluate_subexp_standard): Pass noside argument.
9550 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9551 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9552 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9553 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9554 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9555
9556 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9557
9558 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9559 points to a constant blob.
9560
9561 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9562
9563 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9564 property and store it as the high bound and flag the range accordingly.
9565 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9566 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9567 * gdbtypes.h (enum range_flags): New enum.
9568 (struct range_bounds): Add flags member.
9569
9570 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9571
9572 * c-typeprint.c (c_type_print_varspec_suffix): Added
9573 check for not yet resolved high bound. If unresolved, print
9574 "variable length" string to the console instead of random
9575 length.
9576
9577 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9578
9579 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9580 value.
9581 (ada_template_to_fixed_record_type_1): Likewise.
9582 (ada_to_fixed_type_1): Likewise.
9583 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9584 (cp_print_value): Likewise.
9585 * d-valprint.c (dynamic_array_type): Likewise.
9586 * findvar.c (address_of_variable): Likewise.
9587 * jv-valprint.c (java_value_print): Likewise.
9588 * valops.c (value_ind): Likewise.
9589 * value.c (coerce_ref): Likewise.
9590
9591 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9592
9593 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9594 value and retrieve the dynamic type size.
9595
9596 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9597
9598 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9599 passed to sizeof is dynamic evaluate the argument to compute the length.
9600
9601 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9602 Joel Brobecker <brobecker@adacore.com>
9603
9604 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9605 (dwarf2_evaluate_property): New function.
9606 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9607 * dwarf2read.c (attr_to_dynamic_prop): New function.
9608 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9609 attribute.
9610 * gdbtypes.c: Include dwarf2loc.h.
9611 (is_dynamic_type): New function.
9612 (resolve_dynamic_type): New function.
9613 (resolve_dynamic_bounds): New function.
9614 (get_type_length): New function.
9615 (check_typedef): Use get_type_length to compute type length.
9616 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9617 (TYPE_LOW_BOUND_KIND): New macro.
9618 (is_dynamic_type): New function prototype.
9619 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9620 to resolve dynamic properties of the type. Update comment.
9621 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9622
9623 2014-04-14 Richard Henderson <rth@redhat.com>
9624
9625 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9626
9627 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9628 Doug Evans <xdje42@gmail.com>
9629
9630 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9631 dereference TYPE_CODE_REF values.
9632
9633 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9634
9635 Revert the following changes due to regressions:
9636
9637 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9638 (dwarf2_evaluate_property): New function.
9639 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9640 * dwarf2read.c (attr_to_dynamic_prop): New function.
9641 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9642 attribute.
9643 * gdbtypes.c: Include dwarf2loc.h.
9644 (is_dynamic_type): New function.
9645 (resolve_dynamic_type): New function.
9646 (resolve_dynamic_bounds): New function.
9647 (get_type_length): New function.
9648 (check_typedef): Use get_type_length to compute type length.
9649 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9650 (TYPE_LOW_BOUND_KIND): New macro.
9651 (is_dynamic_type): New function prototype.
9652 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9653 to resolve dynamic properties of the type. Update comment.
9654 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9655
9656 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9657 passed to sizeof is dynamic evaluate the argument to compute the length.
9658
9659 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9660 value and retrieve the dynamic type size.
9661
9662 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9663 (ada_template_to_fixed_record_type_1): Likewise.
9664 (ada_to_fixed_type_1): Likewise.
9665 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9666 (cp_print_value): Likewise.
9667 * d-valprint.c (dynamic_array_type): Likewise.
9668 * eval.c (evaluate_subexp_with_coercion): Likewise.
9669 * findvar.c (address_of_variable): Likewise.
9670 * jv-valprint.c (java_value_print): Likewise.
9671 * valops.c (value_ind): Likewise.
9672 * value.c (coerce_ref): Likewise.
9673
9674 * c-typeprint.c (c_type_print_varspec_suffix): Added
9675 check for not yet resolved high bound. If unresolved, print
9676 "variable length" string to the console instead of random
9677 length.
9678
9679 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9680 property and store it as the high bound and flag the range accordingly.
9681 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9682 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9683 * gdbtypes.h (enum range_flags): New enum.
9684 (struct range_bounds): Add flags member.
9685
9686 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9687 points to a constant blob.
9688
9689 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9690 (evaluate_subexp_standard): Pass noside argument.
9691 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9692 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9693 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9694 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9695 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9696
9697 2014-04-11 Keith Seitz <keiths@redhat.com>
9698
9699 PR c++/16675
9700 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9701 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9702 reference types.
9703
9704 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9705
9706 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9707 (evaluate_subexp_standard): Pass noside argument.
9708 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9709 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9710 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9711 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9712 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9713
9714 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9715
9716 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9717 points to a constant blob.
9718
9719 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9720
9721 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9722 property and store it as the high bound and flag the range accordingly.
9723 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9724 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9725 * gdbtypes.h (enum range_flags): New enum.
9726 (struct range_bounds): Add flags member.
9727
9728 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9729
9730 * c-typeprint.c (c_type_print_varspec_suffix): Added
9731 check for not yet resolved high bound. If unresolved, print
9732 "variable length" string to the console instead of random
9733 length.
9734
9735 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9736
9737 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9738 (ada_template_to_fixed_record_type_1): Likewise.
9739 (ada_to_fixed_type_1): Likewise.
9740 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9741 (cp_print_value): Likewise.
9742 * d-valprint.c (dynamic_array_type): Likewise.
9743 * eval.c (evaluate_subexp_with_coercion): Likewise.
9744 * findvar.c (address_of_variable): Likewise.
9745 * jv-valprint.c (java_value_print): Likewise.
9746 * valops.c (value_ind): Likewise.
9747 * value.c (coerce_ref): Likewise.
9748
9749 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9750
9751 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9752 value and retrieve the dynamic type size.
9753
9754 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9755
9756 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9757 passed to sizeof is dynamic evaluate the argument to compute the length.
9758
9759 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9760
9761 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9762 (dwarf2_evaluate_property): New function.
9763 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9764 * dwarf2read.c (attr_to_dynamic_prop): New function.
9765 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9766 attribute.
9767 * gdbtypes.c: Include dwarf2loc.h.
9768 (is_dynamic_type): New function.
9769 (resolve_dynamic_type): New function.
9770 (resolve_dynamic_bounds): New function.
9771 (get_type_length): New function.
9772 (check_typedef): Use get_type_length to compute type length.
9773 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9774 (TYPE_LOW_BOUND_KIND): New macro.
9775 (is_dynamic_type): New function prototype.
9776 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9777 to resolve dynamic properties of the type. Update comment.
9778 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9779
9780 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9781
9782 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9783 declaring high/low bounds and change uses accordingly. Call
9784 create_range_type instead of create_static_range_type.
9785 * gdbtypes.c (create_range_type): New function.
9786 (create_range_type): Convert bounds into struct bound_prop and pass
9787 them to create_range_type.
9788 * gdbtypes.h (struct bound_prop): New struct.
9789 (create_range_type): New function prototype.
9790 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9791 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9792 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9793 part of the bound.
9794 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9795
9796 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9797
9798 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9799 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9800 * ada-lang.c: All uses of create_range_type updated.
9801 * coffread.c: All uses of create_range_type updated.
9802 * dwarf2read.c: All uses of create_range_type updated.
9803 * f-exp.y: All uses of create_range_type updated.
9804 * m2-valprint.c: All uses of create_range_type updated.
9805 * mdebugread.c: All uses of create_range_type updated.
9806 * stabsread.c: All uses of create_range_type updated.
9807 * valops.c: All uses of create_range_type updated.
9808 * valprint.c: All uses of create_range_type updated.
9809
9810 2014-04-10 Pedro Alves <palves@redhat.com>
9811
9812 * breakpoint.c (single_step_breakpoints)
9813 (single_step_gdbarch): Move up in the file.
9814 (one_breakpoint_xfer_memory): New function, factored out from ...
9815 (breakpoint_xfer_memory): ... here. Also process single-step
9816 breakpoints.
9817
9818 2014-04-09 Tristan Gingold <gingold@adacore.com>
9819
9820 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9821 comments.
9822 (darwin_decode_exception_message): Free port only after use.
9823
9824 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9825
9826 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9827 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9828 when setting the size of call_length.
9829
9830 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9831
9832 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9833 dereference TYPE_CODE_REF values.
9834
9835 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9836
9837 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9838 end of warning message.
9839
9840 2014-04-03 Doug Evans <dje@google.com>
9841
9842 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9843 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9844
9845 2014-04-02 Alan Modra <amodra@gmail.com>
9846
9847 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9848 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9849 (struct symbol_file_add_from_memory_args): Add size field.
9850 (find_vdso_size): New function.
9851 (add_vsyscall_page): Attempt to find vdso size.
9852
9853 2014-04-01 Doug Evans <dje@google.com>
9854
9855 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9856
9857 2014-04-01 Tristan Gingold <gingold@adacore.com>
9858
9859 * darwin-nat.c (darwin_encode_reply): Add prototype.
9860 (darwin_decode_exception_message): Reply to unknown inferiors.
9861 (darwin_decode_message): Handle message by id. Ignore message
9862 to unknown inferior.
9863 (darwin_wait): Discard unknown messages, add debug trace.
9864
9865 2014-03-31 Doug Evans <dje@google.com>
9866
9867 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9868 comp_dir_string.
9869
9870 2014-03-31 Doug Evans <dje@google.com>
9871
9872 New option "set print symbol-loading".
9873 * NEWS: Mention it.
9874 * solib.c (solib_read_symbols): Only print symbol loading messages
9875 if requested.
9876 (solib_add): If symbol loading is in "brief" mode, notify user
9877 symbols are being loaded.
9878 (reload_shared_libraries_1): Ditto.
9879 * symfile.c (print_symbol_loading_off): New static global.
9880 (print_symbol_loading_brief): New static global.
9881 (print_symbol_loading_full): New static global.
9882 (print_symbol_loading_enums): New static global.
9883 (print_symbol_loading): New static global.
9884 (print_symbol_loading_p): New function.
9885 (symbol_file_add_with_addrs): Only print symbol loading messages
9886 if requested.
9887 (_initialize_symfile): Register "print symbol-loading" set/show
9888 command.
9889 * symfile.h (print_symbol_loading_p): Declare.
9890
9891 2014-03-30 Doug Evans <xdje42@gmail.com>
9892
9893 * infrun.c (set_last_target_status): New function.
9894 (handle_inferior_event): Call it.
9895
9896 2014-03-30 Doug Evans <xdje42@gmail.com>
9897
9898 * inferior.h (enum stop_kind): Improve comment.
9899
9900 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9901
9902 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9903 a reference, strip the reference layer before calling
9904 the lang_ops value_has_mutated callback.
9905
9906 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9907
9908 Remove some globals from our parser.
9909 * language.c (unk_lang_parser): Add "struct parser_state"
9910 argument.
9911 * language.h (struct language_defn) <la_parser>: Likewise.
9912 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9913 (initialize_expout): Add "struct parser_state" argument.
9914 Rewrite function to use the parser state.
9915 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9916 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9917 write_exp_elt_longcst, write_exp_elt_dblcst,
9918 write_exp_elt_decfloatcst, write_exp_elt_type,
9919 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9920 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9921 write_dollar_variable): Likewise.
9922 (parse_exp_in_context_1): Use parser state.
9923 (insert_type_address_space): Add "struct parser_state" argument.
9924 Use parser state.
9925 (increase_expout_size): New function.
9926 * parser-defs.h: Forward declare "struct language_defn" and
9927 "struct parser_state".
9928 (expout, expout_size, expout_ptr): Remove extern declarations.
9929 (parse_gdbarch, parse_language): Rewrite macro declarations to
9930 accept the parser state.
9931 (struct parser_state): New struct.
9932 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9933 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9934 write_exp_elt_decfloatcst, write_exp_elt_type,
9935 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9936 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9937 write_exp_msymbol, write_dollar_variable,
9938 mark_struct_expression, insert_type_address_space): Add "struct
9939 parser_state" argument.
9940 (increase_expout_size): New function.
9941 * utils.c (do_clear_parser_state): New function.
9942 (make_cleanup_clear_parser_state): Likewise.
9943 * utils.h (make_cleanup_clear_parser_state): New function
9944 prototype.
9945 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9946 Update calls to write_exp* in order to pass the parser state.
9947 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9948 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9949 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9950 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9951 * stap-probe.c (stap_parse_register_operand): Likewise.
9952 (stap_parse_single_operand): Likewise.
9953 (stap_parse_argument_1): Likewise.
9954 (stap_parse_argument): Use parser state.
9955 * stap-probe.h: Include "parser-defs.h".
9956 (struct stap_parse_info) <pstate>: New field.
9957 * c-exp.y (parse_type): Rewrite to use parser state.
9958 (yyparse): Redefine to c_parse_internal.
9959 (pstate): New global variable.
9960 (parse_number): Add "struct parser_state" argument.
9961 (write_destructor_name): Likewise.
9962 (type_exp): Update calls to write_exp* and similars in order to
9963 use parser state.
9964 (exp1, exp, variable, qualified_name, space_identifier,
9965 typename, typebase): Likewise.
9966 (write_destructor_name, parse_number, lex_one_token,
9967 classify_name, classify_inner_name, c_parse): Add "struct
9968 parser_state" argument. Update function to use parser state.
9969 * c-lang.h: Forward declare "struct parser_state".
9970 (c_parse): Add "struct parser_state" argument.
9971 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9972 (yyparse): Redefine macro to ada_parse_internal.
9973 (pstate): New variable.
9974 (write_int, write_object_renaming, write_var_or_type,
9975 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9976 type_int, type_long, type_long_long, type_float, type_double,
9977 type_long_double, type_char, type_boolean, type_system_address):
9978 Add "struct parser_state" argument.
9979 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9980 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9981 var_or_type, aggregate, aggregate_component_list,
9982 positional_list, others, component_group,
9983 component_associations): Update calls to write_exp* and similar
9984 functions in order to use parser state.
9985 (ada_parse, write_var_from_sym, write_int,
9986 write_exp_op_with_string, write_object_renaming,
9987 find_primitive_type, write_selectors, write_ambiguous_var,
9988 write_var_or_type, write_name_assoc, type_int, type_long,
9989 type_long_long, type_float, type_double, type_long_double,
9990 type_char, type_boolean, type_system_address): Add "struct
9991 parser_state" argument. Adjust function to use parser state.
9992 * ada-lang.c (parse): Likewise.
9993 * ada-lang.h: Forward declare "struct parser_state".
9994 (ada_parse): Add "struct parser_state" argument.
9995 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9996 calls to both functions.
9997 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9998 parser state.
9999 (yyparse): Redefine macro to f_parse_internal.
10000 (pstate): New variable.
10001 (parse_number): Add "struct parser_state" argument.
10002 (type_exp, exp, subrange, typebase): Update calls to write_exp*
10003 and similars in order to use parser state.
10004 (parse_number): Adjust code to use parser state.
10005 (yylex): Likewise.
10006 (f_parse): New function.
10007 * f-lang.h: Forward declare "struct parser_state".
10008 (f_parse): Add "struct parser_state" argument.
10009 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
10010 parser state.
10011 (yyparse): Redefine macro for java_parse_internal.
10012 (pstate): New variable.
10013 (push_expression_name, push_expression_name, insert_exp): Add
10014 "struct parser_state" argument.
10015 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10016 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10017 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10018 PostIncrementExpression, PostDecrementExpression,
10019 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10020 UnaryExpressionNotPlusMinus, CastExpression,
10021 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10022 RelationalExpression, EqualityExpression, AndExpression,
10023 ExclusiveOrExpression, InclusiveOrExpression,
10024 ConditionalAndExpression, ConditionalOrExpression,
10025 ConditionalExpression, Assignment, LeftHandSide): Update
10026 calls to write_exp* and similars in order to use parser state.
10027 (parse_number): Ajust code to use parser state.
10028 (yylex): Likewise.
10029 (java_parse): New function.
10030 (push_variable): Add "struct parser_state" argument. Adjust
10031 code to user parser state.
10032 (push_fieldnames, push_qualified_expression_name,
10033 push_expression_name, insert_exp): Likewise.
10034 * jv-lang.h: Forward declare "struct parser_state".
10035 (java_parse): Add "struct parser_state" argument.
10036 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10037 parser state.
10038 (yyparse): Redefine macro to m2_parse_internal.
10039 (pstate): New variable.
10040 (type_exp, exp, fblock, variable, type): Update calls to
10041 write_exp* and similars to use parser state.
10042 (yylex): Likewise.
10043 (m2_parse): New function.
10044 * m2-lang.h: Forward declare "struct parser_state".
10045 (m2_parse): Add "struct parser_state" argument.
10046 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10047 * objc-lang.h: Forward declare "struct parser_state".
10048 (end_msglist): Add "struct parser_state" argument.
10049 * p-exp.y (parse_type): Rewrite macro to use parser state.
10050 (yyparse): Redefine macro to pascal_parse_internal.
10051 (pstate): New variable.
10052 (parse_number): Add "struct parser_state" argument.
10053 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10054 write_exp* and similars in order to use parser state.
10055 (parse_number, yylex): Adjust code to use parser state.
10056 (pascal_parse): New function.
10057 * p-lang.h: Forward declare "struct parser_state".
10058 (pascal_parse): Add "struct parser_state" argument.
10059 * go-exp.y (parse_type): Rewrite macro to use parser state.
10060 (yyparse): Redefine macro to go_parse_internal.
10061 (pstate): New variable.
10062 (parse_number): Add "struct parser_state" argument.
10063 (type_exp, exp1, exp, variable, type): Update calls to
10064 write_exp* and similars in order to use parser state.
10065 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10066 to use parser state.
10067 (go_parse): Likewise.
10068 * go-lang.h: Forward declare "struct parser_state".
10069 (go_parse): Add "struct parser_state" argument.
10070
10071 2014-03-27 Doug Evans <dje@google.com>
10072
10073 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10074
10075 2014-03-27 Doug Evans <dje@google.com>
10076
10077 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10078 Remove argument abbrev_section. All callers updated.
10079
10080 2014-03-27 Doug Evans <dje@google.com>
10081
10082 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10083 addr_base, ranges_base.
10084
10085 2014-03-26 Keith Seitz <keiths@redhat.com>
10086
10087 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10088 types, not VAR_DOMAIN.
10089
10090 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10091
10092 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10093 "ra" registers.
10094 * features/nios2-linux.c: Regenerated.
10095 * features/nios2.c: Regenerated.
10096
10097 2014-03-25 Pedro Alves <palves@redhat.com>
10098
10099 * cli/cli-script.c (script_from_file): Force the interpreter to
10100 sync mode.
10101
10102 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10103
10104 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10105 small stack allocation.
10106
10107 2014-03-24 Tristan Gingold <gingold@adacore.com>
10108
10109 * darwin-nat.c (exc_server): Remove unused prototype.
10110 (darwin_dump_message): Correctly display data on x86_64.
10111 (darwin_encode_reply): Fix style.
10112 Add comments and fix indentation.
10113
10114 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10115
10116 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10117
10118 2014-03-22 Doug Evans <xdje42@gmail.com>
10119
10120 * infcmd.c: Whitespace fixes.
10121 (interrupt_command): Merge two function comments into one.
10122
10123 2014-03-22 Doug Evans <xdje42@gmail.com>
10124
10125 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10126 All uses updated.
10127
10128 2014-03-22 Yao Qi <yao@codesourcery.com>
10129
10130 * remote.c (target_read_live_memory): Remove.
10131 (memory_xfer_live_readonly_partial): Rename it to
10132 remote_xfer_live_readonly_partial. Remove argument 'object'.
10133 All callers updated. Call remote_read_bytes_1
10134 instead of target_read_live_memory.
10135 * tracepoint.c (set_traceframe_number): Remove.
10136 (make_cleanup_restore_traceframe_number): Likewise .
10137 * tracepoint.h (set_traceframe_number): Remove declaration.
10138 (make_cleanup_restore_traceframe_number): Likewise.
10139
10140 2014-03-22 Yao Qi <yao@codesourcery.com>
10141
10142 * remote.c (remote_read_bytes): Move code on reading from the
10143 remote stub to ...
10144 (remote_read_bytes_1): ... here. New function.
10145
10146 2014-03-22 Yao Qi <yao@codesourcery.com>
10147
10148 * ctf.c (ctf_xfer_partial): Check the return value of
10149 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10150 return TARGET_XFER_UNAVAILABLE.
10151 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10152 * target.c (target_read_live_memory): Move it to remote.c.
10153 (memory_xfer_live_readonly_partial): Likewise.
10154 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10155 * remote.c (target_read_live_memory): Moved from target.c.
10156 (memory_xfer_live_readonly_partial): Likewise.
10157 (remote_read_bytes): Factored out from
10158 memory_xfer_partial_1.
10159
10160 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10161
10162 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10163 NULL pointer.
10164
10165 2014-03-21 Pedro Alves <palves@redhat.com>
10166
10167 * infrun.c (normal_stop): Extend comment.
10168
10169 2014-03-21 Hui Zhu <hui@codesourcery.com>
10170 Pedro Alves <palves@redhat.com>
10171
10172 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10173 static buffer.
10174 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10175 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10176 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10177
10178 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10179
10180 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10181 `z' formatted output modifier.
10182
10183 2014-03-20 Tom Tromey <tromey@redhat.com>
10184 Sergio Durigan Junior <sergiodj@redhat.com>
10185
10186 * probe.c (parse_probes): Turn assert into an ordinary error.
10187 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10188 exceptions when parsing probes. Rearrange the code for clarity.
10189
10190 2014-03-20 Tom Tromey <tromey@redhat.com>
10191
10192 PR gdb/14135
10193 * top.c (execute_command): Only dispatch events if the command
10194 started the target.
10195
10196 2014-03-20 Tom Tromey <tromey@redhat.com>
10197
10198 PR cli/15718
10199 * infcall.c: Include event-top.h.
10200 (run_inferior_call): Call async_disable_stdin if needed.
10201
10202 2014-03-20 Pedro Alves <palves@redhat.com>
10203
10204 * infrun.c (prepare_to_proceed): Delete.
10205 (thread_still_needs_step_over): New function.
10206 (find_thread_needs_step_over): New function.
10207 (proceed): If the current thread needs a step-over, set its
10208 steping_over_breakpoint flag. Adjust to use
10209 find_thread_needs_step_over instead of prepare_to_proceed.
10210 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10211 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10212 breakpoint.
10213 (switch_back_to_stepped_thread): Step over breakpoints of all
10214 threads not the stepping thread, before switching back to the
10215 stepping thread.
10216
10217 2014-03-20 Pedro Alves <palves@redhat.com>
10218
10219 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10220 extern.
10221 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10222 * infrun.c (saved_singlestep_ptid)
10223 (stepping_past_singlestep_breakpoint): Delete.
10224 (resume): Remove stepping_past_singlestep_breakpoint handling.
10225 (proceed): Store the prev_pc of the stepping thread too.
10226 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10227 singlestep_pc.
10228 (enum infwait_states): Delete infwait_thread_hop_state.
10229 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10230 field.
10231 (handle_inferior_event): Adjust.
10232 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10233 handling and the thread-hop code. Before removing single-step
10234 breakpoints, check whether the thread hit a single-step breakpoint
10235 of another thread. If it did, the trap is not a random signal.
10236 (switch_back_to_stepped_thread): If the event thread hit a
10237 single-step breakpoint, unblock it before switching to the
10238 stepping thread. Handle the case of the stepped thread having
10239 advanced already.
10240 (keep_going): Handle the case of the current thread moving past a
10241 single-step breakpoint.
10242
10243 2014-03-20 Pedro Alves <palves@redhat.com>
10244
10245 PR breakpoints/7143
10246 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10247 are being stepped over.
10248 (breakpoint_address_match): Make extern.
10249 * breakpoint.h (breakpoint_address_match): New declaration.
10250 * inferior.h (stepping_past_instruction_at): New declaration.
10251 * infrun.c (struct step_over_info): New type.
10252 (step_over_info): New global.
10253 (set_step_over_info, clear_step_over_info)
10254 (stepping_past_instruction_at): New functions.
10255 (handle_inferior_event): Clear the step-over info when
10256 trap_expected is cleared.
10257 (resume): Remove now stale comment.
10258 (clear_proceed_status): Clear step-over info.
10259 (proceed): Adjust step-over handling to set or clear the step-over
10260 info instead of removing all breakpoints.
10261 (handle_signal_stop): When setting up a thread-hop, don't remove
10262 breakpoints here.
10263 (stop_stepping): Clear step-over info.
10264 (keep_going): Adjust step-over handling to set or clear step-over
10265 info and then always inserting breakpoints, instead of removing
10266 all breakpoints when stepping over one.
10267
10268 2014-03-20 Pedro Alves <palves@redhat.com>
10269
10270 * infrun.c (previous_inferior_ptid): Adjust comment.
10271 (deferred_step_ptid): Delete.
10272 (infrun_thread_ptid_changed, prepare_to_proceed)
10273 (init_wait_for_inferior): Adjust.
10274 (handle_signal_stop): Delete deferred_step_ptid handling.
10275
10276 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10277
10278 PR gdb/15358
10279 * defs.h (sync_quit_force_run): New declaration.
10280 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10281 * event-top.c (async_sigterm_handler): New declaration.
10282 (async_sigterm_token): New variable.
10283 (async_init_signals): Create also async_sigterm_token.
10284 (async_sigterm_handler): New function.
10285 (sync_quit_force_run): New variable.
10286 (handle_sigterm): Replace quit_force call by other calls.
10287 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10288
10289 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10290
10291 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10292 offset into SPE pseudo registers.
10293
10294 2014-03-18 Pedro Alves <palves@redhat.com>
10295
10296 PR gdb/13860
10297 * inferior.h (print_stop_event): Declare.
10298 * infrun.c (print_stop_event): New, factored out from ...
10299 (normal_stop): ... this.
10300 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10301 of bpstat_print/print_stack_frame.
10302
10303 2014-03-17 Tom Tromey <tromey@redhat.com>
10304
10305 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10306
10307 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10308
10309 * ada-lang.c (decode_constrained_packed_array): Perform a
10310 minimal coercion for reference with coerce_ref instead of
10311 ada_coerce_ref.
10312
10313 2014-03-17 Tristan Gingold <gingold@adacore.com>
10314
10315 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10316 (darwin_solib_create_inferior_hook): Emit a warning if version
10317 is unhandled.
10318
10319 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10320
10321 * python/py-value.c (get_field_flag): Cast flag_name argument to
10322 PyObject_GetAttrString to support Python 2.4.
10323
10324 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10325
10326 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10327 (Global Maintainers): Remove Jan Kratochvil.
10328
10329 2014-03-14 Pedro Alves <palves@redhat.com>
10330
10331 * inferior.h (terminal_ours_for_output): Rename to ...
10332 (child_terminal_ours_for_output): ... this.
10333 (terminal_save_ours): Rename to ...
10334 (child_terminal_save_ours): ... this.
10335 (terminal_ours): Rename to ...
10336 (child_terminal_ours): ... this.
10337 (terminal_inferior): Rename to ...
10338 (child_terminal_inferior): ... this.
10339 (terminal_init_inferior): Rename to ...
10340 (child_terminal_init_inferior): ... this.
10341 (terminal_init_inferior_with_pgrp): Rename to ...
10342 (child_terminal_init_inferior_with_pgrp): ... this.
10343 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10344 (child_terminal_init_with_pgrp): ... this.
10345 (terminal_save_ours): Rename to ...
10346 (child_terminal_save_ours): ... this.
10347 (terminal_init_inferior): Rename to ...
10348 (child_terminal_init): ... this. Adjust.
10349 (terminal_inferior): Rename to ...
10350 (child_terminal_inferior): ... this.
10351 (terminal_ours_for_output): Rename to ...
10352 (child_terminal_ours_for_output): ... this. Adjust.
10353 (terminal_ours): Rename to ...
10354 (child_terminal_ours): ... this.
10355 (terminal_ours_1): Rename to ...
10356 (child_terminal_ours_1): ... this. Adjust.
10357 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10358 * windows-nat.c (do_initial_windows_stuff): Adjust.
10359 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10360 (gnu_terminal_init): ... this. Adjust.
10361 (gnu_target): Adjust.
10362 * inf-child.c (inf_child_target): Adjust.
10363
10364 2014-03-13 Doug Evans <xdje42@gmail.com>
10365
10366 PR guile/16612
10367 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10368 new eq?-hashtab.
10369
10370 2014-03-13 Doug Evans <xdje42@gmail.com>
10371
10372 * value.c (record_latest_value): Call release_value_or_incref
10373 instead of release_value.
10374
10375 2014-03-13 Pedro Alves <palves@redhat.com>
10376
10377 * procfs.c (procfs_target): Don't override to_shortname,
10378 to_longname or to_doc.
10379
10380 2014-03-13 Pedro Alves <palves@redhat.com>
10381
10382 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10383 Unix in user visible strings.
10384
10385 2014-03-12 Stan Shebs <stan@codesourcery.com>
10386
10387 * gdbtypes.h: Annotate comments for Doxygen, add a page
10388 block comment with some general info.
10389
10390 2014-03-12 Pedro Alves <palves@redhat.com>
10391
10392 * infcmd.c (prepare_execution_command): New function, factored out
10393 from several execution commands.
10394 (run_command_1, continue_command, step_1, jump_command)
10395 (signal_command, until_command, advance_command, finish_command)
10396 (attach_command): Use prepare_execution_command.
10397
10398 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10399
10400 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10401 (MAX_BPTS): Define.
10402 (MAX_WPTS): Define.
10403 (struct arm_linux_thread_points): Removed.
10404 (struct arm_linux_process_info): New.
10405 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10406 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10407 (arm_linux_find_breakpoints_by_tid): Removed.
10408 (struct arch_lwp_info): New.
10409 (arm_linux_find_process_pid): New functions.
10410 (arm_linux_add_process): New functions.
10411 (arm_linux_process_info_get): New functions.
10412 (arm_linux_forget_process): New function.
10413 (arm_linux_get_debug_reg_state): New function.
10414 (struct update_registers_data): New.
10415 (update_registers_callback): New function.
10416 (arm_linux_insert_hw_breakpoint1): Updated.
10417 (arm_linux_remove_hw_breakpoint1): Updated.
10418 (arm_linux_insert_hw_breakpoint): Updated.
10419 (arm_linux_remove_hw_breakpoint): Updated.
10420 (arm_linux_insert_watchpoint): Updated.
10421 (arm_linux_remove_watchpoint): Updated.
10422 (arm_linux_new_thread): Updated.
10423 (arm_linux_prepare_to_resume): New function.
10424 (arm_linux_new_fork): New function.
10425 (_initialize_arm_linux_nat): Updated.
10426
10427 2014-03-12 Pedro Alves <palves@redhat.com>
10428
10429 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10430
10431 2014-03-12 Tom Tromey <tromey@redhat.com>
10432
10433 * inf-child.c (return_zero): New function.
10434 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10435 * aix-thread.c (aix_thread_inferior_created): New function.
10436 (aix_thread_attach): Remove.
10437 (init_aix_thread_ops): Don't set to_attach.
10438 (_initialize_aix_thread): Register inferior_created observer.
10439 * corelow.c (init_core_ops): Don't set to_attach or
10440 to_create_inferior.
10441 * exec.c (init_exec_ops): Don't set to_attach or
10442 to_create_inferior.
10443 * infcmd.c (run_command_1): Use find_run_target. Make direct
10444 target calls.
10445 (attach_command): Use find_attach_target. Make direct target
10446 calls.
10447 * record-btrace.c (init_record_btrace_ops): Don't set
10448 to_create_inferior.
10449 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10450 Remove.
10451 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10452 set to_create_inferior.
10453 * target.c (complete_target_initialization): Add assertion.
10454 (target_create_inferior): Remove.
10455 (find_default_attach, find_default_create_inferior): Remove.
10456 (find_attach_target, find_run_target): New functions.
10457 (find_default_is_async_p, find_default_can_async_p)
10458 (target_supports_non_stop, target_attach): Remove.
10459 (init_dummy_target): Don't set to_create_inferior or
10460 to_supports_non_stop.
10461 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10462 TARGET_DEFAULT_FUNC.
10463 <to_create_inferior>: Add comment.
10464 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10465 TARGET_DEFAULT_RETURN.
10466 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10467 (find_attach_target, find_run_target): Declare.
10468 (target_create_inferior): Remove.
10469 (target_has_execution_1): Update comment.
10470 (target_supports_non_stop): Remove.
10471 * target-delegates.c: Rebuild.
10472
10473 2014-03-12 Pedro Alves <palves@redhat.com>
10474
10475 * inf-child.h: Update comment to not mention Unix.
10476
10477 2014-03-12 Pedro Alves <palves@redhat.com>
10478
10479 * inf-child.c: Update top comment to not mention Unix. Add
10480 generic comment describing how this target is meant to be used.
10481 (inf_child_post_attach, inf_child_post_startup_inferior)
10482 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10483 Unix in comment.
10484
10485 2014-03-12 Pedro Alves <palves@redhat.com>
10486
10487 * nto-procfs.c: Include inf-child.h.
10488 (procfs_ops): Delete global.
10489 (procfs_can_run): Delete method.
10490 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10491 target pointer instead of referencing procfs_ops.
10492 (procfs_prepare_to_store): Delete.
10493 (init_procfs_ops): Delete function.
10494 (procfs_target): New function, based on init_procfs_ops, but
10495 inherit inf_child_target.
10496 (_initialize_procfs): Use procfs_target.
10497
10498 2014-03-12 Pedro Alves <palves@redhat.com>
10499
10500 * windows-nat.c: Include inf-child.h.
10501 (windows_ops): Delete global.
10502 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10503 methods.
10504 (init_windows_ops): Delete function.
10505 (windows_target): New function, based on init_windows_ops, but
10506 inherit inf_child_target.
10507 (_initialize_windows_nat): Use windows_target. Install x86
10508 specific target methods here.
10509
10510 2014-03-10 Doug Evans <xdje42@gmail.com>
10511
10512 * guile/guile.c (call_initialize_gdb_module): New function.
10513 (initialize_guile): Replace call to scm_init_guile with call to
10514 scm_with_guile.
10515
10516 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10517
10518 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10519 in call to TYPE_CODE macro.
10520
10521 2014-03-10 Jerome Guitton <guitton@adacore.com>
10522
10523 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10524 Resolve tagged types to full view.
10525
10526 2014-03-10 Hui Zhu <hui@codesourcery.com>
10527
10528 * target.h (target_insert_breakpoint): Remove "hardware" from its
10529 comments.
10530
10531 2014-03-07 Doug Evans <dje@google.com>
10532
10533 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10534
10535 2014-03-07 Doug Evans <dje@google.com>
10536
10537 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10538 Remove unused local comp_dir_attr. Assert exactly one of
10539 stub_comp_unit_die, stub_comp_dir is non-NULL.
10540
10541 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10542
10543 * target.h (complete_target_initialization, add_target):
10544 Add comment.
10545
10546 2014-03-07 Pedro Alves <palves@redhat.com>
10547
10548 * go32-nat.c: Include inf-child.h.
10549 (go32_ops): Delete global.
10550 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10551 Delete methods.
10552 (go32_create_inferior): Push the passed in target pointer instead
10553 of referencing go32_ops.
10554 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10555 (go32_target): New function, based on init_go32_ops, but inherit
10556 inf_child_target.
10557 (_initialize_go32_nat): Use go32_target. Move parts of
10558 init_go32_ops here.
10559
10560 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10561
10562 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10563 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10564 SYMBOL_VALUE_ADDRESS.
10565 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10566
10567 2014-03-06 Yao Qi <yao@codesourcery.com>
10568
10569 * breakpoint.c (get_tracepoint_by_number): Remove argument
10570 optional_p. All callers updated. Adjust comments. Update
10571 output message.
10572 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10573
10574 2014-03-06 Yao Qi <yao@codesourcery.com>
10575
10576 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10577 early if get_number returns zero. Use 'p' instead of 'args'.
10578
10579 2014-03-06 Yao Qi <yao@codesourcery.com>
10580
10581 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10582 message.
10583
10584 2014-03-06 Yao Qi <yao@codesourcery.com>
10585
10586 PR breakpoints/16508
10587 * tracepoint.c (check_trace_running): New function.
10588 (trace_find_command): Move code to check_trace_running and
10589 call check_trace_running.
10590 (trace_find_pc_command): Likewise.
10591 (trace_find_tracepoint_command): Likewise.
10592 (trace_find_line_command): Likewise.
10593 (trace_find_range_command): Likewise.
10594 * tracepoint.h (check_trace_running): Likewise.
10595 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10596
10597 2014-03-06 Yao Qi <yao@codesourcery.com>
10598
10599 * target.h (struct target_ops) <to_traceframe_info>: Use
10600 TARGET_DEFAULT_NORETURN (tcomplain ()).
10601 * target-delegates.c: Regenerated.
10602
10603 2014-03-05 Pedro Alves <palves@redhat.com>
10604
10605 PR gdb/16575
10606 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10607 void. Update comment.
10608 (dcache_xfer_memory): Delete.
10609 (dcache_read_memory_partial): New, based on the read bits of
10610 dcache_xfer_memory.
10611 (dcache_update): Add status parameter. Use ULONGEST for len, and
10612 adjust. Discard cache lines if the reason for the update was
10613 error.
10614 * dcache.h (dcache_xfer_memory): Delete declaration.
10615 (dcache_read_memory_partial): New declaration.
10616 (dcache_update): Update prototype.
10617 * target.c (raw_memory_xfer_partial): Update the dcache here.
10618 (memory_xfer_partial_1): Don't handle dcache writes here.
10619
10620 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10621
10622 * remote-sim.c (gdbsim_load): Add const to prog.
10623
10624 2014-03-03 Tom Tromey <tromey@redhat.com>
10625
10626 * elfread.c (probe_key): Change to bfd_data.
10627 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10628 now per-BFD, not per-objfile.
10629 * stap-probe.c (stap_probe_destroy): Update comment.
10630 (handle_stap_probe): Allocate on the per-BFD obstack.
10631
10632 2014-03-03 Tom Tromey <tromey@redhat.com>
10633
10634 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10635 * breakpoint.c (create_longjmp_master_breakpoint): Use
10636 get_probe_address.
10637 (add_location_to_breakpoint, bkpt_probe_insert_location)
10638 (bkpt_probe_remove_location): Update.
10639 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10640 * elfread.c (elf_symfile_relocate_probe): Remove.
10641 (elf_probe_fns): Update.
10642 (insert_exception_resume_breakpoint): Change type of "probe"
10643 parameter to bound_probe.
10644 (check_exception_resume): Update.
10645 * objfiles.c (objfile_relocate1): Don't relocate probes.
10646 * probe.c (bound_probe_s): New typedef.
10647 (parse_probes): Use get_probe_address. Set sal's objfile.
10648 (find_probe_by_pc): Return a bound_probe.
10649 (collect_probes): Return a VEC(bound_probe_s).
10650 (compare_probes): Update.
10651 (gen_ui_out_table_header_info): Change type of "probes"
10652 parameter. Update.
10653 (info_probes_for_ops): Update.
10654 (get_probe_address): New function.
10655 (probe_safe_evaluate_at_pc): Update.
10656 * probe.h (struct probe_ops) <get_probe_address>: New field.
10657 <set_semaphore, clear_semaphore>: Add objfile parameter.
10658 (struct probe) <objfile>: Remove field.
10659 <arch>: New field.
10660 <address>: Update comment.
10661 (struct bound_probe): New.
10662 (find_probe_by_pc): Return a bound_probe.
10663 (get_probe_address): Declare.
10664 * solib-svr4.c (struct probe_and_action) <address>: New field.
10665 (hash_probe_and_action, equal_probe_and_action): Update.
10666 (register_solib_event_probe): Add address parameter.
10667 (solib_event_probe_at): Update.
10668 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10669 get_probe_address.
10670 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10671 (stap_get_probe_address): New function.
10672 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10673 (compile_probe_arg): Update.
10674 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10675 address.
10676 (handle_stap_probe): Don't relocate the probe.
10677 (stap_relocate): Remove.
10678 (stap_gen_info_probes_table_values): Update.
10679 (stap_probe_ops): Remove stap_relocate.
10680 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10681 (debug_sym_probe_fns): Update.
10682 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10683 * symtab.c (init_sal): Use memset.
10684 * symtab.h (struct symtab_and_line) <objfile>: New field.
10685 * tracepoint.c (start_tracing, stop_tracing): Update.
10686
10687 2014-03-03 Tom Tromey <tromey@redhat.com>
10688
10689 * probe.h (parse_probes, find_probe_by_pc)
10690 (find_probes_in_objfile): Fix comments.
10691
10692 2014-03-02 Doug Evans <xdje42@gmail.com>
10693
10694 * infrun.c (handle_signal_stop): Replace test for
10695 TARGET_WAITKIND_STOPPED with an assert.
10696
10697 2014-03-02 Doug Evans <xdje42@gmail.com>
10698
10699 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10700
10701 2014-03-02 Doug Evans <xdje42@gmail.com>
10702
10703 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10704
10705 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10706
10707 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10708
10709 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10710
10711 * i386obsd-nat.c: Include "obsd-nat.h".
10712 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10713 add_target.
10714 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10715
10716 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10717
10718 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10719
10720 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10721
10722 * mips64obsd-nat.c: Include "obsd-nath".
10723 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10724 add_target
10725 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10726
10727 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10728
10729 * amd64obsd-nat.c: Include "obsd-nat,h.
10730 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10731 add_target.
10732 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10733
10734 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10735
10736 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10737 (find_overload_match): Update call to find_oload_champ.
10738 (find_oload_champ_namespace_loop): Likewise
10739
10740 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10741
10742 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10743
10744 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10745 * config/sparc/obsd64.mh: New file.
10746 * sparc64obsd-nat.c: New file.
10747
10748 * obsd-nat.h: New file.
10749 * obsd-nat.c: New file.
10750 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10751 (ALLDEPFILES): Add obsd-nat.c.
10752
10753 2014-02-28 Tom Tromey <tromey@redhat.com>
10754
10755 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10756 * cli-out.h (cli_ui_out_impl): Now const.
10757 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10758 * ui-out.c (struct ui_out) <impl>: Now const.
10759 (default_ui_out_impl): Now const.
10760 (ui_out_new): Make 'impl' parameter const.
10761 * ui-out.h (ui_out_new): Update.
10762
10763 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10764
10765 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10766
10767 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10768
10769 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10770
10771 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10772
10773 Additional PR 8882 fix.
10774 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10775
10776 2014-02-27 Pedro Alves <palves@redhat.com>
10777
10778 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10779 isn't set.
10780
10781 2014-02-27 Pedro Alves <palves@redhat.com>
10782
10783 PR 12702
10784 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10785 * nat/linux-waitpid.c: Include string.h.
10786 (status_to_str): Moved here and made extern.
10787 * nat/linux-waitpid.h (status_to_str): New declaration.
10788
10789 2014-02-27 Hui Zhu <hui@codesourcery.com>
10790
10791 PR 12702
10792 * infrun.c (ptid_match): Move ...
10793 * common/ptid.c (ptid_match): ... here.
10794 * inferior.h (ptid_match): Move ...
10795 * common/ptid.h (ptid_match): ... here.
10796
10797 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10798
10799 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10800 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10801 gdb_target_obs.
10802
10803 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10804
10805 * obsd-tdep.c (obsd_auxv_parse): New function.
10806 (obsd_init_abi): Set auxv_parse.
10807
10808 * gdbarch.sh (auxv_parse): New.
10809 * gdbarch.h: Regenerated.
10810 * gdbarch.c: Regenerated.
10811 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10812
10813 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10814
10815 * guile/scm-value.c (gdbscm_history_append_x): New function.
10816 (value_functions): Add it.
10817
10818 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10819
10820 * dwarf2read.c (attr_value_as_address): New function.
10821 (dwarf2_find_base_address, read_call_site_scope): Use
10822 attr_value_as_address in place of DW_ADDR.
10823 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10824 the low and high addresses. Slight rework of the handling
10825 of the high pc being a constant form, and limit it to
10826 DWARF verson 4 or higher.
10827 (dwarf2_record_block_ranges): Likewise.
10828 (read_partial_die): Likewise.
10829 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10830
10831 2014-02-26 Tom Tromey <tromey@redhat.com>
10832
10833 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10834
10835 2014-02-26 Tom Tromey <tromey@redhat.com>
10836
10837 * elfread.c (elf_read_minimal_symbols): Return early if
10838 minimal symbols have already been read. Add "ei" parameter.
10839 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10840 * minsyms.c (prim_record_minimal_symbol_full): Update.
10841 * objfiles.h (struct objstats) <n_minsyms>: Move...
10842 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10843 * symmisc.c (print_objfile_statistics): Update.
10844
10845 2014-02-26 Tom Tromey <tromey@redhat.com>
10846
10847 * elfread.c (elf_read_minimal_symbols): New function, from
10848 elf_symfile_read.
10849 (elf_symfile_read): Call it.
10850
10851 2014-02-26 Tom Tromey <tromey@redhat.com>
10852
10853 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10854 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10855 (lookup_minimal_symbol_solib_trampoline)
10856 (lookup_minimal_symbol_by_pc_section_1)
10857 (lookup_minimal_symbol_and_objfile): Update.
10858 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10859 Don't allocate a minimal symbol if minsyms have already been read.
10860 (build_minimal_symbol_hash_tables): Update.
10861 (install_minimal_symbols): Do nothing if minsyms already read.
10862 Use the per-BFD obstack.
10863 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10864 * objfiles.c (allocate_objfile): Call
10865 terminate_minimal_symbol_table later.
10866 (have_minimal_symbols): Update.
10867 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10868 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10869 Move from struct objfile.
10870 <minsyms_read>: New field.
10871 (struct objfile) <msymbols, minimal_symbol_count,
10872 msymbol_hash, msymbol_demangled_hash>: Move.
10873 (ALL_OBJFILE_MSYMBOLS): Update.
10874 * symfile.c (read_symbols): Set minsyms_read.
10875 (reread_symbols): Update.
10876 * symmisc.c (dump_objfile, dump_msymbols): Update.
10877
10878 2014-02-26 Tom Tromey <tromey@redhat.com>
10879
10880 * minsyms.c (msymbols_sort): Remove.
10881 * minsyms.h (msymbols_sort): Remove.
10882 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10883 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10884 * elfread.c (elf_symtab_read): Don't add section offsets.
10885 * xcoffread.c (record_minimal_symbol): Don't add section offset
10886 to minimal symbol address.
10887 * somread.c (text_offset, data_offset): Remove.
10888 (som_symtab_read): Don't add section offsets to minimal symbol
10889 addresses.
10890 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10891 Don't add section offsets to minimal symbols.
10892 * coffread.c (coff_symtab_read): Don't add section offsets
10893 to minimal symbol addresses.
10894 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10895 to minimal symbol addresses.
10896 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10897 section offset to minimal symbol addresses.
10898 * mdebugread.c (parse_partial_symbols): Don't add section
10899 offset to minimal symbol addresses.
10900 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10901 offset to minimal symbol addresses.
10902
10903 2014-02-26 Tom Tromey <tromey@redhat.com>
10904
10905 * ada-lang.c (ada_main_name): Update.
10906 (ada_add_standard_exceptions): Update.
10907 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10908 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10909 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10910 * auxv.c (ld_so_xfer_auxv): Update.
10911 * avr-tdep.c (avr_scan_prologue): Update.
10912 * ax-gdb.c (gen_var_ref): Update.
10913 * blockframe.c (get_pc_function_start)
10914 (find_pc_partial_function_gnu_ifunc): Update.
10915 * breakpoint.c (create_overlay_event_breakpoint)
10916 (create_longjmp_master_breakpoint)
10917 (create_std_terminate_master_breakpoint)
10918 (create_exception_master_breakpoint): Update.
10919 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10920 * c-valprint.c (c_val_print): Update.
10921 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10922 * common/agent.c (agent_look_up_symbols): Update.
10923 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10924 * dwarf2loc.c (call_site_to_target_addr): Update.
10925 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10926 * elfread.c (elf_gnu_ifunc_record_cache)
10927 (elf_gnu_ifunc_resolve_by_got): Update.
10928 * findvar.c (default_read_var_value): Update.
10929 * frame.c (inside_main_func): Update.
10930 * frv-tdep.c (frv_frame_this_id): Update.
10931 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10932 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10933 Update.
10934 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10935 (hppa_hpux_find_dummy_bpaddr): Update.
10936 * hppa-tdep.c (hppa_symbol_address): Update.
10937 * infcmd.c (until_next_command): Update.
10938 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10939 Update.
10940 * linespec.c (minsym_found, add_minsym): Update.
10941 * linux-nat.c (get_signo): Update.
10942 * linux-thread-db.c (inferior_has_bug): Update.
10943 * m32c-tdep.c (m32c_return_value)
10944 (m32c_m16c_address_to_pointer): Update.
10945 * m32r-tdep.c (m32r_frame_this_id): Update.
10946 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10947 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10948 * maint.c (maintenance_translate_address): Update.
10949 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10950 (frob_address): New function.
10951 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10952 frob_address. Rename parameter to "pc_in".
10953 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10954 addresses.
10955 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10956 Update.
10957 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10958 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10959 * objc-lang.c (find_objc_msgsend): Update.
10960 * objfiles.c (objfile_relocate1): Update.
10961 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10962 * p-valprint.c (pascal_val_print): Update.
10963 * parse.c (write_exp_msymbol): Update.
10964 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10965 (ppc_elfv2_skip_entrypoint): Update.
10966 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10967 * printcmd.c (build_address_symbolic, msym_info)
10968 (address_info): Update.
10969 * proc-service.c (ps_pglobal_lookup): Update.
10970 * psymtab.c (find_pc_sect_psymtab_closer)
10971 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10972 Change msymbol parameter to bound_minimal_symbol.
10973 * ravenscar-thread.c (get_running_thread_id): Update.
10974 * remote.c (remote_check_symbols): Update.
10975 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10976 address.
10977 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10978 * solib-dsbt.c (lm_base): Update.
10979 * solib-frv.c (lm_base, main_got): Update.
10980 * solib-irix.c (locate_base): Update.
10981 * solib-som.c (som_solib_create_inferior_hook)
10982 (link_map_start): Update.
10983 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10984 * solib-svr4.c (elf_locate_base, enable_break): Update.
10985 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10986 (flush_ea_cache): Update.
10987 * stabsread.c (define_symbol, scan_file_globals): Update.
10988 * stack.c (find_frame_funname): Update.
10989 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10990 (debug_qf_find_pc_sect_symtab): Update.
10991 * symfile.c (simple_read_overlay_table)
10992 (simple_overlay_update): Update.
10993 * symfile.h (struct quick_symbol_functions)
10994 <find_pc_sect_symtab>: Change type of msymbol to
10995 bound_minimal_symbol.
10996 * symmisc.c (dump_msymbols): Update.
10997 * symtab.c (find_pc_sect_symtab_via_partial)
10998 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10999 (search_symbols, print_msymbol_info): Update.
11000 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
11001 (MSYMBOL_VALUE_ADDRESS): Redefine.
11002 (BMSYMBOL_VALUE_ADDRESS): New macro.
11003 * tracepoint.c (scope_info): Update.
11004 * tui/tui-disasm.c (tui_find_disassembly_address)
11005 (tui_get_begin_asm_address): Update.
11006 * valops.c (find_function_in_inferior): Update.
11007 * value.c (value_static_field, value_fn_field): Update.
11008
11009 2014-02-26 Tom Tromey <tromey@redhat.com>
11010
11011 * ada-lang.c (ada_update_initial_language): Update.
11012 (ada_main_name, ada_has_this_exception_support): Update.
11013 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11014 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11015 * arm-tdep.c (arm_skip_stub): Update.
11016 * auxv.c (ld_so_xfer_auxv): Update.
11017 * avr-tdep.c (avr_scan_prologue): Update.
11018 * ax-gdb.c (gen_var_ref): Update.
11019 * breakpoint.c (struct breakpoint_objfile_data)
11020 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11021 type to bound_minimal_symbol.
11022 (create_overlay_event_breakpoint)
11023 (create_longjmp_master_breakpoint)
11024 (create_std_terminate_master_breakpoint)
11025 (create_exception_master_breakpoint): Update.
11026 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11027 * c-exp.y (classify_name): Update.
11028 * coffread.c (coff_symfile_read): Update.
11029 * common/agent.c (agent_look_up_symbols): Update.
11030 * d-lang.c (d_main_name): Update.
11031 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11032 * dec-thread.c (enable_dec_thread): Update.
11033 * dwarf2loc.c (call_site_to_target_addr): Update.
11034 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11035 * eval.c (evaluate_subexp_standard): Update.
11036 * findvar.c (struct minsym_lookup_data) <result>: Change type
11037 to bound_minimal_symbol.
11038 <objfile>: Remove.
11039 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11040 * frame.c (inside_main_func): Update.
11041 * frv-tdep.c (frv_frame_this_id): Update.
11042 * gcore.c (call_target_sbrk): Update.
11043 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11044 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11045 Update.
11046 * go-lang.c (go_main_name): Update.
11047 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11048 (hppa_hpux_find_import_stub_for_addr): Update.
11049 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11050 Update. Change return type.
11051 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11052 type.
11053 * jit.c (jit_breakpoint_re_set_internal): Update.
11054 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11055 Update.
11056 * linux-nat.c (get_signo): Update.
11057 * linux-thread-db.c (inferior_has_bug): Update
11058 * m32c-tdep.c (m32c_return_value)
11059 (m32c_m16c_address_to_pointer): Update.
11060 * m32r-tdep.c (m32r_frame_this_id): Update.
11061 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11062 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11063 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11064 lookup_minimal_symbol. Change return type.
11065 (lookup_minimal_symbol): Remove.
11066 (lookup_bound_minimal_symbol): Update.
11067 (lookup_minimal_symbol_text): Change return type.
11068 (lookup_minimal_symbol_solib_trampoline): Change return type.
11069 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11070 (lookup_minimal_symbol_solib_trampoline): Change return type.
11071 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11072 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11073 (value_nsstring, find_imps): Update.
11074 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11075 * p-lang.c (pascal_main_name): Update.
11076 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11077 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11078 * proc-service.c (ps_pglobal_lookup): Update.
11079 * ravenscar-thread.c (get_running_thread_msymbol): Change
11080 return type.
11081 (has_ravenscar_runtime, get_running_thread_id): Update.
11082 * remote.c (remote_check_symbols): Update.
11083 * sol-thread.c (ps_pglobal_lookup): Update.
11084 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11085 * solib-dsbt.c (lm_base): Update.
11086 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11087 Update.
11088 * solib-irix.c (locate_base): Update.
11089 * solib-som.c (som_solib_create_inferior_hook)
11090 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11091 Update.
11092 * solib-spu.c (spu_enable_break): Update.
11093 * solib-svr4.c (elf_locate_base, enable_break): Update.
11094 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11095 (flush_ea_cache): Update.
11096 * stabsread.c (define_symbol): Update.
11097 * symfile.c (simple_read_overlay_table): Update.
11098 * symtab.c (find_pc_sect_line): Update.
11099 * tracepoint.c (scope_info): Update.
11100 * tui-disasm.c (tui_get_begin_asm_address): Update.
11101 * value.c (value_static_field): Update.
11102
11103 2014-02-26 Tom Tromey <tromey@redhat.com>
11104
11105 * minsyms.c (prim_record_minimal_symbol_full): Use
11106 SET_MSYMBOL_VALUE_ADDRESS.
11107 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11108 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11109 SET_MSYMBOL_VALUE_ADDRESS.
11110 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11111 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11112
11113 2014-02-26 Tom Tromey <tromey@redhat.com>
11114
11115 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11116 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11117 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11118 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11119 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11120 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11121 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11122 * ada-lang.c (ada_main_name): Update.
11123 (ada_lookup_simple_minsym): Update.
11124 (ada_make_symbol_completion_list): Update.
11125 (ada_add_standard_exceptions): Update.
11126 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11127 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11128 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11129 * arm-tdep.c (skip_prologue_function): Update.
11130 (arm_skip_stack_protector, arm_skip_stub): Update.
11131 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11132 (arm_wince_skip_main_prologue): Update.
11133 * auxv.c (ld_so_xfer_auxv): Update.
11134 * avr-tdep.c (avr_scan_prologue): Update.
11135 * ax-gdb.c (gen_var_ref): Update.
11136 * block.c (call_site_for_pc): Update.
11137 * blockframe.c (get_pc_function_start): Update.
11138 (find_pc_partial_function_gnu_ifunc): Update.
11139 * breakpoint.c (create_overlay_event_breakpoint): Update.
11140 (create_longjmp_master_breakpoint): Update.
11141 (create_std_terminate_master_breakpoint): Update.
11142 (create_exception_master_breakpoint): Update.
11143 (resolve_sal_pc): Update.
11144 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11145 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11146 Update.
11147 * c-valprint.c (c_val_print): Update.
11148 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11149 * coffread.c (coff_symfile_read): Update.
11150 * common/agent.c (agent_look_up_symbols): Update.
11151 * dbxread.c (find_stab_function_addr): Update.
11152 (end_psymtab): Update.
11153 * dwarf2loc.c (call_site_to_target_addr): Update.
11154 (func_verify_no_selftailcall): Update.
11155 (tailcall_dump): Update.
11156 (call_site_find_chain_1): Update.
11157 (dwarf_expr_reg_to_entry_parameter): Update.
11158 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11159 (elf_gnu_ifunc_resolve_by_got): Update.
11160 * f-valprint.c (info_common_command): Update.
11161 * findvar.c (read_var_value): Update.
11162 * frame.c (get_prev_frame_1): Update.
11163 (inside_main_func): Update.
11164 * frv-tdep.c (frv_skip_main_prologue): Update.
11165 (frv_frame_this_id): Update.
11166 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11167 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11168 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11169 (gnuv3_skip_trampoline): Update.
11170 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11171 (hppa64_hpux_in_solib_call_trampoline): Update.
11172 (hppa_hpux_skip_trampoline_code): Update.
11173 (hppa64_hpux_search_dummy_call_sequence): Update.
11174 (hppa_hpux_find_import_stub_for_addr): Update.
11175 (hppa_hpux_find_dummy_bpaddr): Update.
11176 * hppa-tdep.c (hppa_symbol_address)
11177 (hppa_lookup_stub_minimal_symbol): Update.
11178 * i386-tdep.c (i386_skip_main_prologue): Update.
11179 (i386_pe_skip_trampoline_code): Update.
11180 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11181 * infcall.c (get_function_name): Update.
11182 * infcmd.c (until_next_command): Update.
11183 * jit.c (jit_breakpoint_re_set_internal): Update.
11184 (jit_inferior_init): Update.
11185 * linespec.c (minsym_found): Update.
11186 (add_minsym): Update.
11187 * linux-fork.c (info_checkpoints_command): Update.
11188 * linux-nat.c (get_signo): Update.
11189 * linux-thread-db.c (inferior_has_bug): Update.
11190 * m32c-tdep.c (m32c_return_value): Update.
11191 (m32c_m16c_address_to_pointer): Update.
11192 (m32c_m16c_pointer_to_address): Update.
11193 * m32r-tdep.c (m32r_frame_this_id): Update.
11194 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11195 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11196 * maint.c (maintenance_translate_address): Update.
11197 * minsyms.c (add_minsym_to_hash_table): Update.
11198 (add_minsym_to_demangled_hash_table): Update.
11199 (msymbol_objfile): Update.
11200 (lookup_minimal_symbol): Update.
11201 (iterate_over_minimal_symbols): Update.
11202 (lookup_minimal_symbol_text): Update.
11203 (lookup_minimal_symbol_by_pc_name): Update.
11204 (lookup_minimal_symbol_solib_trampoline): Update.
11205 (lookup_minimal_symbol_by_pc_section_1): Update.
11206 (lookup_minimal_symbol_and_objfile): Update.
11207 (prim_record_minimal_symbol_full): Update.
11208 (compare_minimal_symbols): Update.
11209 (compact_minimal_symbols): Update.
11210 (build_minimal_symbol_hash_tables): Update.
11211 (install_minimal_symbols): Update.
11212 (terminate_minimal_symbol_table): Update.
11213 (find_solib_trampoline_target): Update.
11214 (minimal_symbol_upper_bound): Update.
11215 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11216 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11217 (mips_skip_pic_trampoline_code): Update.
11218 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11219 * objc-lang.c (selectors_info): Update.
11220 (classes_info): Update.
11221 (find_methods): Update.
11222 (find_imps): Update.
11223 (find_objc_msgsend): Update.
11224 * objfiles.c (objfile_relocate1): Update.
11225 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11226 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11227 * p-valprint.c (pascal_val_print): Update.
11228 * parse.c (write_exp_msymbol): Update.
11229 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11230 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11231 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11232 * printcmd.c (build_address_symbolic): Update.
11233 (sym_info): Update.
11234 (address_info): Update.
11235 * proc-service.c (ps_pglobal_lookup): Update.
11236 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11237 (find_pc_sect_psymtab): Update.
11238 * python/py-framefilter.c (py_print_frame): Update.
11239 * ravenscar-thread.c (get_running_thread_id): Update.
11240 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11241 Update.
11242 * remote.c (remote_check_symbols): Update.
11243 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11244 (rs6000_skip_trampoline_code): Update.
11245 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11246 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11247 * solib-dsbt.c (lm_base): Update.
11248 * solib-frv.c (lm_base): Update.
11249 (main_got): Update.
11250 * solib-irix.c (locate_base): Update.
11251 * solib-som.c (som_solib_create_inferior_hook): Update.
11252 (som_solib_desire_dynamic_linker_symbols): Update.
11253 (link_map_start): Update.
11254 * solib-spu.c (spu_enable_break): Update.
11255 (ocl_enable_break): Update.
11256 * solib-svr4.c (elf_locate_base): Update.
11257 (enable_break): Update.
11258 * spu-tdep.c (spu_get_overlay_table): Update.
11259 (spu_catch_start): Update.
11260 (flush_ea_cache): Update.
11261 * stabsread.c (define_symbol): Update.
11262 (scan_file_globals): Update.
11263 * stack.c (find_frame_funname): Update.
11264 (frame_info): Update.
11265 * symfile.c (simple_read_overlay_table): Update.
11266 (simple_overlay_update): Update.
11267 * symmisc.c (dump_msymbols): Update.
11268 * symtab.c (fixup_section): Update.
11269 (find_pc_sect_line): Update.
11270 (skip_prologue_sal): Update.
11271 (search_symbols): Update.
11272 (print_msymbol_info): Update.
11273 (rbreak_command): Update.
11274 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11275 (completion_list_objc_symbol): Update.
11276 (default_make_symbol_completion_list_break_on): Update.
11277 * tracepoint.c (scope_info): Update.
11278 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11279 (tui_get_begin_asm_address): Update.
11280 * valops.c (find_function_in_inferior): Update.
11281 * value.c (value_static_field): Update.
11282 (value_fn_field): Update.
11283
11284 2014-02-26 Tom Tromey <tromey@redhat.com>
11285
11286 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11287 bound minimal symbols. Move code that knows about minsym
11288 table layout...
11289 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11290 function.
11291 * minsyms.h (minimal_symbol_upper_bound): Declare.
11292 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11293 minimal_symbol_upper_bound.
11294
11295 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11296
11297 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11298 Use the type's name if its basic type does not have a tag.
11299
11300 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11301
11302 * dwarf2read.c (read_subrange_type): Add comment.
11303
11304 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11305
11306 * dwarf2read.c (update_enumeration_type_from_children): New
11307 function, mostly extracted from process_structure_scope.
11308 (read_enumeration_type): Call update_enumeration_type_from_children.
11309 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11310 and flag_flag_enum fields.
11311
11312 2014-02-26 Pedro Alves <palves@redhat.com>
11313
11314 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11315 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11316 to_xfer_partial method.
11317
11318 2014-02-26 Pedro Alves <palves@redhat.com>
11319
11320 * target.c (complete_target_initialization): Don't install
11321 default_xfer_partial as to_xfer_partial hook.
11322 (nomemory): Delete.
11323 (update_current_target): Don't INHERIT nor de_fault
11324 deprecated_xfer_memory. Delete de_fault macro.
11325 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11326 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11327 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11328 field.
11329
11330 2014-02-26 Pedro Alves <palves@redhat.com>
11331
11332 * go32-nat.c (my_write_child): New function.
11333 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11334 (go32_xfer_partial): New function.
11335 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11336 Instead install a to_xfer_partial hook.
11337
11338 2014-02-26 Pedro Alves <palves@redhat.com>
11339
11340 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11341 to_xfer_partial helper. Rewrite.
11342 (procfs_xfer_partial): New function.
11343 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11344 Install a to_xfer_partial hook.
11345
11346 2014-02-26 Pedro Alves <palves@redhat.com>
11347
11348 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11349 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11350 (m32r_xfer_partial): New function.
11351 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11352 Install a to_xfer_partial hook.
11353
11354 2014-02-26 Pedro Alves <palves@redhat.com>
11355
11356 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11357 helper.
11358 (mips_xfer_partial): New function.
11359 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11360 hook. Install a to_xfer_partial hook.
11361
11362 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11363
11364 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11365 * gdbtypes.c (create_array_type_with_stride): New function,
11366 renaming create_array_type, but with an added parameter
11367 called "bit_stride".
11368 (create_array_type): Re-implement using
11369 create_array_type_with_stride.
11370 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11371 and DW_AT_bit_stride attributes.
11372
11373 2014-02-26 Pedro Alves <palves@redhat.com>
11374
11375 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11376 task-specific breakpoints.
11377
11378 2014-02-25 Pedro Alves <palves@redhat.com>
11379
11380 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11381 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11382
11383 2014-02-25 Stan Shebs <stan@codesourcery.com>
11384
11385 * defs.h: Annotate comments for Doxygen.
11386
11387 2014-02-25 Tom Tromey <tromey@redhat.com>
11388
11389 * target.h (target_ignore): Don't declare.
11390 * target.c (target_ignore): Remove.
11391
11392 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11393
11394 PR gdb/16626
11395 * auto-load.c (auto_load_objfile_script_1): Change filename to
11396 debugfile.
11397
11398 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11399
11400 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11401 documentation. Adjust prototype to match the target_ops
11402 to_xfer_partial method. Adjust implementation accordingly.
11403
11404 2014-02-25 Hui Zhu <hui@codesourcery.com>
11405
11406 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11407 to_traceframe_info.
11408
11409 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11410
11411 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11412 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11413 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11414 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11415 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11416 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11417 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11418 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11419 New constants.
11420 (rl78_register_type): Use a data pointer type for SP and
11421 new pseudo registers mentioned above. Use a 16 bit integer
11422 type for all other register pairs.
11423 (rl78_register_name, rl78_g10_register_name): Update for
11424 new pseudo registers.
11425 (rl78_pseudo_register_read): Likewise.
11426 (rl78_pseudo_register_write): Likewise.
11427 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11428 to the newly added pseudo registers.
11429
11430 2014-02-24 Doug Evans <dje@google.com>
11431
11432 * value.c (record_latest_value): Fix comment.
11433 * printcmd.c (print_command_1): Remove code to handle -1 return from
11434 record_latest_value.
11435
11436 2014-02-24 Pedro Alves <palves@redhat.com>
11437
11438 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11439 deprecated_xfer_memory hook.
11440 (procfs_xfer_partial): Call procfs_xfer_memory instead
11441 of the deprecated_xfer_memory target hook.
11442 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11443 helper.
11444
11445 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11446
11447 * windows-nat.c (windows_xfer_shared_libraries): Return
11448 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11449 requested object is TARGET_OBJECT_LIBRARIES.
11450
11451 2014-02-24 Yao Qi <yao@codesourcery.com>
11452
11453 * target.h (enum target_xfer_status)
11454 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11455 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11456 explicitly. New.
11457 * corefile.c (memory_error_message): User updated.
11458 * exec.c (section_table_read_available_memory): Likewise.
11459 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11460 * target.c (target_xfer_status_to_string): Likewise.
11461 (raw_memory_xfer_partial): Likewise.
11462 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11463 * valops.c (read_value_memory): Likewise.
11464 * exec.h: Update comments.
11465
11466 2014-02-24 Yao Qi <yao@codesourcery.com>
11467
11468 * target.c (target_xfer_status_to_string): Rename argument err
11469 to status.
11470 * target.h (target_xfer_status_to_string): Update declaration.
11471 Replace target_xfer_error_to_string with
11472 target_xfer_status_to_string in comment.
11473
11474 2014-02-24 Yao Qi <yao@codesourcery.com>
11475
11476 * mips-linux-nat.c (super_close): Update its type.
11477 (mips_linux_close): Pass 'self' to super_close.
11478
11479 2014-02-24 Yao Qi <yao@codesourcery.com>
11480
11481 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11482 * corefile.c (read_memory): Adjusted.
11483 * target.c (target_write_with_progress): Adjusted.
11484
11485 2014-02-23 Yao Qi <yao@codesourcery.com>
11486
11487 Revert two patches:
11488
11489 2013-10-25 Yao Qi <yao@codesourcery.com>
11490
11491 * remote.c (remote_traceframe_info): Return early if
11492 traceframe is not selected.
11493
11494 2013-07-19 Yao Qi <yao@codesourcery.com>
11495
11496 * target.c (update_current_target): Change the default action
11497 of 'to_traceframe_info' from tcomplain to return_zero.
11498 * target.h (struct target_ops) <to_traceframe_info>: Add more
11499 comments.
11500
11501 2014-02-23 Yao Qi <yao@codesourcery.com>
11502
11503 * valops.c (read_value_memory): Rewrite it. Call
11504 target_xfer_partial in a loop.
11505 * exec.h (section_table_available_memory): Remove declaration.
11506 Move comments to ...
11507 * exec.c (section_table_available_memory): ... here. Make it
11508 static.
11509
11510 2014-02-23 Yao Qi <yao@codesourcery.com>
11511
11512 * exec.c (section_table_read_available_memory): New function.
11513 * exec.h (section_table_read_available_memory): Declare.
11514 * ctf.c (ctf_xfer_partial): Call
11515 section_table_read_available_memory.
11516 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11517
11518 2014-02-23 Yao Qi <yao@codesourcery.com>
11519
11520 * ctf.c (ctf_xfer_partial): Move code to ...
11521 * exec.c (exec_read_partial_read_only): ... it. New function.
11522 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11523 * tracefile.c: Include "exec.h".
11524 * exec.h (exec_read_partial_read_only): Declare.
11525
11526 2014-02-23 Yao Qi <yao@codesourcery.com>
11527
11528 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11529 (tfile_has_memory): Remove.
11530 (init_tfile_ops): Don't set fields to_has_all_memory and
11531 to_has_memory of tfile_ops.
11532 * tracefile.c (tracefile_has_all_memory): New function.
11533 (tracefile_has_memory): New function.
11534 (init_tracefile_ops): Initialize fields to_has_all_memory and
11535 to_has_memory of 'ops'.
11536
11537 2014-02-23 Yao Qi <yao@codesourcery.com>
11538
11539 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11540 (ctf_thread_alive, ctf_get_trace_status): Remove.
11541 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11542 init_tracefile_ops.
11543 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11544 (tfile_has_stack, tfile_has_registers): Remove.
11545 (tfile_thread_alive): Remove.
11546 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11547 init_tracefile_ops.
11548 * tracefile.c (tracefile_has_stack): New function.
11549 (tracefile_has_registers): New function.
11550 (tracefile_thread_alive): New function.
11551 (tracefile_get_trace_status): New function.
11552 (init_tracefile_ops): New function.
11553 * tracefile.h (init_tracefile_ops): Declare.
11554
11555 2014-02-23 Yao Qi <yao@codesourcery.com>
11556
11557 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11558 (O_LARGEFILE): Likewise.
11559 (tfile_ops): Likewise.
11560 (TRACE_HEADER_SIZE): Likewise.
11561 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11562 (cur_data_size): Likewise.
11563 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11564 (tfile_close, tfile_files_info): Likewise.
11565 (tfile_get_trace_status): Likewise.
11566 (tfile_get_tracepoint_status): Likewise.
11567 (tfile_get_traceframe_address): Likewise.
11568 (tfile_trace_find, match_blocktype): Likewise.
11569 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11570 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11571 (tfile_get_trace_state_variable_value): Likewise.
11572 (tfile_has_all_memory, tfile_has_memory): Likewise.
11573 (tfile_has_stack, tfile_has_registers): Likewise.
11574 (tfile_thread_alive, build_traceframe_info): Likewise.
11575 (tfile_traceframe_info, init_tfile_ops): Likewise.
11576 (_initialize_tracepoint): Don't call init_tfile_ops
11577 and add_target_with_completer.
11578 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11579 exec.h, completer.h and filenames.h.
11580 (_initialize_tracefile_tfile): New function.
11581
11582 2014-02-23 Yao Qi <yao@codesourcery.com>
11583
11584 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11585 tracefile-tfile.o.
11586 (HFILES_NO_SRCDIR): Add tracefile.h.
11587 * ctf.c: Include "tracefile.h".
11588 * tracefile.h: New file.
11589 * tracefile.c: New file
11590 * tracefile-tfile.c: New file.
11591 * tracepoint.c: Include "tracefile.h".
11592 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11593 (stop_reason_names): Add const.
11594 (trace_file_writer_xfree): Move it to tracefile.c.
11595 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11596 (trace_save_ctf): Likewise.
11597 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11598 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11599 (tfile_write_header, tfile_write_regblock_type): Likewise.
11600 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11601 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11602 (tfile_write_raw_data, tfile_end): Likewise.
11603 (tfile_trace_file_writer_new): Likewise.
11604 (free_uploaded_tp): Make it extern.
11605 (free_uploaded_tsv): Make it extern.
11606 (_initialize_tracepoint): Move code to register command 'tsave'
11607 to tracefile.c.
11608 * tracepoint.h (stop_reason_names): Declare.
11609 (struct trace_frame_write_ops): Move it to tracefile.h.
11610 (struct trace_file_write_ops): Likewise.
11611 (struct trace_file_writer): Likewise.
11612 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11613
11614 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11615
11616 PR gdb/16594
11617 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11618 process name.
11619 (get_cores_used_by_process): New parameter num_cores, use it.
11620 (linux_xfer_osdata_processes): Pass num_cores to it.
11621 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11622 process name.
11623
11624 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11625
11626 * target.c (memory_xfer_partial): Fix length arg in call to
11627 breakpoint_xfer_memory.
11628
11629 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11630
11631 PR tdep/16397
11632 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11633 number comes after the + or - signs. Adjust length of register
11634 name to be extracted.
11635
11636 2014-02-20 Tom Tromey <tromey@redhat.com>
11637
11638 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11639 (ada_varobj_ops): Mark "extern".
11640
11641 2014-02-20 Tom Tromey <tromey@redhat.com>
11642
11643 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11644
11645 2014-02-20 Doug Evans <xdje42@gmail.com>
11646
11647 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11648 All callers updated.
11649 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11650 All callers updated.
11651 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11652 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11653
11654 2014-02-20 lin zuojian <manjian2006@gmail.com>
11655 Joel Brobecker <brobecker@adacore.com>
11656 Doug Evans <xdje42@gmail.com>
11657
11658 PR symtab/16581
11659 * dwarf2read.c (struct die_info): New member in_process.
11660 (reset_die_in_process): New function.
11661 (process_die): Set it at the start, reset when returning.
11662 (inherit_abstract_dies): Only call process_die if origin_child_die
11663 not already being processed.
11664
11665 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11666
11667 * windows-nat.c (handle_unload_dll): Add function documentation.
11668 (do_initial_windows_stuff): Add comment explaining why we wait
11669 until after inferior initialization has finished before
11670 processing all DLLs.
11671
11672 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11673
11674 * windows-nat.c (get_module_name): Delete.
11675 (windows_get_exec_module_filename): New function, mostly
11676 inspired from get_module_name.
11677 (windows_pid_to_exec_file): Replace call to get_module_name
11678 by call to windows_get_exec_module_filename.
11679
11680 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11681
11682 * windows-nat.c (handle_load_dll): Rewrite this function's
11683 introductory comment. Remove code using get_module_name
11684 to get the DLL's name.
11685
11686 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11687
11688 * windows-nat.c (get_windows_debug_event): Ignore
11689 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11690 if windows_initialization_done == 0.
11691 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11692 Adjust implementation to always load all DLLs.
11693 (do_initial_windows_stuff): Replace call to
11694 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11695
11696 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11697
11698 * windows-nat.c (_initialize_windows_nat): Deprecate the
11699 "dll-symbols" command. Turn the "add-shared-symbol-files"
11700 and "assf" aliases into commands, and deprecate them as well.
11701 * NEWS: Add entry explaining that "dll-symbols" and its two
11702 aliases are now deprecated.
11703
11704 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11705
11706 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11707 new-line in debug string. Remove trailing spaces.
11708
11709 2014-02-19 Stan Shebs <stan@codesourcery.com>
11710
11711 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11712
11713 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11714
11715 * NEWS: Add entry for the new feature
11716 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11717 and class values.
11718
11719 2014-02-19 Stan Shebs <stan@codesourcery.com>
11720
11721 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11722
11723 2014-02-19 Pedro Alves <palves@redhat.com>
11724
11725 * common/ptid.h (struct ptid): Mention that process_stratum
11726 targets should prefer ptid.lwp.
11727
11728 2014-02-19 Pedro Alves <palves@redhat.com>
11729
11730 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11731 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11732 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11733 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11734 store remote thread ids rather than ptid.tid.
11735 (_initialize_remote): Adjust.
11736
11737 2014-02-19 Tom Tromey <tromey@redhat.com>
11738
11739 * target.c (target_get_unwinder): Rewrite.
11740 (target_get_tailcall_unwinder): Rewrite.
11741 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11742 (record_btrace_to_get_tailcall_unwinder): New function.
11743 (init_record_btrace_ops): Update.
11744 * target.h (struct target_ops) <to_get_unwinder,
11745 to_get_tailcall_unwinder>: Now function pointers. Use
11746 TARGET_DEFAULT_RETURN.
11747
11748 2014-02-19 Tom Tromey <tromey@redhat.com>
11749
11750 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11751 argument.
11752 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11753
11754 2014-02-19 Tom Tromey <tromey@redhat.com>
11755
11756 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11757 directly.
11758 * target-delegates.c: Rebuild.
11759 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11760 TARGET_DEFAULT_FUNC.
11761 * target.c (default_target_decr_pc_after_break): Rename from
11762 forward_target_decr_pc_after_break. Simplify.
11763 (target_decr_pc_after_break): Rely on delegation.
11764
11765 2014-02-19 Tom Tromey <tromey@redhat.com>
11766
11767 * target.c (update_current_target): Do not INHERIT to_doc or
11768 to_magic. Do not de_fault to_open or to_close.
11769
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * gcore.h (objfile_find_memory_regions): Declare.
11773 * gcore.c (objfile_find_memory_regions): No longer static. Add
11774 "self" argument.
11775 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11776 * exec.c: Include gcore.h.
11777 (exec_set_find_memory_regions): Remove.
11778 (exec_find_memory_regions): Remove.
11779 (exec_do_find_memory_regions): Remove.
11780 (init_exec_ops): Update.
11781 * defs.h (exec_set_find_memory_regions): Remove.
11782
11783 2014-02-19 Tom Tromey <tromey@redhat.com>
11784
11785 * target-delegates.c: Rebuild.
11786 * target.h (struct target_ops) <to_extra_thread_info,
11787 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11788 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11789 not 0, in TARGET_DEFAULT_RETURN.
11790
11791 2014-02-19 Tom Tromey <tromey@redhat.com>
11792
11793 * target.c (complete_target_initialization): Remove casts. Use
11794 return_zero_has_execution.
11795 (return_zero): Add "ignore" argument.
11796 (return_zero_has_execution): New function.
11797 (init_dummy_target): Remove casts. Use
11798 return_zero_has_execution.
11799
11800 2014-02-19 Tom Tromey <tromey@redhat.com>
11801
11802 * target.c (update_current_target): Update comments. Do not
11803 INHERIT to_stratum.
11804
11805 2014-02-19 Tom Tromey <tromey@redhat.com>
11806
11807 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11808 needed.
11809 * corelow.c (core_read_description): Delegate when needed.
11810 * remote.c (remote_read_description): Delegate when needed.
11811 * target-delegates.c: Rebuild.
11812 * target.c (target_read_description): Rewrite.
11813 * target.h (struct target_ops) <to_read_description>: Update
11814 comment. Use TARGET_DEFAULT_RETURN.
11815
11816 2014-02-19 Tom Tromey <tromey@redhat.com>
11817
11818 * target-delegates.c: Rebuild.
11819 * target.c (update_current_target): Don't inherit or default
11820 to_can_run.
11821 (find_default_run_target): Check against delegate_can_run.
11822 * target.h (struct target_ops) <to_can_run>: 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_disconnect): Unconditionally delegate.
11829 * target.h (struct target_ops) <to_disconnect>: Use
11830 TARGET_DEFAULT_NORETURN.
11831
11832 2014-02-19 Tom Tromey <tromey@redhat.com>
11833
11834 * record.c (record_stop): Unconditionally delegate.
11835 * target-delegates.c: Rebuild.
11836 * target.c (target_stop_recording): Unconditionally delegate.
11837 * target.h (struct target_ops) <to_stop_recording>: Use
11838 TARGET_DEFAULT_IGNORE.
11839
11840 2014-02-19 Tom Tromey <tromey@redhat.com>
11841
11842 * target-delegates.c: Rebuild.
11843 * target.c (target_enable_btrace): Unconditionally delegate.
11844 * target.h (struct target_ops) <to_enable_btrace>: Use
11845 TARGET_DEFAULT_NORETURN.
11846
11847 2014-02-19 Tom Tromey <tromey@redhat.com>
11848
11849 * target-delegates.c: Rebuild.
11850 * target.c (target_read_btrace): Unconditionally delegate.
11851 * target.h (struct target_ops) <to_read_btrace>: Use
11852 TARGET_DEFAULT_NORETURN.
11853
11854 2014-02-19 Tom Tromey <tromey@redhat.com>
11855
11856 * target-delegates.c: Rebuild.
11857 * target.c (target_teardown_btrace): Unconditionally delegate.
11858 * target.h (struct target_ops) <to_teardown_btrace>: Use
11859 TARGET_DEFAULT_NORETURN.
11860
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11862
11863 * target-delegates.c: Rebuild.
11864 * target.c (target_disable_btrace): Unconditionally delegate.
11865 * target.h (struct target_ops) <to_disable_btrace>: Use
11866 TARGET_DEFAULT_NORETURN.
11867
11868 2014-02-19 Tom Tromey <tromey@redhat.com>
11869
11870 * target-delegates.c: Rebuild.
11871 * target.c (default_search_memory): New function.
11872 (simple_search_memory): Update comment.
11873 (target_search_memory): Unconditionally delegate.
11874 * target.h (struct target_ops) <to_search_memory>: Use
11875 TARGET_DEFAULT_FUNC.
11876
11877 2014-02-19 Tom Tromey <tromey@redhat.com>
11878
11879 * auxv.c (default_auxv_parse): No longer static.
11880 (target_auxv_parse): Unconditionally delegate.
11881 * auxv.h (default_auxv_parse): Declare.
11882 * target-delegates.c: Rebuild.
11883 * target.c: Include auxv.h.
11884 * target.h (struct target_ops) <to_auxv_parse>: Use
11885 TARGET_DEFAULT_FUNC.
11886
11887 2014-02-19 Tom Tromey <tromey@redhat.com>
11888
11889 * target-delegates.c: Rebuild.
11890 * target.c (target_memory_map): Unconditionally delegate.
11891 * target.h (struct target_ops) <to_memory_map>: Use
11892 TARGET_DEFAULT_RETURN.
11893
11894 2014-02-19 Tom Tromey <tromey@redhat.com>
11895
11896 * target-delegates.c: Rebuild.
11897 * target.c (target_thread_alive): Unconditionally delegate.
11898 * target.h (struct target_ops) <to_thread_alive>: Use
11899 TARGET_DEFAULT_RETURN.
11900
11901 2014-02-19 Tom Tromey <tromey@redhat.com>
11902
11903 * target-delegates.c: Rebuild.
11904 * target.c (target_save_record): Unconditionally delegate.
11905 * target.h (struct target_ops) <to_save_record>: Use
11906 TARGET_DEFAULT_NORETURN.
11907
11908 2014-02-19 Tom Tromey <tromey@redhat.com>
11909
11910 * target-delegates.c: Rebuild.
11911 * target.c (target_delete_record): Unconditionally delegate.
11912 * target.h (struct target_ops) <to_delete_record>: Use
11913 TARGET_DEFAULT_NORETURN.
11914
11915 2014-02-19 Tom Tromey <tromey@redhat.com>
11916
11917 * target-delegates.c: Rebuild.
11918 * target.c (target_record_is_replaying): Unconditionally
11919 delegate.
11920 * target.h (struct target_ops) <to_record_is_replaying>: 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_goto_record_begin): Unconditionally delegate.
11927 * target.h (struct target_ops) <to_goto_record_begin>: Use
11928 TARGET_DEFAULT_NORETURN.
11929
11930 2014-02-19 Tom Tromey <tromey@redhat.com>
11931
11932 * target-delegates.c: Rebuild.
11933 * target.c (target_goto_record_end): Unconditionally delegate.
11934 * target.h (struct target_ops) <to_goto_record_end>: Use
11935 TARGET_DEFAULT_NORETURN.
11936
11937 2014-02-19 Tom Tromey <tromey@redhat.com>
11938
11939 * target-delegates.c: Rebuild.
11940 * target.c (target_goto_record): Unconditionally delegate.
11941 * target.h (struct target_ops) <to_goto_record>: Use
11942 TARGET_DEFAULT_NORETURN.
11943
11944 2014-02-19 Tom Tromey <tromey@redhat.com>
11945
11946 * target-delegates.c: Rebuild.
11947 * target.c (target_insn_history): Unconditionally delegate.
11948 * target.h (struct target_ops) <to_insn_history>: Use
11949 TARGET_DEFAULT_NORETURN.
11950
11951 2014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * target-delegates.c: Rebuild.
11954 * target.c (target_insn_history_from): Unconditionally delegate.
11955 * target.h (struct target_ops) <to_insn_history_from>: Use
11956 TARGET_DEFAULT_NORETURN.
11957
11958 2014-02-19 Tom Tromey <tromey@redhat.com>
11959
11960 * target-delegates.c: Rebuild.
11961 * target.c (target_insn_history_range): Unconditionally delegate.
11962 * target.h (struct target_ops) <to_insn_history_range>: Use
11963 TARGET_DEFAULT_NORETURN.
11964
11965 2014-02-19 Tom Tromey <tromey@redhat.com>
11966
11967 * target-delegates.c: Rebuild.
11968 * target.c (target_call_history): Unconditionally delegate.
11969 * target.h (struct target_ops) <to_call_history>: Use
11970 TARGET_DEFAULT_NORETURN.
11971
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11973
11974 * target-delegates.c: Rebuild.
11975 * target.c (target_call_history_from): Unconditionally delegate.
11976 * target.h (struct target_ops) <to_call_history_from>: Use
11977 TARGET_DEFAULT_NORETURN.
11978
11979 2014-02-19 Tom Tromey <tromey@redhat.com>
11980
11981 * target-delegates.c: Rebuild.
11982 * target.c (target_call_history_range): Unconditionally delegate.
11983 * target.h (struct target_ops) <to_call_history_range>: Use
11984 TARGET_DEFAULT_NORETURN.
11985
11986 2014-02-19 Tom Tromey <tromey@redhat.com>
11987
11988 * target-delegates.c: Rebuild.
11989 * target.c (target_verify_memory): Unconditionally delegate.
11990 * target.h (struct target_ops) <to_verify_memory>: Use
11991 TARGET_DEFAULT_NORETURN.
11992
11993 2014-02-19 Tom Tromey <tromey@redhat.com>
11994
11995 * target-delegates.c: Rebuild.
11996 * target.c (target_core_of_thread): Unconditionally delegate.
11997 * target.h (struct target_ops) <to_core_of_thread>: 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_flash_done): Unconditionally delegate.
12004 * target.h (struct target_ops) <to_flash_done>: Use
12005 TARGET_DEFAULT_NORETURN.
12006
12007 2014-02-19 Tom Tromey <tromey@redhat.com>
12008
12009 * target-delegates.c: Rebuild.
12010 * target.c (target_flash_erase): Unconditionally delegate.
12011 * target.h (struct target_ops) <to_flash_erase>: Use
12012 TARGET_DEFAULT_NORETURN.
12013
12014 2014-02-19 Tom Tromey <tromey@redhat.com>
12015
12016 * target-delegates.c: Rebuild.
12017 * target.c (target_get_section_table): Unconditionally delegate.
12018 * target.h (struct target_ops) <to_get_section_table>: Use
12019 TARGET_DEFAULT_RETURN.
12020
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12022
12023 * target-delegates.c: Rebuild.
12024 * target.c (target_pid_to_str): Unconditionally delegate.
12025 (init_dummy_target): Don't initialize to_pid_to_str.
12026 (default_pid_to_str): Rename from dummy_pid_to_str.
12027 * target.h (struct target_ops) <to_pid_to_str>: Use
12028 TARGET_DEFAULT_FUNC.
12029
12030 2014-02-19 Tom Tromey <tromey@redhat.com>
12031
12032 * target-delegates.c: Rebuild.
12033 * target.c (target_find_new_threads): Unconditionally delegate.
12034 * target.h (struct target_ops) <to_find_new_threads>: Use
12035 TARGET_DEFAULT_RETURN.
12036
12037 2014-02-19 Tom Tromey <tromey@redhat.com>
12038
12039 * target-delegates.c: Rebuild.
12040 * target.c (target_program_signals): Unconditionally delegate.
12041 * target.h (struct target_ops) <to_program_signals>: Use
12042 TARGET_DEFAULT_IGNORE.
12043
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12045
12046 * target-delegates.c: Rebuild.
12047 * target.c (target_pass_signals): Unconditionally delegate.
12048 * target.h (struct target_ops) <to_pass_signals>: Use
12049 TARGET_DEFAULT_IGNORE.
12050
12051 2014-02-19 Tom Tromey <tromey@redhat.com>
12052
12053 * target-delegates.c: Rebuild.
12054 * target.c (default_mourn_inferior): New function.
12055 (target_mourn_inferior): Unconditionally delegate.
12056 * target.h (struct target_ops) <to_mourn_inferior>: Use
12057 TARGET_DEFAULT_FUNC.
12058
12059 2014-02-19 Tom Tromey <tromey@redhat.com>
12060
12061 * target-delegates.c: Rebuild.
12062 * target.c (default_follow_fork): New function.
12063 (target_follow_fork): Unconditionally delegate.
12064 * target.h (struct target_ops) <to_follow_fork>: Use
12065 TARGET_DEFAULT_FUNC.
12066
12067 2014-02-19 Tom Tromey <tromey@redhat.com>
12068
12069 * target-delegates.c: Rebuild.
12070 * target.c (target_kill): Unconditionally delegate.
12071 * target.h (struct target_ops) <to_kill>: Use
12072 TARGET_DEFAULT_NORETURN.
12073
12074 2014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target-delegates.c: Rebuild.
12077 * target.c (target_masked_watch_num_registers): Unconditionally
12078 delegate.
12079 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12080 Use TARGET_DEFAULT_RETURN.
12081
12082 2014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target-delegates.c: Rebuild.
12085 * target.c (target_remove_mask_watchpoint): Unconditionally
12086 delegate.
12087 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12088 TARGET_DEFAULT_RETURN.
12089
12090 2014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * target-delegates.c: Rebuild.
12093 * target.c (target_insert_mask_watchpoint): Unconditionally
12094 delegate.
12095 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12096 TARGET_DEFAULT_RETURN.
12097
12098 2014-02-19 Tom Tromey <tromey@redhat.com>
12099
12100 * target-delegates.c: Rebuild.
12101 * target.c (target_ranged_break_num_registers): Unconditionally
12102 delegate.
12103 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12104 Use TARGET_DEFAULT_RETURN.
12105
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target-delegates.c: Rebuild.
12109 * target.c (target_fetch_registers): Unconditionally delegate.
12110 * target.h (struct target_ops) <to_fetch_registers>: Use
12111 TARGET_DEFAULT_NORETURN.
12112
12113 2014-02-19 Tom Tromey <tromey@redhat.com>
12114
12115 * target-delegates.c: Rebuild.
12116 * target.c (update_current_target): Don't inherit or default
12117 to_stop.
12118 * target.h (struct target_ops) <to_stop>: Use
12119 TARGET_DEFAULT_IGNORE.
12120
12121 2014-02-19 Tom Tromey <tromey@redhat.com>
12122
12123 * target-delegates.c: Rebuild.
12124 * target.c (update_current_target): Don't inherit or default
12125 to_can_run_breakpoint_commands.
12126 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12127 Use TARGET_DEFAULT_RETURN.
12128
12129 2014-02-19 Tom Tromey <tromey@redhat.com>
12130
12131 * target-delegates.c: Rebuild.
12132 * target.c (update_current_target): Don't inherit or default
12133 to_supports_evaluation_of_breakpoint_conditions.
12134 * target.h (struct target_ops)
12135 <to_supports_evaluation_of_breakpoint_conditions>: Use
12136 TARGET_DEFAULT_RETURN.
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_augmented_libraries_svr4_read.
12143 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12144 Use TARGET_DEFAULT_RETURN.
12145
12146 2014-02-19 Tom Tromey <tromey@redhat.com>
12147
12148 * target-delegates.c: Rebuild.
12149 * target.c (update_current_target): Don't inherit or default
12150 to_can_use_agent.
12151 * target.h (struct target_ops) <to_can_use_agent>: Use
12152 TARGET_DEFAULT_RETURN.
12153
12154 2014-02-19 Tom Tromey <tromey@redhat.com>
12155
12156 * target-delegates.c: Rebuild.
12157 * target.c (update_current_target): Don't inherit or default
12158 to_use_agent.
12159 * target.h (struct target_ops) <to_use_agent>: Use
12160 TARGET_DEFAULT_NORETURN.
12161
12162 2014-02-19 Tom Tromey <tromey@redhat.com>
12163
12164 * target-delegates.c: Rebuild.
12165 * target.c (update_current_target): Don't inherit or default
12166 to_traceframe_info.
12167 (return_null): Remove.
12168 * target.h (struct target_ops) <to_traceframe_info>: 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_static_tracepoint_markers_by_strid.
12176 * target.h (struct target_ops)
12177 <to_static_tracepoint_markers_by_strid>: Use
12178 TARGET_DEFAULT_NORETURN.
12179
12180 2014-02-19 Tom Tromey <tromey@redhat.com>
12181
12182 * target-delegates.c: Rebuild.
12183 * target.c (update_current_target): Don't inherit or default
12184 to_static_tracepoint_marker_at.
12185 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12186 Use TARGET_DEFAULT_RETURN.
12187
12188 2014-02-19 Tom Tromey <tromey@redhat.com>
12189
12190 * target-delegates.c: Rebuild.
12191 * target.c (update_current_target): Don't inherit or default
12192 to_set_permissions.
12193 * target.h (struct target_ops) <to_set_permissions>: Use
12194 TARGET_DEFAULT_IGNORE.
12195
12196 2014-02-19 Tom Tromey <tromey@redhat.com>
12197
12198 * target-delegates.c: Rebuild.
12199 * target.c (update_current_target): Don't inherit or default
12200 to_get_tib_address.
12201 * target.h (struct target_ops) <to_get_tib_address>: Use
12202 TARGET_DEFAULT_NORETURN.
12203
12204 2014-02-19 Tom Tromey <tromey@redhat.com>
12205
12206 * target-delegates.c: Rebuild.
12207 * target.c (update_current_target): Don't inherit or default
12208 to_set_trace_notes.
12209 * target.h (struct target_ops) <to_set_trace_notes>: Use
12210 TARGET_DEFAULT_RETURN.
12211
12212 2014-02-19 Tom Tromey <tromey@redhat.com>
12213
12214 * target-delegates.c: Rebuild.
12215 * target.c (update_current_target): Don't initialize
12216 to_set_trace_buffer_size.
12217 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12218 TARGET_DEFAULT_IGNORE.
12219
12220 2014-02-19 Tom Tromey <tromey@redhat.com>
12221
12222 * target-delegates.c: Rebuild.
12223 * target.c (update_current_target): Don't inherit or default
12224 to_set_circular_trace_buffer.
12225 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12226 TARGET_DEFAULT_IGNORE.
12227
12228 2014-02-19 Tom Tromey <tromey@redhat.com>
12229
12230 * target-delegates.c: Rebuild.
12231 * target.c (update_current_target): Don't inherit or default
12232 to_set_disconnected_tracing.
12233 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12234 TARGET_DEFAULT_IGNORE.
12235
12236 2014-02-19 Tom Tromey <tromey@redhat.com>
12237
12238 * target-delegates.c: Rebuild.
12239 * target.c (update_current_target): Don't inherit or default
12240 to_get_min_fast_tracepoint_insn_len.
12241 (return_minus_one): Remove.
12242 * target.h (struct target_ops)
12243 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12244
12245 2014-02-19 Tom Tromey <tromey@redhat.com>
12246
12247 * target-delegates.c: Rebuild.
12248 * target.c (update_current_target): Don't inherit or default
12249 to_get_raw_trace_data.
12250 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12251 TARGET_DEFAULT_NORETURN.
12252
12253 2014-02-19 Tom Tromey <tromey@redhat.com>
12254
12255 * target-delegates.c: Rebuild.
12256 * target.c (update_current_target): Don't inherit or default
12257 to_upload_trace_state_variables.
12258 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12259 Use TARGET_DEFAULT_RETURN.
12260
12261 2014-02-19 Tom Tromey <tromey@redhat.com>
12262
12263 * target-delegates.c: Rebuild.
12264 * target.c (update_current_target): Don't inherit or default
12265 to_upload_tracepoints.
12266 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12267 TARGET_DEFAULT_RETURN.
12268
12269 2014-02-19 Tom Tromey <tromey@redhat.com>
12270
12271 * target-delegates.c: Rebuild.
12272 * target.c (update_current_target): Don't inherit or default
12273 to_save_trace_data.
12274 * target.h (struct target_ops) <to_save_trace_data>: Use
12275 TARGET_DEFAULT_NORETURN.
12276
12277 2014-02-19 Tom Tromey <tromey@redhat.com>
12278
12279 * target-delegates.c: Rebuild.
12280 * target.c (update_current_target): Don't inherit or default
12281 to_get_trace_state_variable_value.
12282 * target.h (struct target_ops)
12283 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12284
12285 2014-02-19 Tom Tromey <tromey@redhat.com>
12286
12287 * target-delegates.c: Rebuild.
12288 * target.c (update_current_target): Don't inherit or default
12289 to_trace_find.
12290 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12291
12292 2014-02-19 Tom Tromey <tromey@redhat.com>
12293
12294 * target-delegates.c: Rebuild.
12295 * target.c (update_current_target): Don't inherit or default
12296 to_trace_stop.
12297 * target.h (struct target_ops) <to_trace_stop>: Use
12298 TARGET_DEFAULT_NORETURN.
12299
12300 2014-02-19 Tom Tromey <tromey@redhat.com>
12301
12302 * target-delegates.c: Rebuild.
12303 * target.c (update_current_target): Don't inherit or default
12304 to_get_tracepoint_status.
12305 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12306 TARGET_DEFAULT_NORETURN.
12307
12308 2014-02-19 Tom Tromey <tromey@redhat.com>
12309
12310 * target-delegates.c: Rebuild.
12311 * target.c (update_current_target): Don't inherit or default
12312 to_get_trace_status.
12313 * target.h (struct target_ops) <to_get_trace_status>: Use
12314 TARGET_DEFAULT_RETURN.
12315
12316 2014-02-19 Tom Tromey <tromey@redhat.com>
12317
12318 * target-delegates.c: Rebuild.
12319 * target.c (update_current_target): Don't inherit or default
12320 to_trace_start.
12321 * target.h (struct target_ops) <to_trace_start>: Use
12322 TARGET_DEFAULT_NORETURN.
12323
12324 2014-02-19 Tom Tromey <tromey@redhat.com>
12325
12326 * target-delegates.c: Rebuild.
12327 * target.c (update_current_target): Don't inherit or default
12328 to_trace_set_readonly_regions.
12329 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12330 Use TARGET_DEFAULT_NORETURN.
12331
12332 2014-02-19 Tom Tromey <tromey@redhat.com>
12333
12334 * target-delegates.c: Rebuild.
12335 * target.c (update_current_target): Don't inherit or default
12336 to_disable_tracepoint.
12337 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12338 TARGET_DEFAULT_NORETURN.
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_enable_tracepoint.
12345 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12346 TARGET_DEFAULT_NORETURN.
12347
12348 2014-02-19 Tom Tromey <tromey@redhat.com>
12349
12350 * target-delegates.c: Rebuild.
12351 * target.c (update_current_target): Don't inherit or default
12352 to_download_trace_state_variable.
12353 * target.h (struct target_ops) <to_download_trace_state_variable>:
12354 Use TARGET_DEFAULT_NORETURN.
12355
12356 2014-02-19 Tom Tromey <tromey@redhat.com>
12357
12358 * target-delegates.c: Rebuild.
12359 * target.c (update_current_target): Don't inherit or default
12360 to_can_download_tracepoint.
12361 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12362 TARGET_DEFAULT_RETURN.
12363
12364 2014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * target-delegates.c: Rebuild.
12367 * target.c (update_current_target): Don't inherit or default
12368 to_download_tracepoint.
12369 * target.h (struct target_ops) <to_download_tracepoint>: Use
12370 TARGET_DEFAULT_NORETURN.
12371
12372 2014-02-19 Tom Tromey <tromey@redhat.com>
12373
12374 * target-delegates.c: Rebuild.
12375 * target.c (update_current_target): Don't inherit or default
12376 to_trace_init.
12377 * target.h (struct target_ops) <to_trace_init>: Use
12378 TARGET_DEFAULT_RETURN.
12379
12380 2014-02-19 Tom Tromey <tromey@redhat.com>
12381
12382 * target-delegates.c: Rebuild.
12383 * target.c (update_current_target): Don't inherit or default
12384 to_supports_string_tracing.
12385 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12386 TARGET_DEFAULT_RETURN.
12387
12388 2014-02-19 Tom Tromey <tromey@redhat.com>
12389
12390 * target-delegates.c: Rebuild.
12391 * target.c (update_current_target): Don't inherit or default
12392 to_supports_enable_disable_tracepoint.
12393 * target.h (struct target_ops)
12394 <to_supports_enable_disable_tracepoint>: Use
12395 TARGET_DEFAULT_RETURN.
12396
12397 2014-02-19 Tom Tromey <tromey@redhat.com>
12398
12399 * target-delegates.c: Rebuild.
12400 * target.c (update_current_target): Don't inherit or default
12401 to_supports_multi_process.
12402 * target.h (struct target_ops) <to_supports_multi_process>: Use
12403 TARGET_DEFAULT_RETURN.
12404
12405 2014-02-19 Tom Tromey <tromey@redhat.com>
12406
12407 * target-delegates.c: Rebuild.
12408 * target.c (update_current_target): Don't inherit or default
12409 to_get_ada_task_ptid.
12410 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12411 TARGET_DEFAULT_FUNC.
12412
12413 2014-02-19 Tom Tromey <tromey@redhat.com>
12414
12415 * target-delegates.c: Rebuild.
12416 * target.c (update_current_target): Don't inherit or default
12417 to_thread_architecture.
12418 * target.h (struct target_ops) <to_thread_architecture>: Use
12419 TARGET_DEFAULT_FUNC.
12420
12421 2014-02-19 Tom Tromey <tromey@redhat.com>
12422
12423 * target-delegates.c: Rebuild.
12424 * target.c (update_current_target): Don't inherit or default
12425 to_execution_direction.
12426 * target.h (struct target_ops) <to_execution_direction>: Use
12427 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
12434 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12435 TARGET_DEFAULT_RETURN.
12436 (target_can_execute_reverse): Unconditionally delegate.
12437
12438 2014-02-19 Tom Tromey <tromey@redhat.com>
12439
12440 * target-delegates.c: Rebuild.
12441 * target.c (update_current_target): Don't inherit or default
12442 to_goto_bookmark.
12443 (dummy_goto_bookmark): Remove.
12444 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12445 * target.h (struct target_ops) <to_goto_bookmark>: Use
12446 TARGET_DEFAULT_NORETURN.
12447
12448 2014-02-19 Tom Tromey <tromey@redhat.com>
12449
12450 * target-delegates.c: Rebuild.
12451 * target.c (update_current_target): Don't inherit or default
12452 to_get_bookmark.
12453 (dummy_get_bookmark): Remove.
12454 (init_dummy_target): Don't inherit or default to_get_bookmark.
12455 * target.h (struct target_ops) <to_get_bookmark>: Use
12456 TARGET_DEFAULT_NORETURN
12457
12458 2014-02-19 Tom Tromey <tromey@redhat.com>
12459
12460 * target-delegates.c: Rebuild.
12461 * target.c (update_current_target): Don't inherit or default
12462 to_make_corefile_notes.
12463 (init_dummy_target): Don't initialize to_make_corefile_notes.
12464 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12465 TARGET_DEFAULT_FUNC.
12466
12467 2014-02-19 Tom Tromey <tromey@redhat.com>
12468
12469 * target-delegates.c: Rebuild.
12470 * target.c (update_current_target): Don't inherit or default
12471 to_find_memory_regions.
12472 (init_dummy_target): Don't initialize to_find_memory_regions.
12473 * target.h (struct target_ops) <to_find_memory_regions>: Use
12474 TARGET_DEFAULT_FUNC.
12475
12476 2014-02-19 Tom Tromey <tromey@redhat.com>
12477
12478 * target-delegates.c: Rebuild.
12479 * target.c (update_current_target): Don't inherit or default
12480 to_log_command.
12481 * target.h (struct target_ops) <to_log_command>: Use
12482 TARGET_DEFAULT_IGNORE.
12483 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
12490 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12491 TARGET_DEFAULT_RETURN.
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_thread_name.
12498 (target_thread_name): Unconditionally delegate.
12499 * target.h (struct target_ops) <to_thread_name>: Use
12500 TARGET_DEFAULT_RETURN.
12501
12502 2014-02-19 Tom Tromey <tromey@redhat.com>
12503
12504 * target-delegates.c: Rebuild.
12505 * target.c (update_current_target): Don't inherit or default
12506 to_extra_thread_info.
12507 * target.h (struct target_ops) <to_extra_thread_info>: Use
12508 TARGET_DEFAULT_RETURN.
12509
12510 2014-02-19 Tom Tromey <tromey@redhat.com>
12511
12512 * target-delegates.c: Rebuild.
12513 * target.c (update_current_target): Don't inherit or default
12514 to_has_exited.
12515 * target.h (struct target_ops) <to_has_exited>: Use
12516 TARGET_DEFAULT_RETURN..
12517
12518 2014-02-19 Tom Tromey <tromey@redhat.com>
12519
12520 * target-delegates.c: Rebuild.
12521 * target.c (update_current_target): Don't inherit or default
12522 to_set_syscall_catchpoint.
12523 (return_one): Remove.
12524 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12525 TARGET_DEFAULT_RETURN.
12526
12527 2014-02-19 Tom Tromey <tromey@redhat.com>
12528
12529 * target-delegates.c: Rebuild.
12530 * target.c (update_current_target): Don't inherit or default
12531 to_insert_exec_catchpoint.
12532 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12533 TARGET_DEFAULT_RETURN.
12534
12535 2014-01-08 Tom Tromey <tromey@redhat.com>
12536
12537 * target-delegates.c: Rebuild.
12538 * target.c (update_current_target): Don't inherit or default
12539 to_insert_exec_catchpoint.
12540 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12541 TARGET_DEFAULT_RETURN.
12542
12543 2014-02-19 Tom Tromey <tromey@redhat.com>
12544
12545 * target-delegates.c: Rebuild.
12546 * target.c (update_current_target): Don't inherit or default
12547 to_remove_vfork_catchpoint.
12548 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12549 TARGET_DEFAULT_RETURN.
12550
12551 2014-02-19 Tom Tromey <tromey@redhat.com>
12552
12553 * target-delegates.c: Rebuild.
12554 * target.c (update_current_target): Don't inherit or default
12555 to_insert_vfork_catchpoint.
12556 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12557 TARGET_DEFAULT_RETURN.
12558
12559 2014-02-19 Tom Tromey <tromey@redhat.com>
12560
12561 * target-delegates.c: Rebuild.
12562 * target.c (update_current_target): Don't inherit or default
12563 to_remove_fork_catchpoint.
12564 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12565 TARGET_DEFAULT_RETURN.
12566
12567 2014-02-19 Tom Tromey <tromey@redhat.com>
12568
12569 * target-delegates.c: Rebuild.
12570 * target.c (update_current_target): Don't inherit or default
12571 to_insert_fork_catchpoint.
12572 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12573 TARGET_DEFAULT_RETURN.
12574
12575 2014-02-19 Tom Tromey <tromey@redhat.com>
12576
12577 * target-delegates.c: Rebuild.
12578 * target.c (update_current_target): Don't inherit or default
12579 to_post_startup_inferior.
12580 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12581 TARGET_DEFAULT_IGNORE.
12582
12583 2014-02-19 Tom Tromey <tromey@redhat.com>
12584
12585 * target-delegates.c: Rebuild.
12586 * target.c (update_current_target): Don't inherit or default
12587 to_load.
12588 * target.h (struct target_ops) <to_load>: Use
12589 TARGET_DEFAULT_NORETURN.
12590
12591 2014-02-19 Tom Tromey <tromey@redhat.com>
12592
12593 * target-delegates.c: Rebuild.
12594 * target.c (update_current_target): Don't inherit or default
12595 to_terminal_info.
12596 * target.h (struct target_ops) <to_terminal_info>: Use
12597 TARGET_DEFAULT_FUNC.
12598
12599 2014-02-19 Tom Tromey <tromey@redhat.com>
12600
12601 * target-delegates.c: Rebuild.
12602 * target.c (update_current_target): Don't inherit or default
12603 to_terminal_save_ours.
12604 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12605 TARGET_DEFAULT_IGNORE.
12606
12607 2014-02-19 Tom Tromey <tromey@redhat.com>
12608
12609 * target-delegates.c: Rebuild.
12610 * target.c (update_current_target): Don't inherit or default
12611 to_terminal_ours.
12612 * target.h (struct target_ops) <to_terminal_ours>: Use
12613 TARGET_DEFAULT_IGNORE.
12614
12615 2014-02-19 Tom Tromey <tromey@redhat.com>
12616
12617 * target-delegates.c: Rebuild.
12618 * target.c (update_current_target): Don't inherit or default
12619 to_terminal_ours_for_output.
12620 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12621 TARGET_DEFAULT_IGNORE.
12622
12623 2014-02-19 Tom Tromey <tromey@redhat.com>
12624
12625 * target-delegates.c: Rebuild.
12626 * target.c (update_current_target): Don't inherit or default
12627 to_terminal_inferior.
12628 * target.h (struct target_ops) <to_terminal_inferior>: Use
12629 TARGET_DEFAULT_IGNORE.
12630
12631 2014-02-19 Tom Tromey <tromey@redhat.com>
12632
12633 * target-delegates.c: Rebuild.
12634 * target.c (update_current_target): Don't inherit or default
12635 to_terminal_init.
12636 * target.h (struct target_ops) <to_terminal_init>: Use
12637 TARGET_DEFAULT_IGNORE.
12638
12639 2014-02-19 Tom Tromey <tromey@redhat.com>
12640
12641 * target-delegates.c: Rebuild.
12642 * target.c (update_current_target): Don't inherit or default
12643 to_can_accel_watchpoint_condition.
12644 * target.h (struct target_ops)
12645 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12646
12647 2014-02-19 Tom Tromey <tromey@redhat.com>
12648
12649 * target-delegates.c: Rebuild.
12650 * target.c (update_current_target): Don't inherit or default
12651 to_region_ok_for_hw_watchpoint.
12652 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12653 Use TARGET_DEFAULT_FUNC.
12654
12655 2014-02-19 Tom Tromey <tromey@redhat.com>
12656
12657 * target-delegates.c: Rebuild.
12658 * target.c (update_current_target): Don't inherit or default
12659 to_watchpoint_addr_within_range.
12660 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12661 Use TARGET_DEFAULT_FUNC.
12662
12663 2014-02-19 Tom Tromey <tromey@redhat.com>
12664
12665 * target-delegates.c: Rebuild.
12666 * target.c (update_current_target): Don't inherit or default
12667 to_remove_watchpoint.
12668 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12669 TARGET_DEFAULT_NORETURN.
12670
12671 2014-02-19 Tom Tromey <tromey@redhat.com>
12672
12673 * target-delegates.c: Rebuild.
12674 * target.c (update_current_target): Don't inherit or default
12675 to_insert_watchpoint.
12676 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12677 TARGET_DEFAULT_RETURN.
12678
12679 2014-02-19 Tom Tromey <tromey@redhat.com>
12680
12681 * target-delegates.c: Rebuild.
12682 * target.c (update_current_target): Don't inherit or default
12683 to_remove_hw_breakpoint.
12684 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12685 TARGET_DEFAULT_RETURN.
12686
12687 2014-02-19 Tom Tromey <tromey@redhat.com>
12688
12689 * target-delegates.c: Rebuild.
12690 * target.c (update_current_target): Don't inherit or default
12691 to_insert_hw_breakpoint.
12692 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12693 TARGET_DEFAULT_RETURN.
12694
12695 2014-02-19 Tom Tromey <tromey@redhat.com>
12696
12697 * target-delegates.c: Rebuild.
12698 * target.c (update_current_target): Don't inherit or default
12699 to_can_use_hw_breakpoint.
12700 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12701 TARGET_DEFAULT_RETURN.
12702
12703 2014-02-19 Tom Tromey <tromey@redhat.com>
12704
12705 * target-delegates.c: Rebuild.
12706 * target.c (update_current_target): Don't inherit or default
12707 to_files_info.
12708 * target.h (struct target_ops) <to_files_info>: Use
12709 TARGET_DEFAULT_IGNORE.
12710
12711 2014-02-19 Tom Tromey <tromey@redhat.com>
12712
12713 * target-delegates.c: Rebuild.
12714 * target.c (update_current_target): Don't inherit or default
12715 to_store.
12716 * target.h (struct target_ops) <to_store>: Use
12717 TARGET_DEFAULT_NORETURN.
12718
12719 2014-02-19 Tom Tromey <tromey@redhat.com>
12720
12721 * target-delegates.c: Rebuild.
12722 * target.c (update_current_target): Don't inherit or default
12723 to_post_attach.
12724 * target.h (struct target_ops) <to_post_attach>: Use
12725 TARGET_DEFAULT_IGNORE.
12726
12727 2014-02-19 Tom Tromey <tromey@redhat.com>
12728
12729 * target-delegates.c: Rebuild.
12730 * target.c (update_current_target): Don't inherit or default
12731 to_rcmd.
12732 (default_rcmd): New function.
12733 (do_monitor_command): Unconditionally delegate.
12734 * target.h (struct target_ops) <to_rmcd>: Use
12735 TARGET_DEFAULT_FUNC.
12736
12737 2014-02-19 Tom Tromey <tromey@redhat.com>
12738
12739 * target-delegates.c: Rebuild.
12740 * target.c (init_dummy_target): Don't initialize to_attach.
12741 (target_attach): Unconditionally delegate.
12742 * target.h (struct target_ops) <to_attach>: Use
12743 TARGET_DEFAULT_FUNC.
12744
12745 2014-02-19 Tom Tromey <tromey@redhat.com>
12746
12747 * target-delegates.c: Rebuild.
12748 * target.c (target_detach): Unconditionally delegate.
12749 (init_dummy_target): Don't initialize to_detach.
12750 * target.h (struct target_ops) <to_detach>: Use
12751 TARGET_DEFAULT_IGNORE.
12752
12753 2014-02-19 Tom Tromey <tromey@redhat.com>
12754
12755 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12756 Add argument.
12757 (target_augmented_libraries_svr4_read): Add argument.
12758 * target.c (update_current_target): Update.
12759 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12760 argument.
12761
12762 2014-02-19 Tom Tromey <tromey@redhat.com>
12763
12764 * target.h (struct target_ops) <to_call_history_range>: Add
12765 argument.
12766 * target.c (target_call_history_range): Add argument.
12767 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12768 argument.
12769 (record_btrace_call_history_from): Update.
12770
12771 2014-02-19 Tom Tromey <tromey@redhat.com>
12772
12773 * target.h (struct target_ops) <to_call_history_from>: Add
12774 argument.
12775 * target.c (target_call_history_from): Add argument.
12776 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12777 argument.
12778
12779 2014-02-19 Tom Tromey <tromey@redhat.com>
12780
12781 * target.h (struct target_ops) <to_call_history>: Add argument.
12782 * target.c (target_call_history): Add argument.
12783 * record-btrace.c (record_btrace_call_history): Add 'self'
12784 argument.
12785
12786 2014-02-19 Tom Tromey <tromey@redhat.com>
12787
12788 * target.h (struct target_ops) <to_insn_history_range>: Add
12789 argument.
12790 * target.c (target_insn_history_range): Add argument.
12791 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12792 argument.
12793 (record_btrace_insn_history_from): Update.
12794
12795 2014-02-19 Tom Tromey <tromey@redhat.com>
12796
12797 * target.h (struct target_ops) <to_insn_history_from>: Add
12798 argument.
12799 * target.c (target_insn_history_from): Add argument.
12800 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12801 argument.
12802
12803 2014-02-19 Tom Tromey <tromey@redhat.com>
12804
12805 * target.h (struct target_ops) <to_insn_history>: Add argument.
12806 * target.c (target_insn_history): Add argument.
12807 * record-btrace.c (record_btrace_insn_history): Add 'self'
12808 argument.
12809
12810 2014-02-19 Tom Tromey <tromey@redhat.com>
12811
12812 * target.h (struct target_ops) <to_goto_record>: Add argument.
12813 * target.c (target_goto_record): Add argument.
12814 * record-full.c (record_full_goto): Add 'self' argument.
12815 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12816
12817 2014-02-19 Tom Tromey <tromey@redhat.com>
12818
12819 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12820 * target.c (target_goto_record_end): Add argument.
12821 * record-full.c (record_full_goto_end): Add 'self' argument.
12822 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12823
12824 2014-02-19 Tom Tromey <tromey@redhat.com>
12825
12826 * target.h (struct target_ops) <to_goto_record_begin>: Add
12827 argument.
12828 * target.c (target_goto_record_begin): Add argument.
12829 * record-full.c (record_full_goto_begin): Add 'self' argument.
12830 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12831 argument.
12832
12833 2014-02-19 Tom Tromey <tromey@redhat.com>
12834
12835 * target.h (struct target_ops) <to_record_is_replaying>: Add
12836 argument.
12837 * target.c (target_record_is_replaying): Add argument.
12838 * record-full.c (record_full_is_replaying): Add 'self' argument.
12839 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12840 argument.
12841 (record_btrace_xfer_partial, record_btrace_store_registers)
12842 (record_btrace_prepare_to_store, record_btrace_resume)
12843 (record_btrace_wait, record_btrace_decr_pc_after_break)
12844 (record_btrace_find_new_threads, record_btrace_thread_alive):
12845 Update.
12846
12847 2014-02-19 Tom Tromey <tromey@redhat.com>
12848
12849 * target.h (struct target_ops) <to_delete_record>: Add argument.
12850 * target.c (target_delete_record): Add argument.
12851 * record-full.c (record_full_delete): Add 'self' argument.
12852
12853 2014-02-19 Tom Tromey <tromey@redhat.com>
12854
12855 * target.h (struct target_ops) <to_save_record>: Add argument.
12856 * target.c (target_save_record): Add argument.
12857 * record-full.c (record_full_save): Add 'self' argument.
12858 (record_full_save): Add 'self' argument.
12859
12860 2014-02-19 Tom Tromey <tromey@redhat.com>
12861
12862 * target.h (struct target_ops) <to_info_record>: Add argument.
12863 * target.c (target_info_record): Add argument.
12864 * record.c (info_record_command): Add argument.
12865 * record-full.c (record_full_info): Add 'self' argument.
12866 * record-btrace.c (record_btrace_info): Add 'self' argument.
12867
12868 2014-02-19 Tom Tromey <tromey@redhat.com>
12869
12870 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12871 * target.c (target_stop_recording): Add argument.
12872 * record.c (record_stop): Add argument.
12873 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12874 argument.
12875
12876 2014-02-19 Tom Tromey <tromey@redhat.com>
12877
12878 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12879 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12880 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12881 argument.
12882 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12883 (_initialize_amd64_linux_nat): Use it.
12884 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12885 (_initialize_i386_linux_nat): Use it.
12886
12887 2014-02-19 Tom Tromey <tromey@redhat.com>
12888
12889 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12890 * target.c (target_teardown_btrace): Add argument.
12891 * remote.c (remote_teardown_btrace): Add 'self' argument.
12892 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12893 argument.
12894 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12895 argument.
12896
12897 2014-02-19 Tom Tromey <tromey@redhat.com>
12898
12899 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12900 * target.c (target_disable_btrace): Add argument.
12901 * remote.c (remote_disable_btrace): Add 'self' argument.
12902 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12903 argument.
12904 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12905 argument.
12906
12907 2014-02-19 Tom Tromey <tromey@redhat.com>
12908
12909 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12910 * target.c (target_enable_btrace): Add argument.
12911 * remote.c (remote_enable_btrace): Add 'self' argument.
12912 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12913 argument.
12914 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12915 argument.
12916
12917 2014-02-19 Tom Tromey <tromey@redhat.com>
12918
12919 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12920 (target_can_use_agent): Add argument.
12921 * target.c (update_current_target): Update.
12922 * remote.c (remote_can_use_agent): Add 'self' argument.
12923 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12924
12925 2014-02-19 Tom Tromey <tromey@redhat.com>
12926
12927 * target.h (struct target_ops) <to_use_agent>: Add argument.
12928 (target_use_agent): Add argument.
12929 * target.c (update_current_target): Update.
12930 * remote.c (remote_use_agent): Add 'self' argument.
12931 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12932
12933 2014-02-19 Tom Tromey <tromey@redhat.com>
12934
12935 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12936 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12937 (target_traceframe_info): Add argument.
12938 * target.c (update_current_target): Update.
12939 * remote.c (remote_traceframe_info): Add 'self' argument.
12940 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12941
12942 2014-02-19 Tom Tromey <tromey@redhat.com>
12943
12944 * target.h (target_static_tracepoint_markers_by_strid): Add
12945 argument.
12946 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12947 'self' argument.
12948 * target.c (update_current_target): Update.
12949 * remote.c (struct target_ops)
12950 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12951 * linux-nat.c (struct target_ops)
12952 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12953
12954 2014-02-19 Tom Tromey <tromey@redhat.com>
12955
12956 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12957 Add argument.
12958 (target_static_tracepoint_marker_at): Add argument.
12959 * target.c (update_current_target): Update.
12960 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12961 argument.
12962
12963 2014-02-19 Tom Tromey <tromey@redhat.com>
12964
12965 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12966 (target_set_permissions): Add argument.
12967 * target.c (update_current_target): Update.
12968 * remote.c (remote_set_permissions): Add 'self' argument.
12969 (remote_start_remote): Update.
12970
12971 2014-02-19 Tom Tromey <tromey@redhat.com>
12972
12973 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12974 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12975 (target_get_tib_address): Add argument.
12976 * target.c (update_current_target): Update.
12977 * remote.c (remote_get_tib_address): Add 'self' argument.
12978
12979 2014-02-19 Tom Tromey <tromey@redhat.com>
12980
12981 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12982 (target_set_trace_notes): Add argument.
12983 * target.c (update_current_target): Update.
12984 * remote.c (remote_set_trace_notes): Add 'self' argument.
12985
12986 2014-02-19 Tom Tromey <tromey@redhat.com>
12987
12988 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12989 argument.
12990 (target_set_trace_buffer_size): Add argument.
12991 * target.c (update_current_target): Update.
12992 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12993
12994 2014-02-19 Tom Tromey <tromey@redhat.com>
12995
12996 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12997 argument.
12998 (target_set_circular_trace_buffer): Add argument.
12999 * target.c (update_current_target): Update.
13000 * remote.c (remote_set_circular_trace_buffer): Add 'self'
13001 argument.
13002
13003 2014-02-19 Tom Tromey <tromey@redhat.com>
13004
13005 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
13006 argument.
13007 (target_set_disconnected_tracing): Add argument.
13008 * target.c (update_current_target): Update.
13009 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
13010
13011 2014-02-19 Tom Tromey <tromey@redhat.com>
13012
13013 * target.h (struct target_ops)
13014 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13015 (target_get_min_fast_tracepoint_insn_len): Add argument.
13016 * target.c (update_current_target): Update.
13017 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13018 argument.
13019
13020 2014-02-19 Tom Tromey <tromey@redhat.com>
13021
13022 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13023 argument.
13024 (target_get_raw_trace_data): Add argument.
13025 * target.c (update_current_target): Update.
13026 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13027
13028 2014-02-19 Tom Tromey <tromey@redhat.com>
13029
13030 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13031 Add argument.
13032 (target_upload_trace_state_variables): Add argument.
13033 * target.c (update_current_target): Update.
13034 * remote.c (remote_upload_trace_state_variables): Add 'self'
13035 argument.
13036 (remote_start_remote): Update.
13037
13038 2014-02-19 Tom Tromey <tromey@redhat.com>
13039
13040 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13041 argument.
13042 (target_upload_tracepoints): Add argument.
13043 * target.c (update_current_target): Update.
13044 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13045 (remote_start_remote): Update.
13046
13047 2014-02-19 Tom Tromey <tromey@redhat.com>
13048
13049 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13050 (target_save_trace_data): Add argument.
13051 * target.c (update_current_target): Update.
13052 * remote.c (remote_save_trace_data): Add 'self' argument.
13053
13054 2014-02-19 Tom Tromey <tromey@redhat.com>
13055
13056 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13057 argument.
13058 * target.h (struct target_ops)
13059 <to_get_trace_state_variable_value>: Add argument.
13060 (target_get_trace_state_variable_value): Add argument.
13061 * target.c (update_current_target): Update.
13062 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13063 argument.
13064 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13065
13066 2014-02-19 Tom Tromey <tromey@redhat.com>
13067
13068 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13069 * target.h (struct target_ops) <to_trace_find>: Add argument.
13070 (target_trace_find): Add argument.
13071 * target.c (update_current_target): Update.
13072 * remote.c (remote_trace_find): Add 'self' argument.
13073 * ctf.c (ctf_trace_find): Add 'self' argument.
13074
13075 2014-02-19 Tom Tromey <tromey@redhat.com>
13076
13077 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13078 (target_trace_stop): Add argument.
13079 * target.c (update_current_target): Update.
13080 * remote.c (remote_trace_stop): Add 'self' argument.
13081
13082 2014-02-19 Tom Tromey <tromey@redhat.com>
13083
13084 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13085 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13086 argument.
13087 (target_get_tracepoint_status): Add argument.
13088 * target.c (update_current_target): Update.
13089 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13090
13091 2014-02-19 Tom Tromey <tromey@redhat.com>
13092
13093 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13094 * target.h (struct target_ops) <to_get_trace_status>: Add
13095 argument.
13096 (target_get_trace_status): Add argument.
13097 * target.c (update_current_target): Update.
13098 * remote.c (remote_get_trace_status): Add 'self' argument.
13099 (remote_start_remote, remote_can_download_tracepoint): Update.
13100 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13101
13102 2014-02-19 Tom Tromey <tromey@redhat.com>
13103
13104 * target.h (struct target_ops) <to_trace_start>: Add argument.
13105 (target_trace_start): Add argument.
13106 * target.c (update_current_target): Update.
13107 * remote.c (remote_trace_start): Add 'self' argument.
13108
13109 2014-02-19 Tom Tromey <tromey@redhat.com>
13110
13111 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13112 Add argument.
13113 (target_trace_set_readonly_regions): Add argument.
13114 * target.c (update_current_target): Update.
13115 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13116 argument.
13117
13118 2014-02-19 Tom Tromey <tromey@redhat.com>
13119
13120 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13121 argument.
13122 (target_disable_tracepoint): Add argument.
13123 * target.c (update_current_target): Update.
13124 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13125
13126 2014-02-19 Tom Tromey <tromey@redhat.com>
13127
13128 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13129 argument.
13130 (target_enable_tracepoint): Add argument.
13131 * target.c (update_current_target): Update.
13132 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13133
13134 2014-02-19 Tom Tromey <tromey@redhat.com>
13135
13136 * target.h (struct target_ops) <to_download_trace_state_variable>:
13137 Add argument.
13138 (target_download_trace_state_variable): Add argument.
13139 * target.c (update_current_target): Update.
13140 * remote.c (remote_download_trace_state_variable): Add 'self'
13141 argument.
13142
13143 2014-02-19 Tom Tromey <tromey@redhat.com>
13144
13145 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13146 argument.
13147 (target_can_download_tracepoint): Add argument.
13148 * target.c (update_current_target): Update.
13149 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13150
13151 2014-02-19 Tom Tromey <tromey@redhat.com>
13152
13153 * target.h (struct target_ops) <to_download_tracepoint>: Add
13154 argument.
13155 (target_download_tracepoint): Add argument.
13156 * target.c (update_current_target): Update.
13157 * remote.c (remote_download_tracepoint): Add 'self' argument.
13158
13159 2014-02-19 Tom Tromey <tromey@redhat.com>
13160
13161 * target.h (struct target_ops) <to_trace_init>: Add argument.
13162 (target_trace_init): Add argument.
13163 * target.c (update_current_target): Update.
13164 * remote.c (remote_trace_init): Add 'self' argument.
13165
13166 2014-02-19 Tom Tromey <tromey@redhat.com>
13167
13168 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13169 * target.c (target_fileio_readlink): Add argument.
13170 * remote.c (remote_hostio_readlink): Add 'self' argument.
13171 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13172
13173 2014-02-19 Tom Tromey <tromey@redhat.com>
13174
13175 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13176 * target.c (target_fileio_unlink): Add argument.
13177 * remote.c (remote_hostio_unlink): Add 'self' argument.
13178 (remote_file_delete): Update.
13179 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13180
13181 2014-02-19 Tom Tromey <tromey@redhat.com>
13182
13183 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13184 * target.c (target_fileio_close): Add argument.
13185 * remote.c (remote_hostio_close): Add 'self' argument.
13186 (remote_hostio_close_cleanup): Update.
13187 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13188 Update.
13189 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13190
13191 2014-02-19 Tom Tromey <tromey@redhat.com>
13192
13193 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13194 * target.c (target_fileio_pread): Add argument.
13195 * remote.c (remote_hostio_pread): Add 'self' argument.
13196 (remote_bfd_iovec_pread, remote_file_get): Update.
13197 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13198
13199 2014-02-19 Tom Tromey <tromey@redhat.com>
13200
13201 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13202 * target.c (target_fileio_pwrite): Add argument.
13203 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13204 (remote_file_put): Update.
13205 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13206
13207 2014-02-19 Tom Tromey <tromey@redhat.com>
13208
13209 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13210 * target.c (target_fileio_open): Add argument.
13211 * remote.c (remote_hostio_open): Add 'self' argument.
13212 (remote_bfd_iovec_open): Add 'self' argument.
13213 (remote_file_put): Add 'self' argument.
13214 (remote_file_get): Add 'self' argument.
13215 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13216
13217 2014-02-19 Tom Tromey <tromey@redhat.com>
13218
13219 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13220 Add argument.
13221 (target_can_run_breakpoint_commands): Add argument.
13222 * target.c (update_current_target): Update.
13223 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13224 argument.
13225 (remote_insert_breakpoint): Add 'self' argument.
13226 (remote_insert_hw_breakpoint): Add 'self' argument.
13227 (remote_can_run_breakpoint_commands): Add 'self' argument.
13228
13229 2014-02-19 Tom Tromey <tromey@redhat.com>
13230
13231 * target.h (struct target_ops)
13232 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13233 (target_supports_evaluation_of_breakpoint_conditions): Add
13234 argument.
13235 * target.c (update_current_target): Update.
13236 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13237 argument.
13238 (remote_insert_breakpoint): Add 'self' argument.
13239 (remote_insert_hw_breakpoint): Add 'self' argument.
13240 (remote_supports_cond_breakpoints): Add 'self' argument.
13241
13242 2014-02-19 Tom Tromey <tromey@redhat.com>
13243
13244 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13245 argument.
13246 (target_supports_string_tracing): Add argument.
13247 * target.c (update_current_target): Update.
13248 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13249
13250 2014-02-19 Tom Tromey <tromey@redhat.com>
13251
13252 * target.h (struct target_ops)
13253 <to_supports_disable_randomization>: Add argument.
13254 * target.c (find_default_supports_disable_randomization): Add
13255 argument.
13256 (target_supports_disable_randomization): Add argument.
13257 (find_default_supports_disable_randomization): Add 'self'
13258 argument.
13259 * remote.c (extended_remote_supports_disable_randomization): Add
13260 'self' argument.
13261 (remote_supports_disable_randomization): Add 'self' argument.
13262 (extended_remote_create_inferior): Update.
13263 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13264 'self' argument.
13265
13266 2014-02-19 Tom Tromey <tromey@redhat.com>
13267
13268 * target.h (struct target_ops)
13269 <to_supports_enable_disable_tracepoint>: Add argument.
13270 (target_supports_enable_disable_tracepoint): Add argument.
13271 * target.c (update_current_target): Update.
13272 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13273 argument.
13274
13275 2014-02-19 Tom Tromey <tromey@redhat.com>
13276
13277 * target.h (struct target_ops) <to_supports_multi_process>: Add
13278 argument.
13279 (target_supports_multi_process): Add argument.
13280 * target.c (update_current_target): Update.
13281 * remote.c (remote_supports_multi_process): Add 'self' argument.
13282 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13283 argument.
13284 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13285 argument.
13286
13287 2014-02-19 Tom Tromey <tromey@redhat.com>
13288
13289 * target.h (struct target_ops) <to_execution_direction>: Add
13290 argument.
13291 (target_execution_direction): Add argument.
13292 * target.c (default_execution_direction): Add 'self' argument.
13293 * record-full.c (record_full_execution_direction): Add 'self'
13294 argument.
13295
13296 2014-02-19 Tom Tromey <tromey@redhat.com>
13297
13298 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13299 argument.
13300 (target_can_execute_reverse): Add argument.
13301 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13302 * record-full.c (record_full_can_execute_reverse): Add 'self'
13303 argument.
13304 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13305 argument.
13306
13307 2014-02-19 Tom Tromey <tromey@redhat.com>
13308
13309 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13310 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13311 argument.
13312 (target_get_ada_task_ptid): Add argument.
13313 * target.c (update_current_target): Update.
13314 (default_get_ada_task_ptid): Add 'self' argument.
13315 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13316 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13317 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13318 argument.
13319 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13320 argument.
13321 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13322 argument.
13323 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13324 argument.
13325 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13326 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13327 argument.
13328
13329 2014-02-19 Tom Tromey <tromey@redhat.com>
13330
13331 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13332 (target_goto_bookmark): Add argument.
13333 * target.c (dummy_goto_bookmark): Add 'self' argument.
13334 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13335
13336 2014-02-19 Tom Tromey <tromey@redhat.com>
13337
13338 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13339 (target_get_bookmark): Add argument.
13340 * target.c (dummy_get_bookmark): Add 'self' argument.
13341 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13342
13343 2014-02-19 Tom Tromey <tromey@redhat.com>
13344
13345 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13346 argument.
13347 (target_make_corefile_notes): Add argument.
13348 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13349 * procfs.c (procfs_make_note_section): Add 'self' argument.
13350 (procfs_make_note_section): Add 'self' argument.
13351 (procfs_make_note_section): Add 'self' argument.
13352 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13353 argument.
13354 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13355 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13356 * exec.c (exec_make_note_section): Add 'self' argument.
13357 (exec_make_note_section): Add 'self' argument.
13358
13359 2014-02-19 Tom Tromey <tromey@redhat.com>
13360
13361 * target.h (struct target_ops) <to_find_memory_regions>: Add
13362 argument.
13363 (target_find_memory_regions): Add argument.
13364 * target.c (dummy_find_memory_regions): Add 'self' argument.
13365 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13366 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13367 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13368 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13369 * exec. (exec_do_find_memory_regions): New global.
13370 (exec_set_find_memory_regions): Rewrite.
13371 (exec_find_memory_regions): New function.
13372 (init_exec_ops): Use exec_find_memory_regions.
13373
13374 2014-02-19 Tom Tromey <tromey@redhat.com>
13375
13376 * target.h (struct target_ops) <to_supports_non_stop>: Add
13377 argument.
13378 * target.c (find_default_supports_non_stop): Add argument.
13379 (target_supports_non_stop): Add argument.
13380 (find_default_supports_non_stop): Add 'self' argument.
13381 * remote.c (remote_supports_non_stop): Add 'self' argument.
13382 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13383
13384 2014-02-19 Tom Tromey <tromey@redhat.com>
13385
13386 * target.h (struct target_ops) <to_log_command>: Add argument.
13387 (target_log_command): Add argument.
13388 * serial.h (serial_log_command): Add 'self' argument.
13389 * serial.c (serial_log_command): Add 'self' argument.
13390
13391 2014-02-19 Tom Tromey <tromey@redhat.com>
13392
13393 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13394 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13395 argument.
13396 (target_pid_to_exec_file): Add argument.
13397 * target.c (debug_to_pid_to_exec_file): Add argument.
13398 (update_current_target): Update.
13399 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13400 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13401 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13402 (linux_handle_extended_wait): Update.
13403 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13404 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13405 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13406 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13407
13408 2014-02-19 Tom Tromey <tromey@redhat.com>
13409
13410 * target.h (struct target_ops) <to_rcmd>: Add argument.
13411 (target_rcmd): Add argument.
13412 * target.c (debug_to_rcmd): Add argument.
13413 (update_current_target, do_monitor_command): Update.
13414 * remote.c (remote_rcmd): Add 'self' argument.
13415 * monitor.c (monitor_rcmd): Add 'self' argument.
13416
13417 2014-02-19 Tom Tromey <tromey@redhat.com>
13418
13419 * windows-nat.c (windows_stop): Add 'self' argument.
13420 * target.h (struct target_ops) <to_stop>: Add argument.
13421 * target.c (target_stop): Add argument.
13422 (debug_to_stop): Add argument.
13423 (update_current_target): Update.
13424 * remote.c (remote_stop): Add 'self' argument.
13425 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13426 (gdbsim_cntrl_c): Update.
13427 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13428 * procfs.c (procfs_stop): Add 'self' argument.
13429 * nto-procfs.c (procfs_stop): Add 'self' argument.
13430 * monitor.c (monitor_stop): Add 'self' argument.
13431 (monitor_open): Update.
13432 * linux-nat.c (linux_nat_stop): Add argument.
13433 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13434 * gnu-nat.c (gnu_stop): Add 'self' argument.
13435 * darwin-nat.c (darwin_stop): Add 'self' argument.
13436
13437 2014-02-19 Tom Tromey <tromey@redhat.com>
13438
13439 * target.h (struct target_ops) <to_thread_name>: Add argument.
13440 * target.c (target_thread_name): Add argument.
13441 (update_current_target): Update.
13442 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13443
13444 2014-02-19 Tom Tromey <tromey@redhat.com>
13445
13446 * target.h (struct target_ops) <to_extra_thread_info>: Add
13447 argument.
13448 (target_extra_thread_info): Add argument.
13449 * target.c (update_current_target): Update.
13450 * remote.c (remote_threads_extra_info): Add 'self' argument.
13451 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13452 argument.
13453 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13454 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13455 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13456 argument.
13457 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13458 argument.
13459 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13460 argument.
13461 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13462 argument.
13463
13464 2014-02-19 Tom Tromey <tromey@redhat.com>
13465
13466 * target.h (struct target_ops) <to_program_signals>: Add argument.
13467 * target.c (target_program_signals): Add argument.
13468 * remote.c (remote_program_signals): Add 'self' argument.
13469
13470 2014-02-19 Tom Tromey <tromey@redhat.com>
13471
13472 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13473 * target.c (target_pass_signals): Add argument.
13474 * remote.c (remote_pass_signals): Add 'self' argument.
13475 (remote_start_remote): Update.
13476 * procfs.c (procfs_pass_signals): Add 'self' argument.
13477 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13478 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13479 (linux_nat_create_inferior, linux_nat_attach): Update.
13480
13481 2014-02-19 Tom Tromey <tromey@redhat.com>
13482
13483 * windows-nat.c (windows_can_run): Add 'self' argument.
13484 * target.h (struct target_ops) <to_can_run>: Add argument.
13485 (target_can_run): Add argument.
13486 * target.c (debug_to_can_run): Add argument.
13487 (update_current_target): Update.
13488 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13489 * inf-child.c (inf_child_can_run): Add 'self' argument.
13490 * go32-nat.c (go32_can_run): Add 'self' argument.
13491
13492 2014-02-19 Tom Tromey <tromey@redhat.com>
13493
13494 * target.h (struct target_ops) <to_has_exited>: Add argument.
13495 (target_has_exited): Add argument.
13496 * target.c (debug_to_has_exited): Add argument.
13497 (update_current_target): Update.
13498
13499 2014-02-19 Tom Tromey <tromey@redhat.com>
13500
13501 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13502 argument.
13503 (target_set_syscall_catchpoint): Add argument.
13504 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13505 argument.
13506 * target.c (update_current_target): Update.
13507
13508 2014-02-19 Tom Tromey <tromey@redhat.com>
13509
13510 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13511 argument.
13512 (target_remove_exec_catchpoint): Add argument.
13513 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13514 (update_current_target): Update.
13515 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13516 argument.
13517
13518 2014-02-19 Tom Tromey <tromey@redhat.com>
13519
13520 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13521 argument.
13522 (target_insert_exec_catchpoint): Add argument.
13523 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13524 (update_current_target): Update.
13525 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13526 argument.
13527
13528 2014-02-19 Tom Tromey <tromey@redhat.com>
13529
13530 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13531 argument.
13532 (target_remove_vfork_catchpoint): Add argument.
13533 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13534 (update_current_target): Update.
13535 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13536 argument.
13537
13538 2014-02-19 Tom Tromey <tromey@redhat.com>
13539
13540 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13541 argument.
13542 (target_insert_vfork_catchpoint): Add argument.
13543 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13544 (update_current_target): Update.
13545 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13546 argument.
13547
13548 2014-02-19 Tom Tromey <tromey@redhat.com>
13549
13550 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13551 argument.
13552 (target_remove_fork_catchpoint): Add argument.
13553 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13554 (update_current_target): Update.
13555 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13556 argument.
13557
13558 2014-02-19 Tom Tromey <tromey@redhat.com>
13559
13560 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13561 argument.
13562 (target_insert_fork_catchpoint): Add argument.
13563 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13564 (update_current_target): Update.
13565 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13566 argument.
13567
13568 2014-02-19 Tom Tromey <tromey@redhat.com>
13569
13570 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13571 argument.
13572 (target_post_startup_inferior): Add argument.
13573 * target.c (debug_to_post_startup_inferior): Add argument.
13574 (update_current_target): Update.
13575 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13576 argument.
13577 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13578 argument.
13579 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13580 argument.
13581 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13582 argument.
13583 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13584 'self' argument.
13585 (super_post_startup_inferior): Likewise.
13586 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13587 'self' argument.
13588 (super_post_startup_inferior): Likewise.
13589 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13590 Add 'self' argument.
13591 (super_post_startup_inferior): Likewise.
13592
13593 2014-02-19 Tom Tromey <tromey@redhat.com>
13594
13595 * target.h (struct target_ops) <to_load>: Add argument.
13596 * target.c (target_load): Add argument.
13597 (debug_to_load): Add argument.
13598 (update_current_target): Update.
13599 * remote.c (remote_load): Add 'self' argument.
13600 * remote-sim.c (gdbsim_load): Add 'self' argument.
13601 * remote-mips.c (mips_load): Add 'self' argument.
13602 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13603 * monitor.c (monitor_load): Add 'self' argument.
13604 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13605
13606 2014-02-19 Tom Tromey <tromey@redhat.com>
13607
13608 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13609 (target_terminal_info): Add argument.
13610 * target.c (debug_to_terminal_info): Add argument.
13611 (default_terminal_info): Likewise.
13612 * inflow.c (child_terminal_info): Add 'self' argument.
13613 * inferior.h (child_terminal_info): Add 'self' argument.
13614 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13615
13616 2014-02-19 Tom Tromey <tromey@redhat.com>
13617
13618 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13619 argument.
13620 (target_terminal_save_ours): Add argument.
13621 * target.c (debug_to_terminal_save_ours): Add argument.
13622 (update_current_target): Update.
13623 * inflow.c (terminal_save_ours): Add 'self' argument.
13624 * inferior.h (terminal_save_ours): Add 'self' argument.
13625
13626 2014-02-19 Tom Tromey <tromey@redhat.com>
13627
13628 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13629 (target_terminal_ours): Add argument.
13630 * target.c (debug_to_terminal_ours): Add argument.
13631 (update_current_target): Update.
13632 * remote.c (remote_terminal_ours): Add 'self' argument.
13633 (remote_close): Update.
13634 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13635 * inflow.c (terminal_ours): Add 'self' argument.
13636 * inferior.h (terminal_ours): Add 'self' argument.
13637 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13638
13639 2014-02-19 Pedro Alves <palves@redhat.com>
13640 Tom Tromey <tromey@redhat.com>
13641
13642 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13643 argument.
13644 (target_terminal_ours_for_output): Add argument.
13645 * target.c (debug_to_terminal_ours_for_output): Add argument.
13646 (update_current_target): Update.
13647 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13648 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13649 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13650
13651 2014-02-19 Tom Tromey <tromey@redhat.com>
13652
13653 * target.h (struct target_ops) <to_terminal_inferior>: Add
13654 argument.
13655 * target.c (target_terminal_inferior): Add argument.
13656 (update_current_target): Update.
13657 * remote.c (remote_terminal_inferior): Add 'self' argument.
13658 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13659 * inflow.c (terminal_inferior): Add 'self' argument.
13660 * inferior.h (terminal_inferior): Add 'self' argument.
13661 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13662 (go32_terminal_inferior): Add 'self' argument.
13663
13664 2014-02-19 Tom Tromey <tromey@redhat.com>
13665
13666 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13667 (target_terminal_init): Add argument.
13668 * target.c (debug_to_terminal_init): Add argument.
13669 (update_current_target): Update.
13670 * inflow.c (terminal_init_inferior): Add 'self' argument.
13671 * inferior.h (terminal_init_inferior): Add 'self' argument.
13672 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13673 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13674
13675 2014-02-19 Tom Tromey <tromey@redhat.com>
13676
13677 * target.h (struct target_ops)
13678 <to_can_accel_watchpoint_condition>: Add argument.
13679 (target_can_accel_watchpoint_condition): Add argument.
13680 * target.c (debug_to_can_accel_watchpoint_condition): Add
13681 argument.
13682 (update_current_target): Update.
13683 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13684 'self' argument.
13685
13686 2014-02-19 Tom Tromey <tromey@redhat.com>
13687
13688 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13689 Add argument.
13690 (target_region_ok_for_hw_watchpoint): Add argument.
13691 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13692 (default_region_ok_for_hw_watchpoint): Add argument.
13693 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13694 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13695 argument.
13696 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13697 argument.
13698 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13699 argument.
13700 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13701 'self' argument.
13702 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13703 'self' argument.
13704 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13705 'self' argument.
13706 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13707 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13708 'self' argument.
13709 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13710 Add 'self' argument.
13711
13712 2014-02-19 Tom Tromey <tromey@redhat.com>
13713
13714 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13715 argument.
13716 (target_insert_watchpoint): Add argument.
13717 * target.c (debug_to_insert_watchpoint): Add argument.
13718 (update_current_target): Update.
13719 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13720 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13721 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13722 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13723 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13724 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13725 argument.
13726 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13727 (procfs_insert_hw_watchpoint): Add 'self' argument.
13728 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13729 argument.
13730 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13731 argument.
13732 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13733 argument.
13734 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13735 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13736 argument.
13737 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13738 'self' argument.
13739
13740 2014-02-19 Tom Tromey <tromey@redhat.com>
13741
13742 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13743 argument.
13744 (target_remove_watchpoint): Add argument.
13745 * target.c (debug_to_remove_watchpoint): Add argument.
13746 (update_current_target): Update.
13747 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13748 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13749 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13750 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13751 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13752 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13753 argument.
13754 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13755 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13756 argument.
13757 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13758 argument.
13759 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13760 argument.
13761 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13762 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13763 argument.
13764 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13765 'self' argument.
13766
13767 2014-02-19 Tom Tromey <tromey@redhat.com>
13768
13769 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13770 argument.
13771 (target_remove_hw_breakpoint): Add argument.
13772 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13773 (update_current_target): Update.
13774 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13775 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13776 argument.
13777 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13778 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13779 argument.
13780 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13781 'self' argument.
13782
13783 2014-02-19 Tom Tromey <tromey@redhat.com>
13784
13785 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13786 argument.
13787 (target_insert_hw_breakpoint): Add argument.
13788 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13789 (update_current_target): Update.
13790 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13791 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13792 argument.
13793 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13794 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13795 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13796 argument.
13797 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13798 'self' argument.
13799
13800 2014-02-19 Tom Tromey <tromey@redhat.com>
13801
13802 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13803 argument.
13804 (target_can_use_hardware_watchpoint): Add argument.
13805 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13806 (update_current_target): Update.
13807 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13808 argument.
13809 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13810 argument.
13811 * remote.c (remote_check_watch_resources): Add 'self' argument.
13812 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13813 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13814 argument.
13815 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13816 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13817 argument.
13818 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13819 argument.
13820 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13821 argument.
13822 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13823 argument.
13824 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13825 argument.
13826 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13827 argument.
13828 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13829 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13830 argument.
13831 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13832 'self' argument.
13833
13834 2014-02-19 Tom Tromey <tromey@redhat.com>
13835
13836 * target.h (struct target_ops) <to_post_attach>: Add argument.
13837 (target_post_attach): Add argument.
13838 * target.c (debug_to_post_attach): Add argument.
13839 (update_current_target): Update.
13840 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13841 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13842 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13843 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13844 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13845
13846 2014-02-19 Tom Tromey <tromey@redhat.com>
13847
13848 * windows-nat.c (windows_close): Add 'self' argument.
13849 * tracepoint.c (tfile_close): Add 'self' argument.
13850 * target.h (struct target_ops) <to_close>: Add argument.
13851 * target.c (target_close): Add argument.
13852 (update_current_target): Update.
13853 * remote.c (remote_close): Add 'self' argument.
13854 * remote-sim.c (gdbsim_close): Add 'self' argument.
13855 * remote-mips.c (mips_close): Add 'self' argument.
13856 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13857 * record-full.c (record_full_close): Add 'self' argument.
13858 * record-btrace.c (record_btrace_close): Add 'self' argument.
13859 * monitor.h (monitor_close): Add 'self' argument.
13860 * monitor.c (monitor_close): Add 'self' argument.
13861 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13862 * linux-nat.c (linux_nat_close): Add argument.
13863 * go32-nat.c (go32_close): Add 'self' argument.
13864 * exec.c (exec_close_1): Add 'self' argument.
13865 * ctf.c (ctf_close): Add 'self' argument.
13866 * corelow.c (core_close): Add 'self' argument.
13867 (core_close_cleanup): Update.
13868 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13869 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13870
13871 2014-02-19 Tom Tromey <tromey@redhat.com>
13872
13873 * remote.c (remote_load): New function.
13874 (init_remote_ops): Use it.
13875
13876 2014-02-19 Tom Tromey <tromey@redhat.com>
13877
13878 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13879 argument.
13880 * common/linux-btrace.h (linux_supports_btrace): Update.
13881 * remote.c (remote_supports_btrace): Add "self" argument.
13882 * target-delegates.c: Rebuild.
13883 * target.c (target_supports_btrace): Remove.
13884 * target.h (struct target_ops) <to_supports_btrace>: Add
13885 target_ops argument.
13886 (target_supports_btrace): New define.
13887
13888 2014-02-19 Tom Tromey <tromey@redhat.com>
13889
13890 * record-full.c (record_full_beneath_to_resume_ops)
13891 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13892 (record_full_beneath_to_wait)
13893 (record_full_beneath_to_store_registers_ops)
13894 (record_full_beneath_to_store_registers)
13895 (record_full_beneath_to_xfer_partial_ops)
13896 (record_full_beneath_to_xfer_partial)
13897 (record_full_beneath_to_insert_breakpoint_ops)
13898 (record_full_beneath_to_insert_breakpoint)
13899 (record_full_beneath_to_remove_breakpoint_ops)
13900 (record_full_beneath_to_remove_breakpoint)
13901 (record_full_beneath_to_stopped_by_watchpoint)
13902 (record_full_beneath_to_stopped_data_address)
13903 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13904 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13905 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13906 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13907 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13908 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13909 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13910 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13911 (record_full_resume, record_full_wait_1)
13912 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13913 (record_full_store_registers, record_full_xfer_partial)
13914 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13915 (record_full_async, record_full_core_xfer_partial): Use target
13916 delegation.
13917 * target-delegates.c: Rebuild.
13918 * target.c (current_xfer_partial): Remove.
13919 (update_current_target): Do not INHERIT or de_fault
13920 to_insert_breakpoint, to_remove_breakpoint,
13921 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13922 to_is_async_p, to_async. Do not set to_xfer_partial field.
13923 (default_xfer_partial): Simplify.
13924 (current_xfer_partial): Remove.
13925 (target_wait, target_resume): Simplify.
13926 (find_default_can_async_p, find_default_is_async_p): Update.
13927 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13928 to_xfer_partial, to_stopped_by_watchpoint,
13929 to_stopped_data_address.
13930 (target_store_registers): Simplify.
13931 (forward_target_remove_breakpoint)
13932 (forward_target_insert_breakpoint): Remove.
13933 (target_remove_breakpoint, target_insert_breakpoint)
13934 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13935 * target.h (struct target_ops) <to_resume, to_wait,
13936 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13937 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13938 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13939 markup.
13940 (forward_target_remove_breakpoint)
13941 (forward_target_insert_breakpoint): Remove.
13942 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13943 directly.
13944 (record_btrace_insert_breakpoint): Delegate directly.
13945
13946 2014-02-19 Tom Tromey <tromey@redhat.com>
13947
13948 PR build/7701:
13949 * target-delegates.c: New file.
13950 * target.c: Include target-delegates.c.
13951 (init_dummy_target): Call install_dummy_methods.
13952 (complete_target_initialization): Call install_delegators.
13953 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13954 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13955 * make-target-delegates: New file.
13956
13957 2014-02-19 Tom Tromey <tromey@redhat.com>
13958
13959 * record.c (find_record_target): Use find_target_at.
13960 * target.c (find_target_at): New function.
13961 * target.h (find_target_at): Declare.
13962
13963 2014-02-19 Tom Tromey <tromey@redhat.com>
13964
13965 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13966 Add 'ops' argument.
13967 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13968 'ops' argument.
13969 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13970 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13971 'ops' argument.
13972 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13973 argument.
13974 * linux-nat.c (save_sigtrap): Update.
13975 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13976 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13977 (linux_nat_close): Update.
13978 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13979 argument.
13980 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13981 argument.
13982 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13983 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13984 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13985 (tmp_to_async): Add 'ops' argument.
13986 (record_full_stopped_by_watchpoint, record_full_async)
13987 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13988 argument.
13989 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13990 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13991 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13992 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13993 (remote_is_async_p, remote_async): Add 'ops' argument.
13994 (remote_stopped_data_address): Update.
13995 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13996 * target.c (update_current_target)
13997 (find_default_can_async_p, find_default_is_async_p): Update.
13998 (init_dummy_target): Update.
13999 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
14000 * target.h (struct target_ops) <to_stopped_by_watchpoint,
14001 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
14002 (target_can_async_p, target_is_async_p, target_async)
14003 (target_stopped_by_watchpoint): Update.
14004
14005 2014-02-19 Yao Qi <yao@codesourcery.com>
14006
14007 PR gdb/16220
14008 * gdbarch.sh: Remove startup_gdbarch.
14009 * gdbarch.c: Regenerated.
14010 * gdbarch.h: Likewise.
14011
14012 2014-02-17 Kevin Buettner <kevinb@redhat.com>
14013
14014 * rl78-tdep.c (rl78_g10_register_name): New function.
14015 (rl78_return_value): Add g10 support.
14016 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14017 g10.
14018
14019 2014-02-17 Doug Evans <xdje42@gmail.com>
14020
14021 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14022 (SUBDIR_GUILE_SRCS): Ditto.
14023 (scm-gsmob.o): Ditto.
14024
14025 2014-02-17 Yao Qi <yao@codesourcery.com>
14026
14027 * gnu-nat.c (ILL_RPC): Declare defined function.
14028
14029 2014-02-17 Yao Qi <yao@codesourcery.com>
14030
14031 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14032 mach_msg_type_number_t.
14033 (gnu_write_inferior): Likewise.
14034
14035 2014-02-17 Yao Qi <yao@codesourcery.com>
14036
14037 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14038 in format string.
14039 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14040 (inf_validate_procs, inf_signal): Likewise.
14041 (S_exception_raise_request): Likewise.
14042 (do_mach_notify_dead_name): Likewise.
14043 (steal_exc_port): Likewise.
14044 (gnu_read_inferior): Change 'copy_count''s type to
14045 mach_msg_type_number_t.
14046 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14047 format string.
14048
14049 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14050
14051 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14052 flag. Adjust all users; in particular...
14053 (gnu_wait): ..., don't decrement its value in here...
14054 (gnu_create_inferior): ..., and instead set the flag in here,
14055 around the startup_inferior call, and call that one with
14056 START_INFERIOR_TRAPS_EXPECTED.
14057
14058 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14059 (ILL_RPC): ... new macro.
14060 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14061 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14062 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14063 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14064 functions with ILL_RPC macro.
14065 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14066 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14067 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14068 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14069 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14070 (S_proc_getlogin_reply, S_proc_getsid_reply)
14071 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14072 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14073 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14074 (S_proc_getnports_reply, S_proc_is_important_reply)
14075 (S_proc_get_code_reply): New stub functions, generated with
14076 ILL_RPC macro.
14077
14078 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14079 collected the type check structures.
14080
14081 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14082
14083 2014-02-14 Doug Evans <dje@google.com>
14084
14085 * target.c (target_write_partial): Fix result type.
14086
14087 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14088
14089 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14090 the proper offsets to access fpregset_t.
14091
14092 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14093
14094 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14095 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14096 * h8300-tdep.c (setmachinelist): Remove global.
14097 * hppa-tdep.c (hppa_sigtramp): Remove global.
14098 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14099 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14100 * ravenscar-thread.c (update_target_observer): Remove global.
14101 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14102
14103 2014-02-12 Tom Tromey <tromey@redhat.com>
14104
14105 * common/rsp-low.c: Update comments.
14106 * common/rsp-low.h: Update comments.
14107
14108 2014-02-12 Tom Tromey <tromey@redhat.com>
14109
14110 * common/rsp-low.c (convert_ascii_to_int): Remove.
14111 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14112
14113 2014-02-12 Tom Tromey <tromey@redhat.com>
14114
14115 * common/rsp-low.h (unhexify): Don't declare.
14116 * common/rsp-low.c (unhexify): Remove.
14117
14118 2014-02-12 Tom Tromey <tromey@redhat.com>
14119
14120 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14121 * common/rsp-low.c (convert_int_to_ascii): Remove.
14122
14123 2014-02-12 Tom Tromey <tromey@redhat.com>
14124
14125 * common/rsp-low.h (hexify): Don't declare.
14126 * common/rsp-low.c (hexify): Remove.
14127
14128 2014-02-12 Tom Tromey <tromey@redhat.com>
14129
14130 * common/rsp-low.c (hexify): Never take strlen of argument.
14131
14132 2014-02-12 Tom Tromey <tromey@redhat.com>
14133
14134 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14135 * remote.c (extended_remote_run, remote_rcmd)
14136 (remote_download_trace_state_variable, remote_save_trace_data)
14137 (remote_set_trace_notes): Update.
14138 * tracepoint.c (encode_source_string, tfile_write_status)
14139 (tfile_write_uploaded_tsv): Update.
14140
14141 2014-02-12 Tom Tromey <tromey@redhat.com>
14142
14143 * tracepoint.c: Include rsp-low.h.
14144 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14145 * remote.c: Include rsp-low.h.
14146 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14147 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14148 (remote_unescape_input): Move to common/rsp-low.c.
14149 * common/rsp-low.h: New file.
14150 * common/rsp-low.c: New file.
14151 * Makefile.in (SFILES): Add common/rsp-low.c.
14152 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14153 (COMMON_OBS): Add rsp-low.o.
14154 (rsp-low.o): New target.
14155
14156 2014-02-12 Tom Tromey <tromey@redhat.com>
14157
14158 * utils.h: Include print-utils.h.
14159 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14160 (int_string, core_addr_to_string, core_addr_to_string_nz)
14161 (hex_string, hex_string_custom): Don't declare.
14162 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14163 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14164 (hex_string_custom, int_string, core_addr_to_string)
14165 (core_addr_to_string_nz, host_address_to_string): Move to
14166 common/print-utils.c.
14167 * common/print-utils.h: New file.
14168 * common/print-utils.c: New file
14169 * Makefile.in (SFILES): Add common/print-utils.c.
14170 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14171 (COMMON_OBS): Add print-utils.o.
14172 (print-utils.o): New target.
14173
14174 2014-02-12 Tom Tromey <tromey@redhat.com>
14175
14176 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14177
14178 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14179
14180 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14181
14182 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14183
14184 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14185 if a PT_IO ptrace request returns sucessfully but indicates that 0
14186 bytes were transferred.
14187
14188 2014-02-12 Pedro Alves <palves@redhat.com>
14189 Kevin Buettner <kevinb@redhat.com>
14190
14191 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14192 TYPE_INSTANCE_FLAG_CODE_SPACE.
14193
14194 2014-02-12 Pedro Alves <palves@redhat.com>
14195
14196 * h8300-tdep.c (pseudo_from_raw_register)
14197 (raw_from_pseudo_register): New functions.
14198 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14199 them.
14200
14201 2014-02-12 Pedro Alves <palves@redhat.com>
14202
14203 * h8300-tdep.c (h8300_register_sim_regno): New function.
14204 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14205 gdbarch_register_sim_regno hook.
14206
14207 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14208
14209 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14210
14211 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14212
14213 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14214
14215 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14216
14217 * obsd-tdep.h (obsd_init_abi): New prototype.
14218 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14219 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14220 (obsd_init_abi): New functions.
14221 * i386obsd-tdep.c: Include "obsd-tdep.h".
14222 (i386obsd_init_abi): Call obsd_init_abi.
14223 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14224 (amd64obsd_init_abi): Call obsd_init_abi.
14225 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14226 obsd-tdep.c to gdb_target_obs.
14227
14228 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14229
14230 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14231 double float arguments to 16-byte in the argument slots.
14232
14233 2014-02-11 Doug Evans <xdje42@gmail.com>
14234
14235 * configure.ac: Don't crash if pkg-config is not found and guile
14236 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14237 in guile checks.
14238 * configure: Regenerate.
14239
14240 2014-02-11 Yao Qi <yao@codesourcery.com>
14241
14242 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14243 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14244 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14245 * gnu-nat.c (gnu_xfer_memory): Likewise.
14246 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14247 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14248 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14249 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14250
14251 2014-02-11 Yao Qi <yao@codesourcery.com>
14252
14253 * target.h (enum target_xfer_error): Rename to ...
14254 (enum target_xfer_status): ... it. New. All users updated.
14255 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14256 New.
14257 (TARGET_XFER_STATUS_ERROR_P): New macro.
14258 (target_xfer_error_to_string): Remove declaration.
14259 (target_xfer_status_to_string): Declare.
14260 (target_xfer_partial_ftype): Adjust it.
14261 (struct target_ops) <to_xfer_partial>: Return
14262 target_xfer_status. Add argument xfered_len. Update
14263 comments.
14264 * target.c (target_xfer_error_to_string): Rename to ...
14265 (target_xfer_status_to_string): ... it. New. All callers
14266 updated.
14267 (target_read_live_memory): Likewise. Call target_xfer_partial
14268 instead of target_read.
14269 (memory_xfer_live_readonly_partial): Return
14270 target_xfer_status. Add argument xfered_len.
14271 (raw_memory_xfer_partial): Likewise.
14272 (memory_xfer_partial_1): Likewise.
14273 (memory_xfer_partial): Likewise.
14274 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14275 properly. Update debug message.
14276 (default_xfer_partial, current_xfer_partial): Likewise.
14277 (target_write_partial): Likewise.
14278 (target_read_partial): Likewise. All callers updated.
14279 (read_whatever_is_readable): Likewise.
14280 (target_write_with_progress): Likewise.
14281 (target_read_alloc_1): Likewise.
14282
14283 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14284 * auxv.c (procfs_xfer_auxv): Likewise.
14285 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14286 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14287 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14288 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14289 * corefile.c (read_memory): Adjust.
14290 * corelow.c (core_xfer_partial): Likewise.
14291 * ctf.c (ctf_xfer_partial): Likewise.
14292 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14293 updated.
14294 (darwin_xfer_partial): Likewise.
14295 * exec.c (section_table_xfer_memory_partial): Likewise. All
14296 callers updated.
14297 (exec_xfer_partial): Likewise.
14298 * exec.h (section_table_xfer_memory_partial): Update
14299 declaration.
14300 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14301 negative.
14302 (gnu_xfer_partial): Likewise.
14303 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14304 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14305 (ia64_hpux_xfer_solib_got): Likewise.
14306 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14307 type of 'partial_len' to ULONGEST.
14308 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14309 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14310 (linux_nat_xfer_partial): Likewise.
14311 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14312 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14313 * monitor.c (monitor_xfer_memory): Likewise.
14314 (monitor_xfer_partial): Likewise.
14315 * procfs.c (procfs_xfer_partial): Likewise.
14316 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14317 * record-full.c (record_full_xfer_partial): Likewise.
14318 (record_full_core_xfer_partial): Likewise.
14319 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14320 (gdbsim_xfer_partial): Likewise.
14321 * remote.c (remote_write_bytes_aux): Likewise. All callers
14322 updated.
14323 (remote_write_bytes, remote_read_bytes): Likewise. All
14324 callers updated.
14325 (remote_flash_erase): Likewise. All callers updated.
14326 (remote_write_qxfer): Likewise. All callers updated.
14327 (remote_read_qxfer): Likewise. All callers updated.
14328 (remote_xfer_partial): Likewise.
14329 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14330 (rs6000_xfer_shared_libraries): Likewise.
14331 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14332 (sol_thread_xfer_partial): Likewise.
14333 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14334 (sparc_xfer_partial): Likewise.
14335 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14336 updated.
14337 (spu_xfer_partial): Likewise.
14338 * spu-multiarch.c (spu_xfer_partial): Likewise.
14339 * tracepoint.c (tfile_xfer_partial): Likewise.
14340 * windows-nat.c (windows_xfer_memory): Likewise.
14341 (windows_xfer_shared_libraries): Likewise.
14342 (windows_xfer_partial): Likewise.
14343 * valprint.c: Replace 'target_xfer_error' with
14344 'target_xfer_status' in comments.
14345
14346 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14347
14348 Checked in by Joel Brobecker <brobecker@adacore.com>.
14349 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14350
14351 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14352
14353 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14354 function parameters.
14355
14356 2014-02-10 Will Newton <will.newton@linaro.org>
14357
14358 * elfread.c (elf_rel_plt_read): Look for a .got section if
14359 looking up .got.plt fails.
14360 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14361 on address passed to elf_gnu_ifunc_record_cache.
14362 (elf_gnu_ifunc_resolve_addr): Likewise.
14363 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14364
14365 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14366
14367 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14368 (X_RETTURN): New macro.
14369 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14370
14371 * sparc64-tdep.c (sparc64_init_abi): Hook
14372 sparc_in_function_epilogue_p.
14373
14374 2014-02-10 Gary Benson <gbenson@redhat.com>
14375
14376 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14377 Rename name_matcher to symbol_matcher.
14378
14379 2014-02-10 Gary Benson <gbenson@redhat.com>
14380
14381 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14382 Use expand_symtabs_file_matcher_ftype and
14383 expand_symtabs_symbol_matcher_ftype.
14384
14385 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14386
14387 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14388 (struct ada_symbol_cache): New.
14389 (ada_free_symbol_cache): Forward declare.
14390 (struct ada_pspace_data): New.
14391 (ada_pspace_data_handle): New static global.
14392 (get_ada_pspace_data, ada_pspace_data_cleanup)
14393 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14394 (cache_space, cache): Delete, now folded inside struct
14395 ada_pspace_data.
14396 (ada_get_symbol_cache): New function.
14397 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14398 implementation.
14399 (_initialize_ada_language): Remove initialization of cache_space.
14400 Move call to observer_attach_inferior_exit up, grouping it
14401 with the other observer registrations inside this function.
14402 Rename command to be more general. Add call to
14403 register_program_space_data_with_cleanup.
14404
14405 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14406
14407 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14408 ada_new_objfile_observer.
14409 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14410 (_initialize_tasks): Update uses of ada_new_objfile_observer
14411 and ada_tasks_normal_stop_observer.
14412
14413 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14414
14415 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14416 returned by the 'Length attribute to integer.
14417
14418 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14419
14420 * ada-lang.c (_initialize_ada_language): Initialize
14421 cache_space obstack.
14422
14423 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14424
14425 * ada-lang.c (HASH_SIZE): New macro.
14426 (struct cache_entry): New type.
14427 (cache_space, cache): New static globals.
14428 (ada_clear_symbol_cache, find_entry): New functions.
14429 (lookup_cached_symbol, cache_symbol): Implement.
14430 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14431 (_initialize_ada_language): Attach ada_new_objfile_observer
14432 and ada_free_objfile_observer.
14433
14434 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14435
14436 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14437 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14438 struct block * parameter.
14439 (ada_lookup_symbol_list_worker): Constify local variable "block".
14440 Remove cast which is no longer necessary.
14441
14442 2014-02-10 Doug Evans <xdje42@gmail.com>
14443
14444 Add Guile as an extension language.
14445 * NEWS: Mention Guile scripting.
14446 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14447 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14448 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14449 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14450 (CLIBS): Add GUILE_LIBS.
14451 (install-guile): New rule.
14452 (guile.o): New rule.
14453 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14454 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14455 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14456 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14457 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14458 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14459 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14460 * configure.ac: New option --with-guile.
14461 * configure: Regenerate.
14462 * config.in: Regenerate.
14463 * auto-load.c: Remove #include "python/python.h". Add #include
14464 "gdb/section-scripts.h".
14465 (source_section_scripts): Handle Guile scripts.
14466 (_initialize_auto_load): Add name of Guile objfile script to
14467 scripts-directory help text.
14468 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14469 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14470 (struct breakpoint): New member scm_bp_object.
14471 * defs.h (enum command_control_type): New value guile_control.
14472 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14473 "extension.h".
14474 (show_user): Update comment.
14475 (_initialize_cli_cmds): Update help text for "show user". Update help
14476 text for max-user-call-depth.
14477 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14478 "extension.h".
14479 (multi_line_command_p): Add guile_control.
14480 (print_command_lines): Handle guile_control.
14481 (execute_control_command, recurse_read_control_structure): Ditto.
14482 (process_next_line): Recognize "guile" commands.
14483 * disasm.c (gdb_disassemble_info): Make non-static.
14484 * disasm.h: #include "dis-asm.h".
14485 (struct gdbarch): Add forward decl.
14486 (gdb_disassemble_info): Declare.
14487 * extension.c: #include "guile/guile.h".
14488 (extension_languages): Add guile.
14489 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14490 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14491 * gdbtypes.c (get_unsigned_type_max): New function.
14492 (get_signed_type_minmax): New function.
14493 * gdbtypes.h (get_unsigned_type_max): Declare.
14494 (get_signed_type_minmax): Declare.
14495 * guile/README: New file.
14496 * guile/guile-internal.h: New file.
14497 * guile/guile.c: New file.
14498 * guile/guile.h: New file.
14499 * guile/scm-arch.c: New file.
14500 * guile/scm-auto-load.c: New file.
14501 * guile/scm-block.c: New file.
14502 * guile/scm-breakpoint.c: New file.
14503 * guile/scm-disasm.c: New file.
14504 * guile/scm-exception.c: New file.
14505 * guile/scm-frame.c: New file.
14506 * guile/scm-gsmob.c: New file.
14507 * guile/scm-iterator.c: New file.
14508 * guile/scm-lazy-string.c: New file.
14509 * guile/scm-math.c: New file.
14510 * guile/scm-objfile.c: New file.
14511 * guile/scm-ports.c: New file.
14512 * guile/scm-pretty-print.c: New file.
14513 * guile/scm-safe-call.c: New file.
14514 * guile/scm-string.c: New file.
14515 * guile/scm-symbol.c: New file.
14516 * guile/scm-symtab.c: New file.
14517 * guile/scm-type.c: New file.
14518 * guile/scm-utils.c: New file.
14519 * guile/scm-value.c: New file.
14520 * guile/lib/gdb.scm: New file.
14521 * guile/lib/gdb/boot.scm: New file.
14522 * guile/lib/gdb/experimental.scm: New file.
14523 * guile/lib/gdb/init.scm: New file.
14524 * guile/lib/gdb/iterator.scm: New file.
14525 * guile/lib/gdb/printing.scm: New file.
14526 * guile/lib/gdb/types.scm: New file.
14527 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14528 (VPATH): Add $(GUILE_SRCDIR).
14529 (GUILE_DIR): New variable.
14530 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14531 (all): Add stamp-guile dependency.
14532 (stamp-guile): New rule.
14533 (clean-guile, install-guile, uninstall-guile): New rules.
14534 (install-only): Add install-guile dependency.
14535 (uninstall): Add uninstall-guile dependency.
14536 (clean): Add clean-guile dependency.
14537
14538 2014-02-09 Doug Evans <xdje42@gmail.com>
14539
14540 Revert this patch (which I approved, mea culpa).
14541
14542 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14543
14544 * Makefile.in (all-lib): Remove.
14545 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14546
14547 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14548
14549 Fix Python stack corruption.
14550 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14551 gdb_py_longest.
14552
14553 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14554
14555 * Makefile.in (all-lib): Remove.
14556 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14557
14558 2014-02-07 Doug Evans <dje@google.com>
14559
14560 * extension-priv.h (extension_language_script_ops): Add comment.
14561 (extension_language_ops): Add comment.
14562 (active_ext_lang_state): Fix typo in comment.
14563
14564 2014-02-07 Pedro Alves <palves@redhat.com>
14565
14566 PR breakpoints/16292
14567 * infrun.c (handle_signal_stop) <signal arrives while stepping
14568 over a breakpoint>: Switch back to the stepping thread.
14569
14570 2014-02-07 Yao Qi <yao@codesourcery.com>
14571
14572 * target.c (target_xfer_partial): Return zero if LEN is zero.
14573
14574 2014-02-07 Yao Qi <yao@codesourcery.com>
14575
14576 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14577 (ld_so_xfer_auxv): Likewise.
14578 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14579 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14580 * corelow.c (core_xfer_partial): Likewise.
14581 * ctf.c (ctf_xfer_partial): Likewise.
14582 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14583 (darwin_xfer_partial): Likewise.
14584 * exec.c (exec_xfer_partial): Likewise.
14585 * gnu-nat.c (gnu_xfer_partial): Likewise.
14586 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14587 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14588 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14589 * linux-nat.c (linux_xfer_siginfo): Likewise.
14590 (linux_proc_xfer_spu): Likewise.
14591 * procfs.c (procfs_xfer_partial): Likewise.
14592 * record-full.c (record_full_xfer_partial): Likewise.
14593 (record_full_core_xfer_partial): Likewise.
14594 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14595 * remote.c (remote_write_qxfer): Likewise.
14596 (remote_write_qxfer, remote_read_qxfer): Likewise.
14597 (remote_xfer_partial): Likewise.
14598 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14599 (rs6000_xfer_shared_libraries): Likewise.
14600 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14601 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14602 (spu_xfer_partial): Likewise.
14603 * target.c (memory_xfer_partial_1): Likewise.
14604 * tracepoint.c (tfile_xfer_partial): Likewise.
14605 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14606 (windows_xfer_partial): Likewise.
14607
14608 2014-02-07 Yao Qi <yao@codesourcery.com>
14609
14610 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14611 comments.
14612 (core_xfer_shared_libraries_aix): Likewise.
14613 * gdbarch.c, gdbarch.h: Regenerated.
14614 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14615 ULONGEST. Change 'len_avail' type to ULONGEST.
14616 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14617 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14618 declaration.
14619 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14620
14621 2014-02-07 Yao Qi <yao@codesourcery.com>
14622
14623 * corefile.c (memory_error): Get 'exception' from ERR and pass
14624 'exception' to throw_error.
14625
14626 2014-02-06 Doug Evans <xdje42@gmail.com>
14627
14628 * configure.ac (libpython checking): Remove all but python.o from
14629 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14630 * configure: Regenerate.
14631
14632 * Makefile.in (SFILES): Add extension.c.
14633 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14634 (COMMON_OBS): Add extension.o.
14635 * extension.h: New file.
14636 * extension-priv.h: New file.
14637 * extension.c: New file.
14638
14639 * python/python-internal.h: #include "extension.h".
14640 (gdbpy_auto_load_enabled): Declare.
14641 (gdbpy_apply_val_pretty_printer): Declare.
14642 (gdbpy_apply_frame_filter): Declare.
14643 (gdbpy_preserve_values): Declare.
14644 (gdbpy_breakpoint_cond_says_stop): Declare.
14645 (gdbpy_breakpoint_has_cond): Declare.
14646 (void source_python_script_for_objfile): Delete.
14647 * python/python.c: #include "extension-priv.h".
14648 Delete inclusion of "observer.h".
14649 (extension_language_python): Moved here and renamed from
14650 script_language_python in py-auto-load.c.
14651 Redefined to be of type extension_language_defn.
14652 (python_extension_script_ops): New global.
14653 (python_extension_ops): New global.
14654 (struct python_env): New member previous_active.
14655 (restore_python_env): Call restore_active_ext_lang.
14656 (ensure_python_env): Call set_active_ext_lang.
14657 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14658 New arg extlang.
14659 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14660 New arg extlang.
14661 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14662 New arg extlang.
14663 (gdbpy_eval_from_control_command): Renamed from
14664 eval_python_from_control_command, made static. New arg extlang.
14665 (gdbpy_source_script) Renamed from source_python_script, made static.
14666 New arg extlang.
14667 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14668 result to int. New arg extlang.
14669 (gdbpy_source_objfile_script): Renamed from
14670 source_python_script_for_objfile, made static. New arg extlang.
14671 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14672 static. New args extlang, extlang_printers. Change result type to
14673 "void".
14674 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14675 static. New arg extlang. Rename arg printers to extlang_printers
14676 and change type to ext_lang_type_printers *.
14677 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14678 static. Replace argument arg with extlang, extlang_printers.
14679 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14680 (!HAVE_PYTHON, source_python_script): Delete.
14681 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14682 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14683 (!HAVE_PYTHON, start_type_printers): Delete.
14684 (!HAVE_PYTHON, apply_type_printers): Delete.
14685 (!HAVE_PYTHON, free_type_printers): Delete.
14686 (_initialize_python): Delete call to observer_attach_before_prompt.
14687 (finalize_python): Set/restore active extension language.
14688 (gdbpy_finish_initialization) Renamed from
14689 finish_python_initialization, made static. New arg extlang.
14690 (gdbpy_initialized): New function.
14691 * python/python.h: #include "extension.h". Delete #include
14692 "value.h", "mi/mi-cmds.h".
14693 (extension_language_python): Declare.
14694 (GDBPY_AUTO_FILE_NAME): Delete.
14695 (enum py_bt_status): Moved to extension.h and renamed to
14696 ext_lang_bt_status.
14697 (enum frame_filter_flags): Moved to extension.h.
14698 (enum py_frame_args): Moved to extension.h and renamed to
14699 ext_lang_frame_args.
14700 (finish_python_initialization): Delete.
14701 (eval_python_from_control_command): Delete.
14702 (source_python_script): Delete.
14703 (apply_val_pretty_printer): Delete.
14704 (apply_frame_filter): Delete.
14705 (preserve_python_values): Delete.
14706 (gdbpy_script_language_defn): Delete.
14707 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14708 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14709
14710 * auto-load.c: #include "extension.h".
14711 (GDB_AUTO_FILE_NAME): Delete.
14712 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14713 (script_language_gdb): Delete, moved to extension.c and renamed to
14714 extension_language_gdb.
14715 (source_gdb_script_for_objfile): Delete.
14716 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14717 (loaded_script): Change type of language member to
14718 struct extension_language_defn *.
14719 (init_loaded_scripts_info): Initialize
14720 unsupported_script_warning_printed.
14721 (maybe_add_script): Make static. Change type of language arg to
14722 struct extension_language_defn *.
14723 (clear_section_scripts): Reset unsupported_script_warning_printed.
14724 (auto_load_objfile_script_1): Rewrite to use extension language API.
14725 (auto_load_objfile_script): Make public. Remove support-compiled-in
14726 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14727 (source_section_scripts): Rewrite to use extension language API.
14728 (load_auto_scripts_for_objfile): Rewrite to use
14729 auto_load_scripts_for_objfile.
14730 (collect_matching_scripts_data): Change type of language member to
14731 struct extension_language_defn *.
14732 (auto_load_info_scripts): Change type of language arg to
14733 struct extension_language_defn *.
14734 (unsupported_script_warning_print): New function.
14735 (script_not_found_warning_print): Make static.
14736 (_initialize_auto_load): Rewrite construction of scripts-directory
14737 help.
14738 * auto-load.h (struct objfile): Add forward decl.
14739 (struct script_language): Delete.
14740 (struct auto_load_pspace_info): Add forward decl.
14741 (struct extension_language_defn): Add forward decl.
14742 (maybe_add_script): Delete.
14743 (auto_load_objfile_script): Declare.
14744 (script_not_found_warning_print): Delete.
14745 (auto_load_info_scripts): Update prototype.
14746 (auto_load_gdb_scripts_enabled): Declare.
14747 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14748 auto_load_python_scripts_enabled and made public.
14749 (script_language_python): Delete, moved to python.c.
14750 (gdbpy_script_language_defn): Delete.
14751 (info_auto_load_python_scripts): Update to use
14752 extension_language_python.
14753
14754 * breakpoint.c (condition_command): Replace call to
14755 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14756 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14757 with call to breakpoint_ext_lang_cond_says_stop.
14758 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14759 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14760 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14761 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14762 New arg slang.
14763 (local_setattro): Print name of extension language with existing
14764 stop condition.
14765
14766 * valprint.c (val_print, value_print): Update to call
14767 apply_ext_lang_val_pretty_printer.
14768 * cp-valprint.c (cp_print_value): Update call to
14769 apply_ext_lang_val_pretty_printer.
14770 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14771 (gdbpy_apply_val_pretty_printer): Renamed from
14772 apply_val_pretty_printer. New arg extlang.
14773 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14774
14775 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14776 extension language API.
14777 * cli/cli-script.c (execute_control_command): Update to call
14778 eval_ext_lang_from_control_command.
14779
14780 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14781 enum ext_lang_bt_status values. Update call to
14782 apply_ext_lang_frame_filter.
14783 (mi_cmd_stack_list_locals): Ditto.
14784 (mi_cmd_stack_list_args): Ditto.
14785 (mi_cmd_stack_list_variables): Ditto.
14786 * mi/mi-main.c: Delete #include "python/python-internal.h".
14787 Add #include "extension.h".
14788 (mi_cmd_list_features): Replace reference to python internal variable
14789 gdb_python_initialized with call to ext_lang_initialized_p.
14790
14791 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14792 Update to use enum ext_lang_frame_args. Update to call
14793 apply_ext_lang_frame_filter.
14794 * python/py-framefilter.c (extract_sym): Update to use enum
14795 ext_lang_bt_status.
14796 (extract_value, py_print_type, py_print_value): Ditto.
14797 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14798 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14799 (py_print_frame): Ditto.
14800 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14801 New arg extlang. Update to use enum ext_lang_bt_status.
14802
14803 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14804 finish_python_initialization. Replace with call to
14805 finish_ext_lang_initialization.
14806
14807 * typeprint.c (do_free_global_table): Update to call
14808 free_ext_lang_type_printers.
14809 (create_global_typedef_table): Update to call
14810 start_ext_lang_type_printers.
14811 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14812 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14813 (type_print_options): Change type of global_printers from "void *"
14814 to "struct ext_lang_type_printers *".
14815
14816 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14817 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14818 (gdbpy_preserve_values): Renamed from preserve_python_values.
14819 New arg extlang.
14820 (!HAVE_PYTHON, preserve_python_values): Delete.
14821
14822 * utils.c (quit_flag): Delete, moved to extension.c.
14823 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14824 extension.c.
14825
14826 * eval.c: Delete #include "python/python.h".
14827 * main.c: Delete #include "python/python.h".
14828
14829 * defs.h: Update comment.
14830
14831 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14832
14833 GDB 7.7 released.
14834
14835 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14836
14837 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14838 defined.
14839
14840 2014-02-05 Yao Qi <yao@codesourcery.com>
14841
14842 * remote.c (remote_pass_signals): Remove local 'buf' and use
14843 rs->buf.
14844 (remote_program_signals): Likewise.
14845
14846 2014-02-05 Yao Qi <yao@codesourcery.com>
14847
14848 * ctf.c: Include "inferior.h" and "gdbthread.h".
14849 (CTF_PID): A new macro.
14850 (ctf_open): Call inferior_appeared and add_thread_silent.
14851 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14852 (ctf_thread_alive): New function.
14853 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14854
14855 2014-02-05 Yao Qi <yao@codesourcery.com>
14856
14857 Revert this patch:
14858
14859 2013-05-24 Yao Qi <yao@codesourcery.com>
14860
14861 * tracepoint.c (TFILE_PID): Remove.
14862 (tfile_open): Don't add thread and inferior.
14863 (tfile_close): Don't set 'inferior_ptid'. Don't call
14864 exit_inferior_silent.
14865 (tfile_thread_alive): Remove.
14866 (init_tfile_ops): Don't set field 'to_thread_alive' of
14867 tfile_ops.
14868
14869 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14870
14871 * remote.c (remote_start_remote): Call remote_check_symbols even
14872 if only symbol-file (not file) has been given.
14873
14874 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14875
14876 * gdbarch.sh (skip_entrypoint): New callback.
14877 * gdbarch.c, gdbarch.h: Regenerate.
14878 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14879 * infrun.c (fill_in_stop_func): Likewise.
14880 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14881 (ppc_elfv2_elf_make_msymbol_special): New function.
14882 (ppc_elfv2_skip_entrypoint): Likewise.
14883 (ppc_linux_init_abi): Install them for ELFv2.
14884
14885 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14886
14887 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14888 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14889 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14890 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14891 structures returned in GPRs.
14892
14893 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14894
14895 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14896 offset to the stack parameter list for the ELFv2 ABI.
14897
14898 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14899
14900 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14901 set_gdbarch_convert_from_func_ptr_addr and
14902 set_gdbarch_elf_make_msymbol_special for ELFv1.
14903 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14904 function descriptors on ELFv1.
14905 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14906 set up r12 at function entry.
14907
14908 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14909
14910 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14911 (struct gdbarch_tdep): New member elf_abi.
14912
14913 * rs6000-tdep.c: Include "elf/ppc64.h".
14914 (rs6000_gdbarch_init): Detect ELF ABI version.
14915
14916 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14917
14918 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14919 within a register pair holding a DFP 128-bit value on little-endian.
14920 (ppc64_sysv_abi_return_value_base): Likewise.
14921 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14922 (dfp_pseudo_register_write): Likewise.
14923
14924 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14925
14926 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14927 offset on little-endian when passing _Decimal32.
14928 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14929
14930 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14931
14932 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14933 of the overlapped FP register within the VSX register on little-
14934 endian platforms.
14935 (efpr_pseudo_register_write): Likewise.
14936
14937 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14938
14939 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14940 offset on little-endian when passing small structures.
14941
14942 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14943
14944 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14945 (struct ppc64_sysv_argpos): New data structure.
14946 (ppc64_sysv_abi_push_float): Remove.
14947 (ppc64_sysv_abi_push_val): New function.
14948 (ppc64_sysv_abi_push_integer): Likewise.
14949 (ppc64_sysv_abi_push_freg): Likewise.
14950 (ppc64_sysv_abi_push_vreg): Likewise.
14951 (ppc64_sysv_abi_push_param): Likewise.
14952 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14953 (ppc64_sysv_abi_return_value_base): New function.
14954 (ppc64_sysv_abi_return_value): Refactor to use it.
14955
14956 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14957
14958 * NEWS: Document new target powerpc64le-*-linux*.
14959
14960 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14961
14962 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14963 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14964 core dumps.
14965 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14966 register set used in ELF core dumps. Add floating-point register set.
14967
14968 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14969
14970 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14971 dwarf2_to_gdb[] table using symbolic constants. Adjust
14972 penultimate entry from number representing the PC register
14973 to symbolic constant representing the MDR register. Add
14974 constant for the PC register to the end of the table.
14975
14976 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14977
14978 * bsd-kvm.c: Include <sys/param.h>
14979
14980 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14981
14982 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14983
14984 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14985
14986 * ada-lang.h (clear_ada_sym_cache): Delete.
14987
14988 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14989
14990 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14991
14992 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14993
14994 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14995 the sigreturn register save area only if the syscall is
14996 sigreturn.
14997
14998 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14999
15000 * valops.c (value_slice): Minor reformatting.
15001
15002 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
15003
15004 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
15005
15006 2014-01-28 Joel Brobecker <brobecker@adacore.com>
15007
15008 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
15009 New static globals.
15010 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
15011 (ada_ignore_descriptive_types_p): New static global.
15012 (find_parallel_type_by_descriptive_type): Return immediately
15013 if ada_ignore_descriptive_types_p is set.
15014 (_initialize_ada_language): Register new commands "maintenance
15015 set ada", "maintenance show ada", "maintenance set ada
15016 ignore-descriptive-types" and "maintenance show ada
15017 ignore-descriptive-types".
15018 * NEWS: Add entry for new "maint ada set/show
15019 ignore-descriptive-types" commands.
15020
15021 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15022
15023 * record-btrace.c (record_btrace_close): Call btrace_teardown
15024 for all threads.
15025
15026 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15027
15028 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15029 "ui-out.h".
15030
15031 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15032
15033 * ada-typeprint (type_is_full_subrange_of_target_type):
15034 New function.
15035 (print_range): Add parameter bounds_prefered_p. If not set,
15036 try printing range types using the name of their base type.
15037 (print_range_type): Add parameter bounds_prefered_p.
15038 Use it in call to print_range.
15039 (print_array_type, ada_print_type): Update calls to print_range
15040 and print_range_type.
15041
15042 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15043
15044 * ada-typeprint.c (print_array_type, print_choices, print_range)
15045 (print_range_bound, print_dynamic_range_bound, print_range_type):
15046 Remove declaration.
15047
15048 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15049
15050 * ada-typeprint.c (print_range): Add missing empty line
15051 after local declaration.
15052
15053 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15054
15055 * ada-valprint.c (print_optional_low_bound): Get index_type's
15056 target type for as long as it is a TYPE_CODE_RANGE.
15057
15058 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15059
15060 * procfs.c (procfs_make_note_section): Remove assertion and
15061 associated comment.
15062
15063 2014-01-24 Yao Qi <yao@codesourcery.com>
15064
15065 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15066 * corelow.c (get_core_siginfo): Likewise.
15067
15068 2014-01-24 Yao Qi <yao@codesourcery.com>
15069
15070 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15071 ULONGEST. Don't check 'len' is negative.
15072 (remote_write_bytes): Change type of 'len' to ULONGEST.
15073
15074 2014-01-23 Tom Tromey <tromey@redhat.com>
15075
15076 PR python/16485:
15077 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15078 Handle exception from frame.block.
15079 (FrameVars.fetch_frame_locals): Likewise.
15080
15081 2014-01-23 Tom Tromey <tromey@redhat.com>
15082
15083 PR python/16487:
15084 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15085 on a NULL pointer. Move "goto error" to correct place.
15086
15087 2014-01-23 Tom Tromey <tromey@redhat.com>
15088
15089 PR python/16491:
15090 * python/py-framefilter.c (apply_frame_filter): Call
15091 ensure_python_env after computing gdbarch.
15092
15093 2014-01-23 Yao Qi <yao@codesourcery.com>
15094
15095 * target.c (raw_memory_xfer_partial): Change argument type
15096 from void * to gdb_byte *.
15097 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15098
15099 2014-01-22 Doug Evans <dje@google.com>
15100
15101 New gdbserver option --debug-format=timestamp.
15102 * NEWS: Mention it.
15103
15104 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15105
15106 * syscalls/s390x-linux.xml: New file.
15107 * syscalls/s390-linux.xml: New file.
15108 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15109 (XML_SYSCALL_FILENAME_S390X): Likewise.
15110 (op_svc): New enum value for SVC opcode.
15111 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15112 (s390_linux_get_syscall_number): New function.
15113 (s390_gdbarch_init): Register '*get_syscall_number' and the
15114 syscall xml file name.
15115 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15116 "s390-linux.xml" and "s390x-linux.xml".
15117 * NEWS: Announce new feature.
15118
15119 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15120
15121 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15122
15123 2014-01-22 Pedro Alves <palves@redhat.com>
15124
15125 * xtensa-config.c: Include defs.h.
15126
15127 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15128
15129 * common/common-utils.h: Add "ARI:" comment beside __func__
15130 reference.
15131
15132 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15133
15134 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15135 documentation a bit.
15136
15137 2014-01-21 Roland McGrath <mcgrathr@google.com>
15138
15139 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15140 * configure: Regenerate.
15141 * aclocal.m4: Regenerate.
15142 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15143 New substituted variables.
15144 (install-strip): New target.
15145 (INSTALL_SCRIPT): New substituted variable.
15146 (FLAGS_TO_PASS): Add it.
15147 (install-only): Use $(INSTALL_SCRIPT) rather than
15148 $(INSTALL_PROGRAM) for gcore.
15149
15150 2014-01-20 Tom Tromey <tromey@redhat.com>
15151
15152 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15153 together.
15154
15155 2014-01-20 Tom Tromey <tromey@redhat.com>
15156
15157 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15158 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15159 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15160 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15161 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15162 (struct cmd_list_element) <flags>: Remove.
15163 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15164 doc_allocated>: New fields.
15165 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15166 bitfields.
15167 * maint.c (maintenance_do_deprecate): Update.
15168 * top.c (execute_command): Update.
15169
15170 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15171
15172 * xtensa-linux-nat.c: Include asm/ptrace.h.
15173
15174 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15175
15176 * Makefile.in (SFILES): Add d-support.c.
15177 (COMMON_OBS): Add d-support.o.
15178 * d-lang.h (d_parse_symbol): Add comment, now defined in
15179 d-support.c.
15180 * d-lang.c (parse_call_convention)
15181 (parse_attributes, parse_function_types)
15182 (parse_function_args, parse_type, parse_identifier)
15183 (call_convention_p, d_parse_symbol): Move functions to ...
15184 * d-support.c: ... New file.
15185
15186 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15187
15188 * d-lang.h (d_parse_symbol): Add declaration.
15189 * d-lang.c (extract_identifiers)
15190 (extract_type_info): Remove functions.
15191 (parse_call_convention, parse_attributes)
15192 (parse_function_types, parse_function_args)
15193 (parse_type, parse_identifier, call_convention_p)
15194 (d_parse_symbol): New functions.
15195 (d_demangle): Use d_parse_symbol to demangle D symbols.
15196
15197 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15198
15199 * d-lang.h (struct builtin_d_type): New data type.
15200 (builtin_d_type): Add declaration.
15201 * d-lang.c (d_language_arch_info, build_d_types)
15202 (builtin_d_type): New functions.
15203 (enum d_primitive_types): New data type.
15204 (d_language_defn): Change c_language_arch_info to
15205 d_language_arch_info.
15206 (d_type_data): New static variable.
15207 (_initialize_d_language): Initialize d_type_data.
15208
15209 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15210
15211 * d-lang.h (d_main_name): Add declaration.
15212 * d-lang.c (d_main_name): New function.
15213 * symtab.c (find_main_name): Add call to d_main_name.
15214
15215 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15216
15217 * d-lang.c (d_language_defn): Change macro_expansion_c to
15218 macro_expansion_no.
15219
15220 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15221
15222 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15223
15224 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15225
15226 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15227 gdb_exception" declaration.
15228 * remote.c (getpkt_or_notif_sane): Likewise.
15229
15230 2014-01-17 Doug Evans <dje@google.com>
15231
15232 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15233 function, contents of dirnames_to_char_ptr_vec_append moved here.
15234 (delim_string_to_char_ptr_vec): New function.
15235 (dirnames_to_char_ptr_vec_append): Rewrite.
15236 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15237
15238 2014-01-17 Doug Evans <dje@google.com>
15239
15240 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15241 and moved here ...
15242 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15243 #include "common-utils.h".
15244 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15245 * common/vec.h (VEC_ASSERT_PASS): Update.
15246 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15247 (MACH_CHECK_ERROR): Update.
15248
15249 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15250
15251 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15252 comments.
15253 * gdbarch.h: Regenerate.
15254
15255 2014-01-16 Tom Tromey <tromey@redhat.com>
15256
15257 * value.c (struct value) <regnum>: Move earlier.
15258
15259 2014-01-16 Tom Tromey <tromey@redhat.com>
15260
15261 * remote.c (extended_remote_create_inferior): Rename from
15262 extended_remote_create_inferior_1. Add "ops" argument. Remove
15263 old implementation.
15264
15265 2014-01-16 Pedro Alves <palves@redhat.com>
15266
15267 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15268 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15269 the backchain.
15270
15271 2014-01-16 Doug Evans <dje@google.com>
15272
15273 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15274
15275 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15276
15277 * btrace.h (btrace_thread_flag): New.
15278 (struct btrace_thread_info) <flags>: New.
15279 * record-btrace.c (record_btrace_resume_thread)
15280 (record_btrace_find_thread_to_move, btrace_step_no_history)
15281 (btrace_step_stopped, record_btrace_start_replaying)
15282 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15283 (record_btrace_find_resume_thread): New.
15284 (record_btrace_resume, record_btrace_wait): Extend.
15285 (record_btrace_can_execute_reverse): New.
15286 (record_btrace_open): Fail in non-stop mode.
15287 (record_btrace_set_replay): Split into this, ...
15288 (record_btrace_stop_replaying): ... this, ...
15289 (record_btrace_clear_histories): ... and this.
15290 (init_record_btrace_ops): Init to_can_execute_reverse.
15291 * NEWS: Announce it.
15292
15293 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15294
15295 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15296 (forward_target_decr_pc_after_break)
15297 (target_decr_pc_after_break): New.
15298 * target.c (forward_target_decr_pc_after_break)
15299 (target_decr_pc_after_break): New.
15300 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15301 instead of gdbarch_decr_pc_after_break.
15302 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15303 instead of gdbarch_decr_pc_after_break.
15304 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15305 instead of gdbarch_decr_pc_after_break.
15306 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15307 instead of gdbarch_decr_pc_after_break.
15308 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15309 instead of gdbarch_decr_pc_after_break.
15310 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15311 instead of gdbarch_decr_pc_after_break.
15312
15313 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15314
15315 * btrace.c: Include regcache.h.
15316 (btrace_add_pc): New.
15317 (btrace_enable): Call btrace_add_pc.
15318 (btrace_is_empty): New.
15319 * btrace.h (btrace_is_empty): New.
15320 * record-btrace.c (require_btrace, record_btrace_info): Call
15321 btrace_is_empty.
15322
15323 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15324
15325 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15326 Support delta reads.
15327 (linux_disable_btrace): Change return type.
15328 * common/linux-btrace.h (linux_read_btrace): Change parameters
15329 and return type to allow error reporting. Update users.
15330 (linux_disable_btrace): Change return type. Update users.
15331 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15332 New.
15333 (btrace_error): New.
15334 (btrace_block) <begin>: Comment on BEGIN == 0.
15335 * btrace.c (btrace_compute_ftrace): Start from the end of
15336 the current trace.
15337 (btrace_stitch_trace, btrace_clear_history): New.
15338 (btrace_fetch): Read delta trace, return if replaying.
15339 (btrace_clear): Move clear history code to btrace_clear_history.
15340 (parse_xml_btrace): Throw an error if parsing failed.
15341 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15342 and return type to allow error reporting.
15343 (target_read_btrace): Change parameters and return type to allow
15344 error reporting.
15345 * target.c (target_read_btrace): Update.
15346 * remote.c (remote_read_btrace): Support delta reads. Pass
15347 errors on.
15348 * NEWS: Announce it.
15349
15350 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15351
15352 * record.h (record_btrace_frame_unwind)
15353 (record_btrace_tailcall_frame_unwind): New declarations.
15354 * dwarf2-frame: Include record.h
15355 (dwarf2_frame_cfa): Throw an error for btrace frames.
15356 * record-btrace.c: Include hashtab.h.
15357 (btrace_get_bfun_name): New.
15358 (btrace_call_history): Call btrace_get_bfun_name.
15359 (struct btrace_frame_cache): New.
15360 (bfcache): New.
15361 (bfcache_hash, bfcache_eq, bfcache_new): New.
15362 (btrace_get_frame_function): New.
15363 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15364 (record_btrace_frame_this_id): Compute own id.
15365 (record_btrace_frame_prev_register): Provide PC, throw_error
15366 for all other registers.
15367 (record_btrace_frame_sniffer): Detect btrace frames.
15368 (record_btrace_tailcall_frame_sniffer): New.
15369 (record_btrace_frame_dealloc_cache): New.
15370 (record_btrace_frame_unwind): Add new functions.
15371 (record_btrace_tailcall_frame_unwind): New.
15372 (_initialize_record_btrace): Allocate cache.
15373 * btrace.c (btrace_clear): Call reinit_frame_cache.
15374 * NEWS: Announce it.
15375
15376 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15377
15378 * record-btrace.c (record_btrace_set_replay)
15379 (record_btrace_goto_begin, record_btrace_goto_end)
15380 (record_btrace_goto): New.
15381 (init_record_btrace_ops): Initialize them.
15382 * NEWS: Announce it.
15383
15384 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15385
15386 * record-btrace.c (record_btrace_find_new_threads)
15387 (record_btrace_thread_alive): New.
15388 (init_record_btrace_ops): Initialize to_find_new_threads and
15389 to_thread_alive.
15390
15391 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15392
15393 * record-btrace.c (record_btrace_resume): New.
15394 (record_btrace_wait): New.
15395 (init_record_btrace_ops): Initialize to_wait and to_resume.
15396
15397 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15398
15399 * record-btrace.c (record_btrace_xfer_partial)
15400 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15401 (record_btrace_allow_memory_access): New.
15402 (init_record_btrace_ops): Initialize new methods.
15403 * target.c (raw_memory_xfer_partial): Bail out if target reports
15404 that this memory is not available.
15405
15406 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15407
15408 * target.h (target_ops) <to_insert_breakpoint>
15409 <to_remove_breakpoint>: Add target_ops parameter.
15410 (forward_target_insert_breakpoint): New.
15411 (forward_target_remove_breakpoint): New.
15412 (memory_remove_breakpoint, memory_insert_breakpoint):
15413 Add target_ops parameter.
15414 * target.c (target_insert_breakpoint): Split into this and ...
15415 (forward_target_insert_breakpoint): ... this.
15416 (target_remove_breakpoint): Split into this and ...
15417 (forward_target_remove_breakpoint): ... this.
15418 (debug_to_insert_breakpoint): Add target_ops parameter.
15419 Call forward_target_insert_breakpoint.
15420 (debug_to_remove_breakpoint): Add target_ops parameter.
15421 Call forward_target_remove_breakpoint.
15422 (update_current_target): Do not inherit or default to_insert_breakpoint
15423 and to_remove_breakpoint.
15424 * corelow.c (ignore): Add target_ops parameter.
15425 * exec.c (ignore): Add target_ops parameter.
15426 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15427 Add target_ops parameter.
15428 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15429 Add target_ops parameter.
15430 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15431 Add target_ops parameter.
15432 * record-full.c (record_full_beneath_to_insert_breakpoint)
15433 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15434 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15435 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15436 (record_full_core_remove_breakpoint): Add target_ops parameter.
15437 Update users.
15438 (record_full_beneath_to_insert_breakpoint_ops)
15439 (record_full_beneath_to_remove_breakpoint_ops)
15440 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15441 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15442 tmp_to_remove_breakpoint_ops,
15443 record_full_beneath_to_insert_breakpoint_ops, and
15444 record_full_beneath_to_remove_breakpoint_ops.
15445 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15446 (m32r_remove_breakpoint): Add target_ops parameter.
15447 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15448 Add target_ops parameter.
15449 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15450 Add target_ops parameter.
15451
15452 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15453 Markus Metzger <markus.t.metzger@intel.com>
15454
15455 * record-btrace.c: Include frame-unwind.h.
15456 (record_btrace_frame_unwind_stop_reason)
15457 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15458 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15459 New.
15460 (init_record_btrace_ops): Install it.
15461
15462 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15463
15464 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15465 get_prev_frame_1.
15466
15467 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15468
15469 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15470 earlier.
15471
15472 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15473
15474 * frame-unwind.c: Include target.h.
15475 (frame_unwind_try_unwinder): New function with code from ...
15476 (frame_unwind_find_by_frame): ... here. New variable
15477 unwinder_from_target, call also target_get_unwinder)
15478 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15479 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15480 * target.h (struct target_ops): New fields to_get_unwinder and
15481 to_get_tailcall_unwinder.
15482 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15483
15484 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15485
15486 * record-btrace.c (record_btrace_fetch_registers)
15487 (record_btrace_store_registers)
15488 (record_btrace_to_prepare_to_store): New.
15489 (init_record_btrace_ops): Add the above.
15490
15491 2014-01-16 Tom Tromey <tromey@redhat.com>
15492
15493 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15494 * target.h (struct target_ops) <to_prepare_to_store>: Add
15495 argument.
15496 (target_prepare_to_store): Add argument.
15497 * target.c (debug_to_prepare_to_store): Add argument.
15498 (update_current_target): Update.
15499 * remote.c (remote_prepare_to_store): Add 'self' argument.
15500 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15501 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15502 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15503 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15504 argument.
15505 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15506 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15507 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15508 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15509 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15510
15511 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15512
15513 * btrace.h (replay) <replay>: New.
15514 (btrace_is_replaying): New.
15515 * btrace.c (btrace_clear): Free replay iterator.
15516 (btrace_is_replaying): New.
15517 * record-btrace.c (record_btrace_is_replaying): New.
15518 (record_btrace_info): Print insn number if replaying.
15519 (record_btrace_insn_history): Start at replay position.
15520 (record_btrace_call_history): Start at replay position.
15521 (init_record_btrace_ops): Init to_record_is_replaying.
15522
15523 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15524
15525 * record-btrace.c (record_btrace_insn_history_range): Include
15526 end.
15527 (record_btrace_insn_history_from): Adjust range.
15528 (record_btrace_call_history_range): Include
15529 end.
15530 (record_btrace_call_history_from): Adjust range.
15531 * NEWS: Announce changes.
15532
15533 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15534
15535 * record.h (enum record_print_flag)
15536 <record_print_indent_calls>: New.
15537 * record.c (get_call_history_modifiers): Recognize /c modifier.
15538 (_initialize_record): Document /c modifier.
15539 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15540 Reorder fields. Optionally indent the function name. Update
15541 all users.
15542 * NEWS: Announce changes.
15543
15544 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15545
15546 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15547
15548 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15549
15550 * btrace.c (ftrace_new_function): Start counting at one.
15551 * record-btrace.c (record_btrace_info): Adjust number of calls
15552 and insns.
15553 * NEWS: Announce it.
15554
15555 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15556
15557 * record-btrace.c (btrace_call_history_insn_range): Print
15558 insn range as [begin, end].
15559
15560 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15561
15562 * btrace.h (struct btrace_func_link): New.
15563 (enum btrace_function_flag): New.
15564 (struct btrace_inst): Rename to ...
15565 (struct btrace_insn): ...this. Update all users.
15566 (struct btrace_func) <ibegin, iend>: Remove.
15567 (struct btrace_func_link): New.
15568 (struct btrace_func): Rename to ...
15569 (struct btrace_function): ...this. Update all users.
15570 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15571 (number, level, flags>: New.
15572 (struct btrace_insn_iterator): Rename to ...
15573 (struct btrace_insn_history): ...this.
15574 Update all users.
15575 (struct btrace_insn_iterator, btrace_call_iterator): New.
15576 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15577 (struct btrace_target_info) <begin, end, level>
15578 <insn_history, call_history>: New.
15579 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15580 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15581 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15582 (btrace_call_number, btrace_call_begin, btrace_call_end)
15583 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15584 (btrace_find_function_by_number, btrace_set_insn_history)
15585 (btrace_set_call_history): New.
15586 * btrace.c (btrace_init_insn_iterator)
15587 (btrace_init_func_iterator, compute_itrace): Remove.
15588 (ftrace_print_function_name, ftrace_print_filename)
15589 (ftrace_skip_file): Change
15590 parameter to const.
15591 (ftrace_init_func): Remove.
15592 (ftrace_debug): Use new btrace_function fields.
15593 (ftrace_function_switched): Also consider gaining and
15594 losing symbol information).
15595 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15596 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15597 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15598 New.
15599 (ftrace_new_function): Move. Remove debug print.
15600 (ftrace_update_lines, ftrace_update_insns): New.
15601 (ftrace_update_function): Check for call, ret, and jump.
15602 (compute_ftrace): Renamed to ...
15603 (btrace_compute_ftrace): ...this. Rewritten to compute call
15604 stack.
15605 (btrace_fetch, btrace_clear): Updated.
15606 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15607 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15608 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15609 (btrace_call_number, btrace_call_begin, btrace_call_end)
15610 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15611 (btrace_find_function_by_number, btrace_set_insn_history)
15612 (btrace_set_call_history): New.
15613 * record-btrace.c (require_btrace): Use new btrace thread
15614 info fields.
15615 (record_btrace_info, btrace_insn_history)
15616 (record_btrace_insn_history, record_btrace_insn_history_range):
15617 Use new btrace thread info fields and new iterator.
15618 (btrace_func_history_src_line): Rename to ...
15619 (btrace_call_history_src_line): ...this. Use new btrace
15620 thread info fields.
15621 (btrace_func_history): Rename to ...
15622 (btrace_call_history): ...this. Use new btrace thread info
15623 fields and new iterator.
15624 (record_btrace_call_history, record_btrace_call_history_range):
15625 Use new btrace thread info fields and new iterator.
15626
15627 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15628
15629 * frame.h (frame_id_build_unavailable_stack_special): New.
15630 * frame.c (frame_id_build_unavailable_stack_special): New.
15631
15632 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15633
15634 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15635 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15636 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15637 to gdbarch.
15638 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15639 (i386_insn_is_jump, i386_jmp_p): New.
15640 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15641 insn_is_jump to gdbarch.
15642 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15643 * gdbarch.h: Regenerated.
15644 * gdbarch.c: Regenerated.
15645 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15646 (default_insn_is_jump): New.
15647 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15648 (default_insn_is_jump): New.
15649
15650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15651
15652 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15653 Change to ...
15654 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15655 (btrace_read_type) <btrace_read_new>: Change to ...
15656 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15657
15658 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15659
15660 * common/linux-btrace.c (linux_read_btrace): Free trace from
15661 previous iteration.
15662
15663 2014-01-15 Doug Evans <dje@google.com>
15664
15665 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15666 uint32_t.
15667
15668 2014-01-15 Tom Tromey <tromey@redhat.com>
15669
15670 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15671 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15672 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15673 (set_objfile_main_name): New function.
15674 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15675 language_of_main>: New fields.
15676 (set_objfile_main_name): Declare.
15677 * symtab.c (find_main_name): Loop over objfiles to find the main
15678 name and language.
15679 (set_main_name): Now static.
15680 (get_main_info): Add comment.
15681 * symtab.h (set_main_name): Don't declare.
15682
15683 2014-01-15 Tom Tromey <tromey@redhat.com>
15684
15685 * symtab.c (main_progspace_key): New global.
15686 (struct main_info): New.
15687 (name_of_main, language_of_main): Remove.
15688 (get_main_info, main_info_cleanup): New function.
15689 (set_main_name, main_name, main_language): Use get_main_info.
15690 (_initialize_symtab): Initialize main_progspace_key.
15691
15692 2014-01-15 Tom Tromey <tromey@redhat.com>
15693
15694 * dbxread.c (process_one_symbol): Update.
15695 * dwarf2read.c (read_partial_die): Update.
15696 * symfile.c (set_initial_language): Call main_language.
15697 * symtab.c (language_of_main): Now static.
15698 (set_main_name): Add 'lang' parameter.
15699 (find_main_name): Update.
15700 (main_language): New function.
15701 (symtab_observer_executable_changed): Update.
15702 * symtab.h (set_main_name): Update.
15703 (language_of_main): Remove.
15704 (main_language): Declare.
15705
15706 2014-01-15 Tom Tromey <tromey@redhat.com>
15707
15708 * symfile.c (init_entry_point_info): Use new "initialized" field.
15709 Update.
15710 * objfiles.h (struct entry_point) <initialized>: New field.
15711 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15712 (struct objfile) <ei>: ...here. Remove.
15713 * objfiles.c (entry_point_address_query): Update.
15714
15715 2014-01-15 Tom Tromey <tromey@redhat.com>
15716
15717 * objfiles.c (entry_point_address_query): Relocate entry point
15718 address.
15719 (objfile_relocate1): Do not relocate entry point address.
15720 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15721 <the_bfd_section_index>: New field.
15722 * symfile.c (init_entry_point_info): Find the entry point's
15723 section.
15724
15725 2014-01-15 Tom Tromey <tromey@redhat.com>
15726
15727 * solib-frv.c (enable_break): Use entry_point_address_query.
15728
15729 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15730
15731 * NEWS: Add note on improved process record-replay on
15732 arm*-linux* targets.
15733
15734 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15735
15736 * arm-tdep.c (enum arm_record_result): New enum.
15737 (arm_record_unsupported_insn): New function.
15738 (arm_record_coproc_data_proc): Removed.
15739 (thumb2_record_ld_st_multiple): New function.
15740 (thumb2_record_ld_st_dual_ex_tbb): New function.
15741 (thumb2_record_data_proc_sreg_mimm): New function.
15742 (thumb2_record_ps_dest_generic): New function.
15743 (thumb2_record_branch_misc_cntrl): New function.
15744 (thumb2_record_str_single_data): New function.
15745 (thumb2_record_ld_mem_hints): New function.
15746 (thumb2_record_ld_word): New function.
15747 (thumb2_record_lmul_lmla_div): New function.
15748 (thumb2_record_decode_insn_handler): New function.
15749 (decode_insn): Add thumb32 instruction handlers.
15750
15751 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15752
15753 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15754 (struct arm_linux_record_tdep): Declare.
15755 (arm_canonicalize_syscall): New function.
15756 (arm_all_but_pc_registers_record): New function.
15757 (arm_linux_syscall_record): New function.
15758 (arm_linux_init_abi): Add syscall recording constructs.
15759 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15760 decoding. (arm_record_coproc_data_proc): Update arm syscall
15761 decoding.
15762 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15763 <arm_syscall_record>: New field.
15764 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15765 gdb_target_obs.
15766
15767 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15768
15769 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15770 register for push instruction recording.
15771
15772 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15773
15774 * arm-tdep.c (thumb_record_misc): Update to correct logical
15775 error while recording ldm, ldmia and pop instructions.
15776
15777 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15778
15779 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15780
15781 2014-01-15 Pedro Alves <palves@redhat.com>
15782
15783 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15784 (go32_resume, go32_fetch_registers, store_register)
15785 (go32_store_registers, go32_prepare_to_store)
15786 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15787 (go32_create_inferior, go32_can_run, go32_terminal_init)
15788 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15789 declarations.
15790
15791 2014-01-15 Tom Tromey <tromey@redhat.com>
15792
15793 * target.h (async_callback_ftype): New typedef.
15794 (struct target_ops) <to_async>: Use it.
15795
15796 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15797
15798 * python/py-value.c (get_field_type): Remove unnecessary curly
15799 braces for single-statement if block.
15800
15801 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15802
15803 * python/py-type.c (convert_field): Add missing empty line
15804 after declarations.
15805
15806 2014-01-14 Doug Evans <dje@google.com>
15807
15808 * symfile.h (expand_symtabs_matching): Renamed from
15809 expand_partial_symbol_names. Update prototype.
15810 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15811 * symfile.c (expand_symtabs_matching): Renamed from
15812 expand_partial_symbol_names. New args file_matcher, kind.
15813 Rename arg fun to symbol_matcher.
15814 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15815 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15816 ada_expand_partial_symbol_name.
15817 (ada_make_symbol_completion_list): Update to call
15818 expand_symtabs_matching.
15819 (ada_add_global_exceptions): Call expand_symtabs_matching.
15820 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15821 call map_symbol_filenames.
15822 * symtab.c (sources_info): Update to call map_symbol_filenames.
15823 (search_symbols): Call expand_symtabs_matching.
15824 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15825 (default_make_symbol_completion_list_break_on): Update to call
15826 expand_symtabs_matching.
15827 (make_source_files_completion_list): Update to call
15828 map_symbol_filenames.
15829
15830 2014-01-14 Doug Evans <dje@google.com>
15831
15832 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15833 (expand_symtabs_symbol_matcher_ftype): New typedef.
15834 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15835 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15836 * symfile.c (expand_partial_symbol_names): Update to use
15837 expand_symtabs_symbol_matcher_ftype.
15838 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15839 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15840 Arg name_matcher renamed to symbol_matcher.
15841 * psymtab.c (recursively_search_psymtabs): Update to use
15842 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15843 sym_matcher.
15844 (expand_symtabs_matching_via_partial): Update to use
15845 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15846 Arg name_matcher renamed to symbol_matcher.
15847
15848 2014-01-14 Doug Evans <dje@google.com>
15849
15850 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15851 (map_partial_symbol_filenames): Ditto.
15852 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15853 (map_partial_symbol_filenames): Ditto.
15854 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15855 (map_partial_symbol_filenames): Ditto.
15856 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15857 (map_partial_symbol_filenames): Ditto.
15858 * symtab.c: Delete #include "psymtab.h".
15859
15860 2014-01-14 Pedro Alves <palves@redhat.com>
15861 Tom Tromey <tromey@redhat.com>
15862
15863 * infrun.c (use_displaced_stepping): Use find_record_target
15864 instead of RECORD_IS_USED.
15865 (adjust_pc_after_break): Use record_full_is_used instead of
15866 RECORD_IS_USED.
15867 * record-btrace.c (record_btrace_open): Call record_preopen
15868 instead of checking RECORD_IS_USED.
15869 * record-full.c (record_full_shortname)
15870 (record_full_core_shortname): New globals.
15871 (record_full_is_used): New function.
15872 (find_full_open): Call record_preopen instead of checking
15873 RECORD_IS_USED.
15874 (init_record_full_ops): Set the target's shortname to
15875 record_full_shortname.
15876 (init_record_full_core_ops): Set the target's shortname to
15877 record_full_core_shortname.
15878 * record-full.h (record_full_is_used): Declare.
15879 * record.c (find_record_target): Make extern.
15880 (record_preopen): New function.
15881 * record.h (RECORD_IS_USED): Delete macro.
15882 (find_record_target, record_preopen): Declare functions.
15883
15884 2014-01-14 Yao Qi <yao@codesourcery.com>
15885
15886 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15887 'len''s type to ULONGEST.
15888 (core_xfer_shared_libraries_aix): Likewise.
15889 * gdbarch.c, gdbarch.h: Regenerated.
15890 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15891 Change type of 'len' to ULONGEST.
15892 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15893 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15894
15895 2014-01-14 Yao Qi <yao@codesourcery.com>
15896
15897 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15898 type of 'len' to ULONGEST.
15899 (linux_xfer_osdata_processgroups): Likewise.
15900 (linux_xfer_osdata_threads): Likewise.
15901 (linux_xfer_osdata_fds): Likewise.
15902 (linux_xfer_osdata_isockets): Likewise.
15903 (linux_xfer_osdata_shm): Likewise.
15904 (linux_xfer_osdata_sem): Likewise.
15905 (linux_xfer_osdata_msg): Likewise.
15906 (linux_common_xfer_osdata): Likewise.
15907 (struct osdata_type) <getter>: Likewise.
15908 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15909 the declaration.
15910
15911 2014-01-14 Yao Qi <yao@codesourcery.com>
15912
15913 * target.h (target_xfer_partial_ftype): Update.
15914 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15915 ULONGEST.
15916 * aix-thread.c (aix_thread_xfer_partial): Change type of
15917 argument 'len' to ULONGEST.
15918 * auxv.c (procfs_xfer_auxv): Likewise.
15919 (ld_so_xfer_auxv): Likewise.
15920 (memory_xfer_auxv): Likewise.
15921 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15922 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15923 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15924 * corelow.c (core_xfer_partial): Likewise.
15925 * ctf.c (ctf_xfer_partial): Likewise.
15926 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15927 '%u'.
15928 (darwin_read_dyld_info): Likewise.
15929 (darwin_xfer_partial): Likewise.
15930 * exec.c (section_table_xfer_memory_partial): Likewise.
15931 (exec_xfer_partial): Likewise.
15932 * exec.h (section_table_xfer_memory_partial): Update
15933 declaration.
15934 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15935 instead of plongest.
15936 (gnu_xfer_partial): Likewise.
15937 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15938 (ia64_hpux_xfer_solib_got): Likewise.
15939 (ia64_hpux_xfer_partial): Likewise.
15940 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15941 * inf-ptrace.c (inf_ptrace_xfer_partial):
15942 * inf-ttrace.c (inf_ttrace_xfer_partial):
15943 * linux-nat.c (linux_xfer_siginfo): Likewise.
15944 (linux_nat_xfer_partial): Likewise.
15945 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15946 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15947 * monitor.c (monitor_xfer_memory): Likewise.
15948 (monitor_xfer_partial): Likewise.
15949 * procfs.c (procfs_xfer_partial): Likewise.
15950 * record-full.c (record_full_xfer_partial): Likewise.
15951 (record_full_core_xfer_partial): Likewise.
15952 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15953 instead of plongest.
15954 (gdbsim_xfer_partial): Likewise.
15955 * remote.c (remote_xfer_partial): Likewise.
15956 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15957 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15958 declaration.
15959 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15960 (rs6000_xfer_shared_libraries): Likewise.
15961 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15962 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15963 (sparc_xfer_partial): Likewise.
15964 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15965 (spu_xfer_partial): Likewise.
15966 * spu-multiarch.c (spu_xfer_partial): Likewise.
15967 * target.c (target_read_live_memory): Likewise.
15968 (memory_xfer_live_readonly_partial): Likewise.
15969 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15970 (target_xfer_partial, default_xfer_partial): Likewise.
15971 (current_xfer_partial): Likewise.
15972 * tracepoint.c (tfile_xfer_partial): Likewise.
15973 * windows-nat.c (windows_xfer_memory): Likewise. Call
15974 pulongest instead of plongest.
15975 (windows_xfer_partial): Likewise.
15976 (windows_xfer_shared_libraries): Likewise.
15977
15978 2014-01-14 Yao Qi <yao@codesourcery.com>
15979
15980 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15981 target_xfer_partial_ftype.
15982
15983 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15984
15985 PR python/15464
15986 PR python/16113
15987 * valops.c (value_struct_elt_bitpos): New function
15988 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15989 object to 'None' if the field name is an empty string ("").
15990 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15991 attribute to look for a field when 'name' is 'None'.
15992 (get_field_type): New function
15993
15994 2014-01-13 Doug Evans <dje@google.com>
15995
15996 PR symtab/16426
15997 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15998 (try_open_dwop_file): Ditto.
15999 * gdb_bfd.c: #include "vec.h".
16000 (bfdp): New typedef.
16001 (struct gdb_bfd_data): New member included_bfds.
16002 (gdb_bfd_unref): Unref all included bfds.
16003 (gdb_bfd_record_inclusion): New function.
16004 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
16005
16006 2014-01-13 Tom Tromey <tromey@redhat.com>
16007
16008 * gdbcore.h (deprecated_core_resize_section_table): Remove.
16009
16010 2014-01-13 Tom Tromey <tromey@redhat.com>
16011
16012 * defs.h (use_windows): Remove.
16013 * gdb.c (main): Update.
16014 * main.c (captured_main, gdb_main): Update.
16015 * main.h (struct captured_main_args) <use_windows>: Remove.
16016 * top.c (use_windows): Remove.
16017
16018 2014-01-13 Tom Tromey <tromey@redhat.com>
16019
16020 * defs.h (deprecated_flush_hook): Remove.
16021
16022 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16023
16024 PR threads/16216
16025 * linux-thread-db.c (try_thread_db_load): Add parameter
16026 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16027 (try_thread_db_load_from_pdir_1): Move it there from here.
16028 (try_thread_db_load_from_sdir): Update caller.
16029 (try_thread_db_load_from_dir): Move it there from here.
16030
16031 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16032
16033 * regformats/regdat.sh: Always rewrite the register file.
16034
16035 2014-01-13 Pedro Alves <palves@redhat.com>
16036
16037 * Makefile.in (CHECK_HEADERS): New variable.
16038 (check-headers:): New rule.
16039
16040 2014-01-13 Tom Tromey <tromey@redhat.com>
16041
16042 * cli/cli-setshow.c (do_set_command): Update.
16043 * defs.h (deprecated_set_hook): Remove.
16044 * top.c (deprecated_set_hook): Remove.
16045
16046 2014-01-13 Pedro Alves <palves@redhat.com>
16047
16048 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16049 the tracepoint if the PC is a pseudo-register.
16050
16051 2014-01-13 Tom Tromey <tromey@redhat.com>
16052
16053 * defs.h (XCALLOC): Remove.
16054 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16055 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16056 * dwarf2loc.c (allocate_piece_closure): Likewise.
16057 * elfread.c (elf_symfile_segments): Likewise.
16058 (elf_symfile_segments): Likewise.
16059 * gdbtypes.c (copy_type_recursive): Likewise.
16060 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16061 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16062 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16063 XCALLOC.
16064 * mt-tdep.c (mt_gdbarch_init): Likewise.
16065 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16066 XCALLOC.
16067 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16068 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16069 * registry.c (registry_alloc_data): Likewise.
16070 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16071 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16072 * serial.c (serial_fdopen_ops): Likewise.
16073 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16074 XCALLOC.
16075 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16076 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16077 not XCALLOC.
16078
16079 2014-01-13 Tom Tromey <tromey@redhat.com>
16080
16081 * defs.h (XMALLOC): Remove.
16082 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16083 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16084 * cli-out.c (struct ui_out *): Likewise.
16085 * cli/cli-dump.c (add_dump_command): Likewise.
16086 (add_dump_command): Likewise.
16087 * complaints.c (get_complaints): Likewise.
16088 (find_complaint): Likewise.
16089 * dwarf2-frame.c (execute_cfa_program): Likewise.
16090 * dwarf2read.c (abbrev_table_read_table): Likewise.
16091 * gdbarch.sh: Likewise.
16092 * gdbarch.c: Rebuild.
16093 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16094 * interps.c (interp_new): Likewise.
16095 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16096 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16097 * mi/mi-console.c (mi_console_file_new): Likewise.
16098 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16099 * mi/mi-out.c (mi_out_new): Likewise.
16100 * mi/mi-parse.c (mi_parse): Likewise.
16101 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16102 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16103 * observer.c (xalloc_observer_list_node): Likewise.
16104 * regcache.c (regcache_xmalloc_1): Likewise.
16105 * reggroups.c (reggroup_new): Likewise.
16106 (_initialize_reggroup): Likewise.
16107 * registry.c (register_data_with_cleanup): Likewise.
16108 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16109 * ser-base.c (serial_ttystate): Likewise.
16110 * ser-mingw.c (make_pipe_state): Likewise.
16111 * ser-pipe.c (pipe_open): Likewise.
16112 * serial.c (serial_open): Likewise.
16113 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16114 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16115 (tui_alloc_win_info): Likewise.
16116 (tui_add_content_elements): Likewise.
16117 * tui/tui-file.c (tui_file_new): Likewise.
16118 * tui/tui-out.c (tui_out_new): Likewise.
16119 * ui-file.c (mem_file_new): Likewise.
16120 * ui-out.c (push_level): Likewise.
16121 (make_cleanup_ui_out_end): Likewise.
16122 (append_header_to_list): Likewise.
16123 (ui_out_new): Likewise.
16124 * user-regs.c (user_reg_add_builtin): Likewise.
16125
16126 2014-01-13 Tom Tromey <tromey@redhat.com>
16127
16128 * defs.h (XZALLOC): Remove.
16129 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16130 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16131 (get_ada_tasks_inferior_data): Likewise.
16132 * auto-load.c (get_auto_load_pspace_data): Likewise.
16133 * auxv.c (get_auxv_inferior_data): Likewise.
16134 * bfd-target.c (target_bfd_reopen): Likewise.
16135 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16136 (deprecated_insert_raw_breakpoint): Likewise.
16137 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16138 * corelow.c (core_open): Likewise.
16139 * darwin-nat.c (darwin_check_new_threads): Likewise.
16140 (darwin_attach_pid): Likewise.
16141 * dummy-frame.c (dummy_frame_push): Likewise.
16142 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16143 * dwarf2loc.c (allocate_piece_closure): Likewise.
16144 * elfread.c (elf_symfile_segments): Likewise.
16145 * eval.c (ptrmath_type_p): Likewise.
16146 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16147 * gdbtypes.c (alloc_type_arch): Likewise.
16148 (alloc_type_instance): Likewise.
16149 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16150 * inf-child.c (inf_child_can_use_agent): Likewise.
16151 * inflow.c (get_inflow_inferior_data): Likewise.
16152 * infrun.c (save_infcall_suspend_state): Likewise.
16153 * jit.c (jit_reader_load): Likewise.
16154 (get_jit_objfile_data): Likewise.
16155 (get_jit_program_space_data): Likewise.
16156 (jit_object_open_impl): Likewise.
16157 (jit_symtab_open_impl): Likewise.
16158 (jit_block_open_impl): Likewise.
16159 (jit_frame_sniffer): Likewise.
16160 * linux-fork.c (add_fork): Likewise.
16161 * maint.c (make_command_stats_cleanup): Likewise.
16162 * objfiles.c (get_objfile_pspace_data): Likewise.
16163 * opencl-lang.c (struct lval_closure): Likewise.
16164 * osdata.c (osdata_start_osdata): Likewise.
16165 * progspace.c (new_address_space): Likewise.
16166 (add_program_space): Likewise.
16167 * remote-sim.c (get_sim_inferior_data): Likewise.
16168 * sh-tdep.c (sh_gdbarch_init): Likewise.
16169 * skip.c (Ignore): Likewise.
16170 (skip_delete_command): Likewise.
16171 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16172 (library_list_start_library): Likewise.
16173 (solib_aix_current_sos): Likewise.
16174 * solib-darwin.c (get_darwin_info): Likewise.
16175 (darwin_current_sos): Likewise.
16176 * solib-dsbt.c (get_dsbt_info): Likewise.
16177 * solib-ia64-hpux.c (new_so_list): Likewise.
16178 (ia64_hpux_get_solib_linkage_addr): Likewise.
16179 * solib-spu.c (append_ocl_sos): Likewise.
16180 (spu_current_sos): Likewise.
16181 * solib-svr4.c (get_svr4_info): Likewise.
16182 (svr4_keep_data_in_core): Likewise.
16183 (library_list_start_library): Likewise.
16184 (svr4_default_sos): Likewise.
16185 (svr4_read_so_list): Likewise.
16186 * solib-target.c (library_list_start_library): Likewise.
16187 (solib_target_current_sos): Likewise.
16188 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16189 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16190 * symfile.c (default_symfile_segments): Likewise.
16191 * target-descriptions.c (tdesc_data_init): Likewise.
16192 (tdesc_create_reg): Likewise.
16193 (struct tdesc_type *): Likewise.
16194 (tdesc_create_vector): Likewise.
16195 (tdesc_set_struct_size): Likewise.
16196 (struct tdesc_type *): Likewise.
16197 (tdesc_free_feature): Likewise.
16198 (tdesc_create_feature): Likewise.
16199 * windows-nat.c (windows_add_thread): Likewise.
16200 (windows_make_so): Likewise.
16201 * xml-support.c (gdb_xml_body_text): Likewise.
16202 (gdb_xml_create_parser_and_cleanup): Likewise.
16203 (xml_process_xincludes): Likewise.
16204 * xml-syscall.c (allocate_syscalls_info): Likewise.
16205 (syscall_create_syscall_desc): Likewise.
16206
16207 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16208
16209 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16210 function, with code from i386_stap_parse_special_token.
16211 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16212 (i386_stap_parse_special_token): Move code to the two functions
16213 above; simplify it.
16214
16215 2014-01-09 Pedro Alves <palves@redhat.com>
16216 Hui Zhu <hui@codesourcery.com>
16217
16218 PR gdb/16101
16219 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16220 bp_err_string. Don't mark the location shlib_disabled if the
16221 error thrown wasn't a generic or memory error. Catch errors
16222 thrown while inserting breakpoints in overlayed code. Output
16223 error message of software breakpoints.
16224 * remote.c (remote_insert_breakpoint): If this breakpoint has
16225 target-side commands but this stub doesn't support Z0 packets,
16226 throw NOT_SUPPORTED_ERROR error.
16227 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16228 * target.h (target_insert_breakpoint): Extend comment.
16229 (target_insert_hw_breakpoint): Add comment.
16230
16231 2014-01-08 Pedro Alves <palves@redhat.com>
16232
16233 * remote.c (remote_add_thread): Add threads silently if starting
16234 up.
16235 (remote_notice_new_inferior): If in all-stop, and starting up,
16236 don't call notice_new_inferior.
16237 (get_current_thread): New function, factored out from ...
16238 (add_current_inferior_and_thread): ... this. Adjust.
16239 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16240 found any thread, then select the remote's current thread as GDB's
16241 current thread too.
16242
16243 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16244
16245 * NEWS: Create a new section for the next release branch.
16246 Rename the section of the current branch, now that it has
16247 been cut.
16248
16249 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16250
16251 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16252 * version.in: Bump version to 7.7.50.DATE-cvs.
16253
16254 2014-01-08 Yao Qi <yao@codesourcery.com>
16255
16256 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16257 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16258 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16259
16260 2014-01-08 Yao Qi <yao@codesourcery.com>
16261
16262 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16263 return value of bfd_get_filename to symbol_file_add_from_bfd.
16264
16265 2014-01-08 Pierre Muller <muller@sourceware.org>
16266
16267 Fix PR16201.
16268 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16269 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16270 to prim_record_mininal_symbol_and_info.
16271 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16272 in call to prim_record_minimal_symbol_and_info.
16273 (read_pe_exported_syms): Set index field of section_data.
16274
16275 2014-01-07 Andrew Pinski <apinski@cavium.com>
16276
16277 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16278 * features/aarch64.c: Regenerate.
16279
16280 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16281
16282 * target.c (return_null): Define.
16283 (update_current_target): Use it instead of return_zero for
16284 functions that return a pointer.
16285
16286 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16287
16288 * source.c (add_path): Fix check for duplicated paths in the previously
16289 included paths.
16290
16291 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16292
16293 * ada-lang.c: Remove duplicated include statements.
16294 * alphabsd-nat.c: Ditto.
16295 * amd64-darwin-tdep.c: Ditto.
16296 * amd64fbsd-nat.c: Ditto.
16297 * auto-load.c: Ditto.
16298 * ax-gdb.c: Ditto.
16299 * breakpoint.c: Ditto.
16300 * dbxread.c: Ditto.
16301 * fork-child.c: Ditto.
16302 * gdb_usleep.c: Ditto.
16303 * i386-darwin-tdep.c: Ditto.
16304 * i386fbsd-nat.c: Ditto.
16305 * infcmd.c: Ditto.
16306 * inferior.c: Ditto.
16307 * jv-lang.c: Ditto.
16308 * linux-nat.c: Ditto.
16309 * linux-tdep.c: Ditto.
16310 * m68kbsd-nat.c: Ditto.
16311 * m68klinux-nat.c: Ditto.
16312 * microblaze-tdep.c: Ditto.
16313 * mips-linux-tdep.c: Ditto.
16314 * mn10300-tdep.c: Ditto.
16315 * nto-tdep.c: Ditto.
16316 * opencl-lang.c: Ditto.
16317 * osdata.c: Ditto.
16318 * printcmd.c: Ditto.
16319 * regcache.c: Ditto.
16320 * remote-m32r-sdi.c: Ditto.
16321 * remote.c: Ditto.
16322 * symfile.c: Ditto.
16323 * symtab.c: Ditto.
16324 * tilegx-linux-nat.c: Ditto.
16325 * tilegx-tdep.c: Ditto.
16326 * tracepoint.c: Ditto.
16327 * valops.c: Ditto.
16328 * vaxbsd-nat.c: Ditto.
16329 * windows-nat.c: Ditto.
16330 * xtensa-tdep.c: Ditto.
16331
16332 2014-01-07 Yao Qi <yao@codesourcery.com>
16333
16334 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16335
16336 2014-01-07 Yao Qi <yao@codesourcery.com>
16337 Joel Brobecker <brobecker@adacore.com>
16338
16339 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16340 (pdc_write_regs): Likewise.
16341 (fetch_regs_kernel_thread): Likewise.
16342 (store_regs_kernel_thread): Likewise.
16343
16344 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16345
16346 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16347 tagged type objects to their actual type.
16348
16349 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16350
16351 * ada-valprint.c (print_field_values): Add "language" parameter.
16352 Update calls to print_field_values and print_variant_part.
16353 Pass new parameter "language" in call to val_print instead
16354 of "current_language". Replace call to ada_val_print by call
16355 to val_print.
16356 (print_variant_part): Add "language" parameter.
16357 (ada_val_print_struct_union): Update call to print_field_values.
16358
16359 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16360
16361 * ada-valprint.c (ui_memcpy): Delete.
16362 (ada_print_floating): Update documentation. Add empty line
16363 between between function documentation and implementation.
16364 Delete variable "buffer". Use ui_file_xstrdup in place of
16365 ui_file_put. Minor adjustments following this change.
16366
16367 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16368
16369 * ada-valprint.c (ada_val_print_string): New function,
16370 extracted from ada_val_print_array.
16371 (ada_val_print_array): Replace extracted code by call
16372 to ada_val_print_string followed by a return. Move
16373 "else" branch to the function's top block.
16374
16375 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16376
16377 * ada-valprint.c (ada_val_print_array): Move implementation
16378 down. Rename parameter "offset" and "val" into "offset_aligned"
16379 and "original_value" respectively. Add parameter "offset".
16380
16381 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16382
16383 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16384 re-organizing the code. Change the "???" message printed
16385 when target type is a TYPE_CODE_UNDEF into
16386 "<ref to undefined type>".
16387
16388 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16389
16390 * ada-valprint.c (print_record): Delete, implementation inlined...
16391 (ada_val_print_struct_union): ... here. Remove call to
16392 ada_check_typedef in inlined implementation.
16393
16394 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16395
16396 * ada-valprint.c (ada_val_print_gnat_array): New function,
16397 extracted from ada_val_print_1;
16398 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16399 (ada_val_print_flt, ada_val_print_struct_union)
16400 (ada_val_print_ref): Likewise.
16401 (ada_val_print_1): Delete variables i and elttype.
16402 Replace extracted-out code by call to corresponding
16403 new functions.
16404
16405 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16406
16407 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16408
16409 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16410
16411 * ada-valprint.c (ada_val_print_1): Replace calls to
16412 ada_val_print_1 by calls to val_print.
16413
16414 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16415
16416 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16417 Update calls to self accordingly. Replace calls to c_val_print
16418 by calls to val_print.
16419
16420 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16421
16422 * ada-valprint.c (print_record): Delete declaration.
16423 (adjust_type_signedness, ada_val_print_1): Likewise.
16424 (ada_val_print): Move function implementation down.
16425 (print_variant_part, print_field_values, print_record):
16426 Move function implementation up.
16427
16428 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16429
16430 * python/py-type.c (typy_get_name): New function.
16431 (type_object_getset): Add entry for attribute "name".
16432 * NEWS: Add entry mentioning this new attribute.
16433
16434 2014-01-07 Yao Qi <yao@codesourcery.com>
16435
16436 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16437 statement.
16438
16439 2014-01-07 Yao Qi <yao@codesourcery.com>
16440
16441 * gnu-nat.c (info_port_rights): Add qualifier const to
16442 argument args.
16443
16444 2014-01-07 Yao Qi <yao@codesourcery.com>
16445
16446 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16447
16448 2014-01-07 Yao Qi <yao@codesourcery.com>
16449
16450 * gnu-nat.c (make_inf) Update declaration.
16451 (make_inf): Make it static.
16452 (inf_set_traced): Likewise.
16453 (inf_port_to_thread, inf_task_died_status): Likewise.
16454
16455 2014-01-07 Yao Qi <yao@codesourcery.com>
16456
16457 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16458
16459 2014-01-07 Yao Qi <yao@codesourcery.com>
16460
16461 * gnu-nat.c (_initialize_gnu_nat): Declare.
16462
16463 2014-01-07 Yao Qi <yao@codesourcery.com>
16464
16465 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16466 'enum bfd_endian'.
16467 (struct gdbarch_info) <byte_order>: Change type to
16468 'enum bfd_endian'.
16469 <byte_order_for_code>: Likewise.
16470 * gdbarch.c, gdbarch.h: Regenerated.
16471
16472 2014-01-06 Sasha Smundak <asmundak@google.com>
16473
16474 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16475
16476 2014-01-06 Tom Tromey <tromey@redhat.com>
16477
16478 * doublest.c (convert_doublest_to_floatformat): Use const, not
16479 CONST.
16480 * somread.c (som_symtab_read): Likewise.
16481
16482 2014-01-07 Hui Zhu <hui@codesourcery.com>
16483
16484 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16485 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16486 (gdb_bfd_fopen): Ditto.
16487 (gdb_bfd_openr): Ditto.
16488 (gdb_bfd_openw): Ditto.
16489 (gdb_bfd_openr_iovec): Ditto.
16490 (gdb_bfd_fdopenr): Ditto.
16491 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16492 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16493 with xstrdup.
16494 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16495 with xstrdup.
16496 * symfile-mem.c (symbol_file_add_from_memory): Removed
16497 gdb_bfd_stash_filename.
16498
16499 2014-01-03 Doug Evans <dje@google.com>
16500
16501 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16502 output.
16503
16504 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16505
16506 Update year range in copyright notice of all files.
16507
16508 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16509
16510 * top.c (print_gdb_version): Set copyright year to 2014.
16511
16512 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16513
16514 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16515
16516 For older changes see ChangeLog-2013.
16517 \f
16518 Local Variables:
16519 mode: change-log
16520 left-margin: 8
16521 fill-column: 74
16522 version-control: never
16523 coding: utf-8
16524 End:
This page took 0.375912 seconds and 4 git commands to generate.